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

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

Learn how to Build this Workflow with AI:

Visit through Desktop for Best experience

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


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 Viral UGC Video Creation Using n8n + Degaus (Beginner-Friendly Guide)

Learn how to automate viral UGC video creation using n8n, AI prompts, and Degaus. This beginner-friendly guide shows how to import, configure, and run the workflow without technical complexity.
Form Trigger
Google Sheets
Gmail
+37
Free

AI SEO Blog Writer Automation Workflows in n8n

A complete beginner guide to building an AI SEO blog writer automation using n8n.
AI Agent
Google Sheets
httpRequest
+5
Free

Automate CrowdStrike Alerts with VirusTotal, Jira & Slack

This workflow automates processing of CrowdStrike detections by enriching threat data via VirusTotal, creating Jira tickets for incident tracking, and notifying teams on Slack for quick response. Save hours daily by transforming complex threat data into actionable alerts effortlessly.
scheduleTrigger
httpRequest
jira
+5
Free

Automate Telegram Invoices to Notion with AI Summaries & Reports

Save hours on financial tracking by automating invoice extraction from Telegram photos to Notion using Google Gemini AI. This workflow extracts data, records transactions, and generates detailed spending reports with charts sent on schedule via Telegram.
lmChatGoogleGemini
telegramTrigger
notion
+9
Free

Automate Email Replies with n8n and AI-Powered Summarization

Save hours managing your inbox with this n8n workflow that uses IMAP email triggers, AI summarization, and vector search to draft concise replies requiring minimal review. Automate business email processing efficiently with AI guidance and Gmail integration.
emailReadImap
vectorStoreQdrant
emailSend
+12
Free

Automate Email Campaigns Using n8n with Gmail & Google Sheets

This n8n workflow automates personalized email outreach campaigns by integrating Gmail and Google Sheets, saving hours of manual follow-up work and reducing errors in email sequences. It ensures timely follow-ups based on previous email interactions, optimizing communication efficiency.
googleSheets
gmail
code
+5
Free