Automation library · Scheduling

Promote calendar events with OpenAI and Facebook

Started by an event in a connected app, and works across Google Sheets, LinkedIn, Telegram and X. It hands the judgement calls to OpenAI. 18 steps, 1 branch, 2 loops or waits: a working afternoon to understand properly.

MediumCalls a model: OpenAI

18 stepsMedium: a working afternoon
1Branch: places the flow splits
2Loops or waits
4Services it connects to

The flow

Starts it 1Model 1Logic 8Service 8

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

  1. 1Google Calendar, New Event TriggerGoogle Calendar triggerStarts it
  2. 2Code, Parse & Enrich Event DataCodeLogic
  3. 3IF, Event Has Enough Lead Time (2h+)IfLogic
  4. 4HTTP, Fetch Base Banner TemplateHttp RequestService
  5. 5Edit Image, Compose Event Promo GraphicEdit ImageService
  6. 6Upload a FileUpload To UrlService
  7. 7DateTime, Parse Event Start TimeDate TimeLogic
  8. 8Code, Build 3 Schedule SlotsCodeLogic
  9. 9Loop Over Items, Each Schedule SlotSplit In BatchesLogic
  10. 10Wait, Until Scheduled Post TimeWaitLogic
  11. 11OpenAI, Generate Time-Aware CaptionsOpen AiModel
  12. 12Code, Parse Captions with FallbackCodeLogic
  13. 13Google Sheets, Append Post Log RowGoogle SheetsService
  14. 14LinkedIn, Publish Event PostLinked InService
  15. 15Twitter/X, Publish Event TweetTwitterService
  16. 16Facebook, Publish Event Photo PostHttp RequestService
  17. 17Merge, Collect All Platform ResultsMergeLogic
  18. 18Telegram, Notify Admin of Post DispatchTelegramService

How it's built

Starts on
An event in a connected app
Steps
18, with 1 branch, 2 loops or waits
Size
Medium: a working afternoon
Connects to
Google Sheets, LinkedIn, Telegram, X
Model
OpenAI

Questions

What does it need to run?

An n8n account, plus your own Google Sheets, LinkedIn, Telegram and X accounts, 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. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Plan an afternoon. 18 steps is enough that you should read each one before running it.

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