Skip to content

Fulfillment logic for a voice-enabled food ordering system on api.ai

Notifications You must be signed in to change notification settings

aleeenaa/foodtalk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logo

A VUI for ordering foodservice.

Google Home Web Simulator setup can be found here

License

© 2015 Aleena Naeem

Foodtalk

Fulfillment logic for a voice-enabled food ordering system on api.ai

Pre-Installation Requirements

  • User must be in posession of a reachable public URL
  • User must be in posession of a server of computer

Installation

  1. git clone https://github.com/barthola/foodtalk.
  2. Install NodeJS - (Installation of NPM is accompanied usually).
  3. npm i
  4. npm build - for backwards es compatibility.
  5. Create an account for API.AI.
  6. Create a new agent - preferably named Foodtalk.
  7. Go to agent settings > Export and Import by clicking on the cog symbol next to the agent name.
  8. Click Restore from zip to import the zip file foodtalk.zip into the agent.
  9. Click Fulfilment on the left hand side menu and enable webhook, fill in the URL field in the format http://{address}:8080.
  10. User will have visit each intent, accessible through the left hand side menu and enable fulfilment. This is usually found at the bottom of the intent's page.
  11. The agent is set up and ready to be used.

Startup

Development

  • From the command line, navigate to the root directory of the project and run the command
npm start

Production (using pm2)

pm2 start app

Production without the use of pm2

npm run serve

Testing

Make sure the fulfillment logic is being hosted publicly for the test script to be able to query it.

npm test

See test/index.js for more info

Demo

Google Home Web Simulator

npm run deploy

About

Fulfillment logic for a voice-enabled food ordering system on api.ai

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published