Skip to content

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Support Copilot Agent 🤖💬

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)

Tech Stack

  • Web + API: Next.js (App Router) on Vercel
  • LLM: OpenAI API
  • Validation: Zod

Local Development

1) Install

pnpm install

2) Web + API (single app)

Create apps/web/.env.local:

OPENAI_API_KEY=your_key_here
OPENAI_MODEL=gpt-4o-mini

Run:

pnpm -C apps/web dev

Open:

Deploy (Vercel)

  1. Import the repo into Vercel
  2. Set Root Directory to apps/web
  3. Add env vars:
    • OPENAI_API_KEY
    • OPENAI_MODEL (optional)

That’s it ✅

API

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"
}

Notes

If OpenAI quota/billing isn’t enabled, the API will return a safe fallback response and include an _meta error field.

About

Customer-support copilot: paste a ticket thread, get a summary, a suggested reply in a chosen tone (professional / friendly / firm), and extracted fields - issue type, priority, next action, order id. Next.js App Router on Vercel, OpenAI, Zod-validated.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages