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 |
Required. Resource identifier of the conversation to create message. Format: Authorization requires the following IAM permission on the specified resource
|
Request body
The request body contains data with the following structure:
JSON representation |
---|
{
"requests": [
{
object ( |
Fields | |
---|---|
requests[] |
Required. A maximum of 300 messages can be created in a batch. [CreateMessageRequest.message.send_time][] is required. All created messages will have identical |
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.