# Slack slash command: AI image generator with 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/slack-slash-command-ai-image-generator-with-openai (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)

# Slack slash command: AI image generator with OpenAI

Started by another system calling it, and works across Slack. It hands the judgement calls to OpenAI. 5 steps: small enough to read in one sitting and change without fear.

Small Calls a model: OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fslack-slash-command-ai-image-generator-with-openai)

**5 steps** Small: readable in one sitting

**0** Branches: places the flow splits

**0** Loops or waits

**1** Service it connects to

## The flow

Starts it 2 Model 1 Logic 1 Service 1

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

- 1 **Webhook** Webhook *Starts it*
- 2 **Respond to Webhook** Respond To Webhook *Starts it*
- 3 **Set prompt from command** Set *Logic*
- 4 **Generate an image** Open Ai *Model*
- 5 **Slack Post Image** Slack *Service*

## How it's built

- **Starts on:** Another system calling it
- **Steps:** 5
- **Size:** Small: readable in one sitting
- **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?

Not long. At 5 steps it can be read in one sitting and changed without fear.

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 5 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%2Fslack-slash-command-ai-image-generator-with-openai)
- **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.

- [**Auto summarize YouTube videos to Japanese with OpenAI** 5 steps · calls a model · RSS, Slack](https://millionrounds.com/workflow/auto-summarize-youtube-videos-to-japanese-with-openai)
- [**Research web content with Claude and Bright Data** 5 steps · calls a model · Slack](https://millionrounds.com/workflow/research-web-content-with-claude-and-bright-data)
- [**Summarize new n8n GitHub releases with OpenAI** 5 steps · calls a model · RSS, Slack](https://millionrounds.com/workflow/summarize-new-n8n-github-releases-with-openai)
- [**AI video summarization with VLM** 5 steps · Google Drive, Slack](https://millionrounds.com/workflow/ai-video-summarization-with-vlm)
- [**Generate Layerre image variants from a webhook** 5 steps · Slack](https://millionrounds.com/workflow/generate-layerre-image-variants-from-a-webhook)
- [**YouTube video research assistant & summarizer with OpenAI** 6 steps · calls a model · RSS, Slack](https://millionrounds.com/workflow/youtube-video-research-assistant-and-summarizer-with-openai)
