🎬 Generate AI-powered markdown posts from workflow JSON with Gemini & LlamaIndex

⚡ 244 views · 🎬 Content Creation & Video

💡 Pro Tip — HTTP Request scraping tends to break when sites update their markup. If you’re scraping a major platform, check if ScraperNode covers it — it has maintained scrapers for LinkedIn, Instagram, TikTok, YouTube, and 20+ other platforms that return structured data.

View All Scrapers

Description

This AI-powered workflow transforms n8n workflow JSON files into publication-ready, SEO-optimized markdown posts for the n8n community. Simply upload your workflow’s JSON, and let Google Gemini 2.5 Pro, guided by a LlamaIndex-powered knowledge base of best practices, automatically generate compelling content.

Why Use This Workflow?

Time Savings: Reduces the time to create a detailed workflow post from over an hour of manual writing to under 2 minutes.

Cost Reduction: Eliminates the need for separate AI content subscriptions or outsourcing content creation tasks.

Error Prevention: Enforces content quality and structural consistency by using a knowledge base of n8n’s official guidelines, minimizing formatting errors.

Ideal For

How It Works

  1. Trigger: The process starts when you upload an n8n workflow JSON file via a simple web form.
  2. Data Extraction: The workflow automatically extracts the JSON content from the uploaded file.
  3. Intelligence Layer: An advanced AI agent, powered by Google Gemini 2.5 Pro, analyzes the structure, nodes, and metadata of your workflow.
  4. Knowledge Retrieval: The agent consults a specialized, in-memory knowledge base built from n8n’s content guidelines. This knowledge base is created by parsing documents with LlamaIndex and refined with a Cohere Reranker for maximum accuracy.
  5. Content Generation: The AI agent synthesizes the technical details from your JSON with the best practices from the knowledge base to write a complete, benefit-driven markdown post.
  6. Output & Delivery: The final, polished markdown content is generated as the workflow’s output, ready to be copied and pasted into the n8n community platform.

Setup Guide

Prerequisites

RequirementTypePurpose
n8n instanceEssentialWorkflow execution platform
Google Gemini API KeyEssentialPowers the core AI content generation
LlamaIndex Cloud API KeyEssentialParses documents for the knowledge base
Cohere API KeyOptionalImproves knowledge base search results
Google Drive AccountOptionalFor automatically updating the knowledge base from a Google Doc

Installation Steps

  1. Import the JSON file to your n8n instance.
  2. Configure credentials:
    • Google Gemini: In the “GEmini 2.5 pro” node, create and add your Google Gemini API credential.
    • LlamaIndex: In the three HTTP Request nodes named “Parse Document…”, “Monitor Document…”, and “Retrieve Parsed…”, create an HTTP Header Auth credential. The header name is Authorization and the value is Bearer YOUR_LLAMA_INDEX_API_KEY.
    • Cohere: (Optional) In the “Reranker Cohere” node, create and add your Cohere API credential.
    • Google Drive: (Optional) If you plan to auto-update the knowledge base, configure Google Drive OAuth2 credentials for the “Knowledge Base Updated Trigger” and “Download Knowledge Document” nodes.
  3. Update environment-specific values:
    • To use the knowledge base auto-update feature, go to the “Knowledge Base Updated Trigger” node and select the Google Drive file containing your content guidelines.
  4. Customize settings:
    • The primary system prompt in the “n8ncreator” agent node can be modified to adjust the tone, style, or structure of the generated content.
  5. Test execution:
    • Run the workflow manually and use the form to upload a sample n8n workflow JSON file to verify that all connections work correctly.

Technical Details

Core Nodes

NodePurposeKey Configuration
Form TriggerInitiates the workflow via a file upload.Set the “Input Json Workflow” field to required.
Langchain AgentOrchestrates the entire content creation process.The system prompt contains all instructions for the AI.
ChatGoogleGeminiProvides the core generative AI capabilities.Select your Gemini model of choice (e.g., gemini-2.5-pro).
VectorStoreInMemoryActs as the agent’s knowledge base tool.Configured to use embeddings from a Google Gemini model.
HTTPRequestInteracts with the LlamaIndex API to parse documents.Set up with LlamaIndex API endpoint and authentication.

Customization Options

Basic Adjustments:

Advanced Enhancements:

Performance & Optimization

MetricExpected PerformanceOptimization Tips
Execution time~1 minute per runLargely dependent on the Gemini API response time.
API calls1 LLM call per postKnowledge base updates trigger LlamaIndex/Google calls separately.
Error handlingBuilt-in retry logic for document parsingAdd an error workflow path after the “n8ncreator” node to handle AI generation failures.

Troubleshooting

Common Issues:

ProblemCauseSolution
AI output is generic or incompleteThe input JSON file is invalid or lacks key information (e.g., no node names).Ensure you are uploading a valid, exported n8n workflow JSON. Verify the workflow has been saved with descriptive node names.
LlamaIndex parsing failsThe LlamaIndex API key is incorrect or the source document is inaccessible.Double-check your LlamaIndex API credential. Ensure the Google Doc sharing settings allow access.
Credential ErrorAPI keys are missing or incorrect for Gemini, LlamaIndex, or Cohere.Go to the specified nodes and verify that the correct credentials have been created and selected.

Created by: khaisa Studio Category: AI Tags: AI, Content Generation, Google Gemini, LlamaIndex, Automation Need custom workflows? Contact us

Connect with the creator: Portfolio • Workflows • LinkedIn • Medium • Threads

đź”— Nodes Used

HTTP Request, Google Drive, Google Drive Trigger, AI Agent, Simple Vector Store, n8n Form Trigger

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup