n8n

How to Automate WooCommerce Order Tracking Support?

Give customers fast order answers right inside a chat on your site. The system checks a secure email token, finds the right WooCommerce customer, pulls recent orders, and adds live DHL tracking details. It reduces support tickets and speeds up response time for common order questions.

A chat webhook starts the flow. The email in the chat metadata is decrypted and verified. The build looks up the WooCommerce user ID, fetches orders, and reads the shipment tracking items from order meta. If tracking exists, each tracking number is sent to DHL, then all results are merged back into the order data. An AI agent with OpenAI and short term memory uses a WooCommerce tool to request order data and writes clear replies. Responses go back to the chat in real time.

Setup needs WooCommerce, DHL, and OpenAI credentials, plus one shared secret for email encryption and decryption. Keep the crypto setting enabled, update the agent system message with your store name, and embed the example chat page with the provided webhook URL. Expect fewer tickets, faster updates, and a smooth customer experience for post purchase support. Stores that use DHL get live tracking in the same chat. If you use another carrier, you can swap the tracking step.

What are the key features?

  • Chat webhook trigger that starts a conversation from your website widget
  • Secure email decryption to verify the customer before sharing any order data
  • WooCommerce user lookup by email to get the correct customer ID
  • Order retrieval from WooCommerce with checks for cases where no orders exist
  • Tracking extraction from order meta and conditional DHL calls for each shipment
  • Merge and aggregate steps that join tracking updates back to the right orders
  • AI agent with OpenAI and memory that crafts natural replies and can call the WooCommerce tool
  • Example website page and webhook response for quick testing and smooth handoff to production

What are the benefits?

  • Reduce manual order lookups from 20 minutes to 1 minute per request
  • Automate up to 90 percent of routine order status questions
  • Improve data accuracy by pulling live results from WooCommerce and DHL
  • Handle up to 10 times more customer chats without extra staff
  • Connect store orders, shipping tracking, and chat replies 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 credentials. Double click the WooCommerce nodes, choose Create new credential, enter your store base URL, then paste the API key and secret from WooCommerce REST API.
  4. Create DHL credentials. Double click the DHL node, click Create new credential, then add your DHL API key and any required fields from the DHL developer portal.
  5. Create OpenAI credentials. Double click the OpenAI Chat Model node, click Create new credential, and paste your OpenAI API key from your OpenAI account.
  6. Open the AI Agent node and update the System Message with your store name and the tone you want for replies.
  7. Set the same secret password for email encryption and decryption in your backend and in the Decrypt email address node. Keep the crypto setting enabled on your n8n instance.
  8. For testing, enable the Mock Data node, disable the Decrypt email address node, and set a known WooCommerce customer email in Mock Data. Click the Chat button in n8n to start a test chat.
  9. For production, disable Mock Data and enable Decrypt email address. Copy the Chat Trigger webhook URL into your website chat script and pass the encrypted email in the metadata field.
  10. Open the Webhook Example Page node URL to check the sample chat page. Confirm the chat connects and that the bot can find orders and return results.
  11. Verify DHL tracking. Make sure your orders include shipment data in the _wc_shipment_tracking_items meta. If none is present, replies will still include order details without tracking.
  12. Troubleshoot common issues. If WooCommerce returns 401 or 403, check API key permissions and your store URL. If DHL returns not found, confirm the tracking number. If you see No email address got provided, ensure the chat metadata contains the encrypted email and the shared secret matches.

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.