Overview
Tool Name:ago_ticketing
The ticketing tool provides a direct escalation path from AI conversations to human support. When an agent cannot resolve an issue or a user requests human assistance, this tool creates a ticket with full conversation context.
Key Features
- Create support tickets from conversation context
- Escalate to human support teams
- Attach full conversation history to tickets
- Integrate with external ticketing systems (Zendesk, HelpScout)
- Customizable ticket forms and fields
- Priority and category assignment
When to Use
The ticketing tool should be triggered when:Configuration
Global Settings
Configure the ticketing tool system-wide via backend configuration:- Add ticketing tool to all agents: Automatically include this tool for every agent
- Default tool description: The prompt that tells agents when to use the ticketing tool
Default Tool Description
Per-Agent Configuration
To customize the ticketing tool for a specific agent:- Navigate to AI Studio → Tools
- Click Create Tool
- Select Ticketing as the tool type
- Configure the tool:
- Name: Internal identifier (e.g., “support_escalation”)
- Display Name: User-facing name (e.g., “Contact Support”)
- Description: Brief description for the agent
- Prompt: When the agent should use this tool
- Define the Input Schema with custom fields:
- Subject (required)
- Priority (optional: low, normal, high, urgent)
- Category (optional: based on your support categories)
- Click Save
- Assign the tool to your agent in AI Studio → Agents → [Agent Name] → Tools
Input Schema
Standard Fields
Custom Fields
Add custom fields based on your ticketing system needs. When editing the tool’s input schema, you can add fields such as:
Each field can be configured as required or optional, with default values and descriptions to guide the agent.
Ticket Creation Flow
AI Pre-Fill
The ticketing tool can extract ticket information from the conversation using AI. When a ticket form is configured with pre-fillable fields, the system automatically generates a prompt that instructs the LLM to extract values for those fields from the conversation.How It Works
- Admin marks specific form fields as AI pre-fill enabled in the ticket form configuration
- When the agent triggers the ticketing tool, the system builds a dynamic extraction prompt listing all pre-fillable fields with their types, options, and validation rules
- The LLM extracts values from the conversation and pre-fills the form
- The user reviews and submits the form with pre-filled values
Supported Field Types
AI pre-fill works with all custom field types: text, textarea, tagger, multiselect, checkbox, integer, and regexp-validated fields. For fields with predefined options (tagger, multiselect), the LLM is given the available choices to select from.Custom Extraction Instructions
Each ticket form has an optional System Prompt field where you can add custom extraction instructions. For example: “Always extract reproduction steps if the user describes a bug” or “Mark priority as High when the user mentions the word urgent.”Embedded Forms
Ticket forms support two display modes:Configuring Embedded Forms
- In the ticket form settings, set Mode to Embed
- Paste the external form HTML/script in the Embed HTML field
- Optionally add an Embed Description shown above the form
Integration with Ticketing Systems
Zendesk Integration
Connect to Zendesk for ticket creation:- Configure Zendesk connector in Settings → Ticketing
- Map ticket fields to Zendesk fields
- Configure assignee rules
HelpScout Integration
Connect to HelpScout:- Configure HelpScout connector
- Map conversation to HelpScout conversation
- Set mailbox assignment
Internal Ticketing
Use AGO’s built-in ticketing without external integration:- Tickets stored in AGO database
- Manage via admin interface
- Export to CSV/JSON
Conversation Context
When a ticket is created, the tool automatically includes:Best Practices
Prompt Engineering
Write clear escalation triggers in the agent’s prompt:User Experience
- Confirm before creating: Always verify with the user
- Set expectations: Provide estimated response times
- Provide reference: Give ticket number for tracking
- Offer alternatives: Suggest self-service options first
Quality Control
- Rich context: Include all relevant details
- Clear categorization: Use accurate priority and category
- Avoid duplicates: Check for existing tickets
- Follow up: Track resolution rates
Troubleshooting
Issue: Tickets not being created
Issue: Tickets not being created
Solutions:
- Verify ticketing tool is assigned to agent
- Check external ticketing credentials
- Review tool logs for errors
- Verify user has ticket creation permissions
Issue: Missing conversation context
Issue: Missing conversation context
Solutions:
- Check thread ID is being passed correctly
- Verify conversation history storage
- Review ticket connector configuration
Issue: Wrong assignee or priority
Issue: Wrong assignee or priority
Solutions:
- Review input schema configuration
- Check default values
- Verify mapping rules in connector
API Reference
For programmatic access, see:- Public API v1 Reference - Tool management and ticket creation
Related Documentation
- Tools Description Guide - Best practices for tool descriptions
- Ticketing Overview - Ticketing system setup
- Tools Overview - Tool configuration
- Zendesk Integration - Zendesk setup
- HelpScout Integration - HelpScout setup
