Facebook Messenger Bot - 如何禁用漫游器并让人聊天 [英] Facebook Messenger Bot - How to disable bot and allow human to chat

查看:148
本文介绍了Facebook Messenger Bot - 如何禁用漫游器并让人聊天的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以这是我一直在想的大概16个小时。我使用PHP / CuRl / etc进行编码 - 机器人工程,一切都很好。我目前的问题是找出如何禁用漫游器,并允许人们开始与客户/发信人聊天。

so this is something I've been trying to think through for about 16 hours. I am coding with PHP / CuRl / etc - the bot works and everything is fine. My current issue is figuring out how to disable the bot and allow a human to begin chatting with the customer/sender.

有没有人成功创建了一个路由?我的意思是从我看到的很难,你必须禁用等等。为我的客户付出很多努力。

Has anyone successfully, created a route for this ? I mean it's pretty hard from what I see, you'd have to disable etc etc. A lot of effort for my clients.

感谢任何输入。 >

Thanks for any input.

推荐答案

一旦你认识到有人想和人说话,设置一个禁用你的机器人的所有动作的标志。

Once you recognize someone wants to speak to a human, set a flag that disables all actions of your bot to on.

然后,您的僵尸电子邮件您或任何人将回应用户ID需要响应。让您的机器人继续将收到的所有信息发回给您,直到您再次启用机器人。

Then, have your bot message you, or whoever will respond, that a user ID needs responding to. Have your bot continue to send all messages received from them back to you until you enable the bot again.

为您的机器人创建某种方式与您进行交互,您要向特定用户发送消息,以及再次启用漫游器与用户交互的方式。

Create some sort of way for your bot to interact with you that allows you to send a message to a specific user, and a way to once again enable the bot interaction with the user.

可能是像sendMessage104012301230一样,对不起,你找不到[etc],并启用User104012301230

Probably something like "sendMessage104012301230'Hi, sorry you couldn't find [etc]', and enableUser104012301230

可能会有一个更好的方法,但是有些想法是如何做的。

There may be a better way, but those are some thoughts on how I'd do it

这篇关于Facebook Messenger Bot - 如何禁用漫游器并让人聊天的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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