Adds a text (chat, for example), or audio (phone recording, for example) message from a participant into the conversation.
Note: Always use agent versions for production traffic sent to virtual agents. See Versions and environments.
HTTP request
POST https://dialogflow.googleapis.com/v2/{participant=projects/*/locations/*/conversations/*/participants/*}:analyzeContent
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
participant |
Required. The name of the participant this text comes from. Format: Authorization requires the following IAM permission on the specified resource
|
Request body
The request body contains data with the following structure:
JSON representation | |
---|---|
{ "replyAudioConfig": { object ( |
Fields | ||
---|---|---|
replyAudioConfig |
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. |
|
queryParams |
Parameters for a Dialogflow virtual-agent query. |
|
requestId |
A unique identifier for this request. Restricted to 36 ASCII characters. A random UUID is recommended. This request is only idempotent if a |
|
Union field input . Required. The input content. input can be only one of the following: |
||
textInput |
The natural language text to be processed. |
|
eventInput |
An input event to send to Dialogflow. |
Response body
If successful, the response body contains an instance of AnalyzeContentResponse
.
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.