Required. The name of the participant this text comes from. Format: projects/<Project ID>/locations/<Location
ID>/conversations/<Conversation ID>/participants/<Participant ID>.
Authorization requires the following IAM permission on the specified resource participant:
dialogflow.participants.analyzeContent
Request body
The request body contains data with the following structure:
JSON representation
{"replyAudioConfig": {object (OutputAudioConfig)},"queryParams": {object (QueryParameters)},"assistQueryParams": {object (AssistQueryParameters)},"cxParameters": {object},"cxCurrentPage": string,"messageSendTime": string,"requestId": string,// Union field input can be only one of the following:"textInput": {object (TextInput)},"audioInput": {object (AudioInput)},"eventInput": {object (EventInput)},"suggestionInput": {object (SuggestionInput)},"intentInput": {object (IntentInput)}// End of list of possible types for union field input.}
Speech synthesis configuration. The speech synthesis settings for a virtual agent that may be configured for the associated conversation profile are not used when calling participants.analyzeContent. If this configuration is not supplied, speech synthesis is disabled.
Additional parameters to be put into Dialogflow CX session parameters. To remove a parameter from the session, clients should explicitly set the parameter value to null.
Note: this field should only be used if you are connecting to a Dialogflow CX agent.
cxCurrentPage
string
The unique identifier of the Dialogflow CX page to override the current_page in the session. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
ID>/flows/<Flow ID>/pages/<Page ID>.
If cxCurrentPage is specified, the previous state of the session will be ignored by Dialogflow CX, including the [previous page][QueryResult.current_page] and the [previous session parameters][QueryResult.parameters]. In most cases, cxCurrentPage and cxParameters should be configured together to direct a session to a specific state.
Note: this field should only be used if you are connecting to a Dialogflow CX agent.
Optional. The send time of the message from end user or human agent's perspective. It is used for identifying the same message under one participant.
For messages.batchCreate API only: Given two messages under the same participant: * If send time are different regardless of whether the content of the messages are exactly the same, the conversation will regard them as two distinct messages sent by the participant. * If send time is the same regardless of whether the content of the messages are exactly the same, the conversation will regard them as same message, and ignore the message received later.
If the value is not provided, a new request will always be regarded as a new message without any de-duplication.
Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z" or "2014-10-02T15:01:23+05:30".
requestId
string
A unique identifier for this request. Restricted to 36 ASCII characters. A random UUID is recommended. This request is only idempotent if a requestId is provided.
Union field input. Required. The input content. input can be only one of the following:
[[["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-08-21 UTC."],[[["\u003cp\u003eThis API allows you to add text or audio messages from a participant into a conversation.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePOST\u003c/code\u003e request to \u003ccode\u003eanalyzeContent\u003c/code\u003e requires the participant's details in the URL path and can be sent to the specific endpoint for your project.\u003c/p\u003e\n"],["\u003cp\u003eThe request body contains the message content, which can be in text or audio format, along with optional parameters such as speech synthesis settings, query parameters, and CX session parameters.\u003c/p\u003e\n"],["\u003cp\u003eA request can include a unique \u003ccode\u003erequestId\u003c/code\u003e to ensure idempotency.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization for this API requires 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 scopes.\u003c/p\u003e\n"]]],[],null,["# Method: projects.conversations.participants.analyzeContent\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\nAdds a text (chat, for example), or audio (phone recording, for example) message from a participant into the conversation.\n\nNote: Always use agent versions for production traffic sent to virtual agents. See [Versions and environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).\n\n### HTTP request\n\n`POST https://{endpoint}/v2beta1/{participant=projects/*/conversations/*/participants/*}:analyzeContent`\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 [AnalyzeContentResponse](/dialogflow/es/docs/reference/rest/v2beta1/AnalyzeContentResponse).\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)."]]