Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class AutomatedAgentConfig.
Defines the Automated Agent to connect to a conversation.
Generated from protobuf message google.cloud.dialogflow.v2.AutomatedAgentConfig
Namespace
Google \ Cloud \ Dialogflow \ V2Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ agent |
string
Required. ID of the Dialogflow agent environment to use. This project needs to either be the same project as the conversation or you need to grant |
getAgent
Required. ID of the Dialogflow agent environment to use.
This project needs to either be the same project as the conversation or you
need to grant service-<Conversation Project
Number>@gcp-sa-dialogflow.iam.gserviceaccount.com
the Dialogflow API
Service Agent
role in this project.
- For ES agents, use format:
projects/<Project ID>/locations/<Location ID>/agent/environments/<Environment ID or '-'>
. If environment is not specified, the defaultdraft
environment is used. Refer to DetectIntentRequest for more details. - For CX agents, use format
projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment ID or '-'>
. If environment is not specified, the defaultdraft
environment is used.
Returns | |
---|---|
Type | Description |
string |
setAgent
Required. ID of the Dialogflow agent environment to use.
This project needs to either be the same project as the conversation or you
need to grant service-<Conversation Project
Number>@gcp-sa-dialogflow.iam.gserviceaccount.com
the Dialogflow API
Service Agent
role in this project.
- For ES agents, use format:
projects/<Project ID>/locations/<Location ID>/agent/environments/<Environment ID or '-'>
. If environment is not specified, the defaultdraft
environment is used. Refer to DetectIntentRequest for more details. - For CX agents, use format
projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment ID or '-'>
. If environment is not specified, the defaultdraft
environment is used.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |