Sync new WooCommerce customers to HubSpot and Klaviyo

By General Input

When a new customer signs up in your WooCommerce store, instantly add them to HubSpot as a lead and to your Klaviyo marketing list.

Integrations

  • WooCommerce
  • HubSpot
  • Klaviyo

Type

Deterministic Code

Categories

  • Marketing
  • Sales

Build a code workflow that mirrors every new WooCommerce customer into HubSpot CRM and Klaviyo so sales follow-up and email marketing can start immediately.

Trigger: a WooCommerce outgoing webhook on the customer.created event. The webhook payload includes the customer's id, email, first_name, last_name, date_created, and billing object (city, country, phone).

Step 1: Call HubSpot Create Contact with the WooCommerce customer's email, first name, and last name, and set the lifecycle stage property to 'lead'. If HubSpot returns a 409 conflict because the contact already exists by email, treat it as success and continue.

Step 2: Call Klaviyo Create or Update Profile (Upsert) using the same email as the matching identifier. Pass first name and last name as profile attributes, and include the WooCommerce signup date, billing city, and billing country as profile properties so segments and flows can use them. Capture the returned Klaviyo profile id.

Step 3: Call Klaviyo Subscribe Profiles (Bulk) to add the new profile to a configurable marketing list (expose the list id as a workflow input). Subscribe to email marketing with a custom_source of 'WooCommerce signup'.

Inputs the workflow should expose: the HubSpot lifecycle stage (default 'lead'), the Klaviyo list id, and a toggle for whether to subscribe to email, SMS, or both.

This is a deterministic CRUD pipeline with no reasoning required, so build it as a fixed code workflow with three discrete nodes in sequence, not an agent. Add basic error handling on each node so a transient failure in one downstream service does not block the others.

Related prompts

Explore more prompts
Turn Mailjet email clicks into ranked HubSpot follow-upsiMessage campaign console with pre-flight checks and delivery boardA searchable RFP answer library your bid team drafts fromSee which target accounts just started advertising on LinkedInAccount health board that puts product usage next to your CRMLook up a customer's full chat history mid conversationLusha prospecting workbench with credit-safe revealsWhich companies your LinkedIn ads reach, matched to your CRMLead response desk with a running clock on every new leadApprove Lusha enrichment field by field before HubSpot saves it