Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class Action.
Actions to take, including agent action and system action (automation).
Generated from protobuf message google.cloud.dialogflow.v2.GuidanceInstruction.Action
Namespace
Google \ Cloud \ Dialogflow \ V2 \ GuidanceInstructionMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ description |
string
Required. Description of action item. It can be a agent action (e.g. "Send a message to the customer", "greet the customer") or system action (e.g. "Update the ticket", "Create a task", "cancel the order"). |
getDescription
Required. Description of action item. It can be a agent action (e.g.
"Send a message to the customer", "greet the customer") or system action (e.g. "Update the ticket", "Create a task", "cancel the order").
| Returns | |
|---|---|
| Type | Description |
string |
|
setDescription
Required. Description of action item. It can be a agent action (e.g.
"Send a message to the customer", "greet the customer") or system action (e.g. "Update the ticket", "Create a task", "cancel the order").
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|