> 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/check-customer.md).

# Check Customer

### Overview &#x20;

The Check Customer action verifies whether a customer already exists in your WooCommerce store database using their email address. Use this action to avoid creating duplicate customer accounts and to retrieve existing customer information for use in downstream workflow steps.

{% embed url="<https://app.supademo.com/demo/cmpnn7d840cfuqmxcvnnyop3d?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
* The customer's email address is available as a variable from a previous workflow node

### Step 1: Add a Check Customer Node &#x20;

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

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

2. Go to the Connections tab within the node editor.

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

3. Click WooCommerce to expand the available actions.<br>

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

3. Click Check Customer to open the configuration form.<br>

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

### Step 2: Select Connection &#x20;

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

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

### Step 3: Set the Customer Identifier &#x20;

1. Click Add variable to open the variable selector.<br>

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

2. Use the search field to filter available variables.
3. Select Email from the dropdown to map the customer's email address to this field.<br>

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

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

From the variable dropdown, select or create a variable to store the customer check response returned by WooCommerce. This variable can be used in downstream nodes to apply conditional logic based on whether the customer exists.<br>

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

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

1. Click Create to save the action configuration.

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

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

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

### Notes &#x20;

* The email address is used to check whether the customer exists in your WooCommerce store.
* The stored response variable contains the result of the customer lookup and is best used as input for a conditional branch — for example, routing to Create Customer if the customer does not exist.
* Changes take effect only after clicking Publish.

### Related Actions &#x20;

* WooCommerce — Create Customer — Create a new customer account if one does not exist
* WooCommerce — Get Customer Details — Retrieve full details of an existing customer
* WooCommerce — Get All Orders — Retrieve all orders from your WooCommerce store
* Bot Builder — Node Configuration — General guide to adding and configuring nodes
