Skip to main content

Generate multi-platform content with OpenAI, Tavily Research & Supabase Storage

Workflow preview

Workflow preview
100%
Generate multi-platform content with OpenAI, Tavily Research & Supabase Storage preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Automated Content Page Generator with AI, Tavily Research, and Supabase Storage ️ Self Hosted Disclaimer : This template requires self hosted n8n installation an...

Best for

  • Content Creation automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

@n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.toolthink, @n8n/n8n-nodes-langchain.outputparserstructured, @n8n/n8n-nodes-langchain.lmchatopenai, n8n-nodes-base.supabase, n8n-nodes-base.code, n8n-nodes-base.executeworkflow, n8n-nodes-base.googledrive

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Jameson Kanakulya.

Original n8n.io source

1.1 Workflow description

Title
Generate multi-platform content with OpenAI, Tavily Research & Supabase Storage
Workflow name
Generate multi-platform content with OpenAI, Tavily Research & Supabase Storage

Automated Content Page Generator with AI, Tavily Research, and Supabase Storage

> ⚠️ Self-Hosted Disclaimer: This template requires self-hosted n8n installation and external service credentials (OpenAI, Tavily, Google Drive, NextCloud, Supabase). It cannot run on n8n Cloud due to dependency requirements.

Overview

Transform simple topic inputs into professional, multi-platform content automatically. This workflow combines AI-powered content generation with intelligent research and seamless storage integration to create website content, blog articles, and landing pages optimized for different audiences.

Key Features

  • Automated Research: Uses Tavily's advanced search to gather relevant, up-to-date information
  • Multi-Platform Content: Generates optimized content for websites, blogs, and landing pages
  • Image Management: Downloads from Google Drive and uploads to NextCloud with public URL generation
  • Database Integration: Stores all content in Supabase for easy retrieval
  • Error Handling: Built-in error management workflow for reliability
  • Content Optimization: AI-driven content strategy with trend analysis and SEO optimization

Required Services & APIs

Core Services

  • n8n: Self-hosted instance (required)
  • OpenAI: GPT-4 API access for content generation
  • Tavily: Research API for content discovery
  • Google Drive: Image storage and retrieval
  • Google Sheets: Content input and workflow triggering
  • NextCloud: Image hosting and public URL generation
  • Supabase: Database storage for generated content

Setup Instructions

## Prerequisites

Before setting up this workflow, ensure you have:

  • Self-hosted n8n installation
  • API credentials for all required services
  • Database table created in Supabase

## Step 1: Service Account Configuration

OpenAI Setup
  1. Create an OpenAI account at platform.openai.com
  2. Generate API key from the API Keys section
  3. In n8n, create new OpenAI credentials using your API key
  4. Test connection to ensure GPT-4 access
Tavily Research Setup
  1. Sign up at tavily.com
  2. Get your API key from the dashboard
  3. Add Tavily credentials in n8n
  4. Configure search depth to "advanced" for best results
Google Services Setup
  1. Create Google Cloud Project
  2. Enable Google Drive API and Google Sheets API
  3. Create OAuth2 credentials
  4. Configure Google Drive and Google Sheets credentials in n8n
  5. Share your input spreadsheet with the service account
NextCloud Setup
  1. Install NextCloud or use hosted solution
  2. Create application password for API access
  3. Configure NextCloud credentials in n8n
  4. Create /images/ folder for content storage
Supabase Setup
  1. Create Supabase project at supabase.com
  2. Create table with the following structure:
CREATE TABLE works (
  id SERIAL PRIMARY KEY,
  title TEXT NOT NULL,
  content TEXT NOT NULL,
  image_url TEXT,
  category TEXT,
  created_at TIMESTAMP DEFAULT NOW()
);
  1. Get project URL and service key from settings
  2. Configure Supabase credentials in n8n

## Step 2: Google Sheets Input Setup

Create a Google Sheets document with the following columns:

  • TITLE: Topic or title for content generation
  • IMAGE_URL: Google Drive sharing URL for associated image

Example format:

TITLE                           | IMAGE_URL
AI Chatbot Implementation       | https://drive.google.com/file/d/your-file-id/view
Digital Marketing Trends 2024   | https://drive.google.com/file/d/another-file-id/view

## Step 3: Workflow Import and Configuration

  1. Import the workflow JSON into your n8n instance

  2. Configure all credential connections:

    • Link OpenAI credentials to "OpenAI_GPT4_Model" node
    • Link Tavily credentials to "Tavily_Research_Agent" node
    • Link Google credentials to "Google_Sheets_Trigger" and "Google_Drive_Image_Downloader" nodes
    • Link NextCloud credentials to "NextCloud_Image_Uploader" and "NextCloud_Public_URL_Generator" nodes
    • Link Supabase credentials to "Supabase_Content_Storage" node
  3. Update the Google Sheets Trigger node:

    • Set your spreadsheet ID in the documentId field
    • Configure polling frequency (default: every minute)
  4. Test each node connection individually before activating

## Step 4: Error Handler Setup (Optional)

The workflow references an error handler workflow (GWQ4UI1i3Z0jp3GF). Either:

  • Create a simple error notification workflow with this ID
  • Remove the error handling references if not needed
  • Update the workflow ID to match your error handler

## Step 5: Workflow Activation

  1. Save all node configurations
  2. Test the workflow with a sample row in your Google Sheet
  3. Verify content generation and storage in Supabase
  4. Activate the workflow for continuous monitoring

How It Works

## Workflow Process

  1. Trigger: Google Sheets monitors for new rows with content topics
  2. Research: Tavily searches for 3 relevant articles about the topic
  3. Content Generation: AI agent creates multi-platform content (website, blog, landing page)
  4. Content Cleaning: Text processing removes formatting artifacts
  5. Image Processing: Downloads image from Google Drive, uploads to NextCloud
  6. URL Generation: Creates public sharing links for images
  7. Storage: Saves final content package to Supabase database

## Content Output Structure

Each execution generates:

  • Optimized Title: SEO-friendly, platform-appropriate headline
  • Multi-Platform Content:
    • Website content (professional, authority-building)
    • Blog content (educational, SEO-optimized)
    • Landing page content (conversion-focused)
  • Category Classification: Automated content categorization
  • Image Assets: Processed and publicly accessible images

Customization Options

## Content Strategy Modification

  • Edit the AI agent's system message to change content style
  • Adjust character limits for different platform requirements
  • Modify category classifications for your industry

## Research Parameters

  • Change Tavily search depth (basic, advanced)
  • Adjust number of research sources (1-10)
  • Modify search topic focus

## Storage Configuration

  • Update Supabase table structure for additional fields
  • Change NextCloud folder organization
  • Modify image naming conventions

Troubleshooting

## Common Issues

Workflow not triggering:

  • Check Google Sheets permissions
  • Verify polling frequency settings
  • Ensure spreadsheet format matches requirements

Content generation errors:

  • Verify OpenAI API key and credits
  • Check GPT-4 model access
  • Review system message formatting

Image processing failures:

  • Confirm Google Drive sharing permissions
  • Check NextCloud storage space and permissions
  • Verify file formats are supported

Database storage issues:

  • Validate Supabase table structure
  • Check API key permissions
  • Review field mapping in storage node

## Performance Optimization

  • Adjust polling frequency based on your content volume
  • Monitor API usage to stay within limits
  • Consider batch processing for high-volume scenarios

Support and Updates

This template is designed for self-hosted n8n environments and requires technical setup. For issues:

  1. Check n8n community forums
  2. Review service-specific documentation
  3. Test individual nodes in isolation
  4. Monitor execution logs for detailed error information

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Multi_Platform_Content_Generator

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2.2

Block 2 - AI_Content_Strategy_Analyzer

Type / Role
@n8n/n8n-nodes-langchain.toolThink - toolThink
Config choices
Version 1.1

Block 3 - Content_Structure_Parser

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.3

Block 4 - OpenAI_GPT4_Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 5 - Supabase_Content_Storage

Type / Role
n8n-nodes-base.supabase - supabase
Config choices
Version 1

Block 6 - Content_Text_Cleaner

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 7 - Error_Handler_Trigger

Type / Role
n8n-nodes-base.executeWorkflow - executeWorkflow
Config choices
Version 1.2

Block 8 - Google_Drive_Image_Downloader

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

Block 9 - NextCloud_Image_Uploader

Type / Role
n8n-nodes-base.nextCloud - nextCloud
Config choices
Version 1

Block 10 - NextCloud_Public_URL_Generator

Type / Role
n8n-nodes-base.nextCloud - nextCloud
Config choices
Version 1

Block 11 - Google_Sheets_Trigger

Type / Role
n8n-nodes-base.googleSheetsTrigger - googleSheetsTrigger
Config choices
Version 1

Block 12 - Tavily_Research_Agent

Type / Role
@tavily/n8n-nodes-tavily.tavily - tavily
Config choices
Version 1

Block 13 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 15 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 16 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 17 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 18 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 19 - Sticky Note6

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 20 - Sticky Note7

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Generate multi-platform content with OpenAI, Tavily Research & Supabase Storage
Complexity advanced
Nodes 20
Categories Content Creation, Multimodal AI
Author Jameson Kanakulya
Published 27 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/7947/7947.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Generate multi-platform content with OpenAI, Tavily Research & Supabase Storage do?

Automated Content Page Generator with AI, Tavily Research, and Supabase Storage ️ Self Hosted Disclaimer : This template requires self hosted n8n installation an...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Content Creation, Multimodal AI use case.