
The problem
Routing a support ticket means reading it, deciding what the customer wants, and pulling out the one detail the resolution needs. An LLM does this fluently, but every ticket costs a model call, takes seconds, and comes back with no confidence to decide whether a human should look.
How it works
The Aito side is two _predict calls over past resolutions: the intent, with its $why, and then the parameter that intent needs. The LLM side is one structured call to a live model. The page runs both on the same ticket and shows the answers, the latency of each, the LLM's tokens and cost, and the Aito column's calibrated $p.
The $p is what makes the Aito answer usable for automation: confident reads resolve, uncertain ones go to a person with the tentative answer attached.
For the full architecture, see the technology overview. For the broader narrative across multiple use cases, read The Predictive Application.
See it live
This use case runs in the 🤖 Agent demo today. Click through to the live application and inspect the queries that produce the result.
Build it with Claude Code
Paste this prompt into Claude Code, or another coding agent, in your own codebase. It runs Aito locally from the Docker image, reads the API docs written for agents, and follows a working reference implementation.
Add suggested answers to this codebase using Aito, a predictive database. The feature: suggest the answer to each incoming ticket from how similar tickets were resolved, with a confidence, for an agent or a person to send. 1. Run Aito locally: `docker pull ghcr.io/aitohq/aito`, then follow https://aito.ai/docker/ to start it with your own API keys (keep them in the environment, never in code). 2. Read https://aito.ai/docs/api/llms.txt for the v2 query shapes before writing any query. 3. Read the use-case guide: https://aito.ai/use-cases/ticket-resolution/ 4. Use this reference implementation as the pattern (schema, data load and queries): https://github.com/AitoDotAI/aito-agent-demo/blob/main/src/support_reply.py and https://github.com/AitoDotAI/aito-agent-demo/blob/main/src/aito_client.py 5. Find the matching tables in this codebase, design the Aito schema for them (links between tables where we have foreign keys), and load a sample. 6. Measure before wiring the UI: hold out recent rows and report how often the item actually chosen is in the top 3, against the order we show today. 7. In the UI, show the ranking as suggestions, with the reasons where the query gives them. Nothing is applied without the user. Ask me before changing anything outside the new feature.



