How servicesliqueserve-svg/flowforge-whatsapp-agent works
FlowForge is a WhatsApp AI-agent backend, with a parallel website-chat API and Meta agent onboarding. The main messaging flow is incoming WhatsApp webhook, signature validation, message handling, Forge reply generation, and WhatsApp response. The website endpoint shares the reply engine; onboarding is a separate administrative capability. The graph follows documented routes and excerpted calls; unsampled infrastructure and persistence integrations are omitted.
Main entry points: index.js Express server and routes · webhook.js Webhook verification and routing · whatsapp.js WhatsApp send and read status · agent.js Forge reply and session memory
Components 11
Server and APIs
- Express server and routes
index.js
WhatsApp Messaging
- Webhook signature validation
webhook-signature.js - Webhook verification and routing
webhook.js - WhatsApp send and read status
whatsapp.js
Forge AI
- Forge reply and session memory
agent.js
Meta Onboarding
- Agent onboarding request
onboarding.js
Other components
- WhatsApp customer
- WhatsApp Cloud API
- Website visitor
- Meta Model API
- Meta Onboarding API
Connections 15
- WhatsApp customer → WhatsApp Cloud API: sends message
README.md - WhatsApp Cloud API → Webhook verification and routing: posts events
README.md - Express server and routes → Webhook signature validation: configures validation
index.js - Express server and routes → Webhook verification and routing: routes webhook
index.js - Webhook verification and routing → Forge reply and session memory: requests reply
webhook.js - Webhook verification and routing → WhatsApp send and read status: marks read
webhook.js - Webhook verification and routing → WhatsApp send and read status: sends reply
webhook.js - Forge reply and session memory → Meta Model API: requests completion
agent.js - WhatsApp send and read status → WhatsApp Cloud API: sends message status
whatsapp.js - WhatsApp Cloud API → WhatsApp customer: delivers reply
README.md - Website visitor → Express server and routes: posts chat
index.js - Express server and routes → Forge reply and session memory: requests reply
index.js - Express server and routes → Website visitor: returns reply
index.js - Express server and routes → Agent onboarding request: triggers registration
index.js - Agent onboarding request → Meta Onboarding API: registers agent
onboarding.js