This interactive demo was created free with Storylane in 2 minutes. Create your own demo
This interactive demo was created free with Storylane in 2 minutes. Create your own demo
Start free
All Tutorials /n8n

How to Add an OpenAI API Key in n8n

Updated on:
June 5, 2026
By:
Madhav Bhandari
Use this interactive demo to learn how to add an OpenAI API key in n8n.

‍

‍

It is very easy to add an OpenAI API key in n8n. Here’s a short guide on how to do it in simple steps:

‍

  1. On n8n's main dashboard, go to the top-right corner and click the drop-down arrow next to the 'Create Workflow' option.
  2. Choose 'Create Credential' from the list.
  3. After that, find and select 'OpenAI' from the app menu.
  4. Tap 'Continue' afterwards to proceed.
  5. Prepare your OpenAI API key and enter it into the provided input field.
  6. Subsequently, provide the other optional and required details associated with your OpenAI account. Among them are the Organization ID, Base URL, HTTP Request Domains, and other relevant settings.
  7. Once done, click 'Save' to apply the changes.
  8. Finally, your OpenAI API key will be added to your n8n account.

📌 Why this matters

Adding your OpenAI API key unlocks the ability to build sophisticated AI-powered workflows that can generate content, analyze data, and automate complex decision-making processes. Beyond simple automation, this integration transforms n8n into a cognitive layer for your business operations.

You can create workflows that intelligently respond to customer inquiries, generate personalized content at scale, or process unstructured data like emails and documents. The real power emerges when you chain AI responses with other tools, creating self-improving systems that learn from interactions and adapt their responses based on context and outcomes.

Your product deserves an interactive demo
Start free
Similar Articles
How to Integrate Notion with n8n WorkflowsHow to Integrate Notion with n8n Workflows
n8n

How to Integrate Notion with n8n

Madhav Bhandari
Director of Marketing @ Storylane
n8n

How to Integrate Jira with n8n

Madhav Bhandari
Director of Marketing @ Storylane
n8n

How to Connect a WhatsApp OAuth Account to n8n

Madhav Bhandari
Director of Marketing @ Storylane
No items found.
Platform
Interactive Demos
Sandbox Demos
Hubs
RepX
Integrations
Solutions
Product Marketers
Growth & Demand Gen
Sales Reps & AEs
Presales & SEs
Customer Success
Product Managers
Customers
Demo Showcase
Customer Stories
Finer Demos Club
Features
Demo Signals
Personalization
Deal Intelligence
Resources
Blog
The Plot
Tutorials
Help Docs
What’s New
Demo Dundies
Company
Careers
Pricing
Partners
Contact
Trust Center
Backed by
Chrome Extension Icon
Chrome extension
Download
Desktop app
Download
Built in San Francisco Bay Area - ©2026 Storylane
Privacy PolicyTerms & Conditions
X Corp (formerly Twitter)LinkedIn
This website uses cookies to ensure you get the best experience on our website. Learn More
Got it
This website uses cookies to ensure you get the best experience on our website. Learn More
Got it