Microsoft health bot service integration to Facebook Messenger - facebook

I have created a health bot on the microsoft health bot service, i want to connect the health bot to facebook messenger. The Health bot service documentation does not provide a clear way to integrate to facebook messenger since there is no option to generate the call back URL and Verify Token for facebook as seen from this documentation Connect a bot to Facebook
Is there a way that i could integrate my health bot to Facebook Messenger?

At the moment, the Healthcare Bot Service encapsulates all of the app resources. Consequently, you are not able to access the Bot Registration and configure the bot's channels as you would normally. You are able to get the WebChat Secret in the Healthcare Bot Manager, which would allow you to embed the healthcare bot in a webpage. If this is something you're interested in pursuing, I'd recommend looking at the Healthcare Bot Sample on Github and this Stack Overflow Question.
Hope this helps!

Related

Watson Assistant Integrating with Facebook Messenger

I have integrated Watson assistant with Fb messenger. I am able to send messages to the chatbot because i am an admin of the FB Page but How to make the chatbot Public so that any user on FB can send messages to it.
You need to make the page Live
In order to allow others to access your assistant you need to submit it to Facebook for review. The process is pretty simple you just provide a few things the assistant can respond to and wait for someone to review.

IBM Watson Personality Service & Facebook Login

We have been using the Watson personality service to analyse facebook posts of users who interact with our app. We provide a facebook login, the person logs into facebook and we capture the text of their timeline, then send it to watson for analysis (with consent).
This process works fine but recently the facebook graph API has asked for a "app review". I went though the whole process but my submission failed for no obvious reason, also facebook's feeback is frankly useless.
My question is... has anyone else been through the facebook app review process and willing to give any tips on getting through the challenge.
Thanks,
Simon
Website Example: https://personality-insights-demo.ng.bluemix.net/
More Information: https://www.ibm.com/watson/services/personality-insights/
Example big 5: https://console.bluemix.net/docs/services/personality-insights/models.html#models
Facebook API: https://developers.facebook.com

FB chat bot Permission to make hybrid bot so human can reply from web panel

I have developed FB messenger bot using Microsoft bot framework. The bot is ready and approved by FB.
Now I am working on the hybrid part so human(web panel user) can take over chat and do conversation.
Now Issue is, I don't now which permissions need to read and show bot conversation in my web panel.
Also, it will be great if you can suggest that should I need to save conversation in DB to show in web panel or Is it possible that I can make a direct get request to FB API and show.
Thanks.
For FB Permission: pages_messaging
Development:
Show message: From our database.
Reply message: Using botframework

My api.ai bot is NOT communicating with other users on facebook

i made a demo bot (Free version) on Api.ai and integrated it with facebook but the problem is that it doesnt't respond to anyone else except me?
Maybe it is because of the fact that i created the facebook page from my account and generated page access token...
But How can i make my bot to communicate with other users too??
The bot on facebook will only respond to people you specifically add as admins or testers of your bot on developers.facebook.com.
If you want to make it available to anyone, you need to request facebook's approval for pages_messaging on developers.facebook.com and it will take a couple of days.

How to test FB messenger bot with multiple users

Has anybody yet a way to interact with an FB messenger bot without using real FB accounts? I want to do automated testing and obviously not use real accounts for that.
I was not able to figure out how to allow access to a page to 'test users' or create a test page and subscribe the test app to it.
Any ideas on how to do this?
I use a wee web app I made to act as a local version of the facebook messenger api server and run user actions.
https://github.com/Fraser-Greenlee/bot_tester
On it you can write a script to define new users and their actions.
From the Facebook developers dashboard, select your app and then Roles. From Roles you can add other Facebook users as test users. It was easiest for me to use the users facebook id. Adding by email did not always work for me.
I am not aware of how to access a Facebook bot without a Facebook account. I created several fake accounts and had my friends test the bot. After testing, I deleted the fake accounts.
For more information on setting up a bot see my article Facebook Bots for Fun and Profit
The example bot is DMS Software Bot
The source code is Github fb-robot
Testing fb bot with non-fb user is currently not supported. Following are the reasons:
fb messenger requires the user to be logged
fb creates page scope ids (PSID) for each user who is interacting with the bot and hence login on fb is required
Coming to your question on testing:
you can add fb users as tester to your page and your app. Explained here. For your app https://developers.facebook.com/apps/[app-id]/roles/
Once added they will be able to send message to your bot (page) from messenger
On another note, if you are using 3rd party apps to build your bot (eg: api.ai, wit.ai) they already have emulators within the app which makes testing easier.
One easy way to achieve automated testing for messenger bots atleast is to try to mimic a request coming from FB. You can just log the request you are getting to your bot to find the signature of the request that FB sends. Then you can just pretend to be FB by sending http requests with the same signature. You will also have to add in code to respond to these http requests with your reply instead of just sending the message to FB's send API.
So in node it would be something like
sendMessage(<your reply>);
res.send(<your reply>);
Now you have an automated way of sending and receiving messages which you can use for automated testing.
However I think the bigger challenge is coming up with enough test cases. You need to use a combination of clustering over available data and classification to generate new cases.
I have been working on a tool to make this easy. So if you are interested you can sign up for early access. http://ozz.ai