⚡ How It Works

End-to-End Automated Pipeline

1
Facebook Webhook
Captures incoming user events or messages from Facebook.
📥 Incoming Message Payload: "Hi! What are your business hours today?"
2
Conditional Logic (If / If1)
Routes token verification and POST payloads directly.
🔀 Route Evaluation: Type: POST Message ➔ Trigger Sheet Lookup
3
Get Document / Sheet
Fetches business knowledge context from Google Sheets.
📊 Google Sheet Record: [Row 4]: "Hours: Mon-Fri 9AM-6PM, Sat 10AM-4PM"
4
AI Agent Processing
Uses OpenRouter LLM & Memory to draft response.
🤖 AI Context Reasoner: Match: "hours" ➔ Draft reply with Sheet context
5
Reply to Facebook
Sends formatted answer back to Facebook API.
💬 Outgoing Messenger Reply: "Hello! We are open today from 9 AM to 6 PM."
Facebook webhook
🔀
If
true
false
🔀
If1
true
false
🛡️
For Verification
📄
Get a document
get: document
🤖
AI Agent
Chat Model*
Memory
🌐
HTTP Request
<
OpenRouter Chat
Model
💾
Simple Memory1