Create an Azure Bot for Instagram Messenger - facebook

I need to create an Azure Bot connected to Instagram Messenger for being able to connect to Microsoft Dynamics OmniChannel.
The Facebook Messenger is already a native channel in Azure Bot and the Instagram Messenger API seems more or less identical to its Facebook counterpart.
Therefore I was asking myself whether you could use the Facebook Messenger channel for connecting to Instagram Messenger as well?
If not, which would be the best way to connecting to Instagram Messenger?

The BotFramework service only supports specific channels. Anything outside of those channels requires a custom adapter to be constructed to facilitate communication between the bot and the unsupported service. This is typically done by building a custom adapter. There are examples in the botbuilder-community repos that you can use to help design yours. Both the dotnet and JS libraries contains several adapters that you can reference.

Related

I need help creating a Whatsapp chatbot

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

How to integrate Facebook with Watson conversation

I can already connect my conversation to my Facebook page and the bot is working.
My Problem is that i couldn't find a single tutorial on how to make calls to a server that is owned by a company and has information about accounts and payments, for example when i type to the Chat-bot that i want to see a list of accounts, the chat-bot would reply with a list from that API; Or i can login to that server with my account by typing the account's name and password in the chat-bot. I just wanted to know if anyone knows how to do that or if its even possible or knows a tutorial that explains it. I also would prefer if the tutorial was detailed because i'm new to this field.
As #Felipe Paixao said, you need to develop an orchestrating application.
I've found one example that explains step-by-step how to use Watson Conversation with Facebook Messenger.
Requirements:
Facebook page
IBM Bluemix
A Facebook Developer Account
Source code.
Step - IBM Bluemix:
Create a SDK for Node.js application
Create a Watson Conversation service
Create your Workspace for Watson Conversation and build your Dialog
Configure the JS app and integrate it with the Watson Service Connections -> Connect Existent:
In your App created in IBM Bluemix, access the Tools and go to IDE Eclipse, and create a new file: app.js with this code.
Replace with your credentials the username and password
You can see your credentials inside Service Credentials, or going to your workspace and access:
Step - Facebook Developers:
Enter to facebook developers with your Facebook account
In the Dashboard select Create a New App and Select Messenger
Put the URL from your Bluemix (Now IBM Cloud) app and select the options marked: messages, message_deliveries, messaging_options e messaging_postbacks.
Now, return to our app to configure the app.js file with our new FB token autogenerated and deploy it.
Step Final
Test your chatbot: If you made everything OK, we will have your chatbot available on your Facebook page.
Obs.: For built your example, you can add the lines of code for call your API in the app.js using the http module, using the Advanced JSON in Watson Conversation and create one "action": "callApi", and recognize with your code for do something, like this example.
See the Official Reference that I used to build Facebook Messenger with Node.js SDK (Back-end) source code based on Priscila Parodi codes.
You need to develop an orchestrating application, that would be responsible to connect the IBM Watson Conversation with your desired Fronted, Facebook in this case, and the Backend systems. I imagine that you are using the automatic deploy to Facebook from the Conversation Tooling, this option would not resolve your need to access a Backend.
The image passed by #data_henrik shows exactly that.
In conversation, you can create context variables that will be used as triggers in the Orchestrator to let him know when you need to call a Backend service to provide an information and then write the response into the Conversation context.
About using the Chatbot to login into a system, passing a password, this isn't a safe option since all information typed would go to Watson Conversation log and any person with access to the tooling/api could see the passwords.

Facebook Developer- Messenger- add multiple webhooks for a single facebook page

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.

Hooking any AI chatbot to Facebook chat

I haven't tried anything on this, but is it possible? If it is, is there a way of making a plugin for firefox or chrome? or making a software that enables you to hook ai chatbot to Facebook chat. I really want to use cleverbot or iGod.
You can connect to the facebook chat via the XMPP API, though I believe using it to connect a bot or anything that is not user-to-user chat is a violation of the rules.
There are many services such as Kommunicate and ManyChat, that provides a way to automate facebook conversations using AI Chatbot.
Signup at Kommunicate, visit Integrations section. Select Facebook, then select the Facebook page and connect. After that, go to Bot Integration section and connect it with the bot.
Here is a detailed instructions on th same: https://www.kommunicate.io/blog/facebook-chatbot/

How can I implement Facebook Chat on my site?

I'm developing a site with something similar to the Digg bar at the top. One of the features requested is a live chat using Facebook. Is it even possible to implement Facebook Chat on my site by using Facebook Connect or other methods? And if so, how?
[update] I've seen that it works with Pidgin and Adium, but what I'm looking for is a site based implementation (think AJAX & HTML living at the top of the page).
It appears that the Facebook team has at least begun, if not finished, implementing an xmpp/jabber interface for Facebook Chat. This would allow you to use any XMPP enabled client to connect to Facebook. That said, there's at least one javascript jabber client library available that I can find. Although, you may have to implement a proxy on your web server to allow the JS client to talk to the Facebook server.
Also, I'm not sure how they're doing it, but Meebo has managed to enable Facebook chat integration on their site with Facebook Connect. I haven't found anything mentioning it, but this functionality may be easily available through the Facebook Connect API (documentation).
To answer your question: Yes, it's possible.