> For the complete documentation index, see [llms.txt](https://docs.ownchat.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ownchat.app/bot/connections/woo-commerce/create-customer.md). Agents can also search and read this documentation through its [MCP server](https://docs.ownchat.app/~gitbook/mcp).

# Create Customer

### Overview &#x20;

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.

{% embed url="<https://app.supademo.com/demo/cmpmn5ozw4muvqms9lk1aquwo?utm_source=link>" %}

### Prerequisites &#x20;

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 &#x20;

1. Click Add Node in the Bot Builder to create a new action node.

{% embed url="<https://app.supademo.com/demo/cmpw7w2io000c220jpvejyq36?utm_source=link>" %}

2. Go to the Connections tab within the node editor.
3. Click WooCommerce to expand the available actions.<br>

{% embed url="<https://app.supademo.com/demo/cmpw7xkwa001fze0jwdi5ienh?utm_source=link>" %}

2. Click Create Customer to open the configuration form.<br>

{% embed url="<https://app.supademo.com/demo/cmpw81da6000g220jp9twa94i?utm_source=link>" %}

### Step 2: Configure the Action &#x20;

#### 2.1 — Name the Action &#x20;

Enter a descriptive name in the action name field (e.g., Create WooCommerce Customer).

{% embed url="<https://app.supademo.com/demo/cmpw8a0lq000a310jxnrpnrjj?utm_source=link>" %}

#### 2.2 — Select Connection &#x20;

From the dropdown, select your WooCommerce connection (e.g., woocommerce-ownchat).<br>

{% embed url="<https://app.supademo.com/demo/cmpw8a0lq000a310jxnrpnrjj?utm_source=link>" %}

### Step 3: Map Customer Fields &#x20;

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                                      |
| Email      | 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.<br>

{% embed url="<https://app.supademo.com/demo/cmpw8b975000l220j9a13a5c6?utm_source=link>" %}

### Step 4: Store the Response &#x20;

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.<br>

{% embed url="<https://app.supademo.com/demo/cmpw8uusc011p0k0iu9s6na7l?utm_source=link>" %}

### Step 5: Save and Publish &#x20;

1. Click Create to submit the customer creation action.<br>

{% embed url="<https://app.supademo.com/demo/cmpw8w5r9011r0k0ixtv7adaj?utm_source=link>" %}

2. Click Publish to deploy the bot with the new action.<br>

{% embed url="<https://app.supademo.com/demo/cmpw8yaai0060220jpe05f8cd?utm_source=link>" %}

### Notes &#x20;

* 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 &#x20;

* 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
