Reference documentation and code samples for the Google Cloud Ces V1 Client class TriggerAction.
Action that is taken when a certain precondition is met.
Generated from protobuf message google.cloud.ces.v1.TriggerAction
Namespace
Google \ Cloud \ Ces \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ respond_immediately |
TriggerAction\RespondImmediately
Optional. Immediately respond with a preconfigured response. |
↳ transfer_agent |
TriggerAction\TransferAgent
Optional. Transfer the conversation to a different agent. |
↳ generative_answer |
TriggerAction\GenerativeAnswer
Optional. Respond with a generative answer. |
getRespondImmediately
Optional. Immediately respond with a preconfigured response.
| Returns | |
|---|---|
| Type | Description |
TriggerAction\RespondImmediately|null |
|
hasRespondImmediately
setRespondImmediately
Optional. Immediately respond with a preconfigured response.
| Parameter | |
|---|---|
| Name | Description |
var |
TriggerAction\RespondImmediately
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getTransferAgent
Optional. Transfer the conversation to a different agent.
| Returns | |
|---|---|
| Type | Description |
TriggerAction\TransferAgent|null |
|
hasTransferAgent
setTransferAgent
Optional. Transfer the conversation to a different agent.
| Parameter | |
|---|---|
| Name | Description |
var |
TriggerAction\TransferAgent
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getGenerativeAnswer
Optional. Respond with a generative answer.
| Returns | |
|---|---|
| Type | Description |
TriggerAction\GenerativeAnswer|null |
|
hasGenerativeAnswer
setGenerativeAnswer
Optional. Respond with a generative answer.
| Parameter | |
|---|---|
| Name | Description |
var |
TriggerAction\GenerativeAnswer
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getAction
| Returns | |
|---|---|
| Type | Description |
string |
|