Git Product home page Git Product logo

legocitybotamsterdam's Introduction

Salesforce Bot for Lego City

Follow the instructions below to create your own instance of the bot:

Step 1: Train Einstein Language and Bot

Look at the doc at einstein.ai. You need a model for image classification and a model for Language intent.

Step 2: Deploy the Messenger Bot on Heroku

  1. Make sure you are logged in to the Heroku Dashboard

  2. Click the button below to deploy the Messenger bot on Heroku:

    Deploy

  3. Fill in the config variables as described.

    • Leave FB_PAGE_TOKEN blank for now
    • For FB_VERIFY_TOKEN, enter a passphrase of your choice. You'll have to enter the same passphrase when you create the webhook in Facebook.
    • Fill Einstein vars with what you got from step 2
  4. Run the command

    heroku labs:enable runtime-dyno-metadata -a <app name>
    

Step 3 : Create a Facebook App

  1. Follow these instructions to create a Facebook app. You'll have to create a Facebook page, a Facebook application, and configure Messenger for your application.

    • When asked for a Callback URL, enter the URL of the Heroku app you just deployed followed by /webhook. For example:
      https://myapp.herokuapp.com/webhook
      
    • When the Page Access Token is generated, login to the Heroku Dashboard, and set the Heroku FB_PAGE_TOKEN config variable to the value of that token (Setting>Reveal Config Vars)
    • When asked for the Verify Token, enter the value you entered for the FB_VERIFY_TOKEN config variable when you deployed the Heroku app.
    • Make sure you select a page in the Select a page to subscribe your webhook... dropdown
  2. Visit the Facebook page you created in the previous step, and click the Message button. Type help in the chat bot. You can continue the conversation with the bot in the Messenger app on your phone or in the browser (http://messenger.com).

legocitybotamsterdam's People

Contributors

ccoenraets avatar ciaranshocks avatar daansan avatar mjacquet avatar remixonline avatar

Watchers

 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.