# AgentCoachingInstruction

- [JSON representation](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/AgentCoachingInstruction#SCHEMA_REPRESENTATION)
- [DuplicateCheckResult](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/AgentCoachingInstruction#DuplicateCheckResult)
  - [JSON representation](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/AgentCoachingInstruction#DuplicateCheckResult.SCHEMA_REPRESENTATION)
- [DuplicateSuggestion](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/AgentCoachingInstruction#DuplicateSuggestion)
  - [JSON representation](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/AgentCoachingInstruction#DuplicateSuggestion.SCHEMA_REPRESENTATION)
- [TriggerEvent](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/AgentCoachingInstruction#TriggerEvent)

Agent Coaching instructions that customer can configure.

| JSON representation |
|---|
| ``` { "displayName": string, "displayDetails": string, "condition": string, "agentAction": string, "systemAction": string, "duplicateCheckResult": { object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/AgentCoachingInstruction#DuplicateCheckResult`) }, "triggeringEvent": enum (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/AgentCoachingInstruction#TriggerEvent`) } ``` |

| Fields ||
|---|---|
| `displayName` | `string` Optional. Display name for the instruction. |
| `displayDetails` | `string` Optional. The detailed description of this instruction. |
| `condition` | `string` Optional. The condition of the instruction. For example, "the customer wants to cancel an order". If the users want the instruction to be triggered unconditionally, the condition can be empty. |
| `agentAction` | `string` Optional. The action that human agent should take. For example, "apologize for the slow shipping". If the users only want to use agent coaching for intent detection, agentAction can be empty |
| `systemAction` | `string` Optional. The action that system should take. For example, "call GetOrderTime with order_number={order number provided by the customer}". If the users don't have plugins or don't want to trigger plugins, the systemAction can be empty |
| `duplicateCheckResult` | ``object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/AgentCoachingInstruction#DuplicateCheckResult`)`` Output only. Duplication check for the AgentCoachingInstruction. |
| `triggeringEvent` | ``enum (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/AgentCoachingInstruction#TriggerEvent`)`` Optional. The event that should trigger this instruction. If UNSPECIFIED, the instruction triggering will be same as the generator's triggerEvent. |

## DuplicateCheckResult

Duplication check for the suggestion.

| JSON representation |
|---|
| ``` { "duplicateSuggestions": [ { object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/AgentCoachingInstruction#DuplicateSuggestion`) } ] } ``` |

| Fields ||
|---|---|
| `duplicateSuggestions[]` | ``object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/AgentCoachingInstruction#DuplicateSuggestion`)`` Output only. The duplicate suggestions. |

## DuplicateSuggestion

The duplicate suggestion details.

| JSON representation |
|---|
| ``` { "answerRecord": string, "suggestionIndex": integer, "similarityScore": number } ``` |

| Fields ||
|---|---|
| `answerRecord` | `string` Output only. The answer record id of the past duplicate suggestion. |
| `suggestionIndex` | `integer` Output only. The index of the duplicate suggestion in the past suggestion list. |
| `similarityScore` | `number` Output only. The similarity score of between the past and current suggestion. |

## TriggerEvent

The event that should trigger this instruction.

| Enums ||
|---|---|
| `TRIGGER_EVENT_UNSPECIFIED` | Default value for TriggerEvent. |
| `END_OF_UTTERANCE` | Triggers when each chat message or voice utterance ends. |
| `MANUAL_CALL` | Triggers on the conversation manually by API calls. |
| `CUSTOMER_MESSAGE` | Triggers after each customer message. |
| `AGENT_MESSAGE` | Triggers after each agent message. |
| `TOOL_CALL_COMPLETION` | Triggers on tool call completion. |