- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- ConverseConversationRequest
- Try it!
Converse a conversation with Widget.
HTTP request
POST https://discoveryengine.googleapis.com/v1alpha/{location=locations/*}/widgetConverseConversation
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
location |
Required. The location resource where widget converse conversation will be performed. Format: |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{ "configId": string, "converseConversationRequest": { object ( |
Fields | |
---|---|
configId |
Required. The UUID of the WidgetConfig. This field is used to identify the widget configuration, set of models used to make the user event collection. |
converseConversationRequest |
Required. The ConverseConversationRequest request to perform converse a conversation. The ServingConfig id will be |
conversationId |
The id of the Conversation to get. Use "-" to activate auto session mode, which automatically creates a new conversation inside a ConverseConversation session. |
additionalParams |
Additional params for security and privacy enhancement. |
Response body
Response message for WidgetService.WidgetConverseConversation
method.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"converseConversationResponse": {
object ( |
Fields | |
---|---|
converseConversationResponse |
ConverseConversationResponse returned from |
uToken |
The token in response. |
conversationId |
The id of the Conversation returned. |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
ConverseConversationRequest
Request message for ConversationalSearchService.ConverseConversation
method.
JSON representation |
---|
{ "name": string, "query": { object ( |
Fields | |
---|---|
name |
Required. The resource name of the Conversation to get. Format: |
query |
Required. Current user input. |
servingConfig |
The resource name of the Serving Config to use. Format: |
conversation |
The conversation to be used by auto session only. The name field will be ignored as we automatically assign new name for the conversation in auto session. |
safeSearch |
Whether to turn on safe search. |
userLabels |
The user labels applied to a resource must meet the following requirements:
See Google Cloud Document for more details. |
summarySpec |
A specification for configuring the summary returned in the response. |