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},"requestId": string,// Union field input can be only one of the following:"textInput": {object (TextInput)},"audioInput": {object (AudioInput)},"eventInput": {object (EventInput)},"suggestionInput": {object (SuggestionInput)}// 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.
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-06-27 UTC."],[[["\u003cp\u003eThis endpoint, using a POST request, adds text or audio messages from a participant to a conversation using Dialogflow.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eparticipant\u003c/code\u003e path parameter is required to identify the sender, and the request requires \u003ccode\u003edialogflow.participants.analyzeContent\u003c/code\u003e IAM permission.\u003c/p\u003e\n"],["\u003cp\u003eThe request body includes details like \u003ccode\u003ereplyAudioConfig\u003c/code\u003e, \u003ccode\u003equeryParams\u003c/code\u003e, and the \u003ccode\u003einput\u003c/code\u003e field, which accepts text, audio, event, or suggestion input types.\u003c/p\u003e\n"],["\u003cp\u003eThe request can include a \u003ccode\u003erequestId\u003c/code\u003e for idempotency, ensuring that the same request is not processed more than once if it is sent multiple times.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful requests will return an \u003ccode\u003eAnalyzeContentResponse\u003c/code\u003e object.\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}/v2/{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/v2/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)."]]