Sign in Go Pro

Build a Google Assistant App with DialogFlow

Reading the stored data in the user storage using Firebase Cloud Functions and DialogFlow

11/20/2018

This lesson is for PRO members.

Upgrade today to get access to all the PRO lessons.

Unlock this lesson
Autoplay

Up next

Previous

About

During a conversation with your action, you can temporarily store the data in the conversationToken. For the Node.js client, the token can easily be accessed from the conv.data object. This allows the developer to retain data between intents.
To store data between conversations you can use the userStorage. However, to store the data you need to ask for consent from the user. Once granted the data can be retrieved in a new conversation.

Summary of content

  • Reading the hero information from userStorage
  • Checking the last seen object
  • Displaying a welcome back message for a user that has already used the action
  • Changing the welcome intent to display the custom response
  • Testing the welcome intent in the simulator

References

conversationToken
userStorage
DialogFlow

Comments

There are no comments on this lesson, start the conversation below ...

>
You need to go PRO to post comments.

Lessons in Build a Google Assistant App with DialogFlow

Introduction to Actions on Google and using the Google Assistant
02:03
James Coggan
GDE
DialogFlow and the other available options of actions on Google
01:31
James Coggan
GDE
Creating an Google Assistant Action with DialogFlow
01:22
James Coggan
GDE
Creating your first DialogFlow Intent
01:09
James Coggan
GDE
Creating Dialog Follow up intents
01:42
James Coggan
GDE
Using the DialogFlow System Entities
Pro
01:04
James Coggan
GDE
Creating your first DialogFlow entity
Pro
01:14
James Coggan
GDE
Making your DialogFlow action smarter by editing the training phrases from the users usage
Pro
01:12
James Coggan
GDE
Having a better understanding of the Welcome and Fallback intents in DialogFlow
Pro
01:24
James Coggan
GDE
Ending your DialogFlow conversation
Pro
01:13
James Coggan
GDE
Create a DialogFlow agent fulfillment webhook using the Inline Editor
Pro
01:36
James Coggan
GDE
Deploying a DialogFlow fulfilment cloud function using the Firebase client
Pro
02:24
James Coggan
GDE
Adding JavaScript code to Firebase CloudFunction for your DialogFlow action
Pro
02:24
James Coggan
GDE
Creating a simple response to the user in JavaScript with Firebase Cloud Functions and DialogFlow
Pro
01:40
James Coggan
GDE
Creating a BasicCard UI element response with Firebase Cloud Functions and DialogFlow
Pro
01:57
James Coggan
GDE
Creating a Carousel of items UI element response with Firebase Cloud Functions and DialogFlow
Pro
01:57
James Coggan
GDE
Playing a media object to the user with a Firebase Cloud Function using DialogFlow
Pro
01:36
James Coggan
GDE
Playing media object and customising the Google's assistant voice using Speech Synthesis Markup Language on DialogFlow
Pro
02:58
James Coggan
GDE
Accessing users restricted data by requesting permission using Firebase Cloud Function and DialogFlow
Pro
02:22
James Coggan
GDE
Storing users data in the users storage using Firebase Cloud Functions and DialogFlow
Pro
02:09
James Coggan
GDE
Reading the stored data in the user storage using Firebase Cloud Functions and DialogFlow
Pro
01:58
James Coggan
GDE
Detecting, interacting and sending conversations between surfaces using Firebase Cloud Functions and DialogFlow
Pro
02:39
James Coggan
GDE
Debugging and fixing bugs in your Firebase Cloud Function
Pro
01:14
James Coggan
GDE
Deploying your Google Assistant Action to testing or production
Pro
01:31
James Coggan
GDE