🏢 Business Information

📋 Business Details

📍 Service Area & Travel

Service Radius 80 miles

💳 Payment Settings

Deposit Percentage 30%

🎨 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%

25%
20%
20%
10%
10%
15%

📍 Distance & Travel

Teardown + break time (travel time added automatically)
Events within this distance get route bonus

🎈 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

How long to ring each artist before trying the next one
Skip performers outside their configured working hours
Spoken to the caller if nobody picks up

🎨 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

Select a conversation to view messages.

📚 Poppin' Parties TX — System Docs

v1.0.0

About 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

WebsiteStatic HTML/CSS/JS, 280 SEO pages
Admin PortalVanilla HTML/CSS/JS SPA
Config ServerExpress.js on port 3002
WorkflowsN8N (self-hosted at n8n.optimus.systems)
PaymentsStripe Payment Links API
SMSVonage Messages API
Voice AICartesia Line Agent + GROQ LLM
CalendarGoogle 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

#StepTriggerAction
1InquiryWebsite form or phone callN8N receives submission, emails owner + confirms customer
2QuoteKateLyn reviewsSend SMS with price breakdown (base + travel) + service menus
3AcceptCustomer says yesSend 30% deposit Stripe link via SMS
4BookedStripe webhook: deposit paidConfirm booking, create calendar event, assign performer
5Reminder3 days before eventSend final balance Stripe link + artist info via SMS
6Event DayFinal payment confirmedSend event confirmation + artist contact
7Follow-up1 day after eventSend 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:

ModeBehavior
⏸️ OffBella handles calls normally but cannot transfer. No sequential ringing available.
🤖 NormalFull AI conversation. Bella transfers only when the customer asks or she decides to escalate.
📵 Bypass AISkip Bella entirely. All callers go straight to sequential ringing.
🐛 DebugOnly 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:

  1. On Call performer rings first (if set) — covers ALL regions
  2. Regional priority performers ring in order (lower number = rings first)
  3. Performers outside working hours are skipped (if "Respect working hours" is enabled)
  4. Each performer rings for the configured Max Ring Time before trying the next
  5. If nobody answers, the customizable No-Answer Message is spoken to the caller

How to Configure

  1. Go to Phone Routing tab
  2. Select a routing mode
  3. Optionally set an On Call performer (rings first for all regions)
  4. In the Regional Routing Priorities table, set priority numbers per region (1 = rings first, blank = skip)
  5. Use arrow keys or type a number. Set to 0 or delete to clear a priority.
  6. 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.

📄280Total Pages
🏙️60Cities
🎨6Services
🗺️3Regions

Core Service Pages

PageURL
🏠 Homepagepoppinpartiestx.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:

ColorStatusMeaning
🟠 TangerineUnpaidNew booking — no payment received yet
🟡 BananaDeposit Paid30% deposit received, balance still pending
🟢 SageFully PaidAll 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

ServicePurposeDashboard / Docs
📱 VonageSMS messaging + Voice (phone number: +1 972-777-6725)dashboard.nexmo.com · Docs
🗣️ CartesiaAI Voice Agent — STT (Ink) + TTS (Sonic 3)play.cartesia.ai · Docs
GroqLLM inference — fast (gpt-oss-20b) + smart (gpt-oss-120b)console.groq.com · Docs
💳 StripePayment Links API — deposit + final balancedashboard.stripe.com · API Docs
🔄 N8NWorkflow automation (self-hosted)n8n.optimus.systems · Docs
📅 Google CalendarPer-performer scheduling & availabilitycalendar.google.com · API Docs
🔐 Google OAuthAdmin portal authenticationGCP Console · Docs

Infrastructure

ServicePurposeURL / Notes
🌐 WebsitePublic-facing sitepoppinpartiestx.com
🛡️ Admin PortalThis portaladmin.poppinpartiestx.com
⚙️ Config ServerExpress.js API (port 3002)api.poppinpartiestx.com
🐳 VPS / DockerNginx + Traefik hosting212.38.95.250 · Docker containers
📊 Google Search ConsoleSEO monitoring & indexingsearch.google.com/search-console
📈 Google AnalyticsWebsite traffic analyticsanalytics.google.com
📢 Google AdsPaid advertising campaignsads.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

🏢 BusinessCompany info, address, travel fee, deposit %, payment timing
🎨 PerformersAdd/edit performers — name, skills, calendar, working hours, base location
💰 PricingEdit all service prices (1-8hr) for individual & packages
📅 SchedulingBooking rules (advance time, max duration, slot intervals) + regions
💬 SMS TemplatesCustomize automated messages — use {{variables}} for dynamic content
🔗 IntegrationsVonage, Stripe, N8N webhook URLs
👤 Admin UsersManage authorized Google accounts + Google OAuth client ID
DispatchScoring weights for performer auto-assignment algorithm
📞 Phone RoutingRouting mode (Off/Normal/Bypass/Debug), on-call, ring priorities, no-answer message
🔔 NotificationsPer-region notification recipients and notification type toggles
💬 MessagesTwo-way SMS inbox — view and reply to all customer texts, manage opt-outs
�📚 DocsThis 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, OPTOUTCustomer is opted out — auto-confirmation sent — all future sends blocked server-side
START, UNSTOP, YES, RESUBSCRIBE, OPTINCustomer is re-subscribed — confirmation sent
HELP, INFOAuto-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

  1. Conversations are listed in the left panel, sorted by most recent activity
  2. Filters: All · Unread · Active · Opted Out
  3. Search by customer name, phone, message text, or booking reference
  4. Click a conversation to view the full thread
  5. Type a reply at the bottom (Cmd/Ctrl+Enter to send)
  6. Opted-out conversations are greyed out and the reply box is disabled — server enforces this regardless of UI state
  7. Manual opt-out: click "🚫 Opt Out" in the thread header (e.g. customer requested verbally)
  8. 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_outs table is already designed with a channel column to support email opt-outs without a migration

⚙️ Config Reference

FastAPI Backend Endpoints

EndpointMethodAuthDescription
/api/popn/auth-info/{slug}GETNoneGoogle Client ID + allowed emails (for login)
/api/popn/admin/config/{slug}GETGoogle OAuthFull config for admin portal
/api/popn/admin/config/{slug}POSTGoogle OAuthSave config → PostgreSQL
/api/popn/config/{slug}GETX-Internal-KeyFull config for N8N workflows
/api/popn/routing/{slug}/configGETX-Internal-KeyPhone routing mode + performer phones
/api/popn/transfer/{slug}/initiatePOSTX-Internal-KeyInitiate Vonage call transfer
/api/popn/transfer/{slug}/answerGETHMAC-signed URLNCCO answer URL for sequential ringing
/api/popn/notifications/{slug}GET/PUTX-Internal-KeyNotification recipient CRUD
/api/popn/sms/inbound/{slug}POSTNone (Vonage)Vonage inbound SMS webhook + STOP/HELP handler
/api/popn/sms/log/{slug}POSTX-Internal-KeyN8N logs sent SMS to conversation history
/api/popn/sms/optout-check/{slug}?phone=...GETX-Internal-KeyN8N pre-send opt-out check
/api/popn/admin/sms/conversations/{slug}GETGoogle OAuthList conversations (admin Messages tab)
/api/popn/admin/sms/conversations/{slug}/{id}/sendPOSTGoogle OAuthAdmin manual reply (opt-out enforced server-side)
/api/popn/admin/sms/optouts/{slug}GET/POSTGoogle OAuthList/add opt-outs
/api/popn/admin/sms/optouts/{slug}/{phone}DELETEGoogle OAuthRe-enable SMS (with consent)