facebook-chatbot

uploading mp4 video using curl to facebook

╄→гoц情女王★ 提交于 2019-12-25 00:23:26
问题 I have a simple bot in my facebook website, I want to upload mp4 video so that I can use it to my bot according to this doc upload via url here is what I have done so far. curl -X POST -H "Content-Type: application/json" -d '{ { "message":{ "attachment":{ "type":"video", "payload":{ "is_reusable": true, "url":"https://cdn-b-east.streamable.com/video/mp4/ll7ht.mp4?token=3Oue4umXi5OZYxVcpgh61w&expires=1546136854" } } } } }' "https://graph.facebook.com/v2.6/me/messenger_profile?access_token=MY

Cant set greeting message or 'Get Started' button for facebook chatbot after once set

此生再无相见时 提交于 2019-12-24 11:45:06
问题 I am trying to edit the Greeting message for my FB Chatbot, the commands are resulting success but the welcome message does not change. Also, the Get Started button: i could set it successfully for the first time but after once deleting, button is not appearing even though the command results success everytime. code to set greeting message: curl -X POST -H "Content-Type: application/json" -d '{ "setting_type":"greeting", "greeting":{ "text":"Timeless apparel for the masses." } }' "https:/

How do I use wit.ai with existing rows of data?

只愿长相守 提交于 2019-12-23 03:32:08
问题 I have a lot of existing data that I would like to use as training data for a wit.ai chatbot. The data is stored in a csv file where each row has a statement/question and a response to that statement/question. I know that wit.ai requires you to assign intents to comments made and so I'm wondering if there is a way to simply send over the data I have and have the chatbot start learning intents on its own. Thanks! 回答1: "Teaching" Wit.Ai is not exactly what some might think it is. You will have

Can a Facebook Messenger Bot chat with two or more people in a group?

与世无争的帅哥 提交于 2019-12-22 06:47:04
问题 Do all messenger bots interact directly with just one user at a time? Can a bot join a group of two or more people and talk to them? 回答1: Currently Facebook Messenger bots only work on a one to one basis. One of the reasons is probably privacy. Facebook are being very cautious before rolling out bots in a group context. 回答2: Currently facebook does not allow to add bots in groups, however you can add bots in groups in Telegram. 来源: https://stackoverflow.com/questions/40205889/can-a-facebook

Facebook Chat bot (PHP webhook) sending multiple replies

本秂侑毒 提交于 2019-12-19 04:40:25
问题 My Facebook chat bot is working but it's sending back multiple messages after my initial message to it. This is my webhook script (i appreciate it's a very rough working example): $challenge = $_REQUEST['hub_challenge']; $verify_token = $_REQUEST['hub_verify_token']; if ($verify_token === 'MY_VERIFICATION_TOKEN') { echo $challenge; } $input = json_decode(file_get_contents('php://input'), true); $sender = $input['entry'][0]['messaging'][0]['sender']['id']; $message = $input['entry'][0][

Creating carousel card in AWS Lex

蹲街弑〆低调 提交于 2019-12-17 16:52:38
问题 I am trying to build a ecommerce chatbot using lex. Is there any solution to use a carousel card or multi response cards in Lex? For example: Thanks.. 回答1: You can display multiple response cards in the response and it will display like carousel. Follow this example to generate response card through console (you can also do it dynamically in code). Console method: In the below image, in Prompt response cards section, see in the rightmost part, there is little + button, click on that and you

What is the best practice to secure your facebook chatbot webhook?

前提是你 提交于 2019-12-13 02:07:35
问题 I am playing around with developing a chatbot on facebook messenger platform. I went through the Facebook document and couldn't find how to protect my webhook from random calls. For example, if users can buy stuffs with my bots, an attacker that knows someone's userId can start placing unauthorized orders by making calls to my webhook. I have several ideas on how to protect this. 1) Whitelist my api to only calls from facebook. 2) Create something like CSRF tokens with the postback calls. Any

Sending multiple reply messages on single postback in Facebook Messenger Bots

时光毁灭记忆、已成空白 提交于 2019-12-12 10:08:00
问题 I want to send multiple replies for a single user-triggered postback on Messenger. I've been following Messenger's developer documentation and couldn't really find how to do this. My code structure is very similar to the tutorials they've given on the site, I have a ' handlePostback ' function which identifies the received postback and compares it to a set of predefined payloads to find the ' response ' JSON object. This response is given to ' callSendAPI ' which puts this JSON object into

Messenger Bot in PHP: No Response Back

一个人想着一个人 提交于 2019-12-12 09:05:21
问题 I am trying to build a test messenger bot in PHP. My web hook gets setup up perfectly and even the page subscription is done correctly. However, my bot does not respond to any text in messenger. I have tried to change app IDs, page IDs, just to make sure if there are issues with any of that. I have also tried various methods including basic curl as outlined here: Facebook Chat bot (PHP webhook) sending multiple replies and tried 2 different php libraries: https://github.com/Fritak/messenger

Maintaining session in Gupshup bot calls to Api.ai

偶尔善良 提交于 2019-12-11 05:19:41
问题 I am building a bot in Gupshup with Api.ai integration. I have an agent in Api.ai with several intents and each of them linked through contexts(input & output contexts). When I use the following code to call Api.ai, the first intent is called and I get the reply. However when the second message is given, the bot takes it as a completely new message, without identifying its relation with first. How can I solve this issue? Kindly help function MessageHandler(context, event) { // var nlpToken =