← All N8N workflows
AI & researchAgentChain LLMHTTP RequestAnthropic Chat ModelManual Trigger

LLM Chaining examples

Configured with Agent, Chain LLM, HTTP Request, Anthropic Chat Model, and additional nodes. Review the connections and setup before adapting this template.

Workflow preview
TriggerWhen clicking ‘Testworkflow’Manual TriggerWeb / APIHTTP RequestHTTP RequestTransformMarkdownMarkdownAI & modelsAnthropic Chat ModelAnthropic Chat ModelAI & modelsAnthropic Chat Model1Anthropic Chat ModelAI & modelsAnthropic Chat Model2Anthropic Chat ModelAI & modelsAnthropic Chat Model3Anthropic Chat ModelTransformMergeMergeData storeSimple MemoryMemory Buffer WindowData storeClean memoryMemory ManagerTransformInitial promptsEdit FieldsTransformSplit OutSplit OutTransformReshapeEdit FieldsAI & modelsAnthropic Chat Model4Anthropic Chat ModelTransformMerge2MergeAI & modelsBasic LLM Chain4Chain LLMTransformSplit Out1Split OutAI & modelsAnthropic Chat Model5Anthropic Chat ModelTriggerWebhookWebhookRoutingCONNECT MENo OpRoutingCONNECT ME1No OpRoutingCONNECT ME2No OpTransformInitial prompts1Edit FieldsAI & modelsLLM Chain - Step 1Chain LLMAI & modelsLLM Chain - Step 2Chain LLMAI & modelsLLM Chain - Step 3Chain LLMAI & modelsLLM Chain - Step 4Chain LLMAI & modelsAll LLM steps here -sequentiallyAgentWeb / APILLM steps - parallelHTTP RequestTransformMerge output withinitial promptsMergeTransformMerge output withinitial prompts1Merge

Node categories in this workflow

  • Trigger
  • Web / API
  • Transform
  • AI & models
  • Data store
  • Routing

Icons describe general node roles, inferred from node types. Inspect the parameters for the configured action.

Drag to pan; use + and − to zoom. Reconstructed from the exported node positions; nothing runs here. Dashed lines represent non-main connections. Full node names and notes appear below.

How it works

The exported workflow contains the following configured nodes. Their connections are shown above; inspect the JSON for the complete logic, expressions, and external actions.

Workflow node names, types, and operations
NodeCategoryTypeOperation
When clicking ‘Test workflow’TriggerManual TriggerSee node parameters
HTTP RequestWeb / APIHTTP RequestSee node parameters
MarkdownTransformMarkdownSee node parameters
Anthropic Chat ModelAI & modelsAnthropic Chat ModelSee node parameters
Anthropic Chat Model1AI & modelsAnthropic Chat ModelSee node parameters
Anthropic Chat Model2AI & modelsAnthropic Chat ModelSee node parameters
Anthropic Chat Model3AI & modelsAnthropic Chat ModelSee node parameters
MergeTransformMergeSee node parameters
Simple MemoryData storeMemory Buffer WindowSee node parameters
Clean memoryData storeMemory ManagerSee node parameters
Initial promptsTransformEdit FieldsSee node parameters
Split OutTransformSplit OutSee node parameters
ReshapeTransformEdit FieldsSee node parameters
Anthropic Chat Model4AI & modelsAnthropic Chat ModelSee node parameters
Merge2TransformMergeSee node parameters
Basic LLM Chain4AI & modelsChain LLMSee node parameters
Split Out1TransformSplit OutSee node parameters
Anthropic Chat Model5AI & modelsAnthropic Chat ModelSee node parameters
WebhookTriggerWebhookSee node parameters
CONNECT MERoutingNo OpSee node parameters
CONNECT ME1RoutingNo OpSee node parameters
CONNECT ME2RoutingNo OpSee node parameters
Initial prompts1TransformEdit FieldsSee node parameters
LLM Chain - Step 1AI & modelsChain LLMSee node parameters
LLM Chain - Step 2AI & modelsChain LLMSee node parameters
LLM Chain - Step 3AI & modelsChain LLMSee node parameters
LLM Chain - Step 4AI & modelsChain LLMSee node parameters
All LLM steps here - sequentiallyAI & modelsAgentSee node parameters
LLM steps - parallelWeb / APIHTTP RequestPOST
Merge output with initial promptsTransformMergeSee node parameters
Merge output with initial prompts1TransformMergeSee node parameters

Setup

  1. Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
  2. Connect your own credentials through n8n’s credential store. Replace REPLACE_WITH_* values with your resource identifiers.
  3. Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
  4. Run with synthetic data and harmless destinations. Enable triggers only after checking the actual outputs.

Requirements

An n8n instance with the listed node types and compatible versions. Service-connected workflows may require accounts, credentials, or paid APIs.

Credential types declared in the source

  • anthropicApi

Workflow notes

Connect to one of the blue sections -->

Connect to one of the blue sections -->

This can be anything:

  • Chat input
  • Trigger from external system
  • CRON-scheduled event
Make sure URL matches

Make sure URL matches

⚠️ Cloud users!

Replace {{ $env.WEBHOOK_URL }} with your n8n instance URL

1 - Naive Chaining

1 - Naive Chaining

PROs:

  • Easy to setup
  • Beginner-friendly

CONs

  • Not scalable
  • Hard to maintain long chains
  • SLOOOW!
2 - Iterative Agent Processing

2 - Iterative Agent Processing

PROs:

  • Scalable
  • All inputs & outputs in a single node
  • Supports Agent memory

CONs

  • Still Slow!
3 - Parallel Processing

3 - Parallel Processing

PROs:

  • Scalable
  • All inputs & outputs in a single place
  • FAST!

CONs

  • Independent requests (no Agent memory)
LLM Chaining examples

LLM Chaining examples

Purpose and structure

This folder contains the LLM Chaining examples workflow. Its executable nodes use agent, chainLlm, httpRequest, lmChatAnthropic, manualTrigger, markdown, memoryBufferWindow, memoryManager, merge, noOp, set, splitOut, webhook. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.

Setup

Import inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.

Entry points

When clicking ‘Test workflow’, Webhook

Verification

Sanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.

Attribution

https://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/workflows/Splitout/0958_Splitout_Webhook_Automation_Webhook.json MIT; preserve source notices.

Canvas section labels

These name areas of the original canvas; they do not include explanatory instructions.

  • An array of prompts here
  • Array of prompts here

More in AI & research