Beacon AI is a real-time support operations demo for an imaginary health center.
It lets users trigger realistic customer/patient scenarios and watch how inquiries are triaged, resolved, or escalated in real time.
- Frontend: Next.js (App Router), React, Tailwind CSS, shadcn/ui
- Backend / DB: Convex (queries, mutations, actions, workflows, realtime subscriptions)
- Auth: Clerk
- AI:
@convex-dev/agentwith Anthropic models - Workflow orchestration:
@convex-dev/workflow - Package manager: pnpm
app/- Next.js routes and UIapp/dashboard/customer-view/- trigger scenarios and custom promptsapp/dashboard/admin-view/- live operational columns (Active, Needs Human Review, Escalated, Resolved)
convex/- backend logic and schemaconvex/schema.ts- data model and indexesconvex/inquiries.ts- inquiry lifecycle (create, admin actions, status transitions)convex/agentService.ts- shared agent setup and thread message queryconvex/agents/- specialist agents (triage, scheduling, sales, emergency, retention, order)convex/workflows/inquiry.ts- end-to-end routing and resolution workflowconvex/mockData.ts- seed data for demo scenarios
lib/- shared frontend/backend helpers and scenario config
- Install dependencies:
pnpm install- Create your environment file and add values:
cp .env.local.example .env.localThen fill in your variables in .env.local (for example: Clerk keys, Convex URL/deploy key, Anthropic API key).
- Start Convex dev (backend):
pnpm convex dev- In another terminal, start Next.js:
pnpm dev- Use the Customer view to trigger seeded scenarios or send a custom prompt.
- Use the Admin view to monitor inquiry flow and intervene when needed.
- Inquiries flagged for human review or escalated trigger Slack notifications.