简体   繁体   中英

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`]));
});

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM