A lightweight Customer Support Copilot for agents.
- Paste a ticket conversation
- Get a short summary
- Get a suggested reply (tone: professional / friendly / firm)
- Get extracted fields (issue type, priority, next action, optional order id)
- Web + API: Next.js (App Router) on Vercel
- LLM: OpenAI API
- Validation: Zod
pnpm installCreate apps/web/.env.local:
OPENAI_API_KEY=your_key_here
OPENAI_MODEL=gpt-4o-miniRun:
pnpm -C apps/web devOpen:
- Import the repo into Vercel
- Set Root Directory to
apps/web - Add env vars:
OPENAI_API_KEYOPENAI_MODEL(optional)
That’s it ✅
The UI calls a built-in API route:
POST /api/copilot/draft
Example body:
{
"ticket": {
"subject": "Order delayed",
"messages": [
{ "from": "customer", "text": "My order has not arrived yet. Order #A10293." }
]
},
"tone": "professional"
}If OpenAI quota/billing isn’t enabled, the API will return a safe fallback response and include an _meta error field.