Automation library · Content

Author and publish blog posts from Google Sheets with OpenAI

Started by a clock, and works across Google Sheets. It hands the judgement calls to OpenAI. 22 steps, 5 branches: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenAI

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

The flow

Starts it 2Model 2Logic 11Service 7

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

  1. 1ScheduleTriggerSchedule triggerStarts it
  2. 2ManualTriggerManual triggerStarts it
  3. 3AgentLLMLm Chat Open AiModel
  4. 4SettingsSetLogic
  5. 5Basic LLM ChainChain LlmModel
  6. 6fetchConfigGoogle SheetsService
  7. 7ScheduleGoogle SheetsService
  8. 8RecombinedDataRowCodeLogic
  9. 9ConfigCodeLogic
  10. 10PreparedDataCodeLogic
  11. 11LogStatusGoogle SheetsService
  12. 12IfTakeActionIfLogic
  13. 13SaveBackToSheetGoogle SheetsService
  14. 14IfActionPublishIfLogic
  15. 15IfScheduledNowIfLogic
  16. 16IfPromptExistsIfLogic
  17. 17PrepareXmlPostCodeLogic
  18. 18CreatePostHttp RequestService
  19. 19HandleXMLRPCResponseCodeLogic
  20. 20LogPublishedGoogle SheetsService
  21. 21PostingSuccessfulIfLogic
  22. 22SetToPublishGoogle SheetsService

How it's built

Starts on
A clock
Steps
22, with 5 branches
Size
Large: read it before trusting it with anything live
Connects to
Google Sheets
Model
OpenAI

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 a clock.

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?

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