Skip to content

Instantly share code, notes, and snippets.

@ig-perez
Created December 4, 2019 18:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ig-perez/1daa4acd982f9fdac235eead6da31081 to your computer and use it in GitHub Desktop.
Save ig-perez/1daa4acd982f9fdac235eead6da31081 to your computer and use it in GitHub Desktop.
Bespoken Sample: A more complex unit test script.
---
configuration:
locale: en-US
---
- test: Using succinct syntax to invoke the intent with slots.
- tags: FirstUse
- LaunchRequest:
- response.outputSpeech.ssml: /.*how many people are playing today.*/i
- response.shouldEndSession: false
- sessionAttributes.STATE: _START_MODE
- GetPlayerNumber Number=1: please tell us your name
- GetContestantName PlayerName=jordi: "let's start the game: jordi”
- GetContestantPrice Number=149:
- response.outputSpeech.ssml: /.*you said 149*/i
- sessionAttributes.STATE: _GAME_ROUND
- sessionAttributes.players[0].name: jordi
- AMAZON.StopIntent:
- response.outputSpeech.ssml:
- Hope to see you soon
- See you around
- Nice playing with you
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment