Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Prompt

Hierarchy

  • Prompt

Implements

Properties

canvas

canvas: undefined | Canvas

Optional. Represents a Interactive Canvas response to be sent to the user.

content

content: undefined | Content

Optional. A content like a card, list or media to display to the user.

firstSimple

firstSimple: undefined | Simple

Optional. The first voice and text-only response.

lastSimple

lastSimple: undefined | Simple

Optional. The last voice and text-only response.

link

link: undefined | Link

Optional. An additional suggestion chip that can link out to the associated app or site. The chip will be rendered with the title "Open ". Max 20 chars.

orderUpdate

orderUpdate: undefined | OrderUpdate

Optional Action responds with an OrderUpdate after receiving the order during the transactions flow. On receipt of this, Google records this update to the order, and if successful, displays a receipt card along with the TTS sent on display devices.

override

override: undefined | boolean

Optional. Mode for how this messages should be merged with previously defined messages. "true" clears all previously defined messages (first and last simple, content, suggestions link and canvas) and adds messages defined in this prompt. "false" adds messages defined in this prompt to messages defined in previous responses. Leaving this field to "false" also enables appending to some fields inside Simple prompts, the Suggestions prompt, and the Canvas prompt (part of the Content prompt). The Content and Link messages are always overwritten if defined in the prompt. Default value is "false".

suggestions

suggestions: undefined | Suggestion[]

Optional. Suggestions to be displayed to the user which will always appear at the end of the response. If the "override" field in the containing prompt is "false", the titles defined in this field will be added to titles defined in any previously defined suggestions prompts and duplicate values will be removed.

Methods

add

append

  • append(item: string): Prompt

Generated using TypeDoc