AI System Prompt Generator & Optimizer (n8n + OpenAI)

Go to Workflow
0 views
Built by Robert Breen Robert Breen
Created on August 19, 2025

Description


This workflow acts as a System Prompt Optimizer Agent.
You send it a draft prompt or goal, and it returns:
A rewritten optimized system prompt that is clear, specific, and actionable.
A recommendation for the best OpenAI model to use based on reasoning needs, complexity, and latency/cost tradeoffs.

The workflow uses memory for context, so you can iteratively refine prompts.

āš™ļø Setup Instructions

1ļøāƒ£ Set Up OpenAI Connection
Go to OpenAI Platform
Navigate to OpenAI Billing
Add funds to your billing account
Copy your API key into the OpenAI credentials in n8n

šŸ“ Example Question

Categories

AI Langchain

Nodes Used (3)

AI Agent
@n8n/n8n-nodes-langchain.agent
OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi
Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow