Back to Catalog

Convert natural language to video JSON prompts with GPT and Gemini for Veo 3

Khairul MuhtadinKhairul Muhtadin
2313 views
2/3/2026
Official Page

The Prompt converter workflow tackles the challenge of turning your natural language video ideas into perfectly formatted JSON prompts tailored for Veo 3 video generation.

By leveraging Langchain AI nodes and Google Gemini, this workflow automates and refines your input to help you create high-quality videos faster and with more precisionβ€”think of it as your personal video prompt translator that speaks fluent cinematic!

πŸ’‘ Why Use Prompt Converter?

Save time: Automate converting complex video prompts into structured JSON, cutting manual formatting headaches and boosting productivity.

Avoid guesswork: Eliminate unclear video prompt details by generating detailed, cinematic descriptions that align perfectly with Veo 3 specs.

Improve output quality: Optimize every parameter for Veo 3's video generation model to get realistic and stunning results every time.

Gain a creative edge: Turn vague ideas into vivid video concepts with AI-powered enhancementβ€”your video project's secret weapon.

⚑ Perfect For

Video creators: Content developers wanting quick, precise video prompt formatting without coding hassles.

AI enthusiasts: Developers and hobbyists exploring Langchain and Google Gemini for media generation.

Marketing teams: Professionals creating video ads or visuals who need consistent prompt structuring that saves time.

πŸ”§ How It Works

⏱ Trigger: User submits a free text prompt via message or webhook.

πŸ“Ž Process: The text goes through an AI model that understands and reworks it into detailed JSON parameters tailored for Veo 3.

πŸ€– Smart Logic: Langchain nodes parse and optimize the prompt with cinematic details, set reasonable defaults, and structure the data precisely.

πŸ’Œ Output: The refined JSON prompt is sent to Google Gemini for video generation with optimized settings.

πŸ” Quick Setup

  1. Import the JSON file to your n8n instances
  2. Add credentials: Azure OpenAI, Gemini API, OpenRouter API
  3. Customize: Adjust prompt templates or default parameters in the Prompt converter node
  4. Test: Run your workflow with sample text prompts to see videos come to life

🧩 You'll Need

  • Active n8n instances
  • Azure OpenAI API
  • Gemini API Key
  • OpenRouter API (alternative AI option)

πŸ› οΈ Level Up Ideas

  • Add integration with video hosting platforms to auto-upload generated videos

🧠 Nodes Used

  • Prompt Input (Chat Trigger)
  • OpenAI (Azure OpenAI GPT model)
  • Alternative (OpenRouter API)
  • Prompt converter (Langchain chain LLM for JSON conversion)
  • JSON parser (structured output extraction)
  • Generate a video (Google Gemini video generation)

Made by: Khaisa Studio
Tags: video generation, AI, Langchain, automation, Google Gemini
Category: Video Production
Need custom work? Contact me

Natural Language to Video JSON Prompts with GPT and Gemini for Veo 3

This n8n workflow simplifies the process of converting natural language descriptions into structured JSON prompts suitable for video generation, specifically tailored for platforms like Veo 3. It leverages the power of Large Language Models (LLMs) from Azure OpenAI, OpenRouter, or Google Gemini to interpret user input and format it into a usable video prompt structure.

What it does

This workflow automates the following steps:

  1. Listens for Chat Messages: It acts as a listener for incoming chat messages, serving as the trigger for the entire process.
  2. Processes with an LLM Chain: The received chat message is fed into a LangChain "Basic LLM Chain" which orchestrates the interaction with a chosen Large Language Model.
  3. Generates Structured Output: The LLM processes the natural language input and generates a structured output, likely a JSON object, representing video prompts.
  4. Parses Output: A "Structured Output Parser" node then takes the LLM's output and ensures it conforms to a predefined JSON structure, making it ready for downstream applications.
  5. Supports Multiple LLMs: The workflow is designed to be flexible, allowing users to choose between Azure OpenAI, OpenRouter, or Google Gemini as the underlying language model for generation.

Prerequisites/Requirements

To use this workflow, you will need:

  • n8n Instance: A running instance of n8n.
  • LangChain Integration: The LangChain integration enabled in your n8n instance.
  • AI Service Credentials:
    • Azure OpenAI: An Azure OpenAI account with an API key and deployment details.
    • OpenRouter: An OpenRouter API key.
    • Google Gemini: A Google Gemini API key.
  • Understanding of JSON Structure: Familiarity with the desired JSON format for your video prompts will be helpful for configuring the "Structured Output Parser."

Setup/Usage

  1. Import the Workflow: Download the provided JSON and import it into your n8n instance.
  2. Configure Credentials:
    • Locate the "Azure OpenAI Chat Model", "OpenRouter Chat Model", and "Google Gemini" nodes.
    • For the LLM you intend to use, configure the necessary API credentials (API Key, region, deployment name, etc.) within the node's settings.
    • Note: You only need to configure the LLM you plan to use. You can disable or remove the others if not needed.
  3. Configure the "Basic LLM Chain":
    • Ensure the "Basic LLM Chain" node is connected to your chosen LLM (Azure OpenAI, OpenRouter, or Google Gemini).
    • You may need to adjust the prompt or model parameters within the "Basic LLM Chain" to guide the LLM in generating the desired video prompt structure.
  4. Configure the "Structured Output Parser":
    • Define the expected JSON schema or structure that the LLM should output. This node will validate and parse the LLM's response into a clean JSON object.
  5. Activate the Workflow: Once configured, activate the workflow. It will now listen for incoming chat messages.
  6. Send a Chat Message: Interact with the "Chat Trigger" (e.g., via a connected chat service or by manually triggering it in n8n) with a natural language description of the video you want to create (e.g., "Generate a prompt for a video about a cat chasing a laser pointer in a living room, with upbeat music and quick cuts.").
  7. Review Output: The workflow will process your message, and the "Structured Output Parser" will output the generated JSON video prompt.

Related Templates

Generate AI website legal and accessibility compliance reports with OpenAI, Gmail and Google Drive

Automated Legal & Accessibility Website Compliance Checker Description Automate website compliance checks in minutes using AI-powered analysis. This workflow scans any website for essential legal and accessibility requirements, generates a professional compliance report, delivers it as a PDF, and stores it securely β€” helping teams identify risks early and stay audit-ready with zero manual effort. --- What This Workflow Does Transforms manual website compliance reviews into a single automated flow: 🌐 Capture Website Details – Accepts website URL, company name, and email via webhook. πŸ“₯ Fetch Website Content – Securely downloads and cleans website HTML for analysis. 🧠 AI Compliance Analysis – Uses AI to audit the site against key compliance standards. πŸ“Š Scoring & Insights – Calculates an overall compliance score and highlights gaps. πŸ“„ Generate Visual Report – Builds a detailed, easy-to-read HTML compliance report. πŸ–¨οΈ Convert to PDF – Converts the report into a downloadable, shareable PDF. πŸ“§ Email Delivery – Sends the compliance report directly to the provided email. ☁️ Secure Storage – Saves the PDF report to Google Drive for records and audits. --- Key Features πŸ€– AI-Powered Compliance Audits – Automatically checks privacy, cookies, accessibility, SSL, and more. πŸ“Š Compliance Scoring – Clear numerical scores and status indicators for each section. πŸ“„ Professional PDF Reports – Branded, structured reports suitable for clients or audits. βš™οΈ End-to-End Automation – From URL submission to email delivery without manual steps. πŸ“§ Instant Email Notifications – Reports delivered automatically to stakeholders. ☁️ Google Drive Backup – Centralized storage for compliance history and documentation. --- Compliance Checks Included βœ”οΈ Privacy Policy presence & indicators βœ”οΈ Cookie consent mechanisms βœ”οΈ Terms of Service availability βœ”οΈ Accessibility (WCAG-related indicators) βœ”οΈ Contact information visibility βœ”οΈ SSL / HTTPS verification βœ”οΈ Critical issues & improvement recommendations --- Perfect For 🏒 Startups & SaaS Companies – Quickly assess website compliance before launch. 🧾 Agencies & Consultants – Deliver automated compliance audits to clients. βš–οΈ Legal & Compliance Teams – Speed up preliminary compliance checks. πŸ’» Freelancers & Web Developers – Validate client websites post-deployment. πŸ“ˆ Operations Teams – Maintain ongoing compliance documentation effortlessly. --- What You’ll Need Required Integrations 🌐 Webhook – Receive website URL and user details. πŸ€– OpenAI – Analyze website HTML for compliance indicators. πŸ“„ HTMLCSS to PDF – Convert compliance report into a PDF. πŸ“§ Gmail – Send compliance report via email. ☁️ Google Drive – Store generated compliance reports. 🌍 HTTP Request – Fetch website HTML content (no authentication required). --- Optional Enhancements πŸ“Š Compliance Dashboard – Connect Google Drive or logs to Looker Studio. 🌍 Multi-Website Scans – Extend webhook to accept bulk URLs. πŸ•’ Scheduled Scans – Run periodic compliance checks automatically. πŸ“¨ Slack Alerts – Send compliance summaries to internal channels. πŸ“ Custom Branding – Adjust HTML styling, logos, and colors. --- Quick Start 1️⃣ Import the workflow JSON into your n8n workspace. 2️⃣ Activate the webhook and copy the endpoint URL. 3️⃣ Connect OpenAI, Gmail, Google Drive, and HTMLCSS to PDF credentials. 4️⃣ Send a POST request with website URL, company name, and email. 5️⃣ Review the emailed PDF compliance report. 6️⃣ Check Google Drive for stored audit copies. 7️⃣ Activate the workflow for production use. --- Expected Results ⚑ Minutes Instead of Hours – Instant compliance assessments. πŸ€– AI Accuracy – Consistent, structured compliance analysis. πŸ“ˆ Risk Visibility – Early detection of legal and accessibility gaps. πŸ“„ Audit-Ready Reports – Clean, shareable documentation. ☁️ Centralized Storage – Every scan archived automatically. --- Workflow Structure 🌐 Webhook Trigger ↓ πŸ“₯ Fetch Website HTML ↓ 🧹 Clean & Prepare Content ↓ 🧠 AI Compliance Analysis ↓ πŸ“Š Parse Results ↓ πŸ“„ Generate HTML Report ↓ πŸ–¨οΈ Convert to PDF ↓ πŸ“§ Email Report ↓ ☁️ Save to Google Drive --- Ready to Automate Website Compliance? Import this template and turn any website URL into a complete compliance report β€” automatically, consistently, and professionally. Perfect for audits, clients, and peace of mind. βœ… ---

Jitesh DugarBy Jitesh Dugar
31

Automated resume tailoring with Telegram Bot, LinkedIn & OpenRouter AI

This n8n workflow lets you effortlessly tailor your resume for any job using Telegram and LinkedIn. Simply send a LinkedIn job URL or paste a job description to the Telegram bot, and the workflow will: Extract the job information (using optional proxy if needed) Fetch your resume in JSON Resume format (hosted on GitHub Gist or elsewhere) Use an OpenRouter-powered LLM agent to automatically adapt your resume to match the job requirements Generate both HTML and PDF versions of your tailored resume Return the PDF file and shareable download links directly in Telegram The workflow is open-source and designed with privacy in mind. You can host the backend yourself to keep your data entirely under your control. It requires a Telegram Bot, a public JSON Resume, and an OpenRouter account. Proxy support is available for LinkedIn scraping. Perfect for anyone looking to quickly customize their resume for multiple roles with minimal manual effort!

Daniel IlieshBy Daniel Iliesh
209

Split out binary data

This workflows helps with processing binary data. You'll often have binary objects with keys such as attachment0, attachment1, attachment_2, etc. attached to your items, for example when reading an incoming email. This binary data is hard to process because it's not an array you can simply loop through. This workflow solves this problem by providing a Function node that takes all incoming items and all their binary data and then returning a single item for each file with a data key containing your binary file. Incoming binary data: Processed binary data:

TomBy Tom
7715