Templates / Log, audit and escalate AI agent tool calls with Groq, Discord and data tables

Log, audit and escalate AI agent tool calls with Groq, Discord and data tables

Ready for 3.0

by Melbin Francis ✓ · 2 views · created 2026-08-31 · Ticket Management, AI Chatbot

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What 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).

  1. Create Orders Table (Data table): create (table)
  2. Set Audit Policy (Edit Fields (Set)): sets 7 fields: min_number_length, ignore_numbers, required_tools…
  3. Set Digest Policy (Edit Fields (Set)): sets 2 fields: lookback_hours, post_when_quiet
  4. Create Flight Log Table (Data table): create (table)
  5. 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
  6. Read Recent Log Rows (Data table): get
  7. Create Flagged Answers Table (Data table): create (table)
  8. Load Session History (Data table): get
  9. Summarise The Period (Code): runs custom JavaScript code
  10. Create Digests Table (Data table): create (table)

…plus 14 more steps. See the full node list below.

Services it uses

Groq Chat ModelData tableDiscord

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)

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,…

Excerpt from Melbin Francis's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.