dialogflow-esactions-on-googlegoogle-assistant-sdkssml

How to add ssml in suggestion chips actions on google


app.intent('Default Welcome Intent', (conv) => {
  if (!conv.screen) {
    conv.ask(`Your device is not compatible`);
    return;
  }
  conv.ask(`It's a rhyming word game app. A Random word will be given to you. You have to enter a rhyming word against it. if you are ready to play? press the button below`);
  conv.ask(new Suggestions([`Start Game`, `Exit`]));
});

Solution

  • Suggestion chips are meant to be hints for what the user will say, not something that your Action says. As such, using SSML in the suggestion chips wouldn't be expected.

    If you want the suggestions to be read out, they should be placed alongside the text that your Action is outputting.