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 opens a ticket form for the user to review and submit.
Key Features
- Create support tickets from conversation context
- Escalate to human support teams
- Link tickets to their conversation
- 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
Per-Agent Configuration
To customize the ticketing tool for a specific agent:- Navigate to AI Studio → Tools
- Click Create Tool
- Select ago_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: When the agent should use this tool
- Save the tool.
- Assign the tool to your agent in AI Studio → Agents → [Agent Name] → Tools.
ago_ticketing call itself takes no arguments.
Ticket Form Fields
Standard Fields
The ticket form settings control which standard fields are shown:Custom Fields
Add custom fields to your ticket form based on your ticketing system needs. For example:
Configure which fields are required in the ticket form settings.
Ticket Creation Flow
When the agent opens the ticket form, the chat may also display an accompanying text response. The user reviews and submits the form to create the ticket.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 supports 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, select Embedded Form as the form mode
- Paste the external form HTML/script in the Embed HTML Code field
- Optionally add a Description shown above the form
Integration with Ticketing Systems
Zendesk Integration
Connect to Zendesk for ticket creation:- On the ticket forms page, select Zendesk as the active ticketing system and use Configure ticketing system to enter its connection settings
- Map ticket fields to Zendesk fields
- If you use automatic ticket creation, optionally set an assignee email for those tickets
HelpScout Integration
Connect to HelpScout:- On the ticket forms page, select HelpScout as the active ticketing system and use Configure ticketing system.
- Enter the OAuth2 App ID and OAuth2 App secret from your HelpScout application.
- Enter the Mailbox ID where tickets should be created and save the settings.
Internal Ticketing
Use AGO’s built-in ticketing without external integration:- Tickets stored in AGO database
- Manage via admin interface
- Export to CSV
Conversation Context
Tickets created from a conversation are linked to that conversation. Their private comment can include: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 ticket form field configuration
- Check default values
- Verify mapping rules in connector
API Reference
For programmatic access, see:- Public API v1 Reference - Tool management and read-only ticket access
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
