Find WooCommerce User-ID
Configured with Agent, Aggregate, Chat Trigger, Dhl, and additional nodes. Review the connections and setup before adapting this template.
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.
| Node | Category | Type | Operation |
|---|---|---|---|
| No email provided | Transform | Edit Fields | See node parameters |
| If email provided | Routing | If | See node parameters |
| If user found | Routing | If | See node parameters |
| No customer found | Transform | Edit Fields | See node parameters |
| If contains DHL data | Routing | If | See node parameters |
| Extract Tracking Data | Transform | Edit Fields | See node parameters |
| Merge Orders | Transform | Merge | See node parameters |
| Merge Order and Tracking Data | Transform | Merge | See node parameters |
| Split Out | Transform | Split Out | See node parameters |
| Aggregate | Transform | Aggregate | See node parameters |
| Merge Tracking Data | Transform | Merge | See node parameters |
| Window Buffer Memory | Data store | Memory Buffer Window | See node parameters |
| Execute Workflow Trigger | Trigger | Execute Workflow Trigger | See node parameters |
| WooCommerce - Get User | Integration | Woo Commerce | customer / getAll |
| If order found | Routing | If | See node parameters |
| WooCommerce Get Orders | Web / API | HTTP Request | See node parameters |
| No order found | Transform | Edit Fields | See node parameters |
| Add Error Information | Transform | Edit Fields | See node parameters |
| DHL | Integration | Dhl | See node parameters |
| Send Response | Transform | Edit Fields | See node parameters |
| OpenAI Chat Model | AI & models | OpenAI Chat Model | See node parameters |
| WooCommerce_Tool | Subworkflow | Tool Workflow | See node parameters |
| Chat Trigger | Trigger | Chat Trigger | See node parameters |
| Respond to Webhook | Web / API | Respond To Webhook | See node parameters |
| Webhook Example Page | Trigger | Webhook | See node parameters |
| Decrypt email | Code | Code | See node parameters |
| Encrypt email | Code | Code | See node parameters |
| Example encrypted email | Transform | Edit Fields | See node parameters |
| Decrypt email address | Code | Code | See node parameters |
| AI Agent | AI & models | Agent | See node parameters |
| Mock Data | Transform | Edit Fields | See node parameters |
Setup
- Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
- Connect your own credentials through n8n’s credential store. Replace
REPLACE_WITH_*values with your resource identifiers. - Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
- 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
dhlApiopenAiApiwooCommerceApi
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_BUILTINhas to equal or include the valuecrypto(FYI: is default on n8n cloud) as it is required to run this workflow
To test the workflow
- Set a valid email address of a user that exists in WooCommerce in the Mock Node "Mock Data"
- Enable the node "Mock Data"
- Disable the node "Decrypt email address"
- Use the built-in chat by pressing the "Chat" button
For production use:
- Update the "System Message" in the node "AI Agent" for specific use case. At least the name of the shop should be changed
- Integrate the chat into the website. An example can be found in the box "Example Website Implementation"
- Disable or delete the node "Mock Data"
- Enable the node "Decrypt email address"
- 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