# AI agent for LinkedIn post with OpenAI and Google Sheets: n8n workflow

> Started by a clock, and works across Google Sheets and LinkedIn. It hands the judgement calls to OpenAI.

Source: https://millionrounds.com/workflow/ai-agent-for-linkedin-post-with-openai-and-google-sheets (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Content](https://millionrounds.com/workflows?category=Content#library)

# AI agent for LinkedIn post with OpenAI and Google Sheets

Started by a clock, and works across Google Sheets and LinkedIn. It hands the judgement calls to OpenAI. 21 steps, 1 loop or waits: large, and worth reading before you trust it with anything live.

Large Calls a model: OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fai-agent-for-linkedin-post-with-openai-and-google-sheets)

**21 steps** Large: read it before trusting it with anything live

**0** Branches: places the flow splits

**1** Loop or waits

**2** Services it connects to

## The flow

Starts it 1 Model 4 Logic 9 Service 7

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

- 1 **OpenAI Chat Model** Lm Chat Open Ai *Model*
- 2 **Schedule Trigger** Schedule trigger *Starts it*
- 3 **AI Agent** Agent *Model*
- 4 **AI Agent1** Agent *Model*
- 5 **Google Sheets** Google Sheets *Service*
- 6 **Aggregate** Aggregate *Logic*
- 7 **Code** Code *Logic*
- 8 **Limit** Limit *Logic*
- 9 **OpenAI** Open Ai *Model*
- 10 **HTTP Request** Http Request *Service*
- 11 **Code1** Code *Logic*
- 12 **XML** Xml *Logic*
- 13 **FEATURED IMAGE GEN** Http Request *Service*
- 14 **Split Out** Split Out *Logic*
- 15 **GENERATING IMAGE** Wait *Logic*
- 16 **Limit1** Limit *Logic*
- 17 **Get image** Http Request *Service*
- 18 **Edit Fields** Set *Logic*
- 19 **IMAGE DOWNLOAD** Http Request *Service*
- 20 **LinkedIn** Linked In *Service*
- 21 **Google Sheets1** Google Sheets *Service*

## How it's built

- **Starts on:** A clock
- **Steps:** 21, 1 loop or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Google Sheets, LinkedIn
- **Model:** OpenAI

## Questions

What does it need to run?

An n8n account, plus your own Google Sheets and LinkedIn accounts, 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 21 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 21 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fai-agent-for-linkedin-post-with-openai-and-google-sheets)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Google Sheets](https://millionrounds.com/workflows?service=Google+Sheets#library)[LinkedIn](https://millionrounds.com/workflows?service=LinkedIn#library)

## Workflows like it

Also content, with the same services where possible, closest in size first.

- [**90 second LinkedIn post generator with OpenRouter** 21 steps · calls a model · LinkedIn](https://millionrounds.com/workflow/90-second-linkedin-post-generator-with-openrouter)
- [**AI-powered content analysis with Decodo and OpenAI** 21 steps · calls a model · Gmail, Google Docs](https://millionrounds.com/workflow/ai-powered-content-analysis-with-decodo-and-openai)
- [**AI-powered daily LinkedIn post creator with OpenAI and Notion** 21 steps · calls a model · LinkedIn, Notion](https://millionrounds.com/workflow/ai-powered-daily-linkedin-post-creator-with-openai-and-notio)
- [**Analyze YouTube videos with OpenAI** 21 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/analyze-youtube-videos-with-openai)
- [**Auto generate & post LinkedIn content for Amazon sellers** 21 steps · calls a model · Airtable, Google Drive](https://millionrounds.com/workflow/auto-generate-and-post-linkedin-content-for-amazon-sellers)
- [**Automate AI video creation & multi-platform publishing** 21 steps · calls a model · Google Drive, Google Sheets](https://millionrounds.com/workflow/automate-ai-video-creation-and-multi-platform-publishing)
