# Generate complete social media campaigns with DALL and OpenAI: n8n workflow

> Started by another system calling it, and works across Slack. It hands the judgement calls to OpenAI.

Source: https://millionrounds.com/workflow/generate-complete-social-media-campaigns-with-dall-and-opena (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)

# Generate complete social media campaigns with DALL and OpenAI

Started by another system calling it, and works across Slack. It hands the judgement calls to OpenAI. 22 steps: 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%2Fgenerate-complete-social-media-campaigns-with-dall-and-opena)

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

**0** Branches: places the flow splits

**0** Loops or waits

**1** Service it connects to

## The flow

Starts it 2 Model 13 Logic 4 Service 3

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

- 1 **Receive Product Details via Webhook** Webhook *Starts it*
- 2 **Parse Campaign Blueprint JSON** Output Parser Structured *Model*
- 3 **LLM Engine for Campaign Blueprint** Lm Chat Open Ai *Model*
- 4 **LLM Engine for Caption Writing** Lm Chat Open Ai *Model*
- 5 **Parse Caption Output JSON** Output Parser Structured *Model*
- 6 **LLM Engine for Hashtag Generation** Lm Chat Open Ai *Model*
- 7 **Parse Hashtag Output JSON** Output Parser Structured *Model*
- 8 **Parse Posting Schedule Output JSON** Output Parser Structured *Model*
- 9 **LLM Engine for Posting Schedule** Lm Chat Open Ai *Model*
- 10 **Error Handler Trigger** Error trigger *Starts it*
- 11 **Clean & Normalize Product Input Fields** Set *Logic*
- 12 **Generate Campaign Blueprint Using AI** Agent *Model*
- 13 **Generate Instagram Captions Using AI** Agent *Model*
- 14 **Generate Hashtag Set Using AI** Agent *Model*
- 15 **Generate Optimal Posting Schedule Using AI** Agent *Model*
- 16 **Slack: Send Error Alert** Slack *Service*
- 17 **Split Campaign Posts for Image Generation** Split Out *Logic*
- 18 **Combine All Campaign Assets** Merge *Logic*
- 19 **Generate Social Media Image Using AI** Open Ai *Model*
- 20 **Prepare Final Campaign Package JSON** Code *Logic*
- 21 **Upload Generated Image to Cloudinary** Http Request *Service*
- 22 **Send Final Campaign Package to Slack** Slack *Service*

## How it's built

- **Starts on:** Another system calling it
- **Steps:** 22
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Slack
- **Model:** OpenAI

## Questions

What does it need to run?

An n8n account, plus your own Slack account, and a key for 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 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.

## 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%2Fgenerate-complete-social-media-campaigns-with-dall-and-opena)
- **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.

[Slack](https://millionrounds.com/workflows?service=Slack#library)

## Workflows like it

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

- [**Orchestrate patient admission, discharge and post-care** 22 steps · calls a model · Email, Slack](https://millionrounds.com/workflow/orchestrate-patient-admission-discharge-and-post-care)
- [**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)
- [**Create captioned vertical video clips from Google Drive** 23 steps · calls a model · Google Drive, Google Sheets](https://millionrounds.com/workflow/create-captioned-vertical-video-clips-from-google-drive)
- [**Create script-to-video avatar videos with HeyGen** 21 steps · calls a model · Gmail, Google Drive](https://millionrounds.com/workflow/create-script-to-video-avatar-videos-with-heygen)
- [**Gate pgvector indexing by checking consent in Postgres** 21 steps · calls a model · Postgres, Slack](https://millionrounds.com/workflow/gate-pgvector-indexing-by-checking-consent-in-postgres)
- [**Generate viral Bigfoot vlog videos with Veo 3** 23 steps · calls a model · Google Drive, Slack](https://millionrounds.com/workflow/generate-viral-bigfoot-vlog-videos-with-veo-3)
