Библиотека / ИИ-агенты и ассистенты
ИИ-агенты и ассистенты
Log, audit and escalate AI agent tool calls with Groq, Discord and data tables
When you run it, it runs an AI agent with Groq and OpenAI / ChatGPT using Groq, Data Table, Discord.
Что делает
## Log, audit and escalate AI agent tool calls ### How it works A chat agent is told to answer only from its tools, a calculator and a demo order lookup, with memory per session and intermediate steps switched on. After every reply a Code node runs deterministic rules over the run: a number in the answer that no tool result, question or earlier clean turn contains; an order, invoice or refund question answered without the lookup; instruction-like text inside a tool result; more tool calls than the policy allows; an agent that did not answer. A second Groq call judges whether the prose is supported. The rules decide FLAGGED on their own; the judge can only raise CLEAN to REVIEW, never clear a rule. Anything not CLEAN goes to flagged_answers and Discord, every tool call goes to agent_flight_log with the verdict, and the reply carries the status. Every morning a schedule counts the log, stores a digest and posts it when anything needs attention, including when nothing ran at all. ### Setup 1. Add a Groq credential to both Groq nodes and a Discord webhook credential to both Discord nodes. 2. Run Set Up Tables once: it creates the four data tables and seeds four demo orders, one deliberately poisoned. Every other node finds its table by name. 3. Ask the chat about order 1002, then about order 1004. 4. Tune Set Audit Policy: number length, ignore list, required tools, injection phrases. Activate the workflow so the daily digest runs. ### Customization tips Swap the demo lookup for your real tools and point required_tools at their names. The rules are arithmetic and phrase lists, not judgement; the judge is a model that text can fool. A flag is a pointer for a person, not a verdict.
Шаги
- Set Up Tables (run once)
- Create Orders Table
- Create Flight Log Table
- Create Flagged Answers Table
- Create Digests Table
- Build Four Demo Orders
- Upsert Demo Orders
- Chat With The Agent
- Set Audit Policy
- Run Agent With Tools
- Groq Chat Model
- Remember The Conversation
- Calculator
- Look Up Demo Order
Всего шагов: 33.
Похожие автоматизации
ИИ-агенты и ассистентыRed-team AI agents with jailbreak probes using Groq, Discord, and data tablesШагов: 43Публикации в соцсетяхScan personal data in data tables with Groq and Discord alertsШагов: 25Формы и опросыWatch vendor sub-processor pages for changes with Groq, Discord and data tablesШагов: 33Формы и опросыScreen GDPR DPIA needs with Groq, n8n forms, data tables and DiscordШагов: 27