1
0
Fork
You've already forked ok-chatbot
0
Chatbot for a swiss retailer that delivers deals to customer.
  • JavaScript 100%
Find a file
2025年04月08日 18:05:27 +02:00
app fix api.ai change 2016年11月21日 09:53:32 +01:00
readme remove border from images 2016年11月17日 11:33:56 +01:00
.babelrc init 2016年11月16日 20:33:54 +01:00
.gitignore init 2016年11月16日 20:33:54 +01:00
api.ai ok-chatbot.zip init 2016年11月16日 20:33:54 +01:00
config.js init 2016年11月16日 20:33:54 +01:00
default.json init 2016年11月16日 20:33:54 +01:00
index.js init 2016年11月16日 20:33:54 +01:00
LICENSE feat: add license 2025年04月08日 18:05:27 +02:00
package.json fix api.ai change 2016年11月21日 09:53:32 +01:00
readme.md update readme 2016年11月18日 10:42:07 +01:00

ok Chatbot

Chatbot for a swiss retailer that delivers deals to customer.
Backend service for this chatbot: Apometact
Introduction blog post: Introducing the first retail chatbot in Switzerland
Lessons learned blog post: Nine key learnings after building the first Swiss retail chatbot

Features

  • Understands natural language
  • Displays rich elements such as cards, quick replies and images
  • Implements best practice guidelines
  • Translatable into different languages
  • Store and retrieve content and user data from a database
  • Contact dialog for human interaction

Installation development

  • Copy default.json to development.json.
  • Run npm install in your cli.
  • Setup required services
    • mLab database
    • Facebook app
      • Set Messenger webhook to https://[subdomain].localtunnel.me/facebook/receive.
    • Facebook page
      • Connect app with page
    • Dashbot.io (optional)
    • Sendgrid (optional)
    • api.ai
      • Import api.ai ok-chatbot.zip
  • Update development.json.
  • Run npm run tunnel in a second cli.
  • Update tunnel script command in package.json and run npm run dev in your cli.
  • Go to https://www.messenger.com and start messaging with the bot.

Installation production

  • Copy default.json to production.json.
  • Run npm install in your cli.
  • Setup required services
    • Heroku
    • Facebook App
      • Set Messenger webhook to https://[appname].herokuapp.com/facebook/receive.
      • Request messenger permissions.
    • Facebook Page
      • Connect app with page
    • Dashbot.io (optional)
    • Sendgrid (optional)
    • api.ai
      • Import api.ai ok-chatbot.zip
  • Update production.json.
  • Go to https://www.messenger.com and start messaging with the bot.

Design

The picture below depicts the service architecture including the backend and shows they communicate with each other.

Every message in a dialog with the bot is going through same process. This diagram shows how the services handle and process the message.