Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function suggestions(conv) {
if (!conv.hasScreen) {
conv.ask('Sorry, try this on a screen device or select the ' +
'phone surface in the simulator.');
return;
}
conv.ask('This is a simple response for suggestions.');
conv.ask(new Suggestions('Suggestion Chips'));
conv.ask(new Suggestions(intentSuggestions));
conv.ask(new LinkOutSuggestion({
name: 'Suggestion Link',
url: 'https://assistant.google.com/',
}));
}
async linkOutSuggestion (options: JLinkOutSuggestionOptions): Promise {
const los: LinkOutSuggestionOptions = await this._render(options, jLinkOutSuggestionFields)
return new LinkOutSuggestion(los)
}
function suggestions(conv) {
conv.ask('This is a simple response for suggestions.');
conv.ask(new Suggestions(intentSuggestions));
conv.ask(new LinkOutSuggestion({
name: 'Suggestion Link',
url: 'https://assistant.google.com/',
}));
}