我正在使用编辑器中的fulfillment和nodemailer,并希望向我的个人电子邮件地址发送电子邮件。当我尝试集成到Dialogflow Messenger Beta版本时,我的聊天机器人将无法理解响应。
我的输出:
User: "I would like to send an email to the support service."
Bot: "Sorry. I do not understand your question."
正确的输出:
User: "I would like to send an email to the suppo
我发现了一个例子,可以在给定文本的情况下确定触发意图,但我需要使其几乎相同,唯一不同的是我想触发特定的意图。
这是我找到的示例,但不是我需要的。
我正在使用新的apiv2的dialogflow库
def detect_intent_texts(project_id, session_id, texts, language_code):
"""Returns the result of detect intent with texts as inputs.
Using the same `session_id` between requests allows conti
我正在使用Dialogflow创建一个聊天机器人。我有一个向用户提出随机问题的后备意图。 fallback intent 例如, Bot:"Do you like coffee?"
User: Yes
Bot: Good, I usually prefer tea.
But it gives the same response with a different question
Bot: "Do you like sports?"
User: Yes
Bot: I usually prefer tea. 我在这两个意图中都使用了“回退-跟进”,但到目前为止
使用Dialogflow的,我认为可以通过编程方式设置和删除上下文,并从中提取参数。
我试图收集多个参数的值,它们可以以相同的意图多次传递。以下代码在意图处理程序中运行:
contextParams = agent.context.get("seek-create-params-context").parameters;
currentParams = agent.parameters;
// merge will look for required params from both current and context
newParameters = merge(curr
我一直在互联网和对话流文档中寻找解决这个问题的方法,但我只是想不出答案,任何帮助让我朝着正确的方向前进是非常感谢的。
我正在创建一个FB信使机器人,我想使用DialogFlow来处理NLP。但是,我很难找到如何将DialogFlow集成到我的Python应用程序中。
这是我想要的结果:
Bot: You have not recorded activity for 3-4pm today, what did you do?
User: I did jogging
Bot: Added "Jogging" to your calendar from 3-4pm
如您所见,bot启
我把Dialogflow和Facebook的信使集成在了一起。我遵循了对话框流文档中的步骤。
我不会从信使那里得到任何输出/message。
我用conv.ask()来回应我的意图,这就是问题所在吗?
是否需要在操作中更新表面功能部分?
'use strict';
// Import the Dialogflow module and response creation dependencies
// from the Actions on Google client library.
const {
dialogflow,
BasicCard,
我已经将Dialogflow代理连接到一个Facebook页面,并且正在使用Dialogflow中的fulfillment功能显示Facebook卡片响应。我想不出如何捕捉卡片按钮点击事件。我需要聊天移动到下一个点击按钮的意图。然而,点击按钮并不会触发任何事情。
下面是用于创建按钮的实现代码
function getState(agent){
state = agent.parameters.State;
return getAd()
.then(result => {
for(const item of result.result){
ag
我们正在构建一个采取行动的笔记,并希望从用户那里接收输入,输入可以是自由文本,也可以是未定义的(我们不知道笔记的内容)。我们使用的是Dialogflow,我们的实现是在webhook中定义的。 我读到过,我们可以创建一个自定义事件作为触发意图的一种可选方式,而不需要训练短语。然而,当我发送一个输入时,我还不能得到触发的意图,我试图找出我遗漏了什么部分。 如果我们让用户在音符前说“触发”短语,并将该触发短语定义为训练短语,我就可以获得触发意图。“这是我的笔记”用户口述他们的笔记。 我希望对话的内容类似于 What do you want to do today?
Create a new n
使用Dialogflow的标准版本
通过以下示例向Dialogflow V2接口发送请求。
当使用其他NLP服务时,它们将返回多个意图的详细响应及其置信度分数
def detect_intent_texts(project_id, session_id, texts, language_code):
"""Returns the result of detect intent with texts as inputs. Using the same `session_id` between requests allows continuation
of
我正在尝试在Dialogflow控制台中设置一个包含多个是/否问题的结构。它看起来像这样: Agent: do you want to go to Basel?
If User: No -> Agent: Do you want to go to Zurich?
If User: Yes: Great, you chose Zurich!
If User: Yes -> Agent: Great, you chose Basel! 基本上,它会根据位置之类的内容提出问题,当用户回答是时,它会用所选的位置进行响应。 如果用户对第一个问题回答“是”,那么一切都很