Order drinks app (Angular)¶
App source code¶
The app source code is available on Alan AI GitHub. To use the code example:
Clone the repository to your computer.
Navigate to the app folder.
npm startfor a dev server.
In the app, click the Alan AI button and say:
Hello, What can I do here?.
Where to find the code?¶
To understand how the AI assistant works, refer to the following resources:
alan-example-app-angular-order-drinks/src/app/app.component.ts: here you can find the main assistant logic implemented in the client app: the code for the Alan AI button, handlers and client API methods.
alan-example-app-angular-order-drinks/voice-scripts/order.alan.voice.js: here you can find the dialog script for the Order drinks app.