A personal assistant bot for Facebook Messenger.
Teju's first personal assistant chatbot for Facebook Messenger. Currently supports:
- Basic conversation with a default Dialogueflow agent
- The ability to remember flight details and notify the user for check-in
Software Architecture:
- Frontend: Facebook Messenger
- NLP: Dialogueflow
- Fulfillment: The node.js code in this repository
- Node.js and npm
- A postrgres database
- Dialogueflow account
- Facebook Developer account
Setup the users
table with the schema found in db/postgre_sql/requestTimes.js
.
Export the connection string.
The root directly of this repository contains an export of the Dialogueflow agent: agent.zip
.
This must be directly imported into your Dialogueflow account to setup the agent with the correct intents.
Manually change the fulfillment credentials.
Export the API token in order to send queries to the agent.
In the Facebook Developer portal, create a new Facebook page for the bot. Manually set the verification token.
Export the app secret and page access token.
Install the local dependencies listed in package.json
with:
npm install
Setup all environment variables as described in app.json
.
The agent can be run with the following command:
npm start
This agent can be directly deployed to Heroku, no modifications required.
The API definitions can be found in the server
directory.
PRs accepted.
Small note: If editing the README, please conform to the standard-readme specification.
GLP-3.0 © 2019 Tejasvi Nareddy