AI Agent that updates its own rules to modify behavior
    100%
    Data Processing
    0(0 reviews)
    145 downloads

    AI Agent that updates its own rules to modify behavior

    NM

    Curated by n8n Markets team

    Last updated: March 8, 2026

    ## Video walkthrough https://www.youtube.com/watch?v=OwIFK-r-NtQ ## 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., `agent_rules`) with the following columns: * `id`: `bigint` (Primary Key, auto-incrementing) * `created_at`: `timestamp with time zone` (Default: `now()`) * `rule_text`: `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 `rule_text` 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 `rule_text` 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

    What's Included

    • Complete n8n workflow template with 0 nodes. Ready to import and customize.

    Requirements

    n8n instance (self-hosted or cloud). credentials.

    How to Use

    1. Download the workflow JSON 2. Import into your n8n instance 3. Configure credentials for 4. Activate and enjoy automation

    Apps in this n8n workflow

    How to import this template into n8n

    1. Download the workflow JSON file from this page.
    2. In n8n, open Workflows, create a new workflow and choose Import from File.
    3. Open each node that shows a warning and connect your own credentials.
    4. Run the workflow once manually to check the output before you activate it.
    Included in Pro
    • Importable n8n workflow JSON file
    • Download with Builder Pro or Agency Unlimited
    • Built for n8n v1.0++
    • Setup time: 15-30 min

    Included in Builder Pro — $19/mo, 4,177 premium workflows

    Before you activate

    Templates are reviewed before they are listed. Test with your own credentials and data before running it in production.

    Updated Mar 2026
    v1.0
    SSL
    Secure
    GDPR

    100% Secure Checkout

    Refund requests within 7 days of a new subscription

    Dependencies & Requirements

    HTTP Request
    Integration

    ⚠️ 1 service require credentials. Make sure you have accounts set up before importing.

    Reviews

    0

    No reviews yet

    See all 0 reviews ↓
    —

    0 reviews

    5★
    0
    4★
    0
    3★
    0
    2★
    0
    1★
    0

    No reviews yet.

    Questions & Answers

    0

    Log in to ask a question.

    No questions yet. Be the first to ask!

    People Also Bought