Build an expert n8n workflow to automate DHL shipment tracking responses. This template uses an n8n trigger for webhooks and Gmail to instantly reply to customer inquiries.
Download this n8n workflow template and start using it instantly.
Customer service teams often spend significant time responding to standard 'Where is my order?' inquiries. This expert n8n workflow solves this inefficiency by creating a fully automated DHL tracking bot capable of handling requests from two critical channels: website forms and direct customer emails.
By leveraging the versatile n8n trigger system, the workflow listens continuously for incoming tracking numbers. Once a number is received, regardless of the source, the powerful n8n node processes the data, calls the official DHL API, formats the current status information, and intelligently routes the reply back to the originating channel (either a clean JSON response for a web form or a friendly, formatted email via the Gmail n8n node).
This sophisticated n8n workflow ensures rapid customer feedback, drastically improves response times, and allows support staff to focus on more complex issues, maximizing the value of your existing n8n installation.
This n8n workflow operates using a dual-channel n8n trigger setup for maximum coverage:
To deploy this complete n8n workflow template, follow these steps:
YOURDHLAPI_KEY in the DHL-API-Key field with your actual key.This n8n workflow utilizes several specialized n8n nodes to achieve its goal:
Webhook Form Trigger: Function: Serves as the primary real-time n8n trigger for website form submissions. Key Configuration: Uses the POST method and is set to return the response via a dedicated response node.
Gmail Email Trigger: Function: The secondary n8n trigger, continuously polling a designated Gmail inbox for new, unread emails containing tracking inquiries. Key Configuration: Requires Gmail OAuth2 credentials.
Merge Triggers (Merge n8n node): Function: Combines the incoming data from the two parallel triggers into a single stream for subsequent processing.
Extract Tracking Number (Code n8n node): Function: A crucial data preparation step. It normalizes the input data, using conditional logic to extract the tracking number and customer contact details from either the webhook body or the email text (using regex).
Get DHL Tracking Status (HTTP Request n8n node): Function: The integration point. It queries the external DHL API. Key Configuration: Uses HTTP Header Authentication to pass the required DHL-API-Key and dynamically sets the tracking number using an n8n expression: ={{ $json.trackingNumber }}.
Format Response Message (Code n8n node): Function: Transforms the raw DHL API data into a polished, human-friendly message body for the customer. It also sets the isWebhook flag used for routing.
Check Source (If n8n node): Function: Flow control gate. Determines which path to take based on the isWebhook flag generated in the previous n8n node.
Webhook Response (RespondToWebhook n8n node): Function: Used only if the original n8n trigger was a webhook. It sends a structured JSON response (containing tracking details) instantly back to the web form.
Send To parameter.Use this powerful n8n workflow to automatically triage Google Form submissions using GPT-4o-mini, route priority cases, generate personalized auto-replies via Gmail, and log all data to Google Sheets. Discover effective n8n templates for support automation.

Use this powerful n8n workflow to automate customer support replies in Gmail. It features an AI agent utilizing a Pinecone knowledge base (RAG) and automatic KB updates via Google Drive. Ideal for maximizing efficiency with n8n templates.

Deploy a smart customer support system using an n8n workflow. Automatically analyze emails, retrieve answers from Qdrant knowledge bases, and resolve tickets using OpenAI agents and RAG architecture.

Use this robust n8n workflow to automate DNS record enumeration for all subdomains of a target domain using the HackerTarget API. Generates a detailed, compliant Markdown report and sends it using the n8n Gmail node.

Use this comprehensive n8n workflow to automatically process daily AI newsletters. It extracts articles, summarizes them using the Gemini n8n node, categorizes them via OpenAI, and archives the structured data in Google Sheets. Ideal for market research.

Business creator from Tokyo. Designing AI-driven automations that enhance marketing, reporting, and daily operations. I turn complex workflows into simple, elegant automations with n8n.







































