Automation library · Data collection

Facebook ads generator with Gemini and OpenAI

Started by another system calling it, and works across Airtable. It hands the judgement calls to Gemini and OpenAI. 51 steps, 6 branches, 1 loop or waits: large, and worth reading before you trust it with anything live.

LargeCalls a model: Gemini, OpenAI

51 stepsLarge: read it before trusting it with anything live
6Branches: places the flow splits
1Loop or waits
1Service it connects to

The flow

Starts it 3Model 10Logic 18Service 20

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

  1. 1WebhookWebhookStarts it
  2. 2Structured Output ParserOutput Parser StructuredModel
  3. 3Schedule Trigger2Schedule triggerStarts it
  4. 4Webhook1WebhookStarts it
  5. 5Google Gemini Chat ModelLm Chat Google GeminiModel
  6. 6OpenAI Chat Model1Lm Chat Open AiModel
  7. 7Google Gemini Chat Model1Lm Chat Google GeminiModel
  8. 8Google Gemini Chat Model2Lm Chat Google GeminiModel
  9. 9SwitchSwitchLogic
  10. 10ParsingChain LlmModel
  11. 11Get FB Ad AccountsFacebook Graph ApiService
  12. 12Airtable10AirtableService
  13. 13Generate AnglesChain LlmModel
  14. 14Basic LLM Chain1Chain LlmModel
  15. 15Basic LLM Chain2Chain LlmModel
  16. 16Get ProductAirtableService
  17. 17Get Product1AirtableService
  18. 18Get ScriptAirtableService
  19. 19Get Script1AirtableService
  20. 20Edit FieldsSetLogic
  21. 21Split Out6Split OutLogic
  22. 22Facebook Graph API10Facebook Graph ApiService
  23. 23Update ScriptAirtableService
  24. 24Update Script1AirtableService
  25. 25Edit Fields2SetLogic
  26. 26Split OutSplit OutLogic
  27. 27Get Ad CampaignsFacebook Graph ApiService
  28. 28Edit Fields5SetLogic
  29. 29Product Overview & Customer ResearchHttp RequestService
  30. 30Create AnglesAirtableService
  31. 31Split Out7Split OutLogic
  32. 32HTTP Request1Http RequestService
  33. 33Update Product DetailsAirtableService
  34. 34Update ProductAirtableService
  35. 35If9IfLogic
  36. 36Edit Fields7SetLogic
  37. 37Get FB Ad SetsFacebook Graph ApiService
  38. 38Code1CodeLogic
  39. 39Split Out8Split OutLogic
  40. 40If7IfLogic
  41. 41If10IfLogic
  42. 42HTTP RequestHttp RequestService
  43. 43WaitWaitLogic
  44. 44OpenAIOpen AiModel
  45. 45Get FB Ad ContentsFacebook Graph ApiService
  46. 46Airtable11AirtableService
  47. 47Split Out9Split OutLogic
  48. 48If11IfLogic
  49. 49If6IfLogic
  50. 50Edit Fields6SetLogic
  51. 51Airtable9AirtableService

How it's built

Starts on
Another system calling it
Steps
51, with 6 branches, 1 loop or waits
Size
Large: read it before trusting it with anything live
Connects to
Airtable
Model
Gemini, OpenAI

Questions

What does it need to run?

An n8n account, plus your own Airtable account, and a key for Gemini and OpenAI. 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 and OpenAI. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 51 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 51 steps before you point it at anything that matters.