I'm trying to build a bot using api.ai and connecting it with Facebook & slack integrations. My requirement is to send rich messages like HTML table, Graph snapshots like statsbot in response of the webhook in api.ai
Please anyone show me a demo of how to achieve the same.
Also, I have to make sure that there is minimal changes for the UI for slack & facebook messenger. Does API.ai handle the same automatically
Related
Is there at this moment a reliable way to build a chatbot for Whatsapp? There are some Whatsapp frameworks like this one but looking at the comments it looks like most of Whatsapp numbers got banned when using these. Also, Twilio for example has an API for Whatsapp but it is only for testing.
Thanks in advance!
Currently the WhatsApp API is still in beta and you need to wait for the API to be officially open to everyone. Still you can make a request to get access to their API in advance https://www.facebook.com/business/m/whatsapp/business-api
Twilio now directly supports WhatsApp integration; simply fill out Twilio's Request Access form with accurate and up-to-date information, including the Facebook Business Manager ID, and securely send WhatsApp messages using Twilio APIs.
And, in general, there are numerous approaches to developing a WhatsApp chatbot. However, there are some fundamental considerations to bear in mind when creating a WhatsApp chatbot.
Whatsapp business API
Chatbot builder platform
To build a chatbot I suggest Kommunicate for creating a simple and seamless chatbot. Kommunicate includes a bot builder tool called Kompose, which allows you to create bots without writing a single line of code. You can build AI-powered chatbots, deploy them on your website and apps, and even incorporate automated human takeovers if they fail. For detailed instructions on how to build a chatbot, please see this article. Kommunicate also lets you integrate with other third-party bot builder platforms such as Dialogflow, Amazon lex, IBM Watson, and custom bots.
Once the Twilio account has been configured with the WhatsApp Business API, connect it to the Kommunicate account to deploy the chatbot and manage customer conversations. Refer to this link for detailed instructions
PS: I work for Kommunicate
I got a sample echo bot hosted on Azure Web App Bot, and link up with facebook messenger.
Every configuration setup correctly, when I type message in FB Messenger, some of my text were actually not receiving in /api/messages endpoint.
I used ngrok on Azure bot web app to replace it api endpoint with my local url and found out that some messages did actually fail to delivered to the endpoint.
I had setup my web app to be always on mode, and server location put in Central US. But it still has this performance issue.
Because our bot starting migrate to V4, and found out that the suggested action card always not responding after user click in Messenger (sometime it's works), it's normally reply with local bot emulator.
Any ways can improve this or minimize user lost their action in conversation due to the dropping message?
OK finally found out that delay/random reply caused was single FB page subscribed to multiple FB app.
Just try to make sure you only have a single page subscribe to a single FB app , else it will randomly send the webhook message to one of your subscribed app and cause the performance issue.
I am trying to implement IBM Watson chatbot into facebook messenger. I am able to verify my webhook. Also, able to receive and send custom messages through facebook to my webhook.
The problem is that i can't receive messages from IBM Watson. IBM Watson is not able to detect my messages and provide appropriate response. Also, can't receive my welcome message from IBM Watson in facebook messenger when chat window is opened. The tutorial which I followed was on youtube and the link is https://www.youtube.com/watch?v=FdsjS7ZnPLw
Any suggestion would be a great help. Thanks.
The most common cause is not subscribing your webhook to a page after creating it.
The UI doesn't appear until you create your webhook in FB (It's been a year since I have had to do it, so it may have changed).
If that is set up, try connecting to your application layer in postman and make sure you are sending and receiving the right information.
Regarding Welcome message:
The Welcome node of your dialog is not processed by the Facebook Messenger integration. The welcome message is not displayed in the Facebook chat like it is in the "Try it out" pane or in the Preview Link integration web page. It is not triggered from here because nodes with the welcome special condition are skipped in dialog flows that are started by users. Facebook Messenger waits for the user to initiate the conversation. If you need to set default values for context variables at the start of your conversation, do not set them in the welcome node.
for more information check: Integrating IBM Watson Assistant with Facebook Messenger
I am trying to build a chatbot using Facebook developer platform. I want my bot to respond differently under different scenarios. So, basically I have my standard bot implementation on Heroku server. I want to bring in api.ai into my bot so as to leverage the kind of functionalities api.ai offers.
To bring in api.ai, I need to configure webhook in my Facebook app. As my Facebook app is already subscribed to Heroku, I don't see an option to add another webhook. Is there a way to subscribe my app on Facebook to multiple webhooks?
If not, is there any way to integrate api.ai using api calls from my heroku server?
Thanks in advance!
It's likely you'd probably just forward them along to the next endpoint. Have your server be the frontend, and forward requests from your server to the next webhook if needed.
I want to make my bot available for download for testing purpose without
going through the actual review process of Facebook? This is just for testing purpose as I want to test how exactly end user will
download my bot from FB messenger platform and then will start using my bot. Is there a way/platform to try this? Can I do that?
(currently i am testing am sending message to my bot using FB page's messenger link as indicated in almost all the blogs/sites including FB's official
site.)
Can you please provide any pointers/links on this?
I see two options for you:
You want users to test your bot on Messenger:
Simply add them as testers in your bot corresponding Facebook page then ask them to look for your bot in their Messenger app.
Or you want to test your bot behaviors:
Enter botgen the chatbot generator I'm currently working on, which could help you test more publicly the bot you're working on. (assuming your bot doesn't need coding and is all about pattern conversation).
Just use the designer interface to design, run and test your chatbot.
Publish it and share it with your actual test users.