A session represents a conversation between a Dialogflow agent and an end-user. You can create special entities, called session entities, or user entities, during a session. Session entities can extend or replace custom entity types and only exist during the session that they were created for. All session data, including session entities, is stored by Dialogflow for 20 minutes.
For example, if your agent has a
@fruit entity type
that includes "pear" and "grape",
that entity type could be updated to include "apple" or "orange",
depending on the information your agent collects from the end-user.
The updated entity type would have the "apple" or "orange" entity entry
for the rest of the session.
Managing session entities with the API
To manage session entities with the API,
use the methods for the
Select a protocol and version for the SessionEntityType reference:
|REST||SessionEntityType resource||SessionEntityType resource|
|RPC||SessionEntityType interface||SessionEntityType interface|
|C#||Not available||Not available|
|Go||Not available||Not available|
|PHP||Not available||Not available|
|Ruby||Not available||Not available|