chapter three

3 Running a voice-first application – and noticing issues

 

This chapter covers

  • Creating and testing a simple voice-first interaction
  • Code samples for a simple Amazon Alexa custom skill and Google Assistant action
  • Introduction to the architecture that incorporates Google Assistant
  • Pros and cons of relying on tools for voice development

In the previous two chapters, you were introduced to voice interaction technology and the reasons why some things are harder to get right than others for humans and machines in conversational interactions. Now it’s time to jump in and get your own quick voice-first interaction up and running. No doubt you’re eager to ‘get real’ so let’s get your hands dirty with something concrete, for now staying with the same familiar food domain. It’s a convenient test bed for introducing the core concepts – finding a restaurant is probably something you’re familiar with, and it covers many voice-first stumbling blocks. The basic task of finding a restaurant may seem simple, but you’ll see that things get complicated pretty quickly. So, we’ll start with this relatively simple example. When you expand functionality to deal with real user needs, you’ll stray from the ‘Happy Path’ quickly. For now, let’s get you started before worrying too much about real life.

3.1 Hands-on: Preparing the restaurant finder

3.2 Say hello to the Amazon and Google voice platforms

3.3 Hands-on: Running the Alexa restaurant finder skill

3.3.1 Basic setup

3.3.2 Adding an intent

3.3.4 Connecting the skill and the code

3.3.5 Testing the skill

3.4 Hands-on: Running the Google restaurant finder action

3.4.1 Before you begin

3.4.2 Basic setup

3.4.3 Starting to build the interaction

3.4.4 Doing something

3.4.7 Connecting Dialogflow to Actions on Google

3.4.9 Saving the voice interaction

3.5 Why we'll be favoring Google Assistant

3.6 Google’s voice development ecosystem

3.7 The pros and cons of relying on tools

3.8 Hands-on: Making changes

3.8.1 Adding more phrases

3.8.2 Eating something else

3.8.3 Asking for something more specific

3.9 What’s next?

3.10 Summary