n8n

How to Automate WooCommerce Order Support?

Give shoppers instant order answers inside a website chat. The flow verifies the customer by encrypted email, pulls their recent WooCommerce orders, and adds live DHL tracking. Support teams save time while customers get clear, real time status updates.

Here is how it runs end to end. A chat webhook starts the session and passes an encrypted email from your site. The workflow decrypts the email, finds the matching WooCommerce user, and loads recent orders. It scans order metadata for tracking numbers, then calls DHL to get the latest events. Split and Aggregate nodes handle multiple shipments, and Merge nodes tie tracking back to each order. An AI agent with OpenAI turns the raw data into a simple message. Guardrails cover missing emails, unknown customers, and orders without tracking, and memory keeps short chat context. An example web page shows how to embed the chat.

Setup needs WooCommerce and DHL API keys plus an OpenAI key. The environment must allow crypto functions for email encryption and decryption. Expect fewer where is my order tickets, faster replies, and less manual checking. Best for WooCommerce stores that ship with DHL and want instant order help without extra staff.

What are the key features?

  • Chat Trigger starts the conversation from a secure webhook on your site.
  • Encrypted email handling verifies the customer without exposing data.
  • WooCommerce user lookup and order retrieval with clear error paths.
  • DHL tracking fetch using Split Out and Aggregate to manage many tracking numbers.
  • Merge nodes combine order data and tracking events into one clean payload.
  • OpenAI Chat Model with an AI agent drafts friendly, simple replies.
  • Window Buffer Memory keeps recent chat context for smoother back and forth.
  • Example website page and Respond to Webhook node to test and embed the chat.

What are the benefits?

  • Reduce manual checks from 15 minutes to 1 minute per request
  • Automate up to 70% of where is my order questions
  • Improve data accuracy by pulling live DHL tracking updates
  • Handle hundreds of chats at once without extra agents
  • Connect WooCommerce, DHL and AI chat in one place

How do you set it up?

  1. Import the template into n8n: Create a new workflow in n8n > Click the three dots menu > Select 'Import from File' > Choose the downloaded JSON file.
  2. You'll need accounts with WooCommerce, DHL and OpenAI. See the Tools Required section above for links to create accounts with these services.
  3. In the n8n credentials manager, create WooCommerce API credentials. In your WooCommerce dashboard, generate REST API keys, then in n8n open the WooCommerce nodes, choose Create new credential, and enter the URL, key, and secret.
  4. Create DHL API credentials. In the DHL developer portal, make an API key. In n8n open the DHL node, choose Create new credential, and paste the key and any required account details.
  5. Create an OpenAI API key in your OpenAI account. In n8n open the OpenAI Chat Model node, choose Create new credential, and paste the API key.
  6. Set the environment requirement for crypto. On n8n Cloud this is enabled by default. If self hosted, ensure NODE_FUNCTION_ALLOW_BUILTIN includes crypto.
  7. Open the Decrypt email address node and set a strong password. Use the same password in your website backend to encrypt the email before sending it to the chat.
  8. In your website, use the example from the Webhook Example Page and set the webhookUrl from the Chat Trigger node. Pass the encrypted email in the metadata field.
  9. During testing, enable the Mock Data node and disable Decrypt email address. Use a known WooCommerce email to validate order lookup and responses.
  10. For production, disable Mock Data and enable Decrypt email address. Update the AI Agent system message with your store name and tone.
  11. Verify flows: try an email with no account to see the No customer path, an account with no orders for No order found, and an order with tracking to confirm DHL events are returned.
  12. If DHL calls fail, check the Add Error Information node output, confirm the API key, and retry. Also verify tracking keys exist in WooCommerce metadata.
  13. Publish the chat on your site, monitor responses in n8n execution logs, and adjust message wording in the AI Agent as needed.

Tools Required

$24 / mo or $20 / mo billed annually to use n8n in the cloud. However, the local or self-hosted n8n Community Edition is free.

Free access via Developer Portal; no public per-call pricing published

OpenAI

Sign up

Pay-as-you-go: GPT-5 at $1.25 per 1M input tokens and $10 per 1M output tokens

WooCommerce

Sign up

Free: $0 (core WooCommerce plugin with REST API)

Similar Templates

Join Futurise to access 1,200+ automation templates

Get instant access to ready-made automation workflows for n8n, Make.com, AI agents, and more. Download, customise, and deploy in minutes.