Templates / Train and run a deep neural network via webhooks using pure code nodes

Train and run a deep neural network via webhooks using pure code nodes

Ready for 3.0

by Alex Raj ✓ · 3 views · created 2026-08-25 · Engineering, AI Summarization

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 45 nodes and runs when an HTTP POST request hits its webhook URL (plus 1 other trigger). It uses only n8n's built-in nodes.

How it runs

Trigger: When an HTTP POST request hits its webhook URL (plus 1 other trigger).

  1. Run Backpropagation (Code): runs custom JavaScript code
  2. Initialize Layer 1 Node (Code): runs custom JavaScript code
  3. Initialize Layer 1 Node (Code): runs custom JavaScript code
  4. Initialize Layer 1 Node (Code): runs custom JavaScript code
  5. Initialize Layer 1 Node (Code): runs custom JavaScript code
  6. Initialize Layer 1 Node (Code): runs custom JavaScript code
  7. Initialize Layer 1 Node (Code): runs custom JavaScript code
  8. Initialize Layer 1 Node (Code): runs custom JavaScript code
  9. Initialize Layer 1 Node (Code): runs custom JavaScript code
  10. Initialize Layer 1 Node (Code): runs custom JavaScript code

…plus 33 more steps. See the full node list below.

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 two webhooks to train and run inference for a 3-hidden-layer neural network built entirely with n8n Code and Merge nodes, persisting learned weights in workflow static data and returning class probabilities, predictions,…

Excerpt from Alex Raj'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.