Shopify Admin Bulk Customer Tag Update logo

Shopify Admin Bulk Customer Tag Update

Organization
40RTY-ai
shopify-admin-bulk-customer-tag-update

Adds and/or removes tags across a filtered set of customers — supports query-based selection, explicit ID lists, and union/replace tag modes.

Overview

Publisher40RTY-ai
Repositoryshopify-admin-skills
Skill nameshopify-admin-bulk-customer-tag-update
Stars
200
Forks
22
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by 40RTY-ai on GitHub. Read the source before you install it.

Installation

Install the Shopify Admin Bulk Customer Tag Update AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/40RTY-ai/shopify-admin-skills/tree/main/skills/customer-support/shopify-admin-bulk-customer-tag-update
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/40RTY-ai/shopify-admin-skills.git /tmp/shopify-admin-skills
mkdir -p .claude/skills
cp -r /tmp/shopify-admin-skills/skills/customer-support/shopify-admin-bulk-customer-tag-update .claude/skills/shopify-admin-bulk-customer-tag-update
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Shopify Admin Bulk Customer Tag Update in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Shopify Admin Bulk Customer Tag Update on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Shopify Admin Bulk Customer Tag Update is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Purpose

Applies bulk tag changes (add, remove, or both) to customers selected by a query filter (e.g., total_spent:>=500, tag:newsletter) or by an explicit list of customer GIDs. Tags are how Shopify segments customers for discounts, marketing, and support workflows; this skill makes batch changes safe, dry-runnable, and auditable. Use when migrating from one tag taxonomy to another, when retiring a campaign-specific tag, or when applying a new segment tag identified by an analytics report.

Prerequisites

  • Authenticated Shopify CLI session: shopify store auth --store <domain> --scopes read_customers,write_customers
  • API scopes: read_customers, write_customers

Parameters

ParameterTypeRequiredDefaultDescription
storestringyes—Store domain (e.g., mystore.myshopify.com)
formatstringnohumanOutput format: human or json
dry_runboolnotruePreview matching customers and the planned tag changes without executing mutations
filterstringconditional—Customer query filter (e.g., tag:newsletter, total_spent:>=500); required if customer_ids is omitted
customer_idsarrayconditional—Explicit list of customer GIDs; required if filter is omitted
add_tagsarrayno[]Tags to add (union with existing tags)
remove_tagsarrayno[]Tags to remove (set difference)
modestringnomergeTag write mode: merge (apply add/remove to existing) or replace (overwrite tags entirely with add_tags only)
max_customersintegerno1000Run-size cap; abort if filter matches more than this

Safety

⚠️ Step 2 executes one customerUpdate mutation per customer in the matched set. Tag changes are immediate and visible to staff and to any apps reading customer tags (loyalty, marketing automation, segmentation). mode: replace overwrites existing tags entirely — manually-applied operational tags will be lost. The default is dry_run: true and mode: merge. Always run dry-run first, review the matched count, and confirm add_tags/remove_tags are spelled correctly — Shopify tags are case-sensitive.

Workflow Steps

  1. OPERATION: customers — query Inputs: When filter is set: query: <filter>, first: 250, pagination cursor. When customer_ids is set: batch query with query: "id:<id1> OR id:<id2> ..." (chunk into batches of 25 IDs). Select id, displayName, defaultEmailAddress { emailAddress }, tags. Expected output: Customer list with current tags. Abort if match_count > max_customers.

  2. For each matched customer, compute the target tag set:

    • If mode: merge: target = (existing ∪ add_tags) \ remove_tags
    • If mode: replace: target = add_tags (remove_tags ignored) Skip the customer if target == existing (no-op).
  3. OPERATION: customerUpdate — mutation Inputs: For each customer with a non-empty diff: input: { id: <customer_id>, tags: <target_tag_array> } Expected output: customer.id, customer.tags, userErrors; collect failures

GraphQL Operations

graphql
# customers:query — validated against api_version 2025-01
query CustomersForBulkTagging($query: String!, $after: String) {
  customers(first: 250, after: $after, query: $query) {
    edges {
      node {
        id
        displayName
        firstName
        lastName
        defaultEmailAddress {
          emailAddress
        }
        tags
        numberOfOrders
        amountSpent {
          amount
          currencyCode
        }
      }
    }
    pageInfo {
      hasNextPage
      endCursor
    }
  }
}
graphql
# customerUpdate:mutation — validated against api_version 2025-01
mutation CustomerTagsUpdate($input: CustomerInput!) {
  customerUpdate(input: $input) {
    customer {
      id
      displayName
      tags
    }
    userErrors {
      field
      message
    }
  }
}

Session Tracking

Claude MUST emit the following output at each stage. This is mandatory.

On start, emit:

╔══════════════════════════════════════════════╗
║  SKILL: Bulk Customer Tag Update             ║
║  Store: <store domain>                       ║
║  Started: <YYYY-MM-DD HH:MM UTC>             ║
╚══════════════════════════════════════════════╝

After each step, emit:

[N/TOTAL] <QUERY|MUTATION>  <OperationName>
          → Params: <brief summary of key inputs>
          → Result: <count or outcome>

If dry_run: true, prefix every mutation step with [DRY RUN] and do not execute it.

On completion, emit:

For format: human (default):

══════════════════════════════════════════════
BULK TAG UPDATE OUTCOME
  Filter:           <filter or "<n> explicit IDs">
  Mode:             <merge|replace>
  Add tags:         <list>
  Remove tags:      <list>
  Customers matched: <n>
  Customers updated: <n>  (or "skipped — dry_run")
  No-op (already in state): <n>
  Errors:           <n>
  Output:           bulk_tag_update_<date>.csv
══════════════════════════════════════════════

For format: json, emit:

json
{
  "skill": "bulk-customer-tag-update",
  "store": "<domain>",
  "started_at": "<ISO8601>",
  "completed_at": "<ISO8601>",
  "dry_run": true,
  "mode": "merge",
  "outcome": {
    "matched": 0,
    "updated": 0,
    "noop": 0,
    "errors": 0,
    "add_tags": [],
    "remove_tags": [],
    "output_file": "bulk_tag_update_<date>.csv"
  }
}

Output Format

CSV file bulk_tag_update_<YYYY-MM-DD>.csv with columns: customer_id, name, email, previous_tags, tags_added, tags_removed, new_tags, status

The status column reports updated, noop, or error: <message>.

Error Handling

ErrorCauseRecovery
THROTTLEDAPI rate limit exceededWait 2 seconds, retry up to 3 times
userErrors on customerUpdateInvalid input or read-only customerLog error, skip customer, continue
match_count > max_customersFilter is too broadRefine filter or raise max_customers deliberately
Both filter and customer_ids emptyNo selectionAbort with parameter error
Tag is empty stringWhitespace-only entryStrip and skip empty values
Case-mismatched remove_tagTags are case-sensitiveRe-run with exact casing

Best Practices

  • Always run with dry_run: true first — review the matched count and a sample of previous_tags → new_tags diffs before committing.
  • Prefer mode: merge (the default) for almost all use cases — mode: replace is appropriate only when fully resetting a customer's tag taxonomy and you have an audited backup of prior tags.
  • Tags are case-sensitive: VIP and vip are distinct in Shopify. Standardize casing in your taxonomy.
  • For ongoing operational segments, prefer date-stamped tag names (e.g., cohort-2026-Q2) so historical cohorts remain identifiable as new tags accumulate.
  • Pair with vip-customer-identifier or customer-spend-tier-tagger to feed segment tags from analytics outputs into the customer record.
  • Use remove_tags as the cleanup pass after a campaign — leaving stale campaign tags clutters segmentation in marketing tools.
  • When customer_ids is supplied directly (e.g., from another skill's CSV), the run is fully deterministic — no filter ambiguity.

Frequently asked questions

What does the Shopify Admin Bulk Customer Tag Update AI skill do?

Adds and/or removes tags across a filtered set of customers — supports query-based selection, explicit ID lists, and union/replace tag modes.

Why use Shopify Admin Bulk Customer Tag Update on TypingMind?

Because you install it once and use it with any model. Shopify Admin Bulk Customer Tag Update is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Shopify Admin Bulk Customer Tag Update in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/40RTY-ai/shopify-admin-skills/tree/main/skills/customer-support/shopify-admin-bulk-customer-tag-update. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Shopify Admin Bulk Customer Tag Update?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Shopify Admin Bulk Customer Tag Update?

As many as you like. As long as a model supports skills, you can use Shopify Admin Bulk Customer Tag Update with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Shopify Admin Bulk Customer Tag Update AI skill free?

Yes. It is published on GitHub by 40RTY-ai under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇