Automation library · AI assistants

Create AI-generated books with OpenAI and DALL-E

Started by someone opening a chat with it, and works across Google Drive and S3. It hands the judgement calls to OpenAI. 18 steps: a working afternoon to understand properly.

MediumCalls a model: OpenAI

18 stepsMedium: a working afternoon
0Branches: places the flow splits
0Loops or waits
2Services it connects to

The flow

Starts it 1Model 11Logic 2Service 4

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

  1. 1When chat message receivedChat triggerStarts it
  2. 2Structured Output ParserOutput Parser StructuredModel
  3. 3gpt-4.1-miniLm Chat Open AiModel
  4. 4gpt-4.1-mini1Lm Chat Open AiModel
  5. 5gpt-4.1-mini2Lm Chat Open AiModel
  6. 6Structured Output Parser1Output Parser StructuredModel
  7. 7OpenAI Chat ModelLm Chat Open AiModel
  8. 8Book Brief AgentAgentModel
  9. 9Book Writer AgentAgentModel
  10. 10Content Writer AgentAgent ToolModel
  11. 11Designer AgentAgent ToolModel
  12. 12Generate cover imageOpen AiModel
  13. 13Upload to AWS S3Aws S3Service
  14. 14Configure metadata SetLogic
  15. 15Build book htmlMarkdownLogic
  16. 16Upload to Google DriveHttp RequestService
  17. 17Convert document to PDFGoogle DriveService
  18. 18Archive to Drive FolderGoogle DriveService

How it's built

Starts on
Someone opening a chat with it
Steps
18
Size
Medium: a working afternoon
Connects to
Google Drive, S3
Model
OpenAI

Questions

What does it need to run?

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

What starts it?

It starts on someone opening a chat with 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?

Plan an afternoon. 18 steps is enough that you should read each one before running it.

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 18 steps before you point it at anything that matters.