Skip to content

Middleware Node.js for connecting NLP to Bot Engines/Web App Platform

License

Notifications You must be signed in to change notification settings

Radio-PPI-Dunia/RPD-Chatbot_Runkit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node.js Middleware DialogFlow - Bot Engine/Web App Platform

A runkit runtime for connecting your Bot engine with your DialogFlow.

Prerequisite

  1. Clone or download this repo
  2. Node.js is already installed
npm install
npm run start
  1. Replace YOUR_API_AI_KEY with your Client Access Token in DialogFlow dashboard

Note: if you want to make self production, remove YOUR_API_KEY from server.js and create .env file in your server

  1. You will notice at path "/" and get "Hello World!". Just redirect to route "/api/bot" and you will get JSON with content Error. This is normal! Now grab url: https://yourdomain.com/api/bot into you Bot Engine and set it up JSON API to your bot or if you have own node server, feel free to make HTTP call

Note: it depends with your Bot engines setup

  1. According to my docs fo API.AI and my code, set up your attribute in user input queryString

Need a free node server? Feel free deploy it to Heroku or drop a message [email protected]

About

Middleware Node.js for connecting NLP to Bot Engines/Web App Platform

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published