Generate Twitter Content in Personal Style with OpenAI & Supabase RAG
π― Self-Learning X Content Engine (Creator RAG Booster)
Learn your voice. Generate posts that sound like you β not AI.
π§© Overview
This n8n workflow builds a personal RAG (Retrieval-Augmented Generation) system for creators.
It learns from your own past posts and generates new tweets, replies, and image prompts in your tone.
βοΈ How it works
Step 1 β Ingest Use the βAdd to KBβ Form to upload your past posts or notes. Text + metadata (topic, style) are stored in Supabase as vectors.
Step 2 β Generate
Use the βGenerate Postsβ Form to create new post ideas.
The Agent fetches the most relevant style snippets (via Supabase VectorStore)
Output includes:
π post
π¬ quote
π reply
π¨ image_prompt
π§ Setup (3β5 min)
Connect Supabase (URL + Key)
Make sure the table name is documents
Enable vector extension (pgvector)
Connect OpenAI API Key
Activate both Forms and open the URLs to test.
Optionally replace Forms with Webhooks.
π‘ Tip: RLS enabled? Ensure your API key allows insert/select for documents.
π§ Tech Stack n8n (self-hosted) Supabase (Vector Store) OpenAI (gpt-4.1-mini) HTML-based completion form
πͺ Credits
Built by Yusuke | @yskautomation
License: MITView on GitHub
Related Templates
Use OpenRouter in n8n versions <1.78
What it is: In version 1.78, n8n introduced a dedicated node to use the OpenRouter service, which lets you to use a lot...
Task Deadline Reminders with Google Sheets, ChatGPT, and Gmail
Intro This template is for project managers, team leads, or anyone who wants to automatically remind teammates of tasks ...
π€ Build Resilient AI Workflows with Automatic GPT and Gemini Failover Chain
This workflow contains community nodes that are only compatible with the self-hosted version of n8n. How it works This...
π Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments