Explore advanced AI capabilities with this n8n workflow. It includes ChatGPT, Davinci, Whisper, and DALLE-2 examples for summarization, translation, image generation, and programmatic API calls.
Download this n8n workflow template and start using it instantly.
This comprehensive n8n workflow serves as an extensive sandbox for showcasing nearly all major functionalities offered by the OpenAI API. It provides critical examples for migrating from older, expensive models like Davinci to the efficient Chat API, utilizing the dedicated OpenAI n8n node. The core value of this n8n template lies in its demonstration of sophisticated logic, such as using the Code n8n node to programmatically structure API requests and chaining AI steps—for instance, generating a summary, creating an image prompt based on that summary, and finally, generating a DALLE-2 image. Every part of this n8n workflow is designed to teach best practices for complex AI automation.
The entire process is initiated by the Manual n8n trigger, labeled 'When clicking "Execute Workflow"'.
davinci-003 n8n node branches (for completion and edit/translation) and simple ChatGPT branches (ex1.1/1.2 for summarization and chained translation, and ex2 for summarization with specific system instructions).n parameter in the OpenAI n8n node parameters.To install and use this n8n workflow, follow these steps:
Manual Trigger (When clicking "Execute Workflow"): The initial n8n trigger that starts the execution of the entire n8n workflow for manual testing purposes.
Code (Text-example): This n8n node acts as the data source, holding a long string of text used as input for all subsequent AI operations.
OpenAI (davinci-003-complete & davinci-003-edit): Demonstrates legacy text completion and editing operations (translation) using older models. Key configuration includes the use of prompt and instruction parameters.
OpenAI (ChatGPT-ex1.1, ChatGPT-ex2, ChatGPT-ex): Core nodes for text tasks using the modern Chat API. These n8n nodes show various prompting techniques, including basic user prompts and complex system prompts (like in 'ChatGPT-ex2' which enforces 5 emojis).
Code (Code-ex3.1): Crucial n8n node for advanced users. It structures the input data into a message array, preparing a payload suitable for programmatic API calls, proving flexibility beyond standard n8n node inputs.
HTTP Request (ChatGPT-ex3.1): Used to demonstrate how to call the OpenAI Chat API using a custom request, utilizing the programmatic structure created by the previous Code n8n node.
OpenAI (DALLE-ex3.3): Generates images based on the prompt generated by the preceding ChatGPT n8n node. Key settings include specifying the resource as 'image' and setting parameters like n (number of images, set to 4) and size (512x512).
Set (Set-ex4): Prepares the variables and prompt used to instruct ChatGPT to generate HTML/SVG code, demonstrating how to structure data for code generation tasks within an n8n workflow.
Use this technical n8n workflow template to create an API adapter that seamlessly integrates the cutting-edge OpenAI Responses API with existing n8n LLM and AI Agent nodes, handling both streaming and standard responses.

Deploy a powerful n8n workflow featuring an AI Agent powered by GPT-4 and DALL-E. Use this n8n automation to generate custom logos, style guides, and gradient backgrounds on demand via a chat interface.

Automate OpenAI DALL-E image editing using a custom n8n workflow. Trigger edits with a prompt and source image, then convert the Base64 output back to a file using an n8n node.

Generate random, engaging tweets using OpenAI, and automatically log the generated content and hashtags into Airtable using this powerful n8n workflow. Perfect for content creators.








































