Skip to main content

Sync Rules

Sync rules automatically add and remove tags when events occur. They’re the glue between events and tags, enabling powerful automation without manual intervention.

How Sync Rules Work

When an event is triggered for a subscriber:
Sync rules are managed in Settings, or programmatically: the API exposes GET/PUT /api/v1/sync-rules, the CLI has sequenzy sync-rules get and sequenzy sync-rules update, and the MCP server provides get_sync_rules / update_sync_rules tools.

Optional Platform Preset

New workspaces start with no sync rules, so importing or subscribing a contact does not silently assign a business-stage tag. You can add rules in Settings or opt into Sequenzy’s legacy platform preset for common SaaS and ecommerce events. The preset includes rules such as:
The platform preset is not enabled automatically for new workspaces. Review its SaaS/ecommerce semantics before enabling it for a services, consulting, or other relationship-led business.
Legacy workspaces that still inherit platform defaults continue receiving future updates to that preset for compatibility. Once you save a customized rule set, it replaces the preset entirely. “Reset to Defaults” in Settings opts back into the inheriting preset, and saving an empty rule set disables sync rules completely. Sync rules also run for events Sequenzy records natively - engagement events (email.opened, email.clicked, email.replied), delivery events (email.bounced, email.unsubscribed, contact.unsubscribed), and integration events like ecommerce.back_in_stock_requested. Rules on bounce and unsubscribe events only change tags; they never start a sequence for a suppressed contact.

Sync Rule Anatomy

Each sync rule defines:
Rules can also carry optional conditions: required subscriber tags, excluded subscriber tags, and (for commerce events) a product match.

Product Match Conditions

Commerce events that carry products - order placed, product viewed, added to cart, and similar - can be filtered by the product itself. Add a Product match condition and the rule only runs when at least one product on the event matches your selected product tags, collections, or product types. This is how you build ownership audiences from purchases. For example, a record store tags every vinyl product with Vinyl in Shopify, then adds a rule:
Anyone who buys a vinyl record or accessory is tagged vinyl-collector automatically, ready to receive campaigns for that interest. Within a product match, values in the same selector are OR’d (any of these tags) and different selectors are AND’d (must match the tag AND the collection).
Rules with a product match never run for events without product context, so they are safe to combine with tag conditions.

Execution Order

When an event triggers:
  1. Event recorded - Stored in analytics
  2. Remove tags - Listed tags are removed first
  3. Add tags - Listed tags are added
  4. Automations checked - Sequences triggered by new tags
This order ensures clean state transitions.

Use Cases

Customer Lifecycle

Track where subscribers are in their journey:
Result: Subscribers always have exactly one lifecycle tag.

Payment Status

Track payment health:

Subscription Tiers

When integrated with payment providers:

Custom Sync Rules

Create custom rules in Settings → Sync Rules:

Example: Lead Scoring

Example: Engagement Tracking

Example: Onboarding Progress

Sync Rules + Sequences

Sync rules work seamlessly with sequences:
This pattern lets you:
  • Keep event handling simple (just fire events)
  • Centralize tag logic (sync rules)
  • Build flexible sequences (tag-based triggers)

Payment Provider Integration

When you connect Stripe or other payment providers:

Automatic Event Firing

The integration automatically fires events:

Automatic Customer Sync

Stripe customers are synced as subscribers with:
  • Email from Stripe customer
  • Name from Stripe customer
  • Custom attributes for subscription data

Best Practices

1. Design Mutually Exclusive Tags

For lifecycle states, ensure only one tag at a time:

2. Use System Tags Consistently

Stick to the built-in tag names:

3. Test Your Rules

Before going live:
  1. Create a test subscriber
  2. Trigger events via API
  3. Verify tags are added/removed correctly
  4. Check that sequences trigger

4. Document Custom Rules

Keep a reference of your custom sync rules:

5. Don’t Overcomplicate

Start with default rules, add custom ones as needed:

Debugging Sync Rules

Check Event Fired

View subscriber’s event history in dashboard.

Check Tags Applied

View subscriber’s current tags after event.

Common Issues

Events

Events that trigger sync rules

Tags

Tags managed by sync rules

Sequences

Automations triggered by tags

Subscribers

Contacts that receive tags