# Generate complete stories with OpenAI: n8n workflow template

> Started by an event in a connected app, and works across Google Drive. It hands the judgement calls to Azure OpenAI.

Source: https://millionrounds.com/workflow/generate-complete-stories-with-openai (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)

# Generate complete stories with OpenAI

Started by an event in a connected app, and works across Google Drive. It hands the judgement calls to Azure OpenAI. 37 steps, 1 loop or waits: large, and worth reading before you trust it with anything live.

Large Calls a model: Azure OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fgenerate-complete-stories-with-openai)

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

**0** Branches: places the flow splits

**1** Loop or waits

**1** Service it connects to

## The flow

Starts it 1 Model 22 Logic 13 Service 1

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

- 1 **Structured Output Parser** Output Parser Structured *Model*
- 2 **When clicking ‘Test workflow’** Manual trigger *Starts it*
- 3 **json schema** Output Parser Structured *Model*
- 4 **character json** Output Parser Structured *Model*
- 5 **rules json** Output Parser Structured *Model*
- 6 **gpt-4o1** Lm Chat Azure Open Ai *Model*
- 7 **Structured Output Parser1** Output Parser Structured *Model*
- 8 **Structured Output Parser2** Output Parser Structured *Model*
- 9 **Structured Output Parser3** Output Parser Structured *Model*
- 10 **story enhancements json** Output Parser Structured *Model*
- 11 **edit notes json** Output Parser Structured *Model*
- 12 **timeline json** Output Parser Structured *Model*
- 13 **pick cards** Agent *Model*
- 14 **$INPUTS$** Set *Logic*
- 15 **story baseline** Agent *Model*
- 16 **characters** Agent *Model*
- 17 **story rules** Agent *Model*
- 18 **story plot** Agent *Model*
- 19 **story enhancement** Agent *Model*
- 20 **story timeline** Agent *Model*
- 21 **edit notes** Agent *Model*
- 22 **Sentiment Analysis** Sentiment Analysis *Model*
- 23 **story draft** Agent *Model*
- 24 **story_final** Agent *Model*
- 25 **Split Out** Split Out *Logic*
- 26 **Loop Over Items** Split In Batches *Logic*
- 27 **Connect** Set *Logic*
- 28 **Convince** Set *Logic*
- 29 **Explain** Set *Logic*
- 30 **Impress** Set *Logic*
- 31 **Lead** Set *Logic*
- 32 **Motivate** Set *Logic*
- 33 **Sell** Set *Logic*
- 34 **create_story_file** Google Drive *Service*
- 35 **Aggregate** Aggregate *Logic*
- 36 **prompt** Set *Logic*
- 37 **Edit Fields** Set *Logic*

## How it's built

- **Starts on:** An event in a connected app
- **Steps:** 37, 1 loop or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Google Drive
- **Model:** Azure OpenAI

## Questions

What does it need to run?

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

What starts it?

It starts on an event in a connected app.

Does it use AI?

Yes. It calls Azure OpenAI. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 37 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 37 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-stories-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.

[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.

- [**Send GoHighLevel WhatsApp and email auto-replies with Redis** 36 steps · calls a model · Google Drive, Pinecone](https://millionrounds.com/workflow/send-gohighlevel-whatsapp-and-email-auto-replies-with-redis)
- [**Complete AI graphic design suite with OpenAI and Replicate** 35 steps · calls a model · Google Drive](https://millionrounds.com/workflow/complete-ai-graphic-design-suite-with-openai-and-replicate)
- [**Generate AI ads from website and images with Claude** 35 steps · calls a model · Google Drive](https://millionrounds.com/workflow/generate-ai-ads-from-website-and-images-with-claude)
- [**OpenAI models template: GPT-4 and DALL-E services overview** 35 steps · calls a model · Google Drive](https://millionrounds.com/workflow/openai-models-template-gpt-4-and-dall-e-services-overview)
- [**Build an All-Source Knowledge Assistant with Claude and RAG** 30 steps · calls a model · Google Drive, Supabase vectors](https://millionrounds.com/workflow/build-an-all-source-knowledge-assistant-with-claude-and-rag)
- [**Voice memos into daily journals & tasks with Gemini** 29 steps · calls a model · Google Drive](https://millionrounds.com/workflow/voice-memos-into-daily-journals-and-tasks-with-gemini)
