将Facebook Messenger bot Webview数据传递给Dialogflow并继续对话 [英] Passing Facebook Messenger bot webview data to Dialogflow and continuing the conversation

查看:91
本文介绍了将Facebook Messenger bot Webview数据传递给Dialogflow并继续对话的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Dialogflow和Facebook Messenger构建一个界面,该界面打开Facebook Messenger Webview以允许用户输入数据。用户在网络视图中输入数据后,我要:

I am using Dialogflow and Facebook messenger to build a interface that opens a Facebook Messenger webview to allow the user to input data. Once the user inputs the data in the webview I want to:


  1. 将此数据发送到Dialogflow和

  2. 继续与用户对话,并询问他们后续问题

我该怎么做?

推荐答案

实际上,您可以这样做,当您从Webview提交表单时,
会获得带有PSID的正文数据。
并根据用户从Webview的输入发送响应。用户完成表单提交后,请确保将这些数据存储在某个地方,并且当用户提出与之相关的问题时,您可以获取数据并给出适当的响应。

Actually, you can do, when you submit the form from the Webview you will get data in body with PSID. and send the response based on user's Input from Webview. Once users are done with form submission make sure you store those data somewhere and when a user asks something relevant to it you can fetch data and give an appropriate response.

这篇关于将Facebook Messenger bot Webview数据传递给Dialogflow并继续对话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆