Docs
Sign up now
  • Getting started
    • Welcome to Sortment
    • Core Concepts
  • Schema
    • Overview
    • Related and Events Table
    • Setting Up Related Table
    • Setting Up Events Table
    • Custom Properties
  • ENGAGE
    • Audiences
      • Creating Audience
      • Audience Filters
      • Campaign Event Filters
      • Creating Audience Using SQL Builder
      • Managing Audiences
      • Audience Insights
    • Traits
      • Use Cases
      • Calculated Traits
        • Advanced Mode
      • Dynamic Traits
    • Profiles
      • User Profile View
    • Campaigns
      • Overview
      • Building a Campaign
      • Campaign Reports
        • Glossary
      • Conversion Tracking
  • Journeys
    • Getting Started
    • Journey Builder
    • Journey Components
      • Trigger
      • Delays
      • Flow Control
      • Action blocks
    • Tutorial: Creating a journey
    • Journey Settings
  • Connector
    • Overview
    • Getting started
      • Iterable
      • Klaviyo
  • Enable Data Sync
  • Setup
    • Data Warehouses
      • Snowflake
      • BigQuery
      • Redshift
      • Databricks
      • PostgreSQL
    • Cloud Bucket Storage
      • Amazon S3 for Snowflake
      • Google Cloud Storage for BigQuery
      • Amazon S3 for Redshift
      • Amazon S3 for Databricks
    • Communication Channels
      • Email
        • SendGrid
        • SES
        • Mailmodo
      • SMS
        • MSG91
        • Gupshup
      • WhatsApp
        • Meta (Facebook)
          • Add new Phone Number to Meta
        • Gupshup Enterprise
        • WATI
        • Gallabox
        • Yellow.ai
        • Kaleyra.io
    • Real-time Events
      • Setting up Event Source
      • Whitelist Event Payload
  • Settings
    • Sync Schedules
    • Audit Logs
    • Subscription Groups And Contact Fields
    • Delivery Controls
    • Test Profiles
    • Alerts
  • Data and Security
    • Technical Overview
    • Warehouse Data Practices
    • Data Access And Usage
    • Security Compliance
    • Audit Logs
    • Privacy Policy
Powered by GitBook
On this page
  • Creating a calculated trait using AI
  • Open the traits section:
  • Step 1: Click New trait
  • Step 2: Define the use case
  • Step 3: Generate the logic
  • Step 4: Preview results
  • Step 5: Finalise details
  • Step 6: Save the trait

Was this helpful?

  1. ENGAGE
  2. Traits

Calculated Traits

PreviousUse CasesNextAdvanced Mode

Last updated 24 days ago

Was this helpful?

In Sortment, calculated traits are reusable logic definitions that classify users based on behaviors, characteristics, or transactions.

These traits are ideal for:

  • Complex segmentation needs

  • Aggregations (e.g., total orders, spend)

  • Business calculations that depend on multiple columns

They can be reused across Profiles, Audiences, and Analytics to maintain consistent business logic.


Creating a calculated trait using AI

Sortment provides an AI-powered creation option that makes building calculated traits fast and approachable—even without technical expertise.

Open the traits section:

  1. Click the star-shaped icon (✶) in the left or top navigation bar.

  2. This opens the Traits page, where you can view, manage, and create new traits.

Step 1: Click New trait

Start by clicking the “+ New Trait” button at the top right of the Traits page. Choose calculated traits.

Select "Use AI" as the creation method

Step 2: Define the use case

  • Describe your use-case: What are you trying to identify (e.g., “Number of times a customer bought premium products”)?

  • Outline examples or scenarios (optional but helpful): Provide additional context or example on how the calculation may be performed.

Step 3: Generate the logic

After submitting your prompt, Sortment generates the logic for your trait. It will also create a name and description for the trait.

  • You can review and refine using additional instructions like “exclude users with returns.”

Step 4: Preview results

Click “Preview results” to validate that the trait logic works as intended. This ensures data accuracy before you publish.

Step 5: Finalise details

  • The trait name and description is generated by AI. Review the details and update if needed.

  • Optionally add tags for searchability and organisation.

Step 6: Save the trait

Click “Finish” to save the trait. It’s now available for use across Audiences, Profiles, and Campaign logic.