Code Monkey home page Code Monkey logo

faqbot's Introduction

Safaricom FAQ

Node JS chatbot to interface with safaricom website frequently asked questions

Setup

Microsoft

  • Create a microsoft account that can be used to login to azure, and can access microsoft services - https://www.microsoft.com/en-us/.

  • Use that account to create a bot on https://dev.botframework.com/bots/provision.

  • Choose the first option, webchat bot, and fill in the required details

  • In the bot template tab, choose node and basic template

  • After deployment, go to application settings and take note and record of the following:

    • Microsoft App Id

    • Microsoft App Password

  • Create an account on https://qnamaker.ai/.

    • Create a new service
    • Add a website endpoint for a FAQ page
    • Click on save and train
    • Click on publish
    • Note the following. In POST, in between knowledgebases and generate answer is the
      • QNA_SERVICE_ID
    • The Ocp-Apim-Subscription-Key is the
      • QNA_SUBSCRIPTION_ID
    • In the repo this will be entered in the .env

Tools

Code

  • Clone the repo
$ git clone https://github.com/JamesNyamu/safaricomfaq.git
  • Add microsoft credentials and qna maker credentials on the .env file

Application

  • Navigate to the root of the repo
  • Run
$ yarn

to install the package dependencies

  • run
$ yarn start:dev
  • Makes sure the app is running on the correct port default is
    http://localhost:{port}
    
  • Open bot emulator, enter the address on which the app is running
    http://localhost:{port}/api/messages
    
  • Click on connect
  • You can now interact with the bot

faqbot's People

Contributors

jamesnyamu avatar

Watchers

 avatar

Forkers

denniskamau

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.