我们有一个由某些意图组成的dialogflow bot(企业版)。我还为意图启用了插槽填充。
有什么方法可以从意图的中间退出,留下其余的问题吗?
谢谢。
答案 0 :(得分:0)
Dialogflow fulfillment library应该提供示例来帮助您。如果您将Node.js与Dialogflow v2的电话网关,Google Assistant和Alexa集成在一起使用,则应该可以:
/**
* Add a response or list of responses to be sent to Dialogflow and end the conversation
* Note: Only supported on Dialogflow v2's telephony gateway, Google Assistant and Alexa integrations
*
* @param {RichResponse|string|RichResponse[]|string[]} responses (list) or single responses
*/
end(responses) {
this.client.end_(responses);
}