> 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/get-customer-details.md). Agents can also search and read this documentation through its [MCP server](https://docs.ownchat.app/~gitbook/mcp).

# Get Customer Details

### Overview &#x20;

The Get Customer Details action retrieves a customer's information from your WooCommerce store — including name, email, phone number, and address — using their Customer ID. The response is stored in a variable for use in downstream workflow steps such as order processing, support flows, or personalised communication.

{% embed url="<https://app.supademo.com/demo/cmpmn2bl14mpoqms9hoq6ug0q?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 ID is available as a variable from a previous workflow node

### Step 1: Add a Get Customer Details Node &#x20;

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

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

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

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

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

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

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

{% embed url="<https://app.supademo.com/demo/cmpw7ad3t00u31v0jiue40llv?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., Get Customer Details).<br>

{% embed url="<https://app.supademo.com/demo/cmpw7erqf00u51v0j6zqc82u0?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/cmpw7giv3000a220j6b6igtho?utm_source=link>" %}

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

1. Click Add variable to open the variable selector.

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

2. Select customerid from the variables list to populate the Customer ID field.<br>

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

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

From the variable dropdown, select Create new variable and name it to store the customer details response (e.g., customerdetails). This variable will hold the customer information returned by WooCommerce and can be referenced in any downstream workflow step.<br>

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

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

1. Click Create to save the action configuration.

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

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

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

### Notes &#x20;

* The Customer ID is required. Ensure it is captured or passed as a variable from an earlier workflow node before this action is reached.
* The stored response variable contains the customer's name, email, phone number, and address as returned by WooCommerce.
* Changes take effect only after clicking Publish.

### Related Actions &#x20;

* WooCommerce — Get All Orders — Retrieve all orders from your WooCommerce store
* WooCommerce — Get Order Status — Check the current status of a specific order
* Bot Builder — Node Configuration — General guide to adding and configuring nodes
