PICKED FROM N8N.IO · ONLINE STORE

A chat agent on your website tells customers about their own WooCommerce orders. The site passes the customer's email address encrypted, and the workflow decrypts it and finds the customer. It then loads their orders, adds DHL tracking status, and an OpenAI agent writes the reply.

Template by Jan Oberhauser · 20.7k views on n8n.io · listed there as “AI-powered WooCommerce Support-Agent”

THE WORKFLOW31 NODES
≡No email provided⑂If email provided⑂If user found≡No customer found⑂If contains DHLdata≡Extract TrackingData⋈Merge Orders⋈Merge Order andTracking Data⊟Split Out⊞Aggregate⋈Merge TrackingData◐Window BufferMemoryEExecute WorkflowTriggerWWooCommerce - GetUser⑂If order found↯WooCommerce GetOrders≡No order found≡Add ErrorInformationDDHL≡Send Response◆OpenAI Chat Model⚙︎WooCommerce_Tool◌Chat Trigger↩︎Respond toWebhook⚡︎Webhook ExamplePage{}Decrypt email{}Encrypt email≡Example encryptedemail{}Decrypt emailaddress✦AI Agent≡Mock Data
DIFFICULTY
Advanced
NODES
31
USES AI
Yes
PUBLISHED
March 2024

001 / WHAT HAPPENS

  1. 01

    A chat widget sends the message and an encrypted email address to the n8n chat trigger.

  2. 02

    A code node decrypts the email and checks that one was provided.

  3. 03

    The agent calls a tool that finds the WooCommerce customer and fetches their orders.

  4. 04

    If shipment data is present, the DHL node looks up the tracking status.

  5. 05

    The agent writes a reply covering order status, products, addresses and shipping.

WHO IT SUITS

Suits a WooCommerce store that gets many where-is-my-order emails and ships with DHL or can swap in another carrier.

CONNECTS

  • WooCommerce
  • DHL
  • OpenAI

002 / BEFORE YOU USE IT HERE

  • !Customer names, addresses and order details are sent to an overseas AI provider, which is a cross-border disclosure under APP 8 of the Privacy Act, so say so in your privacy policy.
  • !Your website must encrypt the customer's email on the server side. If the email is passed unencrypted, anyone could ask about other people's orders.
  • !It uses the DHL node. Australia Post and Sendle have no built-in n8n node here, so you would need HTTP Request nodes for their tracking APIs.
  • !Set the workflow timezone to Australia/Sydney (or your city) so any dates shown to customers are local.

LOCAL SWAP

Swap the DHL node for an HTTP Request to the Australia Post or Sendle tracking API.

Need n8n and the AI hosted in Australia? →

004 / QUESTIONS

Anything else is quicker to answer on a call. Thirty minutes, free, with the people who would build it.

Yes. Every template on this list is free on n8n.io. You need an n8n account (n8n Cloud or self-hosted) and accounts for the apps it connects to, some of which charge for API use.

We adapt templates to your systems, add approval steps where customers are involved, host n8n in Australia when the data calls for it and hand it over documented.

Book a free call→