[英]Create entities using webhook in dialogflow without using dialogflow UI
Is it possible to create entities using webhook instead of dialogflow UI是否可以使用 webhook 而不是 dialogflow UI 创建实体
I have an intent which shows the menu list [pizza, burger, combo]
and when someone select an option [suppose pizza]
then it will show list of pizza [pepperoni, country special, farmhouse]
我有一个显示菜单列表[pizza, burger, combo]
的意图,当有人 select 一个选项[suppose pizza]
时,它将显示比萨饼列表[pepperoni, country special, farmhouse]
currently I have created below entities using dialogflow UI目前我已经使用对话流 UI 创建了以下实体
@menu [pizza, burger, combo]
@pizza [pepperoni, country special, farmhouse]
@burger [veg, ham, cheese]
@combo
But I want to manage all this entities from my backend, without creating it in the dialogflow但我想从我的后端管理所有这些实体,而不是在对话流中创建它
If someone changes the pizzaTypes in the backend then it should auto populate in the dialogflow如果有人在后端更改了 PizzaTypes,那么它应该在对话框流中自动填充
Is it possible to do that?有可能这样做吗? and if possible then how to do that?如果可能的话,那该怎么做?
You can use the Dialogflow API for this.您可以为此使用 Dialogflow API。 https://cloud.google.com/dialogflow/docs/reference/rest/v2-overview https://cloud.google.com/dialogflow/docs/reference/rest/v2-overview
They have some client libraries as well.他们也有一些客户端库。 Keep in mind that it can get quite complex to do this programmatically but it is possible nonetheless.请记住,以编程方式执行此操作可能会变得非常复杂,但仍然是可能的。 Good luck!祝你好运!
Follow the documentation...create entity type by HTTP request按照文档...通过 HTTP 请求创建实体类型
https://cloud.google.com/dialogflow/es/docs/reference/rest/v2/projects.agent.entityTypes/create https://cloud.google.com/dialogflow/es/docs/reference/rest/v2/projects.agent.entityTypes/create
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.