OpenAI + n8n: Free Workflows & Setup Guide
What you can automate
- ✓Generate text content (blog posts, emails, summaries)
- ✓Analyze images with GPT-4o vision
- ✓Build AI agents with tool use and reasoning
- ✓Create embeddings for semantic search
- ✓Moderate content for quality and safety
- ✓Transcribe audio with Whisper
- ✓Generate images with DALL-E
Credential setup
Go to platform.openai.com → API Keys → Create New Secret Key. Copy the key immediately (it won't be shown again). In n8n, add an OpenAI credential with this API key. Set up billing at platform.openai.com/account/billing to avoid rate limit errors.
Common errors & fixes
Incorrect API key provided (401)
API keys start with sk-. Make sure you copied the full key. If lost, generate a new one — old keys can't be retrieved.
Rate limit reached (429)
You're sending too many requests. Add delays between calls, reduce batch sizes, or switch to a higher-tier API plan. New accounts have lower limits.
Insufficient quota (429)
Your billing is inactive or you've exceeded your spending limit. Add a payment method and check your usage limits at platform.openai.com/account/limits.
Free templates using OpenAI
AI Blog Autopilot
Turns keywords or RSS items into AI-written blog drafts and posts them to WordPress.
AI Customer Support Agent
An AI agent that answers customer questions from your knowledge base via website chat.
AI Sales SDR Agent
Researches prospects and sends personalized outreach emails using AI.
AI Content Research Agent
Researches a topic, compiles sources and produces a structured content brief.
AI Caption & Hashtag Generator
Generates social media captions and hashtag sets from an image or topic using AI.
Frequently asked questions
Which model should I use?+
GPT-4o is the best all-rounder. Use GPT-4o Mini for cost-sensitive tasks. Use o1 for complex reasoning. Check pricing at openai.com/pricing.
How much does it cost?+
Pricing is per token. GPT-4o costs about $2.50 per million input tokens. A typical workflow generating a 1,000-word article costs roughly $0.01-0.03.
Can I use it with n8n's AI Agent node?+
Yes. n8n's AI Agent node works directly with OpenAI models. Select OpenAI as the chat model and configure tools, memory and system prompts.
Want us to set it up for you?
We install the workflow on your n8n instance, connect credentials, and leave you with a running automation.
Get setup help