Block 1 - Ultimate Assistant1
- Type / Role
- @n8n/n8n-nodes-langchain.agent - agent
- Config choices
- Version 1.7
This workflow is provided as-is. Please review and test before using in production.
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 a...
@n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.memorybufferwindow, @n8n/n8n-nodes-langchain.lmchatanthropic, n8n-nodes-base.postgres, n8n-nodes-base.merge, n8n-nodes-base.aggregate, n8n-nodes-base.postgrestool, @n8n/n8n-nodes-langchain.chattrigger
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by GiovanniSegar.
Original n8n.io sourcehttps://www.youtube.com/watch?v=OwIFK-r-NtQ
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.
agent_rules) with the following columns:id: bigint (Primary Key, auto-incrementing)created_at: timestamp with time zone (Default: now())rule_text: textagent: textagent value (currently 'TestAgent') in the "Get rules from database" and "Insert rule into database" nodes if you want a different agent name.rule_text and agent.rule_text and agent columns) in all relevant Google Sheets nodes.agent value (currently 'TestAgent') in the Google Sheets nodes if you want a different agent name.This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.
| Workflow | AI agent that updates its own rules to modify behavior |
|---|---|
| Complexity | advanced |
| Nodes | 15 |
| Categories | Engineering, AI Chatbot |
| Author | GiovanniSegar |
| Published | 05 Jun 2025 |
Use the JSON export at /data/workflows/4694/4694.json as the source template for this automation.
Open n8n, import the downloaded JSON, and review each node before activating the workflow.
Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.
Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.
Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.
Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.
Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.
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 a...
Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.
Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Engineering, AI Chatbot use case.