Digital Developer Conference: a FREE half-day online conference focused on AI & Cloud – North America: Nov 2 – India: Nov 9 – Europe: Nov 14 – Asia Nov 23 Register now

Close outline
  • United States
IBM?
  • Site map
IBM?
  • Marketplace

  • Close
    Search
  • Sign in
    • Sign in
    • Register
  • IBM Navigation
IBM Developer Answers
  • Spaces
    • Blockchain
    • IBM Cloud platform
    • Internet of Things
    • Predictive Analytics
    • Watson
    • See all spaces
  • Tags
  • Users
  • Badges
  • FAQ
  • Help
Close

Name

Community

  • Learn
  • Develop
  • Connect

Discover IBM

  • ConnectMarketplace
  • Products
  • Services
  • Industries
  • Careers
  • Partners
  • Support
10.190.13.195

Refine your search by using the following advanced search options.

Criteria Usage
Questions with keyword1 or keyword2 keyword1 keyword2
Questions with a mandatory word, e.g. keyword2 keyword1 +keyword2
Questions excluding a word, e.g. keyword2 keyword1 -keyword2
Questions with keyword(s) and a specific tag keyword1 [tag1]
Questions with keyword(s) and either of two or more specific tags keyword1 [tag1] [tag2]
To search for all posts by a user or all posts with a specific tag, start typing and choose from the suggestion list. Do not use a plus or minus sign with a tag, e.g., +[tag1].
  • Ask a question

watson bot integration

50TP0502KE gravatar image
Question by MohammedMokhtar  (3) | May 23, 2017 at 02:39 AM watsonwatson-assistantibmcloudwatson-sdk

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.

People who like this

  0
Comment
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster

3 answers

  • Sort: 
270007GD68 gravatar image
Accepted answer

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.

Comment
MohammedMokhtar

People who like this

  1   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
110000PNBC gravatar image

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

Comment
MohammedMokhtar

People who like this

  1   Show 2   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
50TP0502KE gravatar image MohammedMokhtar (3)   May 23, 2017 at 10:58 AM 0
Share

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..

110000PNBC gravatar image @chughts (12979) ♦   May 23, 2017 at 05:07 PM 1
Share

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.

50TP0502KE gravatar image

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/

Comment

People who like this

  0   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster

Follow this question

119 people are following this question.

Answers

Answers & comments

Related questions

Can't access intents, IBM Bluemix Conversation 3 Answers

Watson Conversation - invalid memory address error 1 Answer

Argument passed in must be a single String of 12 bytes 1 Answer

Watson Speech to Text Javascript, websoket closes automatically after send() 3 Answers

NLC: strange question mark in the training data 2 Answers

  • Contact
  • Privacy
  • IBM Developer Terms of use
  • Accessibility
  • Report Abuse
  • Cookie Preferences

Powered by AnswerHub

Authentication check. Please ignore.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • API Connect
  • Analytic Hybrid Cloud Core
  • Application Performance Management
  • Appsecdev
  • BPM
  • Blockchain
  • Business Transaction Intelligence
  • CAPI
  • CAPI SNAP
  • CICS
  • Cloud Analytics
  • Cloud Automation
  • Cloud Object Storage
  • Cloud marketplace
  • Collaboration
  • Content Services (ECM)
  • Continuous Testing
  • Courses
  • Customer Experience Analytics
  • DB2 LUW
  • Data and AI
  • DataPower
  • Decision Optimization
  • DevOps Build
  • DevOps Services
  • Developers IBM MX
  • Digital Commerce
  • Digital Experience
  • Finance
  • Global Entrepreneur Program
  • Hadoop
  • Hybrid Cloud Core
  • Hyper Protect
  • IBM Cloud platform
  • IBM Design
  • IBM Forms Experience Builder
  • IBM Maximo Developer
  • IBM StoredIQ
  • IBM StoredIQ-Cartridges
  • IIDR
  • ITOA
  • InformationServer
  • Integration Bus
  • Internet of Things
  • Kenexa
  • Linux on Power
  • LinuxONE
  • MDM
  • Mainframe
  • Messaging
  • Node.js
  • ODM
  • Open
  • PartnerWorld Developer Support
  • PowerAI
  • PowerVC
  • Predictive Analytics
  • Product Insights
  • PureData for Analytics
  • Push
  • QRadar App Development
  • Run Book Automation
  • Search Insights
  • Security Core
  • Storage
  • Storage Core
  • Streamsdev
  • Supply Chain Business Network
  • Supply Chain Insights
  • Swift
  • UBX Capture
  • Universal Behavior Exchange
  • UrbanCode
  • WASdev
  • WSRR
  • Watson
  • Watson Campaign Automation
  • Watson Content Hub
  • Watson Marketing Insights
  • dW Answers Help
  • dW Premium
  • developerWorks Sandbox
  • developerWorks Team
  • Watson Health
  • More
  • Tags
  • Questions
  • Users
  • Badges