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

# Create Customer

### Overview &#x20;

The Create Customer action automatically creates a new customer record in your Shopify store using details collected during the bot conversation, such as name and phone number.

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

### Prerequisites &#x20;

Before configuring this action, ensure the following:

* You have an active Shopify connection configured under the Apps tab in Ownchat
* The bot you want to configure is already created in the Bot Builder
* Customer detail variables (e.g., name, phone number) have been collected in a previous workflow node

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

1. Click the plus icon in your bot workflow to add a new node.

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

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

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

3. Click Shopify to expand the available actions.

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

4. Click Create Customer to open the customer creation form.

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

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

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

From the connection dropdown, select your Shopify connection (e.g., ieyal shopify live).

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

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

For each customer field, click Add variable and use the search field in the dropdown to find and select the relevant variable

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

| Field      | Variable to Map                             |
| ---------- | ------------------------------------------- |
| First Name | Select the name variable from the dropdown  |
| Phone      | Select the phone variable from the dropdown |

Click Add variable for each field you want to populate dynamically.

{% embed url="<https://app.supademo.com/demo/cmpw404o600x50k0i8g3h225f?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 Shopify. This variable can be referenced in downstream nodes — for example, to confirm the customer was created or to use the new customer ID in a subsequent action.

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

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

1. Click Create to submit the customer form and save the configuration.

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

2. Click Publish to deploy the bot with the new action.

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

### Notes &#x20;

* Customer detail variables should be captured in earlier nodes of the workflow before this action is reached.
* 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;

* Shopify — Check Customer — Verify whether a customer already exists before creating a new record
* Shopify — Get Customer Details — Retrieve details of an existing customer
* Shopify — Update Customer Tags — Add or update tags on a customer record
* Bot Builder — Node Configuration — General guide to adding and configuring nodes
