AI agent that updates its own rules to modify behavior
Video walkthrough Summary of agent This agent can write and rewrite its own rules, allowing you to mold its behavior. It receives rules from a database as system instructions and has tools to create, edit, or delete them. This is a great baseline for new agent builds. You can tell it things like "Next time, use present tense when talking about this subject" and it will use a tool to save this as a rule, then receive that instruction in all fut
At a glance
AI agent that updates its own rules to modify behavior is a ready-made n8n workflow you import as a workflow JSON file — no build required. It connects agent, aggregate, chatTrigger, googleSheets. It's free to download. Follow the 5-step import below to go live in minutes.
- Platform
- n8n
- Connects
- agent, aggregate, chatTrigger, googleSheets, googleSheetsTool, lmChatAnthropic
- Modules
- 13
- Price
- Free
- Version
- v1.0

About this workflow
Video walkthrough Summary of agent This agent can write and rewrite its own rules, allowing you to mold its behavior. It receives rules from a database as system instructions and has tools to create, edit, or delete them. This is a great baseline for new agent builds. You can tell it things like "Next time, use present tense when talking about this subject" and it will use a tool to save this as a rule, then receive that instruction in all future iterations. How to start using it Option 1: With a Postgres database (e.g., Supabase) 1. Supabase Schema: Create a table (e.g., agentrules) with the following columns: id: bigint (Primary Key, auto-incrementing) createdat: timestamp with time zone (Default: now()) ruletext: text agent: text 2. Workflow Updates: Update the Postgres credentials in the "Get rules from database," "Insert rule into database," and "Execute query on rule database" nodes. Update the agent value (currently 'TestAgent') in the "Get rules from database" and "Insert rule into database" nodes if you want a different agent name. Update the Anthropic API credentials. Option 2: With Google Sheets 1. Google Sheet Setup: Create a Google Sheet with columns for ruletext and agent. 2. Workflow Updates: Example Google Sheets nodes are included. You will need to: Connect your Google Sheets credentials. Select your Google Sheet (with ruletext and agent columns) in all relevant Google Sheets nodes. Replace the existing Postgres nodes ("Get rules from database", "Insert rule into database", "Execute query on rule database") with the configured Google Sheets nodes. Update the agent value (currently 'TestAgent') in the Google Sheets nodes if you want a different agent name. Update the Anthropic API credentials. Agent Instructions: Update the agent's system message and remove the database schema section as it is no longer relevant
How to import this n8n workflow
- 1
Download the workflow JSON file after purchase.
- 2
Open n8n → click the menu → Import from File.
- 3
Select the downloaded JSON and import.
- 4
Set up credentials for each node that requires them.
- 5
Click Execute Workflow to test, then activate.
Setup guide
Setup guide included
Purchase to unlock the full step-by-step guide
Related N8n workflows
Automate personalized email campaigns with Google Docs, Sheets and SMTP
AI-powered research assistant for platform questions with GPT-4o and MCP
LinkedIn talent pipeline: AI-powered candidate search & ranking with GPT-4o
Generate & enrich LinkedIn leads with Apollo.io, LinkedIn API, Mail.so & GPT-3.5
Generate AI videos and carousels with Blotato for Instagram and TikTok
Extract personal data with self-hosted LLM Mistral NeMo
Effortless email management with AI-powered summarization & review
Automate sales for digital products & SaaS with AI (GPT-4o)
Reviews
No reviews yet
Be the first to buy and share your experience.
Leave a review
Sign in to share your experience with this workflow.
Create a free account to purchase workflows.
- JSON blueprint — instant download
- Setup guide PDF included
- 5 downloads · valid 30 days
- Works with n8n
Need help setting this up?
Book a 3-hour live setup session with an Agility consultant.
- Configure live on Google Meet / Zoom
- Free follow-up if workflow has defects
- Platform expert assigned to you