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.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request uses a \u003ccode\u003ePOST\u003c/code\u003e method to a specified endpoint with a structured URL path for message creation, following gRPC Transcoding syntax.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires a \u003ccode\u003eparent\u003c/code\u003e path parameter that indicates the conversation where messages will be added and needs specific IAM permissions, \u003ccode\u003edialogflow.messages.list\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must contain an array of \u003ccode\u003erequests\u003c/code\u003e, limited to a maximum of 300, each following the \u003ccode\u003eCreateMessageRequest\u003c/code\u003e format, including the \u003ccode\u003esend_time\u003c/code\u003e field.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization for this request needs either the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e or \u003ccode\u003ehttps://www.googleapis.com/auth/dialogflow\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],[],null,["# Method: projects.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/*/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)."]]