Method: projects.locations.conversations.create

Creates a new conversation to persist the conversation history. Each conversation will have multiple messages associated with it.

HTTP request

POST https://geminidataanalytics.googleapis.com/v1alpha/{parent=projects/*/locations/*}/conversations

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. Parent value for CreateConversationRequest. Format: projects/{project}/locations/{location}

Query parameters

Parameters
conversationId

string

Optional. The conversation id of the conversation to create. Must be unique within the parent. The allowed format is: ^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$. If not provided, the server will auto-generate a value for the id.

requestId

string

Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.

Request body

The request body contains an instance of Conversation.

Response body

If successful, the response body contains a newly created instance of Conversation.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.