我可以与Messenger Messenger进行对话吗? (FB + BotFramework) [英] Can I start the conversation with messenger bot? (FB + BotFramework)

查看:99
本文介绍了我可以与Messenger Messenger进行对话吗? (FB + BotFramework)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当用户开始对话时,我的机器人运行正常.但是我想知道的是,是否可以与该用户开始对话,而不是与该用户对话.

My bot is running fine when the user starts the conversation. But what I want to know is if I can start the conversation with the user instead user with it.

基于Facebook文档,我认为一旦我获得了范围为usedId的页面,就可以直接使用FB进行此操作-例如通过使用页面上的向我们发送消息"插件

Based on the Facebook docs, I think I can do this with FB directly once I got the page scoped usedId -- e.g. through using the 'message us' plugin on our page

现在-我使用MS botframework,想知道如何使用该框架,或者我是否只需要规避"框架并对初始消息进行手动POST

Now though - I use the MS botframework and wonder how to do it using that framework or if I just have to 'circumvent' the framework and do a manual POST for the initial messsage

K48的评论是我的答案!

K48's comment is the answer for me!

推荐答案

我的回答就像对您的GitHub问题所做的那样:

I'm answer as I did with your GitHub issue:

在Facebook Messenger上,我使用了开始按钮",然后可以使用该按钮使用回发来启动对话框.在与他们进行对话之前,我还用它来收集用户信息;).

On Facebook messenger I resulted in using the 'Get Started Button' which you can then use to start a dialog using the postback. I also use this to gather the users information before starting a conversation with them ;).

请参阅GitHub上的 issue#1238 ,以查看我对另一个查询的回答,其中显示了你如何.

Please see issue #1238 on GitHub to see my answer to another query which shows you how.

这篇关于我可以与Messenger Messenger进行对话吗? (FB + BotFramework)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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