TELEGENT AI
Integration Specification
Complete field-level documentation for every form, assessment, calculator, dashboard, and workflow in the Sales Operating System. This document defines the exact data contracts for GoHighLevel, n8n, Twilio, Zoom, Stripe, Google Calendar, Outlook Calendar, and OpenAI integrations.
Table of Contents
1. CRM Field Mapping
Every field captured by TELEGENT AI workflows and their destination in GoHighLevel, Salesforce, and HubSpot. These 46 fields define the complete data contract for CRM synchronization.
| Field Name | Type | GoHighLevel | Source Workflows |
|---|---|---|---|
| firstName | string | contact.first_name | All workflows |
| lastName | string | contact.last_name | All workflows |
| string | contact.email | All workflows | |
| phone | string | contact.phone | All workflows |
| companyName | string | contact.company_name | All workflows |
| assessment_type | string | contact.custom_field.assessment_type | Revenue Recovery Assessment, Automation Readiness, Business Discovery, AI Consultant, ROI Calculator |
| lead_score | number | contact.custom_field.lead_score | Revenue Recovery Assessment, Automation Readiness, Business Discovery, AI Consultant, SmartQuote |
| opportunity_score | number | contact.custom_field.opportunity_score | Revenue Recovery Assessment, AI Consultant, SmartQuote |
| automation_readiness | number | contact.custom_field.automation_readiness | Automation Readiness, AI Consultant, SmartQuote |
| revenue_recovery_score | number | contact.custom_field.revenue_recovery_score | Revenue Recovery Assessment, Revenue Recovery Dashboard |
| lead_leakage_score | number | contact.custom_field.lead_leakage_score | Revenue Recovery Assessment, Revenue Recovery Dashboard |
| revenue_at_risk_monthly | number | contact.custom_field.revenue_at_risk_monthly | Revenue Recovery Assessment, Revenue Recovery Dashboard, AI Consultant, SmartQuote |
| revenue_at_risk_annual | number | contact.custom_field.revenue_at_risk_annual | Revenue Recovery Assessment, Revenue Recovery Dashboard, AI Consultant, SmartQuote |
| recovery_opportunity_monthly | number | contact.custom_field.recovery_opportunity_monthly | Revenue Recovery Assessment, Revenue Recovery Dashboard, AI Consultant, SmartQuote |
| recovery_opportunity_annual | number | contact.custom_field.recovery_opportunity_annual | Revenue Recovery Assessment, Revenue Recovery Dashboard, AI Consultant, SmartQuote |
| industry | string | contact.custom_field.industry | All assessment workflows |
| monthly_leads | string | contact.custom_field.monthly_leads | All assessment workflows |
| avg_customer_value | string | contact.custom_field.avg_customer_value | All assessment workflows |
| current_system | string | contact.custom_field.current_system | Revenue Recovery Assessment, Automation Readiness, AI Consultant |
| biggest_challenge | string | contact.custom_field.biggest_challenge | All assessment workflows |
| recommended_tier | string | contact.custom_field.recommended_tier | Revenue Recovery Assessment, SmartQuote, AI Consultant |
| appointment_date | date | contact.custom_field.appointment_date | Appointment Scheduling |
| appointment_type | string | contact.custom_field.appointment_type | Appointment Scheduling |
| assigned_representative | string | contact.custom_field.assigned_representative | Revenue Recovery Assessment, AI Consultant, SmartQuote |
| tags | array | contact.tags | All workflows |
2. Workflow Integration Specifications
For each frontend workflow, this defines exactly which services are triggered, what data payloads are sent, and which email/SMS templates fire.
Revenue Recovery Assessment
/revenue-recovery-auditForm: IDIR3UIHXVv83LHFaXUyjIntegration Triggers
CRM Fields Sent
firstNamelastNameemailphonecompanyNameindustrymonthly_leadsavg_customer_valuecurrent_systembiggest_challengerevenue_recovery_scorerevenue_at_risk_monthlyrecovery_opportunity_annuallead_scoreEmail Templates
assessment_confirmationassessment_results
SMS Templates
No SMS templates
Zoom & Calendar
No Zoom/Calendar triggers
n8n Workflow
revenue-recovery-audit-processorOpenAI Analysis Context
Analyze this assessment and generate a narrative executive summary with key insights and recommended next steps.
AI Consultant Assessment
/ai-consultantForm: 2T3Rk2Ws7wbPypOjuWqGgIntegration Triggers
CRM Fields Sent
firstNamelastNameemailphonecompanyNameindustrymonthly_leadscurrent_systembiggest_challengebusiness_goalstimelinebudgetautomation_readinessrevenue_recovery_scorelead_scoreopportunity_scoreassigned_representativeEmail Templates
assessment_confirmationassessment_resultsrep_assignment
SMS Templates
assessment_follow_up
Zoom & Calendar
No Zoom/Calendar triggers
n8n Workflow
ai-consultant-processorOpenAI Analysis Context
N/A
Business Discovery Assessment
/interactive-discovery-sessionForm: RMMmQRDhDZoZRNhzM4yTGIntegration Triggers
CRM Fields Sent
firstNamelastNameemailphonecompanyNameindustrynum_locationsmonthly_leadsavg_customer_valuecurrent_crmbiggest_challengebusiness_goalstimelinebudgetautomation_readinessrevenue_recovery_scorelead_leakage_scoreEmail Templates
assessment_confirmationassessment_results
SMS Templates
No SMS templates
Zoom & Calendar
No Zoom/Calendar triggers
n8n Workflow
discovery-session-processorOpenAI Analysis Context
Generate a personalized executive summary and recommended solution package based on this discovery session data.
Industry ROI Calculator
/roi-calculatorForm: PgZQf3cMiytuAYtdJx-arIntegration Triggers
CRM Fields Sent
firstNamelastNameemailphonecompanyNameindustrymonthly_leadsavg_customer_valuerevenue_at_risk_monthlyrecovery_opportunity_annualrecommended_tierEmail Templates
roi_report
SMS Templates
No SMS templates
Zoom & Calendar
No Zoom/Calendar triggers
n8n Workflow
N/AOpenAI Analysis Context
N/A
SmartQuote / Proposal Preparation
/smartquoteForm: PgZQf3cMiytuAYtdJx-arIntegration Triggers
CRM Fields Sent
firstNamelastNameemailphonecompanyNameindustrymonthly_leadsavg_customer_valuecurrent_systembiggest_challengerecommended_tierrevenue_recovery_scorerevenue_at_risk_annualrecovery_opportunity_annuallead_scoreopportunity_scoreassigned_representativeEmail Templates
proposal_sentproposal_follow_up
SMS Templates
No SMS templates
Zoom & Calendar
No Zoom/Calendar triggers
n8n Workflow
smartquote-processorOpenAI Analysis Context
Generate the full executive proposal document using this SmartQuote data. Include executive summary, revenue opportunity analysis, recommended solution, investment summary, and implementation plan.
Representative Dashboard
/representative-dashboardForm: Qr2HnkHfO6-w0RgADiNf-Integration Triggers
CRM Fields Sent
No CRM fields
Email Templates
No email templates
SMS Templates
No SMS templates
Zoom & Calendar
No Zoom/Calendar triggers
n8n Workflow
N/AOpenAI Analysis Context
N/A
Appointment Scheduling
/appointment-schedulerForm: _giWMEX8V7ks0EzKBrVvcIntegration Triggers
CRM Fields Sent
firstNamelastNameemailphonecompanyNameindustryappointment_dateappointment_typeEmail Templates
meeting_confirmationmeeting_reminder_24hmeeting_reminder_1h
SMS Templates
booking_confirmationappointment_remindermissed_appointment_recovery
Zoom & Calendar
Zoom: TELEGENT AI {appointment_type} — {contact_name}
Calendar: TELEGENT AI {appointment_type} with {contact_name} from {company_name}
n8n Workflow
appointment-scheduler-processorOpenAI Analysis Context
N/A
Sales Operating System
/sales-osForm: 1FvA92LcIyoogzcA6ynAuIntegration Triggers
CRM Fields Sent
firstNamelastNameemailphonecompanyNameEmail Templates
No email templates
SMS Templates
No SMS templates
Zoom & Calendar
No Zoom/Calendar triggers
n8n Workflow
N/AOpenAI Analysis Context
N/A
3. GoHighLevel Pipeline Stages
Contacts progress through these stages. The pipeline stage is set on the CRM opportunity based on assessment scores and workflow context.
New Lead
Default on first submission
10%
Assessment Started
Assessment form started
25%
Assessment Completed
Assessment submitted & scored
40%
Discovery Scheduled
Appointment booked
55%
Discovery Completed
Discovery session held
65%
Proposal Sent
SmartQuote proposal delivered
75%
Negotiation
Active negotiation
85%
Won
Contract signed
100%
Lost
Closed lost
0%
Stage Progression Rules
- New Lead → Assessment Started: Triggered when any assessment form is partially submitted or when the AI Consultant chat begins.
- Assessment Started → Assessment Completed: Triggered when an assessment form is fully submitted with scores calculated.
- Assessment Completed → Discovery Scheduled: Triggered when an appointment is booked via the Appointment Scheduler.
- Discovery Scheduled → Proposal Sent: Triggered when a SmartQuote proposal is generated and delivered.
- Auto-advance rules: Contacts with leadScore ≥ 80 skip directly to Discovery Scheduled. Contacts with opportunityLevel "Critical" are prioritized for same-day follow-up.
4. Representative Assignment Logic
The rep assignment function routeToRep() in app/lib/integration/field-maps.ts determines which representative is assigned based on industry specialization and opportunity size.
Industry Specialist Map
behavioral-health- • Dr. Sarah Chen — VP, Behavioral Health Solutions
- • Marcus Rivera — Director, Healthcare Revenue Ops
sober-living- • Dr. Sarah Chen — VP, Behavioral Health Solutions
home-healthcare- • Jennifer Park — VP, Home Healthcare Solutions
default- • Jennifer Park — Director, Revenue Operations (Generalist)
Assignment Rules
Rule 1 — Industry Specialist First
If the contact's industry matches a specialist, they get the specialist.
Rule 2 — Load Balancing
If multiple specialists match, the first available is selected. In production, n8n or a backend service reads rep workload counts to balance.
Rule 3 — Opportunity Size Threshold
Enterprise-tier leads ($50K+ annual opportunity) always get the VP-level specialist regardless of industry.
Rule 4 — Fallback
Jennifer Park (Director, Revenue Operations) is the default for all unmatched industries.
5. Email Trigger Templates
These templates are triggered via the form submission workflow. Template variables are populated from assessment data and contact fields. Templates map to GoHighLevel email templates or n8n email nodes.
assessment_confirmationYour {{assessment_type}} Results — TELEGENT AI
Sent immediately after any assessment is completed. Includes a summary of scores and a CTA to schedule a strategy session.
assessment_resultsYour {{assessment_type}} — Detailed Analysis & Next Steps
Follow-up email with full score breakdown, opportunity analysis, and recommended next steps. Sent 1 hour after confirmation.
rep_assignment{{assigned_representative}} will be your TELEGENT AI contact
Notifies the prospect who their assigned rep is, includes the rep's Calendly link, and sets expectations for the discovery call.
roi_reportYour Revenue Recovery ROI Report — {{industry}}
Delivers the ROI Calculator report with projected savings, revenue recovery estimates, and solution recommendations.
proposal_sentYour SmartQuote Proposal is Ready — {{company_name}}
Notifies the prospect that their SmartQuote executive proposal is ready. Includes a link to view/download the proposal.
proposal_follow_upFollowing up on your SmartQuote proposal
Sent 3 days after the proposal is delivered. Asks if they have questions and offers a proposal review call.
meeting_confirmationConfirmed: {{appointment_type}} on {{appointment_date}}
Confirmation email with calendar invite (.ics), Zoom link, and preparation instructions.
meeting_reminder_24hReminder: {{appointment_type}} tomorrow at {{appointment_time}}
24-hour reminder with Zoom link and agenda.
meeting_reminder_1hYour {{appointment_type}} starts in 1 hour
1-hour reminder with quick-join Zoom link.
follow_upChecking in — {{prospect_name}} from {{company_name}}
Post-meeting follow-up sent 2 days after a discovery call or proposal review.
nurtureRevenue insights for {{company_name}}
Nurture sequence email with industry-specific revenue benchmarks and tips.
contract_wonWelcome to TELEGENT AI — Next Steps
Onboarding kickoff email sent when a deal is marked Won. Includes implementation timeline and onboarding form link.
onboardingYour TELEGENT AI Onboarding — Week 1
First onboarding email with platform access instructions, integration setup guide, and training calendar link.
6. SMS Trigger Templates
SMS notifications via Twilio. These fire alongside email notifications for time-sensitive communications. Templates include merge fields that are populated from contact and assessment data.
booking_confirmationTELEGENT AI: {{appointment_type}} confirmed for {{appointment_date}} at {{appointment_time}}. Reply YES to confirm or RESCHEDULE to change. Zoom: {{zoom_link}}
appointment_reminderTELEGENT AI Reminder: Your {{appointment_type}} is tomorrow at {{appointment_time}}. Zoom: {{zoom_link}}
missed_appointment_recoveryTELEGENT AI: We missed you at your {{appointment_type}}. Would you like to reschedule? Reply YES and we'll send options.
assessment_follow_upTELEGENT AI: {{prospect_name}}, your {{assessment_type}} results are ready. Check your email for actionable insights + next steps.
nurture_campaignTELEGENT AI Insight: Organizations in {{industry}} recover an average of {{recovery_benchmark}}% of missed revenue opportunities. Want your score? {{assessment_link}}
7. Calendar & Zoom Meeting Specifications
Appointment creation specs for Zoom meeting generation and Google/Outlook calendar event creation.
Zoom Meeting Creation
TELEGENT AI {appointment_type} — {contact_name}{duration} minutesDefault Host (configurable){timezone}Meeting Settings
- • joinBeforeHost: false
- • waitingRoom: true
- • autoRecording: cloud
- • muteUponEntry: true
Calendar Event Creation
{calendar_provider} (google | outlook){attendees[]} + repTELEGENT AI {appointment_type} with {contact_name} from {company_name}Zoom (join URL injected)Appointment Types & Durations
- • Revenue Recovery Strategy Session — 45 min
- • Discovery Call — 30 min
- • Live Platform Demo — 60 min
- • Platform Assessment — 60 min
- • Executive Consultation — 90 min
- • Proposal Review — 30 min
- • Implementation Kickoff — 60 min
8. n8n Webhook Endpoints
When n8n is connected, each workflow fires a webhook to the corresponding n8n workflow ID. The webhook receives the full form payload. n8n handles multi-step automation (CRM enrichment, email sequencing, Slack notifications, etc.).
| Workflow ID | Webhook URL | Trigger | Payload |
|---|---|---|---|
revenue-recovery-audit-processor | {n8n_base_url}/webhook/revenue-recovery-audit-processor | Revenue Recovery Assessment Submission | Full form data + scores + tags |
ai-consultant-processor | {n8n_base_url}/webhook/ai-consultant-processor | AI Consultant Assessment Submission | Full form data + scores + tags |
discovery-session-processor | {n8n_base_url}/webhook/discovery-session-processor | Business Discovery Assessment Submission | Full form data + scores + tags |
smartquote-processor | {n8n_base_url}/webhook/smartquote-processor | SmartQuote / Proposal Preparation Submission | Full form data + scores + tags |
appointment-scheduler-processor | {n8n_base_url}/webhook/appointment-scheduler-processor | Appointment Scheduling Submission | Full form data + scores + tags |
9. OpenAI Analysis Contexts
When connected, OpenAI receives the assessment data and these prompt contexts to generate executive summaries, personalized recommendations, and narrative reports.
Revenue Recovery Assessment
Model: gpt-4-turboSystem Prompt Context
Analyze this assessment and generate a narrative executive summary with key insights and recommended next steps.
Business Discovery Assessment
Model: gpt-4-turboSystem Prompt Context
Generate a personalized executive summary and recommended solution package based on this discovery session data.
SmartQuote / Proposal Preparation
Model: gpt-4-turboSystem Prompt Context
Generate the full executive proposal document using this SmartQuote data. Include executive summary, revenue opportunity analysis, recommended solution, investment summary, and implementation plan.
10. Stripe Integration Points
Stripe is used for proposal acceptance. Price IDs are mapped to prescribed operating system configurations and stored in the IntegrationConfig.
| Tier | Price ID Key | Operating System Configuration | MRR Range |
|---|---|---|---|
| Enterprise | priceIds.enterprise_monthly | $15,000–$25,000 | $2,500–$5,000+ |
| Growth | priceIds.growth_monthly | $5,000–$12,000 | $1,000–$2,500 |
| Starter | priceIds.starter_monthly | $2,500–$5,000 | $500–$1,000 |
| Behavioral Health & Recovery Platform | priceIds.bh_recovery_monthly | $12,000–$25,000 | $2,000–$5,000+ |
11. Tag Generation Algorithm
The generateTags() function produces CRM tags that enable segmentation, automation triggers, and lead scoring in GoHighLevel.
Function Signature
generateTags( industry: string, opportunityLevel: string, operatingSystem: string, leadScore: number ): string[]
Generated Tags (always 5)
industry:{value}— e.g. behavioral-health, home-healthcareopportunity:{value}— critical, high, medium, lowtier:{value}— enterprise, growth, starter, behavioral-health-recovery-platformlead:{hot|warm|cold}— hot ≥ 80, warm ≥ 60, cold < 60source:telegentai-website— static, always appended12. Endpoint Connection Points
When backend services are connected, these are the exact API endpoints and authentication methods required. The IntegrationConfig interface in types.ts defines the configuration shape for each service.
GoHighLevel
https://rest.gohighlevel.com/v1/contacts/API Key (Bearer)https://rest.gohighlevel.com/v1/contacts/{id}/tags/API Key (Bearer)https://rest.gohighlevel.com/v1/pipelines/opportunities/{id}API Key (Bearer)Twilio
https://api.twilio.com/2010-04-01/Accounts/{sid}/Messages.jsonBasic Auth (SID + Token)Zoom
https://api.zoom.us/v2/users/{hostId}/meetingsOAuth 2.0 (Server-to-Server)Google Calendar
https://www.googleapis.com/calendar/v3/calendars/{id}/eventsOAuth 2.0 (Service Account)Outlook Calendar
https://graph.microsoft.com/v1.0/users/{id}/calendar/eventsOAuth 2.0 (Application)OpenAI
https://api.openai.com/v1/chat/completionsAPI Key (Bearer)n8n
{baseUrl}/webhook/{workflowId}Webhook (no auth, or header token)Stripe
https://api.stripe.com/v1/checkout/sessionsSecret Key (Bearer)https://api.stripe.com/v1/pricesSecret Key (Bearer)Ready to connect your stack?
This specification document is implementation-ready. When your backend services are provisioned, the integration points defined here map directly to GoHighLevel, Twilio, Zoom, Calendar, n8n, OpenAI, and Stripe APIs. No frontend changes required.
