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:
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-27 UTC."],[[["\u003cp\u003eThis endpoint allows for batch ingestion of historical messages into a conversation, useful for populating conversation history.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request is a POST request to a specific endpoint URL, following a defined gRPC Transcoding syntax for message creation.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eparent\u003c/code\u003e path parameter, required for the request, specifies the conversation to add the messages to using a specific format and requiring the \u003ccode\u003edialogflow.messages.list\u003c/code\u003e IAM permission.\u003c/p\u003e\n"],["\u003cp\u003eThe request body, structured in JSON, includes an array of \u003ccode\u003erequests\u003c/code\u003e, each defining a message to be created, with a limit of 300 messages per batch.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful requests return a \u003ccode\u003eBatchCreateMessagesResponse\u003c/code\u003e, and authorization requires either \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e or \u003ccode\u003ehttps://www.googleapis.com/auth/dialogflow\u003c/code\u003e OAuth scopes.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.conversations.messages.batchCreate\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nBatch ingests messages to conversation. Customers can use this RPC to ingest historical messages to conversation.\n\n### HTTP request\n\n`POST https://{endpoint}/v2beta1/{parent=projects/*/locations/*/conversations/*}/messages:batchCreate`\n\nWhere `{endpoint}` is one of the [supported service endpoints](/dialogflow/es/docs/reference/rest#rest_endpoints).\n\nThe URLs use [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Request body\n\nThe request body contains data with the following structure:\n\n### Response body\n\nIf successful, the response body contains an instance of [BatchCreateMessagesResponse](/dialogflow/es/docs/reference/rest/v2beta1/BatchCreateMessagesResponse).\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n- `\n https://www.googleapis.com/auth/dialogflow`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp)."]]