Skip to main content

sessions

Creates, updates, deletes, gets or lists a sessions resource.

Overview

Namesessions
TypeResource
Idgoogle.dialogflow.sessions

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_locations_agents_sessions_detect_intentexecprojectsId, locationsId, agentsId, sessionsIdProcesses a natural language query and returns structured, actionable data as a result. This method is not idempotent, because it may cause session entity types to be updated, which in turn might affect results of future queries. Note: Always use agent versions for production traffic. See Versions and environments.
projects_locations_agents_sessions_server_streaming_detect_intentexecprojectsId, locationsId, agentsId, sessionsIdProcesses a natural language query and returns structured, actionable data as a result through server-side streaming. Server-side streaming allows Dialogflow to send partial responses earlier in a single request.
projects_locations_agents_sessions_match_intentexecprojectsId, locationsId, agentsId, sessionsIdReturns preliminary intent match results, doesn't change the session status.
projects_locations_agents_sessions_fulfill_intentexecprojectsId, locationsId, agentsId, sessionsIdFulfills a matched intent returned by MatchIntent. Must be called after MatchIntent, with input from MatchIntentResponse. Otherwise, the behavior is undefined.
projects_locations_agents_sessions_submit_answer_feedbackexecprojectsId, locationsId, agentsId, sessionsIdUpdates the feedback received from the user for a single turn of the bot response.
projects_locations_agents_environments_sessions_detect_intentexecprojectsId, locationsId, agentsId, environmentsId, sessionsIdProcesses a natural language query and returns structured, actionable data as a result. This method is not idempotent, because it may cause session entity types to be updated, which in turn might affect results of future queries. Note: Always use agent versions for production traffic. See Versions and environments.
projects_locations_agents_environments_sessions_server_streaming_detect_intentexecprojectsId, locationsId, agentsId, environmentsId, sessionsIdProcesses a natural language query and returns structured, actionable data as a result through server-side streaming. Server-side streaming allows Dialogflow to send partial responses earlier in a single request.
projects_locations_agents_environments_sessions_match_intentexecprojectsId, locationsId, agentsId, environmentsId, sessionsIdReturns preliminary intent match results, doesn't change the session status.
projects_locations_agents_environments_sessions_fulfill_intentexecprojectsId, locationsId, agentsId, environmentsId, sessionsIdFulfills a matched intent returned by MatchIntent. Must be called after MatchIntent, with input from MatchIntentResponse. Otherwise, the behavior is undefined.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
agentsIdstring
environmentsIdstring
locationsIdstring
projectsIdstring
sessionsIdstring

Lifecycle Methods

Processes a natural language query and returns structured, actionable data as a result. This method is not idempotent, because it may cause session entity types to be updated, which in turn might affect results of future queries. Note: Always use agent versions for production traffic. See Versions and environments.

EXEC google.dialogflow.sessions.projects_locations_agents_sessions_detect_intent 
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@agentsId='{{ agentsId }}' --required,
@sessionsId='{{ sessionsId }}' --required
@@json=
'{
"queryParams": "{{ queryParams }}",
"queryInput": "{{ queryInput }}",
"outputAudioConfig": "{{ outputAudioConfig }}"
}';