{"product_id":"groq-ai-agent-tool-call-audit-in-n8n-data-table-workflow","title":"Groq AI Agent Tool Call Audit in n8n Data Table Workflow","description":"\u003ch3\u003eGroq AI Agent “Flight Log” Audit Workflow for n8n Data Tables\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow runs a chat-based Groq-powered support agent, captures every tool call into an \u003cstrong\u003en8n Data Table\u003c\/strong\u003e, and appends an \u003cstrong\u003eaudit note\u003c\/strong\u003e that flags any numbers in the final answer that aren’t supported by the question, tool inputs, or tool results.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReceives chat input\u003c\/strong\u003e via an n8n \u003cem\u003eChat trigger\u003c\/em\u003e and starts\/continues a session.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eRuns a Groq chat model with an agent\u003c\/strong\u003e that can call tools such as a \u003cem\u003eCalculator\u003c\/em\u003e and a \u003cem\u003edemo order lookup\u003c\/em\u003e tool, returning intermediate tool steps.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCreates a log row per tool call\u003c\/strong\u003e in an n8n Data Table, including: \u003cem\u003esession_id\u003c\/em\u003e, \u003cem\u003elogged_at\u003c\/em\u003e, \u003cem\u003estep_index\u003c\/em\u003e, \u003cem\u003etool_name\u003c\/em\u003e, \u003cem\u003etool_input\u003c\/em\u003e, \u003cem\u003eobservation\u003c\/em\u003e (tool output), and a \u003cem\u003efinal_answer_excerpt\u003c\/em\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eAudits the final answer\u003c\/strong\u003e by checking whether each number in the response is supported by the question, the tool inputs, or the tool results, then writes an \u003cem\u003eaudit_note\u003c\/em\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReplies to the user\u003c\/strong\u003e with the agent’s answer plus a short flight-log line listing the tools used and the audit note.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCustomer support QA\u003c\/strong\u003e: trace exactly how answers were produced, including tool inputs and outputs.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eNumbers verification\u003c\/strong\u003e: automatically flag unsupported figures in AI responses.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSaaS operations\u003c\/strong\u003e: monitor agent behavior during order-status lookups (replace the demo order lookup with your real integration).\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGroq integration\u003c\/strong\u003e: \u003ccode\u003en8nn8n-nodes-langchainlm chat groq\u003c\/code\u003e using your Groq API credential.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eAgent + tools\u003c\/strong\u003e: \u003ccode\u003en8nn8n-nodes-langchainagent\u003c\/code\u003e with tool-calling (includes Calculator and a demo order lookup tool to be replaced).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eLogging\u003c\/strong\u003e: uses \u003ccode\u003edata table\u003c\/code\u003e plus \u003ccode\u003ecode\u003c\/code\u003e, \u003ccode\u003esticky note\u003c\/code\u003e to transform intermediate steps into a structured “flight log.”\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSchema mapping\u003c\/strong\u003e: configure Data Table columns for \u003cem\u003esession_id\u003c\/em\u003e, \u003cem\u003elogged_at\u003c\/em\u003e, \u003cem\u003estep_index\u003c\/em\u003e, \u003cem\u003etool_name\u003c\/em\u003e, \u003cem\u003etool_input\u003c\/em\u003e, \u003cem\u003eobservation\u003c\/em\u003e, \u003cem\u003efinal_answer_excerpt\u003c\/em\u003e, and \u003cem\u003eaudit_note\u003c\/em\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eAudit logic\u003c\/strong\u003e: implemented via \u003ccode\u003en8nn8n-nodes-langchaintool code\u003c\/code\u003e \/ code steps to validate number provenance.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003cp\u003e\u003cstrong\u003eNote:\u003c\/strong\u003e Update the demo order lookup tool with your real order-status lookup while keeping the same tool interface if desired.\u003c\/p\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45931075010739,"sku":"N8N-18959","price":20.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/xKEQpJIOmnyX4AqHkhU0o_s1Jp0O8m.png?v=1788254155","url":"https:\/\/buyflowscripts.com\/products\/groq-ai-agent-tool-call-audit-in-n8n-data-table-workflow","provider":"N8N Commerce","version":"1.0","type":"link"}