{
 "schema_version": 1,
 "generated": "2026-11-09",
 "id": "dottxt-ai-outlines--turn-support-emails-into-tickets-with-outlines",
 "repo": "dottxt-ai/outlines",
 "repo_url": "https://github.com/dottxt-ai/outlines",
 "repo_slug": "dottxt-ai-outlines",
 "title": "Turn support emails into structured tickets",
 "page_title": "How to turn support emails into structured tickets with Outlines",
 "summary": "Define a ServiceTicket schema and have the model fill it from a free-form customer email, then route on the fields.",
 "who": "A support or ops engineer automating triage.",
 "problem": "Free-form emails need a priority, category and escalation flag before routing.",
 "outcome": "A validated ticket object you can send to a manager alert or a queue.",
 "steps": [
  "Install the library with `pip install outlines`",
  "Connect a model with Outlines.from_transformers as in the README, using microsoft/Phi-3-mini-4k-instruct",
  "Define a ServiceTicket Pydantic model with priority, category, requires_manager, summary and action_items",
  "Call the model with the prompt and ServiceTicket, parse with ServiceTicket.model_validate_json, and alert a manager when priority is urgent"
 ],
 "agent_prompt": "Using dottxt-ai/outlines, install it with `pip install outlines` and build the ServiceTicket triage example for emails in <my inbox export>, printing the parsed tickets.",
 "agents": [
  "claude-code",
  "codex",
  "cursor",
  "gemini-cli"
 ],
 "difficulty": "Intermediate",
 "time": "1 hour",
 "basis": "readme",
 "caveat": "The README example runs a transformers model with device_map set to auto, so a GPU helps.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "python",
 "requirements": [
  "Python with pip; install with `pip install outlines`",
  "A model backend, such as a Hugging Face transformers model, as in the README quickstart",
  "Pydantic for typed schemas"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "privacy",
   "notice": "Customer emails go to whichever model backend you connect, so use a local model if the messages are sensitive."
  }
 ],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/dottxt-ai-outlines/turn-support-emails-into-tickets-with-outlines/",
 "md": "https://dedupedai.com/use-cases/dottxt-ai-outlines/turn-support-emails-into-tickets-with-outlines/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/dottxt-ai-outlines--turn-support-emails-into-tickets-with-outlines.json",
 "api_version": "v1"
}
