System Prompt Tuning Agent N8N
N8N agent workflow for an agent that recommends fixes to system prompts based on structured user inputs provided by form
About This Project
System-Prompt-Tuning-Agent-N8N is an n8n automation workflow that helps prompt engineers and AI developers refine the system prompts of AI agents. A form trigger collects required details such as the agent name, purpose, observed strengths and weaknesses, and the current system prompt, along with optional example inputs and outputs. The collected information is passed to an AI agent backed by OpenAI's GPT-4o, which is configured with a specialized prompt for prompt engineering. The agent evaluates the existing prompt, identifies opportunities for improvement, and produces an updated system prompt together with a summary of the changes.
The workflow uses a structured output parser to return results in JSON, and an email delivery node sends the updated prompt and a comparison against the original to the user. The process is fully automated, which allows system prompts to be iterated and tested without manual rewriting at each step.
The project is useful for AI developers tuning agent configurations, prompt engineers looking to optimize instructions, and teams that need consistent agent behavior across AI applications. It also offers an outside perspective on prompt design that may surface alternative approaches not apparent through manual iteration.