name: n8n Nervous System — Full Workflow Layer Build

status: COMPLETE — 5 workflow JSONs authored, GHL specs documented, n8n_trigger.py updated, README + WORKFLOW_INDEX created

elestio_hosting: managed, included in stack

n8n_connectivity: Elestio cloud (not localhost — both DOWN as expected)

prior_work_found: n8n_nervous_system.jsonl KG entities (ENT-n8n-001 through 005)

prior_work_found: core/n8n_trigger.py already existed with strong foundation

webhook_path: telnyx-lead

trigger: Telnyx async tool call (capture_lead tool)

connections:
Telnyx webhook IN
Parse payload (JS Code)
GHL create contact (API)
GHL trigger nurture workflow
Telnyx send welcome SMS
PostgreSQL insert lead
Email Kinan if high-value

priority: CRITICAL

webhook_path: ghl-pipeline

trigger: GHL opportunity moves to 'Job Complete' stage

sequence: wait 2h → SMS review request → wait 48h → check click → email follow-up if no click

connections:
GHL pipeline webhook
If job complete check
Extract contact data
Wait 2h
Telnyx SMS
PostgreSQL log
Wait 48h
Check click
Follow-up email

priority: HIGH

webhook_path: lead-nurture-start

T+0: SMS welcome

T+2h: Email with voice demo link

T+24h: SMS check-in

T+72h: Email — George case study

T+7d: SMS final follow-up

queries:
leads 24h
calls 24h
reviews 24h
revenue/stripe 24h

output: HTML email to kinan@agileadapt.com

schedule: Every 15 minutes

source: PostgreSQL tradie_leads table (status='pending')

ai_model: google/gemini-flash-1.5 via OpenRouter

rate_limit: 30s between sends

workflows_documented:
New Lead → Assign → Nurture
Call Booked → Reminder Sequence
Job Complete → Review Request
No-Show → Re-engagement

pipeline_stages:
New Lead
Voice Engaged
Replied
Demo Booked
No-Show
Demo Done
Proposal Sent
Won
Lost

webhooks_needed: ghl-contact-created ghl-pipeline ghl-appointment ghl-sms-reply

changes: Updated telnyx-lead webhook path to /webhook/telnyx-lead (matching new workflow), added lead-nurture endpoint, added start_lead_nurture_sequence() and trigger_review_request() convenience functions

next_actions: Import 5 workflow JSONs into n8n (https://n8n-genesis-u50607.vm.elestio.app)

next_actions: Configure n8n credentials (PostgreSQL, GHL, Telnyx, OpenRouter, SMTP)

next_actions: Set n8n environment variables (TELNYX_PHONE_NUMBER, GOOGLE_REVIEW_LINK, etc)

next_actions: Configure Telnyx capture_lead tool webhook_url to point to telnyx-lead webhook

next_actions: Configure GHL webhooks on pipeline stage changes

next_actions: Run PostgreSQL migrations to create required tables

next_actions: Run n8n_trigger.py self-test: python core/n8n_trigger.py

type: EXTENDS

target: ENT-telnyx-direct


name: GHL Workflow Architecture — ReceptionistAI

location_id: SWdaQpAVAtRigYcMfder

pipeline_name: ReceptionistAI Sales Pipeline

integration_pattern: n8n orchestrates → GHL API called → GHL native workflows execute sequences

critical_config: GHL webhook on 'Job Complete' stage → n8n /webhook/ghl-pipeline → 2h wait → Telnyx SMS review request


name: MCTB 5-Touch Nurture Sequence — ReceptionistAI

sequence_name: MCTB Lead Nurture

duration: 7 days

channels: SMS Email SMS Email SMS

case_study: George's Plumbing Brisbane — 47 calls handled, 12 bookings, zero extra staff cost

python_trigger: from core.n8n_trigger import start_lead_nurture_sequence

brand_compliance: Professional Australian voice — no G'day, no slang, warm and clear per Rule 13