← All N8N workflows
AI & researchAgentAggregateChat TriggerCodeDhl

Find WooCommerce User-ID

Configured with Agent, Aggregate, Chat Trigger, Dhl, and additional nodes. Review the connections and setup before adapting this template.

Workflow preview
TransformNo email providedEdit FieldsRoutingIf email providedIfRoutingIf user foundIfTransformNo customer foundEdit FieldsRoutingIf contains DHL dataIfTransformExtract Tracking DataEdit FieldsTransformMerge OrdersMergeTransformMerge Order andTracking DataMergeTransformSplit OutSplit OutTransformAggregateAggregateTransformMerge Tracking DataMergeData storeWindow Buffer MemoryMemory Buffer WindowTriggerExecute WorkflowTriggerExecute Workflow TriggerIntegrationWooCommerce - Get UserWoo CommerceRoutingIf order foundIfWeb / APIWooCommerce Get OrdersHTTP RequestTransformNo order foundEdit FieldsTransformAdd Error InformationEdit FieldsIntegrationDHLDhlTransformSend ResponseEdit FieldsAI & modelsOpenAI Chat ModelOpenAI Chat ModelSubworkflowWooCommerce_ToolTool WorkflowTriggerChat TriggerChat TriggerWeb / APIRespond to WebhookRespond To WebhookTriggerWebhook Example PageWebhookCodeDecrypt emailCodeCodeEncrypt emailCodeTransformExample encrypted emailEdit FieldsCodeDecrypt email addressCodeAI & modelsAI AgentAgentTransformMock DataEdit Fields

Node categories in this workflow

  • Transform
  • Routing
  • Data store
  • Trigger
  • Integration
  • Web / API
  • AI & models
  • Subworkflow
  • Code

Icons describe general node roles, inferred from node types. Inspect the parameters for the configured action.

Drag to pan; use + and − to zoom. Reconstructed from the exported node positions; nothing runs here. Dashed lines represent non-main connections. Full node names and notes appear below.

How it works

The exported workflow contains the following configured nodes. Their connections are shown above; inspect the JSON for the complete logic, expressions, and external actions.

Workflow node names, types, and operations
NodeCategoryTypeOperation
No email providedTransformEdit FieldsSee node parameters
If email providedRoutingIfSee node parameters
If user foundRoutingIfSee node parameters
No customer foundTransformEdit FieldsSee node parameters
If contains DHL dataRoutingIfSee node parameters
Extract Tracking DataTransformEdit FieldsSee node parameters
Merge OrdersTransformMergeSee node parameters
Merge Order and Tracking DataTransformMergeSee node parameters
Split OutTransformSplit OutSee node parameters
AggregateTransformAggregateSee node parameters
Merge Tracking DataTransformMergeSee node parameters
Window Buffer MemoryData storeMemory Buffer WindowSee node parameters
Execute Workflow TriggerTriggerExecute Workflow TriggerSee node parameters
WooCommerce - Get UserIntegrationWoo Commercecustomer / getAll
If order foundRoutingIfSee node parameters
WooCommerce Get OrdersWeb / APIHTTP RequestSee node parameters
No order foundTransformEdit FieldsSee node parameters
Add Error InformationTransformEdit FieldsSee node parameters
DHLIntegrationDhlSee node parameters
Send ResponseTransformEdit FieldsSee node parameters
OpenAI Chat ModelAI & modelsOpenAI Chat ModelSee node parameters
WooCommerce_ToolSubworkflowTool WorkflowSee node parameters
Chat TriggerTriggerChat TriggerSee node parameters
Respond to WebhookWeb / APIRespond To WebhookSee node parameters
Webhook Example PageTriggerWebhookSee node parameters
Decrypt emailCodeCodeSee node parameters
Encrypt emailCodeCodeSee node parameters
Example encrypted emailTransformEdit FieldsSee node parameters
Decrypt email addressCodeCodeSee node parameters
AI AgentAI & modelsAgentSee node parameters
Mock DataTransformEdit FieldsSee node parameters

Setup

  1. Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
  2. Connect your own credentials through n8n’s credential store. Replace REPLACE_WITH_* values with your resource identifiers.
  3. Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
  4. Run with synthetic data and harmless destinations. Enable triggers only after checking the actual outputs.

Requirements

An n8n instance with the listed node types and compatible versions. Service-connected workflows may require accounts, credentials, or paid APIs.

Credential types declared in the source

  • dhlApi
  • openAiApi
  • wooCommerceApi

Workflow notes

Find WooCommerce User-ID

Find WooCommerce User-ID

User-ID is required to query past orders

Add DHL tracking information

Add DHL tracking information

Queries the status of shipped orders from DHL.

Can be skipped if order tracking should not be available or replaced with other services like UPS.

Setup

Setup

Generally

  • The environment variable NODE_FUNCTION_ALLOW_BUILTIN has to equal or include the value crypto (FYI: is default on n8n cloud) as it is required to run this workflow

To test the workflow

  1. Set a valid email address of a user that exists in WooCommerce in the Mock Node "Mock Data"
  2. Enable the node "Mock Data"
  3. Disable the node "Decrypt email address"
  4. Use the built-in chat by pressing the "Chat" button

For production use:

  1. Update the "System Message" in the node "AI Agent" for specific use case. At least the name of the shop should be changed
  2. Integrate the chat into the website. An example can be found in the box "Example Website Implementation"
  3. Disable or delete the node "Mock Data"
  4. Enable the node "Decrypt email address"
  5. Enable Workflow
How to supply user email

How to supply user email

As we want to ensure that customers can only query information about their own orders, the email address gets encrypted in the backend, and then decrypt again in this workflow. If the email was allowed to be set unencrypted, anyone could query information from other customers.

The email address get supplied in the chat script at the following location:

createChat({
	webhookUrl: '...',
	metadata: {
          email: 'ENCRYPTED_EMAIL_ADDRESS'
    },
});

Example Scripts:

Encrypt email on the backend

Run the following code in the backend of your website, send the data to the frontend, and then set it dynamically at the above defined location as email.

Decrypt email in workflow

This script is already used in this workflow and is only provided here again as an example.

Example Website Implementation

Example Website Implementation

Example Code for a website can be found in node "Respond to Webhook".

More information about the embeddable chat can be found here.

Required changes:

  • Change "webhookUrl" to the displayed in "Chat Trigger" node
  • Set the encrypted email address dynamically. The value has to be calculated in the backend to make it truly secure
  • Use a unique password for email en-/decryption and use it in the backend and this workflow (can be set in node "Decrypt email address")

The example page can be opened by calling the production Webhook-URL of the node "Webhook Example Page". It only works if the "For production use" steps on the left have been followed.

Find WooCommerce User-ID

Find WooCommerce User-ID

Purpose and structure

This folder contains the Find WooCommerce User-ID workflow. Its executable nodes use agent, aggregate, chatTrigger, code, dhl, executeWorkflowTrigger, httpRequest, if, lmChatOpenAi, memoryBufferWindow, merge, respondToWebhook, set, splitOut, toolWorkflow, webhook, wooCommerce. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.

Setup

Import inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.

Entry points

Execute Workflow Trigger, Chat Trigger, Webhook Example Page

Verification

Sanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.

Attribution

https://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/workflows/Splitout/0457_Splitout_Webhook_Create_Webhook.json MIT; preserve source notices.

Canvas section labels

These name areas of the original canvas; they do not include explanatory instructions.

  • Agent
  • Get Orders
  • WooCommerce Order Tool
  • Check orders found

More in AI & research