Bibliothek / KI-Agenten & Assistenten
KI-Agenten & Assistenten
Einen Claude-Assistenten bauen, der seine eigenen Regeln umschreibt
Bei einer eingehenden Chatnachricht speichert und aktualisiert ein Claude-Assistent seine eigenen Verhaltensregeln in einer Postgres-Datenbank und nutzt Google Sheets als Tool.
Was sie bewirkt
## 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. ## 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
Die Schritte
- Ultimate Assistant1
- Chat History1
- Anthropic Chat Model
- Get rules from database
- Merge
- Aggregate
- Insert rule into database
- Execute query on rule database
- When chat message received
- Get rules from sheets
- Add rule to sheet
- Update rule in sheet
- Delete rule in sheet
Ähnliche Automatisierungen
KI-Agenten & AssistentenTech-Stack-Experten-Agent mit Claude und Postgres-Gedächtnis7 SchritteKI-Agenten & AssistentenInvestigate Sentry incidents with Google Gemini, Postgres, GitHub and Slack14 SchritteKI-Agenten & AssistentenMit Search-Console-Daten per OpenAI und Postgres chatten16 SchritteKI-Agenten & AssistentenMulti-Agenten-Chatbot für Postgres-Daten mit QuickChart19 Schritte