Support ticket
n8n/workflows/support-ticket.json
Webhook → AI Lab drafts reply → pending approval → Gmail / outbox
API: POST /api/automation/support
Use when: Customer support tickets that need a human gate before send
Orchestration
n8n is the trigger and integration layer. AI Lab is the brain. Import the templates below into Docker n8n, point webhooks at your Next.js APIs, then review drafts in Approvals.
Trigger (webhook / schedule / Gmail)
│
▼
n8n workflow ──HTTP──► AI Lab API (Groq + Zod)
│ │
│ ▼
│ draft / extract
│ │
└──────────────► /approve (human edit)
│
▼
Gmail or local outboxn8n/workflows/support-ticket.json
Webhook → AI Lab drafts reply → pending approval → Gmail / outbox
API: POST /api/automation/support
Use when: Customer support tickets that need a human gate before send
n8n/workflows/email-automation.json
Webhook → structured email draft → optional requireApproval
API: POST /api/automation/email
Use when: Outbound campaigns or follow-ups with Zod-validated JSON
n8n/workflows/crm-lead.json
Webhook → extract lead fields → save to local CRM store
API: POST /api/automation/crm
Use when: Inbound lead text that should become a CRM row
n8n/workflows/meeting-summary.json
Webhook → summarize transcript → tasks list
API: POST /api/automation/meeting
Use when: Meeting notes / call transcripts
docker compose -f n8n/docker-compose.yml up -dn8n/workflows/AI_LAB_BASE_URL (default: the live app https://ai-lab-alpha-five.vercel.app) and send header x-practice-key. Override with AI_LAB_BASE_URL=http://host.docker.internal:3001 to target local dev.Full notes: n8n/DOCKER.md and n8n/README.md in the repo.