Attributes

Custom attributes let you store any data about your contacts beyond the standard properties. Use them for targeting, segmentation, and personalization.

circle-info

Not sure whether to use attributes or events? See Attributes vs. Events.

What are Custom Attributes?

Custom attributes are properties you define for your workspace. Examples:

  • company - Company name

  • teamSize - Number of team members

  • industry - Business sector

  • isTrialing - Whether on a trial

  • referralSource - How they found you

Creating Custom Attributes

Method 1: Automatic Creation

When you send a new property via the embed script, Cueflow automatically creates the attribute:

Cueflow.init({
  id: 'user-123',
  email: '[email protected]',
  // Custom attributes - auto-created if they don't exist
  company: 'Acme Inc',
  teamSize: 50,
  isEnterprise: true
});

Method 2: Manual Creation

Create attributes in the dashboard for better control:

  1. Click New Attribute

  2. Configure:

    • Name - Display name (e.g., "Team Size")

    • Key - API key (e.g., "team_size")

    • Type - Text, Number, or Boolean

  3. Click Create

Attribute Types

Text

For string values:

  • Company names

  • Industries

  • Custom categories

  • Free-form text

Targeting operators:

  • Equals / Not Equals

  • Contains / Not Contains

  • Starts With / Ends With

  • Is Set / Is Not Set

Number

For numeric values:

  • Team size

  • Usage counts

  • Revenue

  • Scores

Targeting operators:

  • Equals / Not Equals

  • Greater Than / Less Than

  • Between

  • Is Set / Is Not Set

Boolean

For true/false values:

  • Feature flags

  • Trial status

  • Verification status

  • Preferences

Targeting operators:

  • Equals (true/false)

  • Is Set / Is Not Set

Managing Attributes

View Attributes

Go to Settings > Attributesarrow-up-right to see all custom attributes:

  • Name and key

  • Type

  • Usage count

  • Creation date

Edit Attributes

Click an attribute to edit:

  • Change the display name

  • View usage statistics

circle-exclamation

Delete Attributes

  1. Click the attribute

  2. Click Delete

  3. Confirm deletion

triangle-exclamation

Using Custom Attributes

In Targeting Rules

Target users by custom attributes:

Enterprise companies:

Trial users:

Specific industry:

Combining with Standard Properties

Mix custom attributes with standard properties:

Best Practices

Naming Conventions

  • Use snake_case for keys: team_size, is_trialing

  • Use clear display names: "Team Size", "Is Trialing"

  • Be consistent across your codebase

Data Types

  • Choose the right type from the start

  • Use Number for quantities (enables comparison operators)

  • Use Boolean for yes/no values

  • Use Text for categories and free-form

Planning

  • Define attributes before implementation

  • Document what each attribute means

  • Avoid creating duplicate attributes

Performance

  • Only create attributes you'll use

  • Keep attribute count reasonable

  • Remove unused attributes

Examples

SaaS Product

E-commerce

Educational Platform

API Reference

Sending Attributes

Include in Cueflow.init() or Cueflow.update():

Server-Side API

Last updated