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 |
Required. Parent value for CreateConversationRequest. Format: |
Query parameters
Parameters | |
---|---|
conversationId |
Optional. The conversation id of the conversation to create. Must be unique within the parent. The allowed format is: |
requestId |
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.