Food delivery app (Ionic)¶
The Food delivery app allows you to order snacks and drinks using your voice. Examine it to see how to implement a multimodal interface for an Ionic Angular app.
App source code¶
The app source code is available on Alan AI GitHub. To use the code example:
Clone this repository to your computer.
Explore the app in the IDE and run it with the following command:
In the app, tap the Alan button and say:
What is it?
What do you have?
Open street food
Add three burgers
Where to find the code?¶
To understand how the in-app assistant works, refer to the following resources:
AlanFoodDelivery/src/app/app.component.ts: here you can find the main assistant logic implemented in the client app: the code for the Alan button, handlers and client API methods.
AlanFoodDelivery/voiceScripts/Food_Ordering.js: here you can find the dialog script for the Food delivery app.