Google Assistant (Dialogflow)

Integration published by Jovo | 37,746 downloads

Build apps for Google's Assistant platform using Dialogflow

Request

Introduction

The request is the incoming data that the Alexa platform sends to your app's endpoint. It consists of information like:

  • User ID,
  • Intent, e.g. MyNameIsIntent
  • Input, e.g. name
  • Session data, e.g. a state

and other things that might be relevant to your app. You can access the incoming request with this.$request.

Here's an example request:

In the Jovo Framework repository we keep sample requests for the most common types. You can find them here

$request Object

Besides the cross-platform getter and setter methods the Google Assistant $request object supports the following general helper methods:

Name Description Return Value
getUserStorage() Returns the userStorage object where you can persist data across sessions object
hasWebBrowserInterface() Returns true if the user's device is capable of using a web browser boolean

Google Assistant Changelog

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

2021-02-22 [3.5]

  • #901 Move setResponse from response to after.response middleware (@aswetlow)
2020-11-20 [3.2.3]
2020-11-05 [3.2.1]
  • Fix Transaction API v2/v3 incomptibility

🐛 Bug Fix

  • #716 Corrected logic for retrieving project-ids in staged environments (@m-ripper)

Committers: 3

3.0.11 (2020-04-06)

  • Updated Typescript to 3.8.x
  • Updated Prettier to 2.x

Committers: 2

2.x

Find the 2.x changelog here.

Join Our Newsletter

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