Templates / Trace refund approval flows with OpenRouter and OpenTelemetry

Trace refund approval flows with OpenRouter and OpenTelemetry

Needs changes

by Elvis Sarvia ✓ · 0 views · created 2026-10-05 · Document Extraction, AI Chatbot

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 10 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects OpenRouter Chat Model. It also calls postman-echo.com over HTTP.

How it runs

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

  1. Enrich Request Sub-workflow (Execute Sub-workflow): calls another n8n workflow
  2. Policy Service Call (HTTP Request): calls postman-echo.com
  3. Approval Proposal Agent (AI Agent): runs an AI agent, with model: OpenRouter - Approval
  4. Return Approval Request (Respond to Webhook): sends the response back to the webhook caller
  5. Wait: pauses until webhook
  6. Validate Approval (If): checks a condition and branches into true / false
  7. Record Approval (Edit Fields (Set)): sets 7 fields: requestId, proposal, submittedApprover…
  8. Reject Approval (Stop and Error): stops the run with an error

Services it uses

OpenRouter Chat Model

HTTP calls to: postman-echo.com

Before you upgrade to n8n 3.0

1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:

  • AI Agent v1 (old agent modes) in Approval Proposal Agent (v1.7): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Removed in 3.0Replace with
AI Agent v1 (old agent modes)
Approval Proposal Agent (v1.7)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Nodes used (10)

From the author

Quick overview This workflow enriches a refund request, drafts an approval proposal with an AI agent, and waits for a human decision, so you can follow one execution across the wait with OpenTelemetry tracing. It is Exercise 5 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.