How pipelinesync/ai works
Nova PipelineSync AI is a browser-based prototype that turns a lead’s discovery-call answers into a tailored revenue-operations blueprint, then unlocks a downloadable and optionally emailed PDF. The principal journey runs from an entry gate through AI or fallback voice intake, extraction, asynchronous generation and status polling, and delivery. Separate capabilities include CRM capture and enrichment, lead persistence, consent and anti-abuse checks, and optional live AI integrations. The graph follows documented and indexed runtime wiring; several browser-to-endpoint links are documented only at a high level, so those links are dashed.
Main entry points: app.js Browser app · deliver-core.js Delivery coordinator · job-store.js Blueprint job store · start.js Entry gate
Components 25
Browser and entry
- Browser app
public/app.js - Entry gate
netlify/functions/start.js
Intake and lead capture
- Turnstile check
lib/turnstile.js - Voice API route
netlify/functions/voice.js - Voice routing
lib/voice-api.js - Discovery interviewer
lib/voice.js
Blueprint generation
- Answer extraction route
netlify/functions/extract.js - Extract and generate
lib/ai-pipeline.js - Knowledge and PDF core
lib/core.js - Generation request
netlify/functions/generate.js - Generation worker
lib/generate-job.js - Background function
netlify/functions/generate-background.js - Job status route
netlify/functions/generate-status.js - Blueprint job store
lib/job-store.js
Delivery and integrations
- Delivery route
netlify/functions/deliver.js - Delivery coordinator
lib/deliver-core.js - Email code route
netlify/functions/deliver-code.js - Email verification
lib/email-verify.js - PDF email
lib/pdf-email.js - HubSpot CRM
lib/hubspot.js - Lead persistence
lib/supabase-leads.js
Other components
- Lead
- Anthropic Claude
- OpenAI voice
- Resend email
Connections 33
- Lead → Browser app: uses
README.md - Browser app → Entry gate: starts session
- Entry gate → Turnstile check: verifies token
netlify/functions/start.js - Entry gate → Lead persistence: creates lead
netlify/functions/start.js - Entry gate → HubSpot CRM: captures contact
netlify/functions/start.js - Browser app → Voice API route: conducts discovery
- Voice API route → Voice routing: routes requests
netlify/functions/voice.js - Voice routing → Discovery interviewer: runs voice flow
lib/voice-api.js - Discovery interviewer → OpenAI voice: uses when enabled
README.md - Browser app → Answer extraction route: submits answers
- Answer extraction route → Extract and generate: extracts fields
netlify/functions/extract.js - Extract and generate → Knowledge and PDF core: falls back to
lib/ai-pipeline.js - Extract and generate → Anthropic Claude: uses when enabled
README.md - Browser app → Generation request: requests blueprint
- Generation request → Generation worker: starts job
netlify/functions/generate.js - Generation request → Blueprint job store: records job
netlify/functions/generate.js - Background function → Generation worker: runs job
netlify/functions/generate-background.js - Generation worker → Extract and generate: generates blueprint
lib/generate-job.js - Generation worker → Blueprint job store: updates job
lib/generate-job.js - Browser app → Job status route: polls progress
- Job status route → Blueprint job store: reads status
netlify/functions/generate-status.js - Browser app → Delivery route: unlocks PDF
- Delivery route → Delivery coordinator: handles delivery
netlify/functions/deliver.js - Delivery coordinator → Blueprint job store: loads blueprint
lib/deliver-core.js - Delivery coordinator → Knowledge and PDF core: builds PDF
lib/deliver-core.js - Delivery coordinator → HubSpot CRM: enriches CRM
lib/deliver-core.js - Delivery coordinator → Lead persistence: persists lead
lib/deliver-core.js - Delivery coordinator → PDF email: sends PDF
lib/deliver-core.js - PDF email → Resend email: sends email
README.md - Browser app → Email code route: requests code
- Email code route → Blueprint job store: checks job
netlify/functions/deliver-code.js - Email code route → Email verification: creates code
netlify/functions/deliver-code.js - Email code route → Resend email: sends code
netlify/functions/deliver-code.js