GithubHelp home page GithubHelp logo

d8815460 / conversationmaster Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cyrillebenoit/conversationmaster

0.0 2.0 0.0 4.56 MB

Botmaster integration for IBM Watson Conversation.

License: MIT License

JavaScript 79.32% CSS 17.35% HTML 3.33%

conversationmaster's Introduction

conversationMaster

ConversationMaster is a Botmaster integration for IBM Watson Conversation in parallel to conversation-simple interface.

Deploy your own chatbot in a few clicks !

I - Deploy to Bluemix

The first thing you have to do is to deploy the sample app to Blumix. Deploy to Bluemix

In this example, we'll call this app 'sample' and its link will be sample.mybluemix.net.

II - Create a new Facebook Page

  1. Go to https://www.facebook.com/pages/create/

  2. Create an app of your choice.

III - Create a new Facebook application

  1. Go to https://developers.facebook.com

  2. Log in and create a new app.

  3. Choose App for Messenger and Create an app ID.

  4. Select your new Page in Token Generation field.

access token

  1. Copy the Page Access Token.

  2. Go to Dashboard and Copy your Secret key.

Facebook secret

IV - Create a new Telegram bot

  1. Into Telegram, start a new conversation with @BotFather

  2. Say '/newbot' then give your bot a name and an username.

  3. Copy the HTTP token that is given to you by BotFather.

  4. Create an arbitrary webhookEndpoint for Telegram (ie. /webhook1234), and copy it for later.

V - Create (or import) your Watson Conversation dialog

  1. Open the Watson Conversation tool, and create (or import) a new workspace.

  2. Click on the three dots and choose View details.

View details image

  1. Copy the Workspace ID.

VI - Set your environmental variables in Bluemix

In order to work, your Bluemix app will need some environment variables.

  1. Go to https://bluemix.net and get to the Runtime part of the app freshly created. Click on Environment variables.

Bluemix app image

Environment variables image

  1. Use the Page Access Token previously copied as MESSENGER_PAGE_TOKEN.

  2. Use the Secret Key as MESSENGER_APP_SECRET.

  3. Set an arbitrary MESSENGER_VERIFY_TOKEN and keep it for later.

  4. Create a webhook endpoint for Facebook Messenger as you did for Telegram with what you saved earlier and set it as MESSENGER_WEBHOOKENDPOINT.

  5. Set your TELEGRAM_AUTH_TOKEN and TELEGRAM_WEBHOOKENDPOINT with what you saved earlier.

  6. Set your WORKSPACE_ID with what you copied earlier.

VII - Configure the Facebook webhooks

  1. Click on Configure webhooks

  2. Use https://sample.mybluemix.net/messenger/MESSENGER_WEBHOOKENDPOINT (watch out, we're here using our sample link, DO NOT copy paste this link)

  3. Select messages, messages_deliveries, messaging_postbacks, and messaging_optins as subscribing fields.

VIII - Configure the Telegram webhook

  1. Open the page https://api.telegram.org/botHTTP_TOKEN/setWebhook?url=https://sample.mybluemix.net/telegram/TELEGRAM_WEBHOOKENDPOINT

Great ! Your Watson Conversation is now correctly set and can be used on the web, Telegram, and Facebook Messenger.

conversationmaster's People

Contributors

cyrillebenoit avatar d8815460 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.