Add Shopify buyers to GetResponse with product and spend tags

By General Input

Every new Shopify order sends the buyer into GetResponse tagged by product and spend tier, and pings your Slack sales channel when a VIP orders.

Integrations

  • Shopify
  • GetResponse
  • Slack Bot

Type

Deterministic Code

Categories

  • Marketing
  • Sales

Build me a code workflow that runs every time a new order is placed in Shopify and fans the buyer into GetResponse with helpful tags, then pings my sales team in Slack when the order is a VIP.

Trigger: Shopify webhook on orders/create. Shopify emits this natively, so subscribe to it and pass the order id into the workflow.

Step 1. Call Get Order on Shopify with the order id from the webhook payload. Pull the customer email, customer first and last name, line items (I need each SKU and product title), and the order total price.

Step 2. Build the tag list for this buyer in code: one tag per line item SKU purchased in the form sku-<SKU>, plus a spend tier tag based on the order total. Under $250 is tier-standard, $250 through $999.99 is tier-mid, and $1000 and above is tier-vip. Deduplicate SKUs if the same product appears more than once.

Step 3. In GetResponse, make sure every tag we need exists on the account. Call List Tags once, compare against the tag list we built in step 2, and for anything missing call Create Tag. GetResponse tags are account-level, so this catalog is shared across contacts.

Step 4. Call Create Contact in GetResponse to add the buyer to my customer campaign, attaching all the tags from step 2 (referenced by their tag ids from step 3). Include the customer's name and email. Note that Create Contact returns 202 and processes async, so treat a 202 as success. The GetResponse campaign id should be a config value at the top of the workflow. If it's easier to configure by name, you can resolve it once at startup with List Campaigns.

Step 5. If the spend tier is tier-vip, use Slack Bot's Send a Message action to post to my sales channel. Include the customer name, the order total in USD, and the title of the top line item (highest-price item on the order). Keep the message short and scannable.

Config knobs I want exposed at the top of the workflow: the GetResponse campaign id (or name), the Slack channel id, and the two spend thresholds (default $250 and $1000). Skip the GetResponse write and the Slack alert if the order has no customer email (guest checkout with missing email). Keep the whole flow deterministic — no LLM steps needed, this is straight branching logic.

Related prompts

Explore more prompts
A brand asset library your marketing team actually searchesTurn Mailjet email clicks into ranked HubSpot follow-upsClean out the Looker dashboards and Looks nobody opensLiveKit live operations console for room moderationWake up dormant Keap leads with a researched reasonLiveChat coverage board for planning next week's shiftsPhone routing control panel for LiveKit voice agentsLinkedIn Ads budget pacing dashboard for every client accountGive your team Looker numbers without buying more seatsPause marketing emails to escalated customers, then restore them