Skip to main content

conversations

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

Overview​

Nameconversations
TypeResource
Idgoogle.ces.conversations

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringIdentifier. The unique identifier of the conversation. Format: projects/{project}/locations/{location}/apps/{app}/conversations/{conversation}
appVersionstringOutput only. The version of the app used for processing the conversation. Format: projects/{project}/locations/{location}/apps/{app}/versions/{version}
channelTypestringDEPRECATED. Please use input_types instead. (CHANNEL_TYPE_UNSPECIFIED, TEXT, AUDIO, MULTIMODAL)
deploymentstringOutput only. The deployment of the app used for processing the conversation. Format: projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}
endTimestring (google-datetime)Output only. Timestamp when the conversation was completed.
entryAgentstringOutput only. The agent that initially handles the conversation. If not specified, the conversation is handled by the root agent. Format: projects/{project}/locations/{location}/apps/{app}/agents/{agent}
inputTypesarrayOutput only. The input types of the conversation.
languageCodestringOutput only. The language code of the conversation.
messagesarrayDeprecated. Use turns instead.
sourcestringOutput only. Indicate the source of the conversation. (SOURCE_UNSPECIFIED, LIVE, SIMULATOR, EVAL, AGENT_TOOL)
startTimestring (google-datetime)Output only. Timestamp when the conversation was created.
turnCountinteger (int32)Output only. The number of turns in the conversation.
turnsarrayRequired. The turns in the conversation.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, appsId, conversationsIdsourceGets details of the specified conversation.
listselectprojectsId, locationsId, appsIdfilter, pageSize, pageToken, source, sourcesLists conversations in the given app.
deletedeleteprojectsId, locationsId, appsId, conversationsIdsourceDeletes the specified conversation.
batch_deletedeleteprojectsId, locationsId, appsIdBatch deletes the specified conversations.

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
appsIdstring
conversationsIdstring
locationsIdstring
projectsIdstring
filterstring
pageSizeinteger (int32)
pageTokenstring
sourcestring
sourcesstring

SELECT examples​

Gets details of the specified conversation.

SELECT
name,
appVersion,
channelType,
deployment,
endTime,
entryAgent,
inputTypes,
languageCode,
messages,
source,
startTime,
turnCount,
turns
FROM google.ces.conversations
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND appsId = '{{ appsId }}' -- required
AND conversationsId = '{{ conversationsId }}' -- required
AND source = '{{ source }}'
;

DELETE examples​

Deletes the specified conversation.

DELETE FROM google.ces.conversations
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND appsId = '{{ appsId }}' --required
AND conversationsId = '{{ conversationsId }}' --required
AND source = '{{ source }}'
;