# Place products on AI generated backgrounds with Google Imagen: n8n workflow

> Started by someone submitting a form, and works across Google Drive. It hands the judgement calls to OpenAI.

Source: https://millionrounds.com/workflow/place-products-on-ai-generated-backgrounds-with-google-image (Millionrounds; every figure on the page links to its filing or article)

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

# Place products on AI generated backgrounds with Google Imagen

Started by someone submitting a form, and works across Google Drive. It hands the judgement calls to OpenAI. 27 steps, 3 branches, 3 loops 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%2Fplace-products-on-ai-generated-backgrounds-with-google-image)

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

**3** Branches: places the flow splits

**3** Loops or waits

**1** Service it connects to

## The flow

Starts it 1 Model 6 Logic 7 Service 13

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

- 1 **gpt-4o-mini** Lm Chat Open Ai *Model*
- 2 **gpt-4.1-mini** Lm Chat Open Ai *Model*
- 3 **BG Prompt Output Parser** Output Parser Structured *Model*
- 4 **Copy Output Parser** Output Parser Structured *Model*
- 5 **On form submission** Form trigger *Starts it*
- 6 **Copywriting Agent** Agent *Model*
- 7 **Background Image Prompt Agent** Agent *Model*
- 8 **Get a temporary file url for the upload** Http Request *Service*
- 9 **Merge** Merge *Logic*
- 10 **Fal.ai Google Image Gen4** Http Request *Service*
- 11 **Fetch Status2** Http Request *Service*
- 12 **Is Ready?2** If *Logic*
- 13 **Fetch Style Reference Image** Http Request *Service*
- 14 **Wait2** Wait *Logic*
- 15 **Fal.ai Replace Background** Http Request *Service*
- 16 **Fetch Status** Http Request *Service*
- 17 **Is Ready?** If *Logic*
- 18 **Fetch Result** Http Request *Service*
- 19 **Wait** Wait *Logic*
- 20 **Fal.ai Time of Day Relight** Http Request *Service*
- 21 **Fetch Status1** Http Request *Service*
- 22 **Is Ready?1** If *Logic*
- 23 **Fetch Result1** Http Request *Service*
- 24 **Wait1** Wait *Logic*
- 25 **Create Image via Template with Placid.app** Http Request *Service*
- 26 **Download Image** Http Request *Service*
- 27 **Save to Google Drive** Google Drive *Service*

## How it's built

- **Starts on:** Someone submitting a form
- **Steps:** 27, with 3 branches, 3 loops or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Google Drive
- **Model:** OpenAI

## Questions

What does it need to run?

An n8n account, plus your own Google Drive account, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on someone submitting a form.

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 27 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 27 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%2Fplace-products-on-ai-generated-backgrounds-with-google-image)
- **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 Drive](https://millionrounds.com/workflows?service=Google+Drive#library)

## Workflows like it

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

- [**Build a dual-stage RAG chat assistant with Google Drive** 27 steps · calls a model · Google Drive, Pinecone](https://millionrounds.com/workflow/build-a-dual-stage-rag-chat-assistant-with-google-drive)
- [**Voice AI chatbot with OpenAI and RAG** 27 steps · calls a model · Google Drive, Qdrant](https://millionrounds.com/workflow/voice-ai-chatbot-with-openai-and-rag)
- [**Generate LinkedIn carousel images from text with Mistral** 26 steps · calls a model · Google Drive, S3](https://millionrounds.com/workflow/generate-linkedin-carousel-images-from-text-with-mistral)
- [**AI inbox assistant with OpenAI and Gmail** 25 steps · calls a model · Gmail, Google Drive](https://millionrounds.com/workflow/ai-inbox-assistant-with-openai-and-gmail)
- [**Automating WhatsApp replies with Go High Level and Redis** 25 steps · calls a model · Google Drive, Redis](https://millionrounds.com/workflow/automating-whatsapp-replies-with-go-high-level-and-redis)
- [**Build a self-updating RAG system with OpenAI and Qdrant** 25 steps · calls a model · Google Drive, Qdrant](https://millionrounds.com/workflow/build-a-self-updating-rag-system-with-openai-and-qdrant)
