jovotech / jovo-framework

🔈 The React for Voice and Chat: Build Apps for Alexa, Messenger, Instagram, the Web, and more
https://www.jovo.tech
Apache License 2.0
1.68k stars 309 forks source link

Add displayText for Google Assistant #37

Closed jankoenig closed 6 years ago

jankoenig commented 6 years ago

For output on mobile phones, Google Assistant supports a displayText instead of the speech output. Here's an example from their documentation

function simpleResponse () {
  const app = new ActionsSdkApp({request, response});
  app.ask({
    speech: 'Howdy! I can tell you fun facts about ' +
    'almost any number, like 42. What do you have in mind?',
    displayText: 'Howdy! I can tell you fun facts about almost any ' +
    'number. What do you have in mind?'
  });
}
jankoenig commented 6 years ago

Added with https://github.com/jovotech/jovo-framework-nodejs/commit/5f9c11c10e03d3148ddaba53fb433107f6239447

Find the docs here: https://github.com/jovotech/jovo-framework-nodejs/tree/master/docs/04_platform-specifics/google-assistant#display-text