Coffee app quick start
This topic takes you through the process of creating a simple coffee application.
Before you begin
To run this scenario, right-click the links to download the following files:
- order_coffee.trsx: Defines the intent and entities used in the app
- order_coffee.json: Defines the dialog
Objectives
This topic takes you through the process of creating a simple coffee application, deploying it in the runtime environment, and running a client application that understands the following dialog:
- System
- Hello and welcome to the coffee app. What can I get you today?
- User
- I want a double espresso.
- System
- Perfect, a double espresso coming right up!
Let’s get started
To create the app:
- Log in to Mix.
- From the Mix dashboard create a web chat project:
- Use the Web chat project template
- Name your project: “Order Coffee”
- On the dashboard, select the Order Coffee project, and switch to the Import/Export tab.
- Click the TRSX upload icon in the Import area, navigate to the location where you downloaded the two files, and select the order_coffee.trsx file.
- Click the JSON upload icon in the Import area, and select the order_coffee.json file.
- Build the ASR, NLU, and Dialog resources.
- Set up a new application configuration.
- Deploy your application configuration.
- Install and run the Sample Python dialog application.
Try it out
You can try the app with a few different utterances, specifying a coffee size and coffee type.
Some suggestions:
- Give me a small coffee
- A large mocha please
- brew me an americano
What’s next
This example uses the Dialog as a Service runtime service, but you can also try this project with the following services:
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.