Create Customer
Overview
The Create Customer action creates a new customer account in your WooCommerce store using details collected during the bot conversation, such as name, email, phone number, and address. Customer records created through this action support order management, login access, and future purchases.
Prerequisites
Before configuring this action, ensure the following:
You have an active WooCommerce connection configured in Ownchat
The bot you want to configure is already created in the Bot Builder
Customer detail variables (e.g., name, email) have been collected in a previous workflow node
Step 1: Add a Create Customer Node
Click Add Node in the Bot Builder to create a new action node.
Go to the Connections tab within the node editor.
Click WooCommerce to expand the available actions.
Click Create Customer to open the configuration form.
Step 2: Configure the Action
2.1 β Name the Action
Enter a descriptive name in the action name field (e.g., Create WooCommerce Customer).
2.2 β Select Connection
From the dropdown, select your WooCommerce connection (e.g., woocommerce-ownchat).
Step 3: Map Customer Fields
For each customer field, click Add variable and use the search field to find and select the relevant variable.
Field
How to Populate
Name
Click Add variable β select name from the customer variables list
Click Add variable β select the email variable
First Name
Click Add variable β select name, then enter .first after the variable in the field (e.g., name.first)
For any additional fields, click Add variable, search for the required variable, and select it from the dropdown.
Step 4: Store the Response
From the variable dropdown, select or create a variable to store the customer creation response returned by WooCommerce. This variable can be referenced in downstream workflow steps.
Step 5: Save and Publish
Click Create to submit the customer creation action.
Click Publish to deploy the bot with the new action.
Notes
Customer detail variables should be captured in earlier nodes of the workflow before this action is reached.
The First Name field uses dot notation to extract a specific part of the name variable (e.g., name.first).
Click Add variable for each field you want to populate. Fields left without a variable will not be included in the customer record.
Changes take effect only after clicking Publish.
Related Actions
WooCommerce β Get Customer Details β Retrieve details of an existing WooCommerce customer
WooCommerce β Get All Orders β Retrieve all orders from your WooCommerce store
Bot Builder β Node Configuration β General guide to adding and configuring nodes
Last updated