使用createSessionEntityTypes,我已经创建了一个会话实体,它被添加到已经存在的实体类型中。如果我使用listSessionEntityTypes,我可以查看创建的新实体,但是如果我尝试使用我的DialogFlow,它不能识别它。
举个例子:我创建了一个名为厨房的实体,现在如果我试图访问它,说“打开厨房灯”,厨房就不能被光实体类型识别。
这很奇怪,因为当我使用listSessionEntitytypes时,我在列表中看到了厨房,但当我说话时,我的DialogFlow没有将其识别为实体。下面是我正在编写的代码:
function createSessionEntityType
我正在开发对话框中的聊天机器人,并希望验证某人的年龄。简单介绍一下:我正在创建一个聊天机器人,用于识别护理需求,比如住院治疗或痴呆护理。在最初的询问中,我希望能够通过在对话框中的实现代码中做一个快速的IF语句来确保用户是65岁或65岁以上!
以下是我当前的意图:
以下是getUserInfo意图:
以下是履行守则:
'use strict';
// Import the Dialogflow module from the Actions on Google client library.
const {dialogflow} = require('actions-o
使用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是否具有动态响应。例如,从数据库(Firebase Database或MongoDB)获取数据,并将其显示为响应,而不是对每个响应进行硬编码。
我已经学会了满足感可以做这份工作。当我在对话框流中启用内联编辑器时,它已经部署了一些代码。我想,只是为了测试,我会在实践中编写一些非常基本的功能,看看它是否有效。
// See https://github.com/dialogflow/dialogflow-fulfillment-nodejs
// for Dialogflow fulfillment library do
我正在使用编辑器中的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
我正在尝试在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! 基本上,它会根据位置之类的内容提出问题,当用户回答是时,它会用所选的位置进行响应。 如果用户对第一个问题回答“是”,那么一切都很
我想在dialogflow中运行这段代码,基本上我想使用if条件作为例子。if my intent "Done" reply response [Text Response] =>'Now add 2 more and say got it' then it switch to my another intent called "alright" so the response should be "you no. is 1" and end the converstation. similary if my inten
我试图使用actions on-google Carousel显示几个项目,以处理我需要使用意图的单击操作(‘actions.int.OPTION’,(?,?,?))函数,但是这样做会导致以下错误,
ERROR:
TypeError: agent.intent is not a function at exports.dialogflowFirebaseFulfillment.functions.https.onRequest
代码是
const functions = require('firebase-functions');
const {
WebhookCli
嗨,伙计们,我在这里要做的是,当botman听到一些已经在代码中的东西时,它将返回if语句,如果它听到了其他的消息,它会从对话框中得到回复。有可能吗?我对botman很陌生,并试图为学校的项目开发它。
下面是我的代码:我仍然不知道如何去做,也不知道它是否可能。
if ($input == 'School info'){
$bot->reply('Give some info about school');
}
else{
//get reply from dialogflow
我发现了一个例子,可以在给定文本的情况下确定触发意图,但我需要使其几乎相同,唯一不同的是我想触发特定的意图。
这是我找到的示例,但不是我需要的。
我正在使用新的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