🏢 Business Information
📋 Business Details
📍 Service Area & Travel
💳 Payment Settings
🎨 Performers / Contractors
💰 Service Pricing
🎨 Individual Services
Click any price to edit. Changes auto-save. Durations 1-4hr shown on website; 5-8hr for AI/admin only.
⭐ Value Packages
📅 Scheduling Settings
⏰ Booking Rules
🗺️ Service Regions
💬 SMS / Message Templates
Customize the automated messages sent to customers. Use {{variableName}} for dynamic content.
🔗 Integrations
📱 Vonage (Phone & SMS)
💳 Stripe (Payments)
🔗 N8N Webhooks
👤 Admin Users
Authorized Users
🚗 Artist Dispatch & Scoring
Configure how artists are scored and assigned to bookings. Weights must total 100%.
⚖️ Scoring Weights
Adjust how each factor influences artist selection. Total: 100%
📍 Distance & Travel
🎈 Event Type Multipliers
Adjust priority for different event types. 1.0 = normal priority.
🔔 Regional Notification Routing
Route form submissions, AI call transcripts, booking confirmations, and cancellations to regional sales managers. All Cities recipients get notified for every region. Regional recipients only get their metro area.
📞 Phone Routing
Control how inbound calls are handled — AI agent behavior, who gets called on transfer, and debug options.
🔀 Routing Mode
⭐ On Call
The on-call person always rings first for ALL regions, before regional priorities. Only one person can be on call at a time.
⚙️ Transfer Settings
🎨 Regional Routing Priorities
Set per-region priority for each artist. Lower number = rings first. Leave blank to exclude from that region. Phone numbers come from the Performers tab (read-only here).
💬 Messages
📚 Poppin' Parties TX — System Docs
v1.0.0About This System
The Poppin' Parties TX automation platform handles booking inquiries, automated quoting, Stripe payment link generation, SMS notifications, Google Calendar scheduling, and AI-powered phone support across DFW, Houston, and Austin metro areas.
- Website: poppinpartiestx.com — 280+ SEO landing pages + 6 service pages
- Contact Form: Webhook → N8N → Gmail notification + customer confirmation
- Payment: Stripe Payment Links sent via Vonage SMS
- Scheduling: Google Calendar per performer
- Phone: Vonage + Cartesia AI voice agent for inbound/outbound
- Admin: This portal (admin.poppinpartiestx.com)
🏗️ System Architecture
Data Flow
Customer Journey:
Website Form → N8N Webhook (popn-contact)
OR
Phone Call → Vonage → AI Voice Agent (Cartesia)
↓
┌─────────────────────────────────────┐
│ N8N Workflow Engine │
├─────────────────────────────────────┤
│ POPN-webform (contact form) │
│ POPN-create-booking │
│ POPN-get-slots │
│ POPN-cancel-booking │
│ POPN-payment-link (Stripe) │
│ POPN-stripe-event (payment conf.) │
│ POPN-voice-events │
│ POPN-config (config server) │
└─────────────────────────────────────┘
↓ ↓
Google Calendar Config Server
(per performer) (.POPN-variables.json)
↓
Admin Portal (this app)
- Pricing management
- Performer management
- SMS templates
- Integration config
Tech Stack
| Website | Static HTML/CSS/JS, 280 SEO pages |
| Admin Portal | Vanilla HTML/CSS/JS SPA |
| Config Server | Express.js on port 3002 |
| Workflows | N8N (self-hosted at n8n.optimus.systems) |
| Payments | Stripe Payment Links API |
| SMS | Vonage Messages API |
| Voice AI | Cartesia Line Agent + GROQ LLM |
| Calendar | Google Calendar API (OAuth2) |
💰 Individual Service Pricing
Face Painting OR Balloon Twisting
1 artist provides the service. Same pricing for either service.
Bubble Party
Includes bubble machines, wands & pools. Outdoor recommended.
Caricatures OR Glitter Tattoos
1 artist. ⚠️ Caricatures NOT available in Houston region.
Live Glitter Fashion Drawing
1 artist. Premium service — no 1.5hr or 2.5hr options.
⭐ Value Package Pricing
🚗 Travel & Fee Structure
Travel Fee
- Flat $25 within 80-mile radius
- Radius measured from HQ (14201 Coyote Trail, Haslet TX) or assigned contractor's base location
- Beyond radius: contact for custom quote
Payment Structure
- Deposit: 30% non-refundable (unless Poppin' cancels → full refund)
- Final Balance: Remaining 70% collected 3 days before event
- Method: Stripe Payment Links sent via SMS
🎨 All Services
🗺️ Service Regions
📋 Booking Flow
End-to-End Booking Process
| # | Step | Trigger | Action |
|---|---|---|---|
| 1 | Inquiry | Website form or phone call | N8N receives submission, emails owner + confirms customer |
| 2 | Quote | KateLyn reviews | Send SMS with price breakdown (base + travel) + service menus |
| 3 | Accept | Customer says yes | Send 30% deposit Stripe link via SMS |
| 4 | Booked | Stripe webhook: deposit paid | Confirm booking, create calendar event, assign performer |
| 5 | Reminder | 3 days before event | Send final balance Stripe link + artist info via SMS |
| 6 | Event Day | Final payment confirmed | Send event confirmation + artist contact |
| 7 | Follow-up | 1 day after event | Send Google review request via SMS |
💳 Payment Flow
Two-Stage Stripe Payment Links
Stage 1: Deposit Customer confirms → N8N creates Stripe Payment Link (30%) → Vonage sends SMS with link → Customer pays → Stripe webhook fires checkout.session.completed → N8N triggers "Booked" confirmation + calendar event Stage 2: Final Balance (3 days before event) Scheduled N8N trigger → Creates Stripe link for remaining 70% → Vonage sends SMS with link + artist info → Customer pays → Stripe webhook confirms → event fully paid
💬 SMS Communication Workflows
🔗 N8N Webhooks
💳 Stripe Integration
Setup
- Create Stripe account for Poppin' Parties TX
- Add publishable key + secret key in Integrations tab
- Set up webhook endpoint:
https://n8n.optimus.systems/webhook/popn-stripe-event - Subscribe to event:
checkout.session.completed
Payment Link API
N8N workflow creates payment links dynamically via POST /v1/payment_links with amount, description, and metadata (booking ID, customer name).
📱 Vonage Integration
Phone Number
Vonage number: +1 (972) 777-6725
Capabilities
- SMS: Send/receive text messages (payment links, confirmations, reviews)
- Voice: Inbound call routing to AI agent, outbound lead follow-up
🤖 AI Phone Agent & Phone Routing
Overview
Bella is the Cartesia Line AI voice agent that handles inbound calls on +1 (972) 777-6725. She answers availability questions, quotes prices, creates/cancels bookings, and can transfer callers to team members via sequential ringing.
Capabilities
- Inbound: Answer availability questions, quote prices, take booking details, check calendar
- Booking: Create and cancel bookings via N8N workflows
- Pricing: Real-time quotes for all services and durations (1-8hr events)
- Transfer: Sequential ringing — rings performers in priority order per region
📞 Phone Routing Modes
Control how inbound calls are handled from the Phone Routing tab:
| Mode | Behavior |
|---|---|
| ⏸️ Off | Bella handles calls normally but cannot transfer. No sequential ringing available. |
| 🤖 Normal | Full AI conversation. Bella transfers only when the customer asks or she decides to escalate. |
| 📵 Bypass AI | Skip Bella entirely. All callers go straight to sequential ringing. |
| 🐛 Debug | Only calls from performer phone numbers talk to Bella (with verbose tool output). Everyone else is transferred immediately. |
🔔 Sequential Ringing
When a call is transferred, the system rings team members one at a time:
- On Call performer rings first (if set) — covers ALL regions
- Regional priority performers ring in order (lower number = rings first)
- Performers outside working hours are skipped (if "Respect working hours" is enabled)
- Each performer rings for the configured Max Ring Time before trying the next
- If nobody answers, the customizable No-Answer Message is spoken to the caller
How to Configure
- Go to Phone Routing tab
- Select a routing mode
- Optionally set an On Call performer (rings first for all regions)
- In the Regional Routing Priorities table, set priority numbers per region (1 = rings first, blank = skip)
- Use arrow keys or type a number. Set to 0 or delete to clear a priority.
- Click Save Changes
🔧 Technical Details
- Platform: Cartesia Line SDK v0.2.8 + Groq GPT-OSS (LLM)
- Voice: Jacqueline (Cartesia Sonic 3 TTS + Ink STT)
- Agent ID:
agent_fSTWNXEz2wi7fqNoTEiBAB - Phone: +1 (972) 777-6725 (Vonage Voice API)
- Transfer: Vonage NCCO sequential connect via HMAC-signed answer URL
- Deploy:
cd cartesia-agent && ./deploy.sh
🌐 Landing Pages
Overview
280 auto-generated city+service SEO landing pages across 3 regions. Generated by node generate-seo-pages.js. Do not hand-edit — they are overwritten by the generator.
Core Service Pages
| Page | URL |
|---|---|
| 🏠 Homepage | poppinpartiestx.com |
| 🎨 Face Painting | /face-painting |
| 🎈 Balloon Twisting | /balloon-twisting |
| ✏️ Caricatures | /caricatures |
| ✨ Glitter Tattoos | /glitter-tattoos |
| 🫧 Bubble Party | /bubble-party |
| 📜 Privacy Policy | /privacy-policy |
| 📜 Terms & Conditions | /terms-and-conditions |
📅 Calendar Color Legend
Payment Status Colors
Calendar events automatically change color as payments are received:
| Color | Status | Meaning |
|---|---|---|
| 🟠 Tangerine | Unpaid | New booking — no payment received yet |
| 🟡 Banana | Deposit Paid | 30% deposit received, balance still pending |
| 🟢 Sage | Fully Paid | All payments received (deposit + balance, or full upfront) |
How It Works
- New bookings are created with tangerine (unpaid)
- When Stripe fires
checkout.session.completed, the POPN - Payment Received N8N workflow updates the event color and description - Payment status is only visible to owners in the calendar description (artists see event details only)
- You can also manually record a payment via the webhook (see BOOKING-AUTOMATION-SYSTEM.md)
🔗 External Services & Dashboards
Core Integrations
| Service | Purpose | Dashboard / Docs |
|---|---|---|
| 📱 Vonage | SMS messaging + Voice (phone number: +1 972-777-6725) | dashboard.nexmo.com · Docs |
| 🗣️ Cartesia | AI Voice Agent — STT (Ink) + TTS (Sonic 3) | play.cartesia.ai · Docs |
| ⚡ Groq | LLM inference — fast (gpt-oss-20b) + smart (gpt-oss-120b) | console.groq.com · Docs |
| 💳 Stripe | Payment Links API — deposit + final balance | dashboard.stripe.com · API Docs |
| 🔄 N8N | Workflow automation (self-hosted) | n8n.optimus.systems · Docs |
| 📅 Google Calendar | Per-performer scheduling & availability | calendar.google.com · API Docs |
| 🔐 Google OAuth | Admin portal authentication | GCP Console · Docs |
Infrastructure
| Service | Purpose | URL / Notes |
|---|---|---|
| 🌐 Website | Public-facing site | poppinpartiestx.com |
| 🛡️ Admin Portal | This portal | admin.poppinpartiestx.com |
| ⚙️ Config Server | Express.js API (port 3002) | api.poppinpartiestx.com |
| 🐳 VPS / Docker | Nginx + Traefik hosting | 212.38.95.250 · Docker containers |
| 📊 Google Search Console | SEO monitoring & indexing | search.google.com/search-console |
| 📈 Google Analytics | Website traffic analytics | analytics.google.com |
| 📢 Google Ads | Paid advertising campaigns | ads.google.com |
📱 Admin Portal Guide
Getting Started
- Sign in with an authorized Google account (set in Admin Users tab)
- All changes auto-save after a 1.5s delay or when clicking Save
- The ⚡ indicator shows unsaved changes
Tabs Reference
| 🏢 Business | Company info, address, travel fee, deposit %, payment timing |
| 🎨 Performers | Add/edit performers — name, skills, calendar, working hours, base location |
| 💰 Pricing | Edit all service prices (1-8hr) for individual & packages |
| 📅 Scheduling | Booking rules (advance time, max duration, slot intervals) + regions |
| 💬 SMS Templates | Customize automated messages — use {{variables}} for dynamic content |
| 🔗 Integrations | Vonage, Stripe, N8N webhook URLs |
| 👤 Admin Users | Manage authorized Google accounts + Google OAuth client ID |
| � Dispatch | Scoring weights for performer auto-assignment algorithm |
| 📞 Phone Routing | Routing mode (Off/Normal/Bypass/Debug), on-call, ring priorities, no-answer message |
| 🔔 Notifications | Per-region notification recipients and notification type toggles |
| 💬 Messages | Two-way SMS inbox — view and reply to all customer texts, manage opt-outs |
| �📚 Docs | This documentation section |
💬 Messages & SMS Compliance
Overview
The Messages tab is a two-way SMS inbox showing every text sent to or from +1 (972) 777-6725 — including booking confirmations, payment links, Bella's auto-replies, and customer responses. Admins can manually reply to any active conversation in real time.
📥 What Gets Logged
- Inbound — every SMS from a customer (received via Vonage webhook)
- Outbound — booking confirmations, payment link SMS, reminders (logged by N8N workflows)
- Bella replies — texts sent by the AI voice agent (tagged with 🤖 Bella)
- Admin replies — manual sends from this portal (tagged with admin email)
- Auto-replies — STOP/START/HELP keyword confirmations sent automatically
🚫 SMS Opt-Out Compliance (CTIA / 10DLC)
US carriers require all SMS senders — even transactional — to honor opt-out keywords. Failing to do so risks number suspension and 10DLC campaign revocation.
| Keyword (any of) | Action |
|---|---|
STOP, UNSUBSCRIBE, CANCEL, END, QUIT, STOPALL, OPTOUT | Customer is opted out — auto-confirmation sent — all future sends blocked server-side |
START, UNSTOP, YES, RESUBSCRIBE, OPTIN | Customer is re-subscribed — confirmation sent |
HELP, INFO | Auto-reply with business name, phone, and STOP info |
Disclosure Footer
The first SMS in any new conversation should include: "Reply STOP to opt out, HELP for help. Msg & data rates may apply." This is a CTIA best practice for all commercial SMS.
Using the Messages Tab
- Conversations are listed in the left panel, sorted by most recent activity
- Filters: All · Unread · Active · Opted Out
- Search by customer name, phone, message text, or booking reference
- Click a conversation to view the full thread
- Type a reply at the bottom (Cmd/Ctrl+Enter to send)
- Opted-out conversations are greyed out and the reply box is disabled — server enforces this regardless of UI state
- Manual opt-out: click "🚫 Opt Out" in the thread header (e.g. customer requested verbally)
- Re-enable: click "↻ Re-enable SMS" — only do this with documented customer consent (logged for compliance)
Email Compliance (CAN-SPAM)
Currently all email traffic is internal (notifications to admins/dispatch), so CAN-SPAM does not apply. If customer-facing email is ever added (booking confirmations to customers, marketing newsletters), the system will need:
- Unsubscribe link in every commercial email (10-day honor window)
- Valid physical postal address in footer
- Truthful "From" / subject lines
- The
contact_opt_outstable is already designed with achannelcolumn to support email opt-outs without a migration
⚙️ Config Reference
FastAPI Backend Endpoints
| Endpoint | Method | Auth | Description |
|---|---|---|---|
/api/popn/auth-info/{slug} | GET | None | Google Client ID + allowed emails (for login) |
/api/popn/admin/config/{slug} | GET | Google OAuth | Full config for admin portal |
/api/popn/admin/config/{slug} | POST | Google OAuth | Save config → PostgreSQL |
/api/popn/config/{slug} | GET | X-Internal-Key | Full config for N8N workflows |
/api/popn/routing/{slug}/config | GET | X-Internal-Key | Phone routing mode + performer phones |
/api/popn/transfer/{slug}/initiate | POST | X-Internal-Key | Initiate Vonage call transfer |
/api/popn/transfer/{slug}/answer | GET | HMAC-signed URL | NCCO answer URL for sequential ringing |
/api/popn/notifications/{slug} | GET/PUT | X-Internal-Key | Notification recipient CRUD |
/api/popn/sms/inbound/{slug} | POST | None (Vonage) | Vonage inbound SMS webhook + STOP/HELP handler |
/api/popn/sms/log/{slug} | POST | X-Internal-Key | N8N logs sent SMS to conversation history |
/api/popn/sms/optout-check/{slug}?phone=... | GET | X-Internal-Key | N8N pre-send opt-out check |
/api/popn/admin/sms/conversations/{slug} | GET | Google OAuth | List conversations (admin Messages tab) |
/api/popn/admin/sms/conversations/{slug}/{id}/send | POST | Google OAuth | Admin manual reply (opt-out enforced server-side) |
/api/popn/admin/sms/optouts/{slug} | GET/POST | Google OAuth | List/add opt-outs |
/api/popn/admin/sms/optouts/{slug}/{phone} | DELETE | Google OAuth | Re-enable SMS (with consent) |