facebook-messenger-bot

Botkit With Express

孤街醉人 提交于 2021-02-19 04:08:30
问题 The documentation at Botkit (https://github.com/howdyai/botkit/blob/master/readme-facebook.md) is pretty not meaningful at all: // if you are already using Express, you can use your own server instance... // see "Use BotKit with an Express web server" controller.setupWebserver(process.env.port,function(err,webserver) { controller.createWebhookEndpoints(controller.webserver, bot, function() { console.log('This bot is online!!!'); }); }); Moreover, without a custom webserver (like express),

Botkit With Express

微笑、不失礼 提交于 2021-02-19 04:07:49
问题 The documentation at Botkit (https://github.com/howdyai/botkit/blob/master/readme-facebook.md) is pretty not meaningful at all: // if you are already using Express, you can use your own server instance... // see "Use BotKit with an Express web server" controller.setupWebserver(process.env.port,function(err,webserver) { controller.createWebhookEndpoints(controller.webserver, bot, function() { console.log('This bot is online!!!'); }); }); Moreover, without a custom webserver (like express),

Why I do not receive the attachments in the Facebook Messenger webhook request?

主宰稳场 提交于 2020-12-07 04:35:21
问题 Since yesterday (29/10/2020) i'm having this problem only on one of the pages linked to my app, the others work correctly: The attached messages that the webhook receives from Facebook do not contain the attachment field. Only messages with stickers contain the "attachment" field. All others (image, video, audio etc.) No. What I expect (as facebook documentation) is: { "id": "682498302938465", "time": 1518479195594, "messaging": [ { "sender": { "id": "<PSID>" }, "recipient": { "id": "<PAGE_ID

Dialogflow V2 Messenger Integration with Multiple Messages

无人久伴 提交于 2020-08-10 19:15:10
问题 I am trying to send to multiple messages within one Webhook call to Dialogflow, which shall be passed to Messenger. Right now my Webhook responds with a malfunctioning JSON body: { 'fulfillmentText': "Text", 'fulfillmentMessages': [{ "platform": "facebook", "text": [{ "text": "Text" }] }], 'source': "facebook" } When I test the Webhook via Messenger I see the is typing symbol, but never receive the Text message. While testing the same Webhook from the Dialogflow Console I get Webhook

Dialogflow V2 Messenger Integration with Multiple Messages

杀马特。学长 韩版系。学妹 提交于 2020-08-08 03:34:52
问题 I am trying to send to multiple messages within one Webhook call to Dialogflow, which shall be passed to Messenger. Right now my Webhook responds with a malfunctioning JSON body: { 'fulfillmentText': "Text", 'fulfillmentMessages': [{ "platform": "facebook", "text": [{ "text": "Text" }] }], 'source': "facebook" } When I test the Webhook via Messenger I see the is typing symbol, but never receive the Text message. While testing the same Webhook from the Dialogflow Console I get Webhook

How to create a Facebook Carousel in Dialogflow as “Custom Payload”

放肆的年华 提交于 2020-08-05 18:42:07
问题 I would like to create a Mockup Facebook Bot with Dialogflow without using a webhook. It's possible to define channel specific answers in Dialogflow. There you can chooses between pre defined response types or a custom payload. The custom payload for a simple button works, but when I try to create a caroussel nothing happens. https://developers.facebook.com/docs/messenger-platform/send-messages/template/generic#carousel Where can I find out what is supported by Dialogflow and what isn't? How

Does the Bot Framework support Facebook Messenger's Button Template?

别来无恙 提交于 2020-07-22 06:12:11
问题 Facebook messenger's APIs support a message type called the "Button Template". This card type allows sending a message with text, then a list of buttons with different actions, as in the image below (from Facebook's documentation): This template similar to the Generic template, which is what is produced by the Bot Framework's Hero cards, but is distinct in that it does not require a "Header" on the card, which is required by the Generic template. I'm trying to figure out how to render this

Accessing Facebook Messenger sender.id in DialogFlow

感情迁移 提交于 2020-06-29 08:37:53
问题 The bounty expires in 5 days . Answers to this question are eligible for a +50 reputation bounty. Revolucion for Monica wants to draw more attention to this question: 50 points to whoever find a way to get sender id through DialogFlow chatbot I'd like to access the Facebook User Profile API to learn the user's name so I can save its preferences in individual documents. Yet there where an update and now, to get the Facebook sender.id value, I have to use the originalDetectIntentRequest.payload