Mastering OpenAI with n8n: Automate ChatGPT, Davinci & DALLE-2

Discover how this unique n8n workflow integrates OpenAI’s ChatGPT, Davinci, Whisper, and DALLE-2 models to automate text summarization, translation, AI image generation, and more. Save valuable time processing diverse content types with tailored AI-powered automation.
openAi
manualTrigger
code
+5
Workflow Identifier: 2240
NODES in Use: Manual Trigger, OpenAI, Code, HTTP Request, Set, HTML, Read Binary Files, Sticky Note
Automate text with n8n and OpenAI

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

What this workflow does

This workflow uses OpenAI models in n8n to save time by automating content tasks.

It solves the problem of spending many hours manually summarizing, translating, transcribing, and creating images.

The result is quick summaries, accurate translations, transcribed audio text, and creative blog cover images.


Who should use this workflow

This workflow fits people managing digital content.

Anyone who wants to reduce manual work with AI for text and images benefits from it.

It helps even if English is not your first language, as prompts and outputs are clear and simple.


Tools and services used

  • n8n Automation Platform: Runs the workflow and connects nodes.
  • OpenAI API: Access to Davinci 003, ChatGPT, Whisper, and DALLE-2 models.
  • JavaScript Code Nodes: Prepare data and customize prompts.
  • HTTP Request Node: Calls ChatGPT API directly for flexible messaging.
  • SVG graphics: Generated by GPT for extra creative outputs.
  • Optional Audio Files: For Whisper transcription (disabled unless needed).

Workflow Inputs, Processing, and Outputs

Inputs

  • User triggers workflow manually in n8n
  • Sample text is provided by Code node
  • Optional audio file input for transcription if enabled

Processing Steps

  • Davinci 003 node summarizes text with a TL;DR prompt
  • ChatGPT nodes create summaries, add emojis, and translate text
  • Davinci Edit node translates original text to German
  • Optional Whisper transcription converts audio to text for later steps
  • JavaScript Code node formats messages for ChatGPT HTTP calls
  • ChatGPT generates image prompts for DALLE-2
  • DALLE-2 image node creates 4 comic-style images from the prompt
  • Set and ChatGPT nodes create colorful SVG HTML images

Outputs

  • Text summaries in English and German
  • Translated text versions
  • Transcribed text from audio if used
  • Four comic-style AI-generated cover images
  • HTML SVG code displaying colorful shapes

Beginner step-by-step: How to build this workflow in n8n for production

Download and Import

  1. Use the Download button on this page to save the workflow file to your computer.
  2. In the n8n editor, click on the menu and choose “Import from File”.
  3. Select the downloaded workflow file to load it into your workspace.

Configure Credentials and Settings

  1. Add your OpenAI API Key in n8n credentials to allow API calls.
  2. Check any node requiring IDs, emails, or channels and update them if you use integrations requiring customization.
  3. If the workflow contains Code or Prompt texts, you can copy or edit them directly if needed.
  4. Enable the Whisper transcription nodes only if you have audio files and API quota to use.

Test and Activate Workflow

  1. Run the workflow using the Manual Trigger node by clicking “Execute Workflow”.
  2. Check the output of each node for expected results.
  3. Fix any errors by reviewing the error messages and credentials.
  4. Once satisfied, activate the workflow by toggling it ON in n8n for ongoing production use.

Customizations and Ideas

  • Change any OpenAI model or temperature to make responses more creative or focused
  • Add more language translations by copying the translation nodes and changing prompts
  • Enable Whisper transcription by adding your audio files and API quota
  • Adjust the number of emojis in the ChatGPT node for more or less expressive summaries
  • Modify the image style prompt for different art styles like watercolor or modern art
  • Use self-host n8n to keep all this on your own server and protect your data

Edge cases and troubleshooting

  • 401 Unauthorized errors: Means API Key is missing or invalid. Update credentials in n8n.
  • ChatGPT outputs cut off: Increase max tokens in OpenAI nodes for longer replies.
  • Audio transcription fails: Check MP3 file path and format before using Whisper node.
  • HTTP Request JSON errors: Verify all JSON bodies and prompt formatting in HTTP Request nodes.

Summary of what this workflow delivers

✓ Saves hours on content processing tasks

✓ Creates summaries, translations, and transcripts easily

✓ Generates comic style images for blog covers automatically

✓ Produces colorful SVG graphics for more creative use

→ Reduces manual work and errors

→ Increases productivity for content managers


Automate text with n8n and OpenAI

Visit through Desktop to Interact with the Workflow.

Frequently Asked Questions

Open n8n credentials settings. Create or edit the OpenAI API credential. Paste your valid API Key. Save the credential and select it in OpenAI nodes.
Yes, if you enable the LoadMP3 and Whisper-transcribe nodes and provide MP3 files. Otherwise, transcription is disabled by default.
Change the system prompt text in the ChatGPT node for DALLE-2 prompt generation to your desired style like modern or watercolor.
Increase the max tokens setting in the OpenAI or HTTP Request nodes to allow longer output from ChatGPT.

Promoted by BULDRR AI

Related Workflows

Automate Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.