Botium部分团队实际上并没有向chatbot发送对话 [英] Botium partial convos are not actually sending conversations to chatbot

查看:48
本文介绍了Botium部分团队实际上并没有向chatbot发送对话的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试遵循部分convo指令

I am trying to follow the partial convo instructions here under splitting convos, but I am unable to get the partial convo to actually send messages to the chatbot. Are there additional configuration settings in botium.json that I need to adjust to enable this feature?

考虑使用botium-cli init创建的简单的 give_me_a_picture.convo.txt .如果我创建一个如下所示的 pconvo.txt 文件 example.pconvo.txt :

Consider the simple give_me_a_picture.convo.txt that is created with botium-cli init. If I create a pconvo.txt file example.pconvo.txt that looks like this:

PARTIAL_HELLO

#me
Hello, Bot!

#bot
You said: Hello, Bot!

,然后我将 give_me_a_picture.convo.txt 调整为包含以下内容:

and then I adjust give_me_a_picture.convo.txt to include the following:

give me picture

INCLUDE PARTIAL_HELLO

#me
give me a picture

#bot
Here is a picture
MEDIA http://www.botium.at/img/logo.png

从技术上讲,上述测试仍将通过.但是,如果我使用-verbose 运行它,您会看到它实际上并没有从 PARTIAL_HELLO 发送命令(即,"Hello,Bot!").)-它只是跳过说给我一张图片-我必须进行哪些调整才能使其真正通过部分对话?

The above test will technically still pass. However, if I run this with --verbose you will see that it doesn't actually send the commands from PARTIAL_HELLO (ie. "Hello, Bot!") -- it just skips to saying give me a picture -- what adjustments do I have to make such that it actually goes through the partial conversation?

这是convo开头的-verbose 输出,您可以看到第一个问题是给我一张图片

Here is the --verbose output at the start of the convo where you can see the first question is give me a picture

botium-PluginConnectorContainer Botium plugin botium-connector-echo loaded +0ms
  botium-connector-echo Validate called +0ms
  botium-connector-echo Build called +1ms
  botium-connector-echo Start called +0ms
  botium-cli-run running testcase give me picture +21ms
  botium-Convo give me picture/Line 5: user says {
  botium-Convo   "sender": "me",
  botium-Convo   "channel": null,
  botium-Convo   "messageText": "give me a picture",
  botium-Convo   "stepTag": "Line 5",
  botium-Convo   "not": false,
  botium-Convo   "asserters": [],
  botium-Convo   "logicHooks": [],
  botium-Convo   "userInputs": []
  botium-Convo } +0ms

我还可以确认肉毒杆菌确实找到了部分convo并将其成功转录:

I can also confirm that botium did find the partial convo and transcribed it succesfully:

botium-ScriptingProvider  undefined PARTIAL_HELLO ({ convoDir: 'sample/', filename: 'example.pconvo.txt' }): Line 3: #me - Hello, Bot! | Line 6: #bot - You said: Hello, Bot! +0ms

推荐答案

您在convo文件的标题中使用了INCLUDE指令,这是错误的位置-您必须在实际对话中使用它.要在部分开始部分使用部分部分部分,请将其添加到 #begin 部分:

You are using the INCLUDE instruction in the header of the convo file, which is the wrong place - you have to use it within the actual conversation. To use the partial convo at the beginning of the convo, add it in the #begin section:

give me picture

#begin
INCLUDE PARTIAL_HELLO

#me
give me a picture

#bot
Here is a picture
MEDIA http://www.botium.at/img/logo.png

这篇关于Botium部分团队实际上并没有向chatbot发送对话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆