Google Assistant (Conversational)

Integration published by Jovo | 4,036 downloads

Build Conversational Actions for Google's Assistant platform

Response

Introduction

The response is the data that you send to the platform after processing the request. It consists of information like:

  • output, e.g. speech, audio, etc.
  • permission requests,
  • or session data

Here's an example response:

The main component is the output. Besides the platform independent output, Google Conversational Actions provide multiple other types of output. You can find out more about that in Interfaces section of the documentation.

$response Object

The $response object supports a handful of cross-platform helper methods to get/set its values. You can find them in the general response docs.

Besides that, Google Assistant supports the following getter methods:

Name Description Return Value
getBasicCard() Returns the response's basic card object. basic card object or undefined
hasDisplayText() Checks whether the response contains a display text boolean
getDisplayText() Returns the response's display text. string or undefined
hasMediaResponse() Checks whether the response contains a media response boolean
getMediaResponse() Returns the media response object object or undefined
hasSuggestionChips(chips?: string[]) Returns true if the response contains suggestion chips. If you parse an array of strings, the method will only return true if the suggestion chip's title are equal to the parsed array's values (same order) boolean
getSuggestionChips() Returns the response's suggestion chips array. array or undefined
hasImageCard(title?: string, content?: string, imageUrl?: string) Returns true if the response contains an image card. If you parse any of the cards properties, the method will only return true if they are equal to the ones in the response. boolean
hasSimpleCard(title?: string, content?: string) Returns true if the response contains a simple card. If you parse any of the cards properties, the method will only return true if they are equal to the ones in the response. boolean

Google Assistant Changelog

Current version might be higher than the latest changes displayed below because of updates of dependencies.

2022-03-02 [3.6.4]
2022-02-17 [3.6.3]
2021-07-07 [3.5.4]
  • #948 ✨ Add enableFullScreen and continueTtsDuringTouch (@aswetlow)

2021-02-22 [3.5]

  • #901 Move setResponse from response to after.response middleware (@aswetlow)
  • #901 Fix missing unit test methods in ConversationalResponse (@aswetlow)
2021-02-04 [3.4.0]
  • #892 ✨ Transactions for Google Assistant Conversational Actions (@aswetlow)
2021-01-28 [3.3.2]
  • #890 ✨ Add Conversational Actions functionality to Jovo Debugger (@aswetlow)
2020-12-03 [3.3.0]
  • #871 Add missing and broken Google Conversational Action features (@aswetlow)
2020-11-20 [3.2.4]
2020-11-16 [3.2.3]
  • Adds Interactive Canvas to Google Conversational Actions (@aswetlow)
2020-11-10 [3.2.2]
  • #856 Fixes several Google Conversational Actions issues (@aswetlow)
2020-11-05 [3.2.1]

Fix missing locale in push notifications object

2020-09-29 [3.1.3]
  • #831 :recycle: Enhance Google AssisConversational Actions (@maswetlow)

2020-09-29 [3.1.0-alpha.0]

  • #829 ✨ Work In Progress: Google Assistant Conversational Actions (@aswetlow)

Join Our Newsletter

Be the first to get our free tutorials, courses, and other resources for voice app developers.