Loading build plan…
Loading build plan…
Help customers ask questions and keep replies organized. Explore a plan for your own support tool.
Built with
Visitor widget on the left, agent inbox on the right. Type as the visitor — the message lands in the inbox. Apply AI suggestions, tag, snooze, close. Real-time round-trip.
Live mock — same UX you ship after pasting PROMPT.md into Claude Code.
Same e-commerce support UX. Different ownership model. Four things that compound once your ticket volume grows.
| Comparison axis | Gorgias | Need for Build build plan |
|---|---|---|
| Pricing | $10–360 per month + per-ticket overage. Surprise bills on Black Friday. | Free forever. Pay only your own hosting and Anthropic API calls. |
| Data ownership | Their cloud holds your order history mirror. | Your Supabase project. Direct Shopify webhooks. Your data, your retention. |
| Privacy | Their compliance posture covers your customers. | RLS-scoped per workspace. PII only goes through your infra. |
| Extensibility | Their macros, their automations, their AI flavor. | Full Next.js + Realtime. Custom AI tone, custom routing, custom integrations — today. |
Every file the build plan ships, with size and one-line description. Download once, build forever.
CLAUDE.mdProject config for Claude Code — tech stack, commands, code style, critical rules. Under 100 lines, read first.
ARCHITECTURE.mdDrizzle schema for conversations, messages, contacts, agents, tags. Widget iframe protocol, Anthropic suggestion flow, ticket lifecycle.
PRD.md13 features (F1–F13): widget customization, agent inbox, AI suggestions, internal notes, tags, SLA tracking.
SECURITY.mda systematic check of how apps like yours get attacked, the ten most common ways apps get broken into, GDPR data inventory, security headers config.
MARKETING.mdPositioning vs. category leader, persona, GTM phases, channel strategy, growth loops.
PROMPT.md7 sequential steps: foundation → DB schema + RLS + Realtime + pgcrypto → auth + onboarding → widget iframe + loader.js + visitor sessions → agent inbox + Realtime CDC → Shopify integration → AI suggested replies + tags + SLA + CSAT + billing + polish.
ARCHITECTURE_CROSSCHECK.mdSecond-opinion architecture review: GPT + Gemini independently critique the plan, consolidated into confirmations, corrections, and concrete diffs.
api-guide.htmlZero-jargon visual guide (opens in your browser): create accounts, get API keys, fill .env, push to GitHub, deploy on Vercel.
lib/mock/index.tsTyped mock dataset — click through the full UI with realistic data before connecting real services.
assets/manifest.jsonMachine-readable package inventory with generation timestamps.
Supabase Realtime + Anthropic Haiku + iframe widget. Brandable per workspace.
The tools this build plan uses — your AI coding tool sets them up for you.
Agent inbox SSR-fast. Public widget served as a tiny iframe-embedded route.
Visitor ↔ agent message stream. Postgres CDC pushes to both ends without polling.
Conversations, messages, contacts, tickets — indexed for inbox filters (open, mine, snoozed).
Suggested replies stream while agent reads. Tone match to past replies in same conversation.
Agent dashboard actions: assign, snooze, close, tag, internal note.
Brandable widget colors via runtime CSS vars. Agent UI fixed dark theme.
Agent inbox SSR-fast. Public widget served as a tiny iframe-embedded route.
Visitor ↔ agent message stream. Postgres CDC pushes to both ends without polling.
Conversations, messages, contacts, tickets — indexed for inbox filters (open, mine, snoozed).
Suggested replies stream while agent reads. Tone match to past replies in same conversation.
Agent dashboard actions: assign, snooze, close, tag, internal note.
Brandable widget colors via runtime CSS vars. Agent UI fixed dark theme.
Start from e-com support, end up shipping sales chat, onboarding bot, internal IT desk.
widget → store front + order lookup · suggested replies grounded on shipping policy · auto-resolve "where is my order"
widget → high-intent pages only · route to AE via round-robin · auto-create lead in your CRM
widget → in-app · scripted flow first, agent handoff fallback · own the playbook code
widget → SCIM-only auth · ticket types: bug/request/access · escalation policy + your SLA
widget → gated by user tag · routes to dedicated agent · all transcripts in your warehouse
Every directory, every route, every migration. What you'll see right after `unzip`.
Every folder and file you'd get, named exactly as they'll appear on your computer.
customer-support-widget/
├── CLAUDE.md
├── PROMPT.md
├── README.md
├── ARCHITECTURE.md
├── PRD.md
├── SECURITY.md
├── MARKETING.md
├── design-tokens.css
├── logo.svg
├── .env.example
├── next.config.ts
├── tailwind.config.ts
├── drizzle.config.ts
├── tsconfig.json
├── package.json
├── app/
│ ├── layout.tsx
│ ├── (agent)/
│ │ ├── inbox/page.tsx
│ │ ├── conversations/[id]/page.tsx
│ │ ├── contacts/{,[id]}/page.tsx
│ │ ├── tags/page.tsx
│ │ └── settings/{widget,team,ai}/page.tsx
│ ├── (widget)/embed/[workspaceId]/
│ │ └── page.tsx
│ └── api/
│ ├── trpc/[trpc]/route.ts
│ ├── widget/{init,messages}/route.ts
│ └── ai/suggest/route.ts
├── components/
│ ├── widget/{launcher,panel,message-bubble,typing}.tsx
│ ├── inbox/{list,filters,assignee-picker}.tsx
│ ├── ai/{suggestion-tray,context-badge}.tsx
│ └── ui/
├── server/api/routers/{conversation,message,contact,agent,tag,ai}.ts
└── public/widget-loader.js
├── lib/
│ ├── env.ts
│ ├── supabase/{client,server,admin}.ts
│ ├── auth/helpers.ts
│ └── rate-limit.ts
├── hooks/
├── types/
├── middleware.ts
├── tests/e2e/
└── supabase/migrations/
├── 0001_initial.sql
├── 0002_rls_policies.sql
└── 0003_indexes.sqlEach one works the same way: paste PROMPT.md into your AI coding tool and launch.
Notion-inspired
Notion-style workspace, code-owned. Fork into wiki, KB, CRM, recipe vault, project hub.
View build plan →Slack-inspired
Channels + DM + threads + realtime presence. Fork into customer chat, community platform, internal team tool.
View build plan →Cal.com-inspired
Cal.com-style scheduling, code-owned. Self-host multi-host bookings + Stripe payments. Fork into consultations, classes, restaurant reservations.
View build plan →Linktree-inspired
Personalized bio page + click tracking + UTM + theme presets. Fork into creator landing, portfolio, event page, app smart-link.
View build plan →Mailchimp-inspired
List management + drag-drop editor + automation triggers. Fork into newsletter, drip campaigns, transactional service.
View build plan →Zapier-inspired
Zapier-style automation builder, code-owned. Trigger nodes + action nodes + run history. Fork into approval flows, lead routing, sync jobs.
View build plan →Loom-inspired
Loom-style async video, code-owned. Record + chunked upload + share link + viewer analytics. Fork into tutorial vault, sales demos, internal training.
View build plan →Hubspot-inspired
Contacts + deals + pipeline stages + email tracking + activity log. Fork into B2B CRM, partner pipeline, investor relations.
View build plan →Patagon.ai-inspired
WhatsApp AI lead qualification, code-owned. Conversational qualifier + Meta CAPI + Google Calendar + CRM sync. Fork into automotive, real-estate, education, healthcare funnels.
View build plan →