Templates / Debug AI agent tool calls with OpenRouter, calculator and webhook

Debug AI agent tool calls with OpenRouter, calculator and webhook

Ready for 3.0

by Elvis Sarvia ✓ · 0 views · created 2026-10-02 · Engineering, 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-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This AI workflow has 6 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects OpenRouter Chat Model.

How it runs

Trigger: When an HTTP POST request hits its webhook URL.

  1. Support Agent (AI Agent): runs an AI agent, with model: OpenRouter - Agent; 2 tools (Calculator, Order Lookup Tool)
  2. Respond (Respond to Webhook): sends the response back to the webhook caller

Services it uses

OpenRouter Chat Model

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 (6)

From the author

Quick overview This workflow gives a support agent a Calculator tool and a simulated order lookup tool, so you can compare a correct calculation, a found order and an empty lookup that still reports success. It is Exercise 4 from the n8n Production AI…

Excerpt from Elvis Sarvia'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.