Method: projects.conversations.messages.batchCreate

Batch ingests messages to conversation. Customers can use this RPC to ingest historical messages to conversation.

HTTP request

POST https://{endpoint}/v2beta1/{parent=projects/*/conversations/*}/messages:batchCreate

Where {endpoint} is one of the supported service endpoints.

The URLs use gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. Resource identifier of the conversation to create message. Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>.

Authorization requires the following IAM permission on the specified resource parent:

  • dialogflow.messages.list

Request body

The request body contains data with the following structure:

JSON representation
{
 "requests": [
 {
 object (CreateMessageRequest )
 }
 ]
}
Fields
requests[]

object (CreateMessageRequest )

Required. A maximum of 300 messages can be created in a batch. [CreateMessageRequest.message.send_time][] is required. All created messages will have identical Message.create_time.

Response body

If successful, the response body contains an instance of BatchCreateMessagesResponse .

Authorization scopes

Requires one of the following OAuth scopes:

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

For more information, see the Authentication Overview.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年06月27日 UTC.