简体   繁体   English

如何在基于Azure的Dialogflow中创建自定义webhook?

[英]How to create a custom webhook in Dialogflow based on Azure?

So I would like to implement Dialogflow fulfilliment using a custom node.js webhook. 因此,我想使用自定义的node.js webhook实现Dialogflow实现。 I've created a node.js app in Azure (I have my own .azurewebsites.net site), however I'm not quite sure how to link it to Dialogflow. 我已经在Azure中创建了一个node.js应用程序(我有自己的.azurewebsites.net网站),但是我不确定如何将其链接到Dialogflow。 How do I do this? 我该怎么做呢? Thank you. 谢谢。

On the dialog flow side Go to dashboard and click on fulfillment on side bar provide the web hook and basic authentication and headers. 在对话框流侧,转到仪表板,然后单击侧栏上的实现,以提供Web钩子,基本身份验证和标头。 On nodeJs make sure you provide POST Webhook API where dialogflow app sends requests. 在nodeJs上,请确保您提供POST Webhook API,dialogflow应用程序将在其中发送请求。

Are you familiar with Express or any other framework to create REST APIs with Node? 您是否熟悉Express或任何其他使用Node创建REST API的框架?

There are tons of material on the web, but this is a starting point if you like. 网络上有很多资料,但是如果您愿意,这是一个起点

In this link you'll find the documentation that shows which fields will be posted to your endpoint and those that you'll want to send back to Dialogflow. 此链接中,您将找到说明哪些字段将被发布到您的端点以及哪些字段将被发送回Dialogflow的文档。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM