Agent Training
Configure how your AI assistant handles sensitive topics and special situations.
Overview
The Agent Training page lets you define Sensitive Topics — categories of user messages that require special handling. When the AI detects a sensitive topic, it either refuses to answer or hands off to your support team.
Navigate to Agent Training in the admin sidebar to manage sensitive topics.
Sensitive Topics
Define topics that require special handling. Each sensitive topic triggers one of two reactions:
| Reaction | Description |
|---|---|
| Refuse to Answer | AI politely declines to discuss the topic |
| Handoff to Support | AI offers to connect the user with human support |
Built-in Topics
Deway includes two default topics that are always active and cannot be modified:
- Malicious Content — Blocks requests for illegal activities, harassment, prompt injection attempts, and other harmful content. Reaction: Refuse to Answer.
- Human Handoff Request — Detects when users explicitly ask to talk to a human, representative, or live agent. Reaction: Handoff to Support.
Creating Custom Topics
- Navigate to Agent Training
- Click Add Sensitive Topic
- Fill in the topic details
- Click Add Topic
- Click Save Changes at the top of the page
Each custom topic has these fields:
| Field | Required | Description |
|---|---|---|
| Title | Yes | Short name (e.g., "Pricing & Billing") |
| Description | Yes | What triggers this topic — be specific so the AI can detect it accurately |
| Reaction | Yes | Refuse to Answer or Handoff to Support |
| Custom Agent Response | No | Override the default message the AI sends when the topic is detected |
| Examples | No | Up to 10 training examples to improve detection accuracy |
Custom Agent Response
By default, the AI uses a standard response based on the reaction type. You can override this with a custom message.
Example:
I'm still learning and can't directly handle payment questions. Let me connect you with our billing team who can help.
If left empty, the AI uses its default response for the selected reaction.
Training Examples
Examples teach the AI what should and shouldn't trigger the topic. Each example is marked as:
| Case | Description |
|---|---|
| Positive (should trigger) | Messages that SHOULD be caught by this topic |
| Negative (should not trigger) | Similar messages that should be handled normally |
Example for a "Pricing & Billing" topic:
| Example | Case |
|---|---|
| "Can I get a discount?" | Positive |
| "I want a refund" | Positive |
| "How much does the Pro plan cost?" | Negative |
Negative examples are important — they prevent false positives on messages that are similar but shouldn't trigger special handling.
Editing and Deleting Topics
- Click the edit icon on any custom topic to modify it
- Click the delete icon to remove it
- Built-in topics cannot be edited or deleted
Copy to Another Project
If your tenant has multiple projects, you can copy all training configuration from the current project to another:
- Click Copy to another Project in the header
- Select the target project
- Confirm the overwrite
This replaces all training configuration in the target project.
Tips
Test After Changes
After saving changes:
- Open the chat widget on your site
- Send messages that should trigger your topics
- Verify the AI responds with the correct reaction
- Test edge cases with messages that are similar but shouldn't trigger
Use the Chats Page
Review real conversations in the Chats view to:
- Spot topics that need special handling
- Find false positives (topics triggering when they shouldn't)
- Identify gaps where users need support but aren't being routed
Review Regularly
- Review sensitive topics quarterly
- Add new topics as your product evolves
- Adjust examples based on real user messages
Next Steps
- Agent Look & Feel — Customize the widget appearance
- Knowledge Base — Manage documentation sources