Smart Search
gorgias_smart_searchSearch Gorgias tickets, customers, and views by order number, email, name, or keyword. Use search_type to disambiguate numeric queries between ticket IDs and order numbers.
Instructions
Intelligent search across tickets, customers, and views. Use the search_type parameter when intent is clear from context (especially for order numbers vs ticket IDs). Auto-detection handles emails, topic keywords, view names, and customer names well, but ambiguous numeric queries (e.g. '23151' could be a Gorgias ticket ID or a Shopify order number) need search_type to disambiguate. Order number search uses Gorgias server-side full-text search across ticket subjects, messages, and metadata. Use gorgias_smart_get_ticket to view full conversation details for any ticket found.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max tickets to return (default: 30) | |
| query | Yes | The search query. What this means depends on search_type: for 'order_number' pass the order/reference number (e.g. '23151', 'ORD5356', '#ORD-5356'), for 'ticket_id' pass the Gorgias ticket ID, for 'email' pass the customer email, for 'auto' (default) pass any query and the tool will detect intent. | |
| status | No | Filter results by ticket status (applied client-side) | |
| end_date | No | ISO date (YYYY-MM-DD) — only return tickets created on or before this date | |
| start_date | No | ISO date (YYYY-MM-DD) — only return tickets created on or after this date | |
| search_type | No | Explicitly set the search strategy. 'order_number' — search by order/reference number. 'ticket_id' — fetch by Gorgias ticket ID. 'email' — find by customer email. 'customer_name' — fuzzy search by customer name. 'keyword' — search ticket subjects/excerpts. 'view' — find tickets in a named view. 'auto' (default) — auto-detect intent from query format. |