AI Image Story Generator — Story from an idea — cinematic image prompt, generate, save to Drive.

AI Image Story Generator

Story from an idea — cinematic image prompt, generate, save to Drive.

n8nOpenAINano BananaGoogle DriveHTTP API

Overview

An n8n agent pipeline that accepts a creative idea, generates a short story, derives a cinematic image prompt from the strongest scene, calls an image generation API, polls for completion, and stores the PNG in Google Drive.

Problem

Good AI images need narrative context first. Users should not hand-write both story and prompt for every asset.

Solution

Story Generator Agent writes the narrative, Image Prompt Generator Agent picks the key visual moment, HTTP nodes submit to Nano Banana image API with 9:16 aspect ratio, poll until ready, download binary, upload to Drive.

Architecture

n8n form trigger, two LangChain agent/chain stages, kie.ai API createTask and recordInfo with Wait/If polling loop, HTTP download, Google Drive upload for final PNG.

Workflow

  1. 01 User enters a creative idea on the form
  2. 02 Story agent produces a complete short narrative
  3. 03 Image agent builds a cinematic prompt from one scene
  4. 04 Image API generates PNG asynchronously
  5. 05 File saved to Google Drive when complete

Results

  • · Story and image prompt created in one flow
  • · Visual output tied to narrative instead of random prompts
  • · Polling handled so users do not wait manually
  • · Assets stored in Drive for reuse

Want something similar?

Let's talk about your project.

Start a project