Hello, i finished a demo bot using Watson conversation, but now i can't integrate it with facebook messenger,telegram or anything else in a direct way, i tried stamplay and i don't want that, i want to host my own stamplay-like middleware or something to serve my own bots, i want to host that on my bluemix cloud services and im just lost , so my question is how can i directly integrate ibm cloud foundry app that uses watson services (conversation and others) or even the watson conversation service itself to different chat platforms, thanks.
Answer by MitchMason (5376) | May 23, 2017 at 11:38 AM
There are a lot of nuances in deploying a facebook bot that botkit takes care of for you. I totally agree there is a ton of complexity in the main repo, but if you know where to look, and are just deploying a bot that doesn't require much additional integration, its actually quite simple. Here are the steps for a very simple deploy using botkit.
1. clone the repo
2. navigate to /examples/multi-bot
3. navigate here: https://developers.facebook.com/ and create your facebook app and get the keys for step 4
4. edit the .env file. make sure to comment in facebook, and comment out slack
5. deploy the multi bot example
on command line:
cd /exmples/multi-bot.
cf login http://bluemix.net
cf push
and that should be it. if you have trouble with this let me know.
Answer by @chughts (12979) | May 23, 2017 at 03:09 AM
If your cloud foundry app is based on the Node.js runtime then you could use the bot kit-middleware - https://github.com/watson-developer-cloud/botkit-middleware
Hello, yes it is based on the node.js runtime and i came across that link and couldn't understand anything in it, i am not really sure what i am missing in this whole issue , i feel like i never wrote a single line of code or developed something in my whole life.. i am wondering why can't i just use my cloud foundry app as the middleware since i am consuming the watson conversation service in it ,and if not why can't i just integrate messenger or telegram directly with Watson services, is there any tutorial for that? sorry but this whole cloud-based development is so new to me and there are just millions of tuts that actually made me get lost..
To do that you need to take a look at the Facebook developer site for messenger - https://developers.facebook.com/docs/messenger-platform/getting-started
Its worthwhile to get a feel for the underlying mechanics, but you will only be connecting to messenger, it will be quite basic, and you will be recreating code that the botkit already has.
It will give you an appreciation of the botkit.
Answer by MohammedMokhtar (3) | May 28, 2017 at 02:29 AM
thank you all for all the replies, i actually used a node-RED app on bluemix to make a telegram bot based on conversation service of watson, i think it will also work for facebook . the linked that guided me was this one if anyone interested : https://developer.ibm.com/recipes/tutorials/how-to-create-a-watson-chatbot-on-nodered/