Create and remove WordPress client projects with Hetzner, Docker, and Cloudflare DNS
Ready for 3.0What this workflow does
This workflow has 29 nodes and runs when someone submits an n8n form (“New WordPress client project”) (plus 1 other trigger). It uses only n8n's built-in nodes. It also calls api.hetzner.cloud over HTTP.
How it runs
Trigger: When someone submits an n8n form (“New WordPress client project”) (plus 1 other trigger).
- Set Project Configuration (Edit Fields (Set)): sets 8 fields: baseDomain, cloudflareZoneId, locations…
- Check New Project Request (If): checks a condition and branches into true / false
- Prepare Project Setup (Code): runs custom JavaScript code
- Fetch Project Servers (HTTP Request): calls api.hetzner.cloud (GET)
- Fetch SSH Keys (HTTP Request): calls api.hetzner.cloud (GET)
- Verify Removal Request (Code): runs custom JavaScript code
- Post Web Firewall If Missing (HTTP Request): calls api.hetzner.cloud (POST)
- Delete Project Server (HTTP Request): calls an HTTP API (DELETE)
- Fetch Web Firewalls (HTTP Request): calls api.hetzner.cloud (GET)
- Check DNS Record Exists (If): checks a condition and branches into true / false
…plus 17 more steps. See the full node list below.
HTTP calls to: api.hetzner.cloud
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (8)
- n8n Form Trigger
n8n-nodes-base.formTrigger - Edit Fields (Set)
n8n-nodes-base.set - If
n8n-nodes-base.if - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - Wait
n8n-nodes-base.wait - Switch
n8n-nodes-base.switch - Send Email
n8n-nodes-base.emailSend
From the author
Quick overview This workflow gives WordPress agencies a one-click setup for new client projects: fill in a form and get a fresh Hetzner server running WordPress, MariaDB and automatic HTTPS in Docker, with the DNS record in Cloudflare and the login sent by…