Log, audit and escalate AI agent tool calls with Groq, Discord and data tables
Ready for 3.0What this workflow does
This AI workflow has 33 nodes and runs manually, when you click “Execute workflow” (plus 2 other triggers). Along the way it connects Groq Chat Model, Data table and Discord.
How it runs
Trigger: Manually, when you click “Execute workflow” (plus 2 other triggers).
- Create Orders Table (Data table): create (table)
- Set Audit Policy (Edit Fields (Set)): sets 7 fields: min_number_length, ignore_numbers, required_tools…
- Set Digest Policy (Edit Fields (Set)): sets 2 fields: lookback_hours, post_when_quiet
- Create Flight Log Table (Data table): create (table)
- Run Agent With Tools (AI Agent): runs an AI agent, with model: Groq Chat Model; 2 tools (Calculator, Look Up Demo Order); memory: Remember The Conversation
- Read Recent Log Rows (Data table): get
- Create Flagged Answers Table (Data table): create (table)
- Load Session History (Data table): get
- Summarise The Period (Code): runs custom JavaScript code
- Create Digests Table (Data table): create (table)
…plus 14 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (15)
- Manual Trigger
n8n-nodes-base.manualTrigger - Data table
n8n-nodes-base.dataTable - Code
n8n-nodes-base.code - Chat Trigger
@n8n/n8n-nodes-langchain.chatTrigger - Edit Fields (Set)
n8n-nodes-base.set - AI Agent
@n8n/n8n-nodes-langchain.agent - Groq Chat Model
@n8n/n8n-nodes-langchain.lmChatGroq - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - Calculator
@n8n/n8n-nodes-langchain.toolCalculator - Data Table Tool
n8n-nodes-base.dataTableTool - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - If
n8n-nodes-base.if - Discord
n8n-nodes-base.discord - Schedule Trigger
n8n-nodes-base.scheduleTrigger
From the author
Quick overview This workflow runs a chat-based support agent powered by Groq, records every tool call the agent makes into an n8n Data Table, and appends an audit note that flags any numbers in the final answer that don’t appear in the question, tool inputs,…