Templates / Answer document questions via webhook with Anthropic Claude

Answer document questions via webhook with Anthropic Claude

Ready for 3.0

by Kelson Works ✓ · 0 views · created 2026-08-01 · Internal Wiki, AI RAG

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 workflow has 6 nodes and runs when an HTTP POST request hits its webhook URL. It uses only n8n's built-in nodes. It also calls api.anthropic.com over HTTP.

How it runs

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

  1. Load and Chunk Docs (Code): runs custom JavaScript code
  2. Retrieve Top Chunks (Code): runs custom JavaScript code
  3. Claude Grounded Answer (HTTP Request): calls api.anthropic.com (POST)
  4. Parse and Guard (Code): runs custom JavaScript code
  5. Send Answer (Respond to Webhook): sends the response back to the webhook caller

HTTP calls to: api.anthropic.com

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

From the author

Quick Overview This workflow exposes a webhook for document Q&A by chunking pasted docs, retrieving the most relevant sections via keyword scoring, and sending the selected excerpts to Anthropic Claude to generate a grounded, cited answer returned as JSON.…

Excerpt from Kelson Works'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.