Last active
March 16, 2018 16:12
-
-
Save silvolu/e52dfc336a9c3aa7a30e4a9af2968844 to your computer and use it in GitHub Desktop.
Calling ask multiple times
This file contains 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('tell.greeting', (conv, { color, num }) => { | |
conv.ask(`Dialogflow likes ${color}`, new Suggestions('Ok', 'Cool')) | |
conv.ask(new BasicCard({ | |
title: 'Card Title', | |
image: { // Mostly, provide anonymous Objects | |
url: 'https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png', | |
accessibilityText: 'Google Logo', | |
}, | |
buttons: new Button({ // Wrapper for complex sub Objects, but can also use Objects when needed | |
title: 'Button Title', | |
url: 'https://www.google.com', | |
}), | |
display: 'WHITE', | |
})) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment