Created
August 5, 2019 21:35
-
-
Save Fleker/bb649623f0f37f042c27f223aa2c23da to your computer and use it in GitHub Desktop.
Improved welcome intent
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.intent('Default Welcome Intent', async (conv: Conv) => { | |
conv.ask(new SimpleResponse({ | |
text: 'Welcome to Tabletop Audio! I can play a specific track, ' + | |
'or start playing based on a genre. What do you want to listen to?', | |
speech: `Welcome to Tabletop Audio! I can play a specific track ` + | |
`like ${conv.data.json.tracks[0].track_title}, or start playing based on a genre like ` + | |
`${conv.data.json.tracks[0].track_genre}. What do you want to listen to?` | |
})) | |
conv.ask(getSuggestions(conv.data.json.tracks)) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment