- Resource: SessionRecord
- Interaction
- UserUtterance
- AgentUtterance
- ResolveOrder
- ResolveOrderInput
- ResolveOrderOutput
- SubmitOrder
- MatchIntent
- MatchIntentInput
- MatchIntentOutput
- ClientExecution
- ClientExecutionInput
- ClientExecutionOutput
- UpsellAttemptRecord
- Methods
Resource: SessionRecord
Represents a single session record.
| JSON representation |
|---|
{ "name": string, "sessionStartTime": string, "storeId": string, "laneId": string, "interactions": [ { object ( |
| Fields | |
|---|---|
name |
Identifier. The resource name of the SessionRecord. Format: projects/{project}/locations/{location}/brands/{brand}/sessionRecords/{sessionRecord} |
sessionStartTime |
Output only. The timestamp when the session started. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
storeId |
Immutable. The ID of the store where the order was placed. |
laneId |
Immutable. The lane ID of the order session. |
interactions[] |
Output only. The conversation turns. |
outcomeLabel |
Output only. The final outcome label of the order. |
outcomeGroupLabel |
Output only. The group label for the outcome. |
audioRecordingPath |
Output only. Path to the full audio recording. |
order |
Output only. The order associated with the session record. |
sessionDuration |
Output only. Total duration of the session. A duration in seconds with up to nine fractional digits, ending with ' |
upsellAttemptRecords[] |
Output only. Upsells performed during the session. |
audioRecording |
Output only. Audio recording for the session. This field is only populated when calling sessionRecords.get. A base64-encoded string. |
Interaction
Represents a single interaction in a turn in the conversation.
| JSON representation |
|---|
{ "turnPosition": string, // Union field |
| Fields | |
|---|---|
turnPosition |
Output only. Turn position in the conversation. |
Union field interaction. The type of interaction. interaction can be only one of the following: |
|
userUtterance |
User utterance. |
agentUtterance |
Agent utterance. |
resolveOrder |
ResolveOrder call performed by the agent |
submitOrder |
SubmitOrder call performed by the agent |
matchIntent |
MatchIntent call performed by the agent |
clientExecution |
ClientExecution call performed by the agent |
UserUtterance
The user utterance.
| JSON representation |
|---|
{ "text": string } |
| Fields | |
|---|---|
text |
The text of the user utterance. |
AgentUtterance
The agent utterance.
| JSON representation |
|---|
{ "text": string } |
| Fields | |
|---|---|
text |
The text of the agent utterance. |
ResolveOrder
The resolve order interaction.
| JSON representation |
|---|
{ "input": { object ( |
| Fields | |
|---|---|
input |
The input for the resolve order action. |
output |
The output for the resolve order action. |
ResolveOrderInput
The input for the resolve order interaction.
| JSON representation |
|---|
{ "payload": { object } } |
| Fields | |
|---|---|
payload |
The payload for the resolve order interaction. |
ResolveOrderOutput
The output for the resolve order interaction.
| JSON representation |
|---|
{ "payload": { object } } |
| Fields | |
|---|---|
payload |
The payload for the resolve order interaction output. |
SubmitOrder
This type has no fields.
The submit order interaction.
MatchIntent
The match intent interaction.
| JSON representation |
|---|
{ "input": { object ( |
| Fields | |
|---|---|
input |
The input for the match intent interaction. |
output |
The output for the match intent interaction. |
MatchIntentInput
The input for the match intent interaction.
| JSON representation |
|---|
{ "payload": { object } } |
| Fields | |
|---|---|
payload |
The payload for the match intent interaction input. |
MatchIntentOutput
The output for the match intent interaction.
| JSON representation |
|---|
{ "payload": { object } } |
| Fields | |
|---|---|
payload |
The payload for the match intent interaction output. |
ClientExecution
The client execution interaction.
| JSON representation |
|---|
{ "toolName": string, "input": { object ( |
| Fields | |
|---|---|
toolName |
The tool name for the client execution interaction. |
input |
The input for the client execution interaction. |
output |
The output for the client execution interaction. |
ClientExecutionInput
The input for the client execution interaction.
| JSON representation |
|---|
{ "payload": { object } } |
| Fields | |
|---|---|
payload |
The payload for the client execution interaction input. |
ClientExecutionOutput
The output for the client execution interaction.
| JSON representation |
|---|
{ "payload": { object } } |
| Fields | |
|---|---|
payload |
The payload for the client execution interaction output. |
UpsellAttemptRecord
Represents an upsell attempt. This data is used to display upsell information in the console order history, namely upsell type, turn id, and whether the upsell was accepted, and is populated from Spanner based on processed logs.
| JSON representation |
|---|
{ "turnId": integer, "upsellType": string, "accepted": boolean } |
| Fields | |
|---|---|
turnId |
Output only. ID of the turn in which the upsell opportunity occurred. |
upsellType |
Output only. The type of upsell event. |
accepted |
Output only. Whether the upsell was accepted. |
Methods |
|
|---|---|
|
Deletes an SessionRecord. |
|
Gets a specific SessionRecord. |
|
Lists SessionRecords for a given brand. |