Assistant conversations
A member’s conversations with the assistant — each one its author’s alone. Deleting one deletes its turns.
List assistant conversations
The caller's own conversations with the assistant, the most recently active first — never another member's, whatever the filter says.
path Parameters
account_idId of the parent account.
query Parameters
page_sizeRows per page. Over the maximum is clamped, not rejected.
page_tokenOpaque token from a previous next_page_token. A token minted under a different order_by/filter is rejected.
skipRows to skip before the page (AIP-158). skip + page_size is capped at 10000; beyond that is OUT_OF_RANGE.
order_byComma-separated field [asc|desc], at most 3 keys. Default: last_turn_time desc. Sortable: last_turn_time.
filterAIP-160 subset (§8). Filterable: display_name, last_turn_time, website_id. A field outside the list is INVALID_ARGUMENT.
List assistant conversations › Responses
One page of assistant_conversations.
This page of assistant_conversations, in the requested order.
next_page_tokenOpaque. Absent or empty means this was the last page.
total_sizeRows in the whole filtered collection, not in this page.
Create assistant conversation
Starts a conversation with the assistant, empty: talk in it by creating its turns. Give it a display_name, or let its first message name it; website_id says which website it is about.
path Parameters
account_idId of the parent account.
Create assistant conversation › Request Body
display_nameWhat the conversation is called. Left out, the first message names it by its beginning; send null in an Update to let the next message name it again. At most 200 characters.
website_idThe website the conversation was started on: a hint for the assistant and for the list, never a grant. Set on create and fixed afterwards.
Create assistant conversation › Responses
The created resource.
nameThe resource name (§5) — the identity of this resource, and the path that addresses it: websites/{website}/cms_pages/{cms_page}. It is the handle to store, not a human label.
idThe last segment of name on its own, for a client that needs to build a child URL. Unique inside its parent, never across the platform.
create_timeWhen the resource was created (RFC 3339, UTC).
update_timeWhen the resource last changed (RFC 3339, UTC).
etagVersion of the persisted state. Send it back in If-Match on Update or Delete and the write is rejected with ABORTED if anyone else changed the resource meanwhile (§14).
display_nameWhat the conversation is called. Left out, the first message names it by its beginning; send null in an Update to let the next message name it again. At most 200 characters.
user_idThe member who started the conversation — its only reader. Another member's conversation answers NOT_FOUND, an administrator's too.
website_idThe website the conversation was started on: a hint for the assistant and for the list, never a grant. Set on create and fixed afterwards.
turn_countHow many turns the conversation has had, counted as each one is created.
last_turn_timeWhen the latest turn was created (RFC 3339, UTC); absent before the first one. The List's order: the latest exchange first, conversations without a turn last.
Get assistant conversation
One member's conversation with the account's AI assistant: a name, the website it was started on and its turns. A conversation is its author's alone — the List shows the caller's own, and another member's answers NOT_FOUND. Deleting one deletes its turns.
path Parameters
account_idId of the parent account.
assistant_conversation_idId of the parent assistant_conversation.
Headers
If-None-MatchA matching etag answers 304 with no body (§16).
Get assistant conversation › Responses
The resource.
nameThe resource name (§5) — the identity of this resource, and the path that addresses it: websites/{website}/cms_pages/{cms_page}. It is the handle to store, not a human label.
idThe last segment of name on its own, for a client that needs to build a child URL. Unique inside its parent, never across the platform.
create_timeWhen the resource was created (RFC 3339, UTC).
update_timeWhen the resource last changed (RFC 3339, UTC).
etagVersion of the persisted state. Send it back in If-Match on Update or Delete and the write is rejected with ABORTED if anyone else changed the resource meanwhile (§14).
display_nameWhat the conversation is called. Left out, the first message names it by its beginning; send null in an Update to let the next message name it again. At most 200 characters.
user_idThe member who started the conversation — its only reader. Another member's conversation answers NOT_FOUND, an administrator's too.
website_idThe website the conversation was started on: a hint for the assistant and for the list, never a grant. Set on create and fixed afterwards.
turn_countHow many turns the conversation has had, counted as each one is created.
last_turn_timeWhen the latest turn was created (RFC 3339, UTC); absent before the first one. The List's order: the latest exchange first, conversations without a turn last.
Delete assistant conversation
Deletes a conversation and every turn of it, for good. While its last turn is still answering the call is refused with FAILED_PRECONDITION (TURN_IN_PROGRESS): cancel that turn first.
path Parameters
account_idId of the parent account.
assistant_conversation_idId of the parent assistant_conversation.
Headers
If-MatchThe etag the client last read. A mismatch is ABORTED (409) with the current resource in the error details (§14).
Delete assistant conversation › Responses
Deleted. No body (§7).
Update assistant conversation
Renames a conversation; display_name: null with update_mask=display_name lets the next message name it again. Nothing else of a conversation changes.
path Parameters
account_idId of the parent account.
assistant_conversation_idId of the parent assistant_conversation.
query Parameters
update_maskComma-separated field paths to merge. A field named here and sent as null is cleared; without the mask a null is dropped (§7, §11).
Headers
If-MatchThe etag the client last read. A mismatch is ABORTED (409) with the current resource in the error details (§14).
Update assistant conversation › Request Body
display_nameWhat the conversation is called. Left out, the first message names it by its beginning; send null in an Update to let the next message name it again. At most 200 characters.
Update assistant conversation › Responses
The updated resource.
nameThe resource name (§5) — the identity of this resource, and the path that addresses it: websites/{website}/cms_pages/{cms_page}. It is the handle to store, not a human label.
idThe last segment of name on its own, for a client that needs to build a child URL. Unique inside its parent, never across the platform.
create_timeWhen the resource was created (RFC 3339, UTC).
update_timeWhen the resource last changed (RFC 3339, UTC).
etagVersion of the persisted state. Send it back in If-Match on Update or Delete and the write is rejected with ABORTED if anyone else changed the resource meanwhile (§14).
display_nameWhat the conversation is called. Left out, the first message names it by its beginning; send null in an Update to let the next message name it again. At most 200 characters.
user_idThe member who started the conversation — its only reader. Another member's conversation answers NOT_FOUND, an administrator's too.
website_idThe website the conversation was started on: a hint for the assistant and for the list, never a grant. Set on create and fixed afterwards.
turn_countHow many turns the conversation has had, counted as each one is created.
last_turn_timeWhen the latest turn was created (RFC 3339, UTC); absent before the first one. The List's order: the latest exchange first, conversations without a turn last.