Templates / Run Apache Airflow DAG and retrieve XCom value

Run Apache Airflow DAG and retrieve XCom value

Ready for 3.0

by Antonio Cheong · 957 views · created 2025-02-27 · Engineering

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 12 nodes and runs when another workflow calls it. It uses only n8n's built-in nodes.

How it runs

Trigger: When another workflow calls it.

  1. airflow-api (Edit Fields (Set)): sets 1 field: prefix
  2. Airflow: dag_run (HTTP Request): calls an HTTP API (POST)
  3. If: checks a condition and branches into true / false
  4. Wait: pauses before continuing
  5. dag run fail (Stop and Error): stops the run with an error
  6. Airflow: dag_run - state (HTTP Request): calls an HTTP API
  7. Switch: routes items into 4 branches
  8. Airflow: dag_run - get result (HTTP Request): calls an HTTP API
  9. count (Code): runs custom JavaScript code
  10. If: checks a condition and branches into true / false

…plus 1 more step. 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 (8)

From the author

Run Apache Airflow DAG and Retrieve XCom Value What this workflow does This workflow integrates the Apache Airflow API DAGRun and XCom. It enables n8n to trigger Airflow DAGs and retrieve the execution results. Preparation: 1. Update Airflow API Link Prefix -…

Excerpt from Antonio Cheong'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.