The flow
Starts it 2Model 2Logic 12Service 9
The steps in the order they run, from what starts it.
- 1Facebook WebhookWebhookStarts it
- 2Google Gemini Chat ModelLm Chat Google GeminiModel
- 3Confirm WebhookRespond To WebhookStarts it
- 4Is messageIfLogic
- 5Process Merged MessageAgentModel
- 6Set ContextSetLogic
- 7Format for Facebook OutputCodeLogic
- 8Is from page?IfLogic
- 9Loop Over ItemsSplit In BatchesLogic
- 10User is SenderSetLogic
- 11Update FALSE to TRUEData TableService
- 12Delay Between MessagesWaitLogic
- 13SeenHttp RequestService
- 14Insert To UnprocessedData TableService
- 15Update Page RepData TableService
- 16Send TextHttp RequestService
- 17WaitWaitLogic
- 18Clean HistoryData TableService
- 19Get unprocessed messageData TableService
- 20Get Max ID + Merged MessCodeLogic
- 21Is Max ID?IfLogic
- 22Get history messageData TableService
- 23Get 15 newest rowsCodeLogic
- 24Merge History and Find MinIDCodeLogic
- 25Send TypingHttp RequestService
How it's built
- Starts on
- Another system calling it
- Steps
- 25, with 3 branches, 3 loops or waits
- Size
- Large: read it before trusting it with anything live
- Connects to
- n8n data table
- Model
- Gemini
Questions
What does it need to run?
An n8n account, and a key for Gemini. You connect your own accounts after importing it; none are included.
What starts it?
It starts on another system calling it.
Does it use AI?
Yes. It calls Gemini. Model calls are billed by the provider, not by n8n.
How long does it take to set up?
Take your time. At 25 steps it is large: read it before trusting it with anything live.
How do I import it?
Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.
Before you run itNothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 25 steps before you point it at anything that matters.