A VUI for ordering foodservice.
Google Home Web Simulator setup can be found here
© 2015 Aleena Naeem
Fulfillment logic for a voice-enabled food ordering system on api.ai
- User must be in posession of a reachable public URL
- User must be in posession of a server of computer
git clone https://github.com/barthola/foodtalk
.- Install NodeJS - (Installation of NPM is accompanied usually).
npm i
npm build
- for backwards es compatibility.- Create an account for API.AI.
- Create a new agent - preferably named
Foodtalk
. - Go to agent settings > Export and Import by clicking on the cog symbol next to the agent name.
- Click
Restore from zip
to import the zip filefoodtalk.zip
into the agent. - Click
Fulfilment
on the left hand side menu and enable webhook, fill in theURL
field in the formathttp://{address}:8080
. - 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.
- The agent is set up and ready to be used.
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
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
npm run deploy