Attributes
Custom attributes let you store any data about your contacts beyond the standard properties. Use them for targeting, segmentation, and personalization.
What are Custom Attributes?
Custom attributes are properties you define for your workspace. Examples:
company- Company nameteamSize- Number of team membersindustry- Business sectorisTrialing- Whether on a trialreferralSource- 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:
Go to Settings > Attributes
Click New Attribute
Configure:
Name - Display name (e.g., "Team Size")
Key - API key (e.g., "team_size")
Type - Text, Number, or Boolean
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 > Attributes 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
You cannot change the key or type after creation. Create a new attribute if needed.
Delete Attributes
Click the attribute
Click Delete
Confirm deletion
Deleting an attribute removes all stored values for all contacts. This cannot be undone.
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_casefor keys:team_size,is_trialingUse 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