AI System Prompt Generator & Optimizer (n8n + OpenAI)

Nodes

24e3b914-15fa-444f-80e3-ca29bdacaf40

Created by

rbRobert Breen

Last edited 115 days ago

This workflow acts as a System Prompt Optimizer Agent.
You send it a draft prompt or goal, and it returns:

  1. A rewritten optimized system prompt that is clear, specific, and actionable.
  2. 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

  1. Go to OpenAI Platform
  2. Navigate to OpenAI Billing
  3. Add funds to your billing account
  4. Copy your API key into the OpenAI credentials in n8n

📝 Example Question

New to n8n?

Need help building new n8n workflows? Process automation for you or your company will save you time and money, and it's completely free!