Write-up
Facebook Messenger AI Agent
A Messenger agent that filters incoming messages, fetches context, drafts a reply with AI, and runs the follow-up actions.
The problem
What was going wrong
Incoming Messenger conversations needed fast, context-aware replies without allowing an AI response step to control the entire workflow.
What we built
The system
Webhook events are filtered and enriched with conversation context, an AI agent drafts the response, controlled HTTP actions trigger downstream work, and the final message returns through the Messenger flow.
What it does now
What it verifiably does
Deterministic workflow steps retain control of routing and integrations while AI handles the language-heavy part of the interaction.
Operational results are the client's and are not published.

Scope and responsibility
Who built and runs what
Scope and responsibility were agreed with the client for this engagement and are not published.
Designed and built by Stephen Rey Agustinez, founder of DevLab Studios. Founder profile
Technical notes
Webhook-based Messenger agent that filters events, fetches context, generates AI replies, triggers downstream actions via HTTP, and responds back through the webhook flow.
- n8n
- Webhooks
- AI Agent
- HTTP Request
- Gemini Chat Model
- Memory