Automation library · Alerts and monitoring

AI-powered Facebook comment management: Auto-reply, delete, ban

Started by an event in a connected app, and works across Google Sheets. It puts OpenAI behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 44 steps, 5 branches, 4 loops or waits: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenAIRetrieval

44 stepsLarge: read it before trusting it with anything live
5Branches: places the flow splits
4Loops or waits
1Service it connects to

The flow

Starts it 1Model 7Logic 24Service 12

The steps in the order they run, from what starts it.

  1. 1StartManual triggerStarts it
  2. 2ThinkTool ThinkModel
  3. 3HTTPHttp Request ToolService
  4. 4MemoryMemory Buffer WindowModel
  5. 5GeminiGoogle Gemini ToolModel
  6. 6DocsGoogle Docs ToolService
  7. 7OpenAILm Chat Open AiModel
  8. 8Get 0-100 Post from PageFacebook Graph ApiService
  9. 9Positive ReplayAgentModel
  10. 10Support ReplayAgentModel
  11. 11Split All PostsSplit OutLogic
  12. 12Reply to CommentFacebook Graph ApiService
  13. 13Loop Over PostsSplit In BatchesLogic
  14. 14Do NothingNo OpLogic
  15. 15Replace PostNo OpLogic
  16. 16Get Individual Post CommentsFacebook Graph ApiService
  17. 17WaitWaitLogic
  18. 18Check CommentIfLogic
  19. 19Loop Over Items2Split In BatchesLogic
  20. 20Split All CommentsSplit OutLogic
  21. 21Replace CommentNo OpLogic
  22. 22Replace Me2No OpLogic
  23. 23Message a modelOpen AiModel
  24. 24Loop Over CommentsSplit In BatchesLogic
  25. 25SwitchSwitchLogic
  26. 26Replace Me5No OpLogic
  27. 27Get Any Replay in CommentHttp RequestService
  28. 28Delete CommentHttp RequestService
  29. 29Replace Me1No OpLogic
  30. 30Check ReplayIfLogic
  31. 31Append row in sheetGoogle SheetsService
  32. 32Edit FieldsSetLogic
  33. 33Separatamente Without Admin ReplyCodeLogic
  34. 34Facebook Graph APIFacebook Graph ApiService
  35. 35Get row in sheetGoogle SheetsService
  36. 36Split Out Without Admin Reply Comments1Split OutLogic
  37. 37Check Comment1IfLogic
  38. 38No OperationNo OpLogic
  39. 39Code in JavaScriptCodeLogic
  40. 40Split Out Without Admin Reply CommentsSplit OutLogic
  41. 41Replace Me4No OpLogic
  42. 42IfIfLogic
  43. 43Banned userFacebook Graph ApiService
  44. 44Update row in sheetGoogle SheetsService

How it's built

Starts on
An event in a connected app
Steps
44, with 5 branches, 4 loops or waits
Size
Large: read it before trusting it with anything live
Connects to
Google Sheets
Model
OpenAI
Retrieval
Answers are drawn from documents you supply, not from the model alone

Questions

What does it need to run?

An n8n account, plus your own Google Sheets account, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an event in a connected app.

Does it use AI?

Yes. It calls OpenAI. Its answers draw on documents you give it, not on the model alone. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 44 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 it

Nothing 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 44 steps before you point it at anything that matters.