How to use the actions-on-google.LinkOutSuggestion function in actions-on-google

To help you get started, we’ve selected a few actions-on-google examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github actions-on-google / dialogflow-conversation-components-nodejs / actions-sdk / functions / index.js View on Github external
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/',
  }));
}
github JargonInc / jargon-sdk-nodejs / packages / actions-on-google / lib / common / responseFactory.ts View on Github external
async linkOutSuggestion (options: JLinkOutSuggestionOptions): Promise {
    const los: LinkOutSuggestionOptions = await this._render(options, jLinkOutSuggestionFields)
    return new LinkOutSuggestion(los)
  }
github actions-on-google / actionssdk-conversation-components-nodejs / functions / index.js View on Github external
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/',
  }));
}