Connectors

/

WooCommerce

/

Update WooCommerce customer details
Write

Correct a WooCommerce customer's details, and nothing else

For support teams who want a WooCommerce customer's address, phone or billing email updated correctly by asking their AI assistant.

Try PopdockAI free
Get a live demo
Update WooCommerce customer details
Update the shipping address for jordan.lee@contoso.com in WooCommerce to 12 Harbor Road, Portland, Oregon.
Jordan Lee's shipping address will change; existing orders keep the old one. - Address: 48 Pine Street to 12 Harbor Road - City: Seattle to Portland - State: WA to OR - Country: US, unchanged Shall I update the customer?
WooCommerce
Sample figures. Your results come from your own account.
woocommerce-get-customer
woocommerce-update-customer

On this page

The problem

The problem

The prompt

Who it's for

How it works

Tools used

Connector

WooCommerce

WooCommerce
Run it on your own WooCommerce data.

Connect WooCommerce, pick your AI tool and paste the prompt.

Try PopdockAI free

The problem

A quick address change that goes wrong

Updating a WooCommerce customer's address or phone sounds quick, but country and state codes must be right, the login email cannot change the same way and a billing email may belong to someone else. It is easy to tidy a field nobody asked you to change.

Without PopdockAI

  • Find the customer in the admin
  • Work out the right country and state codes
  • Check the billing email is not in use
  • Change a field nobody asked about

With PopdockAI

  • The customer is found, with close matches listed if needed
  • Country names become two-letter codes and state codes are expected
  • Billing email conflicts are flagged
  • Only requested fields change after you confirm, and are read back

The prompt

Use this prompt

Copy it into any AI tool connected to PopdockAI. Swap the values in braces for your own.

Prompt
**Objective:** Apply the change `{changes}` to the WooCommerce customer with email `{customer-email}`.

**Step 1: Find the customer**

Call `woocommerce-get-customer` with `email` = `{customer-email}`. If nothing matches, call it with `email.contains` using the part before the @, list any close matches and stop. Keep `customer-id` and the current name and billing details.

**Step 2: Work out the change**

Map `{changes}` to the fields `woocommerce-update-customer` accepts: `first-name`, `last-name`, `company`, `address`, `city`, `state`, `postcode`, `country`, `phone`, `billing-email`.

* The login email cannot be changed with this tool; only `billing-email`. If that is what is asked, say so.
* `country` must be a two-letter ISO code (US, GB). Convert a country name and show the code.
* `state` should be a code where the country uses them (CA, NY).
* A new `billing-email` that belongs to another customer: check with `woocommerce-get-customer` (`email`) and warn if it does.

**Step 3: Confirm**

Show a before and after table for the changed fields only. Say that existing orders keep the address they were placed with; only future orders use the new details. Wait for an explicit yes.

**Step 4: Update and verify**

Call `woocommerce-update-customer` once with `customer-id` and only the changed fields. Then call `woocommerce-get-customer` with `customer-id` and report the stored values.

**Rules & Guidelines:**

* The only write tool this prompt may call is `woocommerce-update-customer`, once.
* Do not call any other write tool (`woocommerce-add-order`, `woocommerce-update-order`, `woocommerce-add-order-note`, `woocommerce-send-order-details`, `woocommerce-add-refund`, `woocommerce-add-customer`, `woocommerce-add-product`, `woocommerce-update-product`, `woocommerce-update-product-variation`, `woocommerce-add-coupon`, `woocommerce-update-coupon`). Never create a customer when none is found.
* Never pass a field the user did not ask to change, even to "tidy" it.

**Validation:**

* If `{changes}` is empty or unclear, ask what to change and stop.
* If the user's confirmation is anything other than a clear yes, stop without writing.

Who it's for

One answer, three teams that use it

Customer support agents

Update details while the customer waits

Change an address or phone in one message, with codes converted correctly.

Change the billing phone for priya@contoso.com in WooCommerce to 555 0142.

Store managers

Avoid email conflicts

A new billing email that belongs to another customer is flagged before anything is saved.

Update the billing email for tom@fabrikam.com to accounts@fabrikam.com in WooCommerce.

Order desk staff

Know what happens to past orders

You are told existing orders keep the old address, so you can fix an open order separately.

Update the shipping address for orders@northwindtraders.com to 8 Mill Lane, Leeds, United Kingdom.

How it works

What PopdockAI does when you ask

You give the customer email and the change, and your AI assistant prepares the update and checks it. You approve a before and after table, and no customer is ever created.

01

Ask

You give the customer email and the change.

Your AI tool

02

Find

It finds the customer, listing close matches if the email is not exact.

woocommerce-get-customer

03

Check

It converts codes, checks email conflicts and notes past orders keep old addresses.

woocommerce-get-customer

04

Confirm

You approve the before and after, then it updates and reads back.

Your AI tool

What PopdockAI provides

The tools behind the answer

Ready made tools for WooCommerce and one secure connection to your AI tool. No code, no exports.

get-data

woocommerce-get-customer

Returns WooCommerce customer accounts with name, billing address, role and whether they have paid for an order. Filter by email, id, last name, billing country or state, role and created date range.
run-action

woocommerce-update-customer

Updates an existing WooCommerce customer by id: name, company, phone, billing email and billing address. Only the values passed are changed.
Read only.Nothing in WooCommerce Changes

This report is built from Get data tools only. PopdockAI applies the row, field and parameter rules your admin sets, and every query is written to the audit trail.

How Popdock AI secures your data

The outcome

Customer records corrected, and nothing else

Try PopdockAI free
Get a live demo

Related use cases

More ways to put this data to work

All Ramp use cases

One prompt template with infinite possibilities.

‍

Your AI assistant adapts its approach, tone, and capabilities to match each unique context while you maintain a single, manageable workflow.

Join forward-thinking companies that are transforming their operations with intelligent, secure AI automation.

Try PopdockAI Free
See Documentation