إنتقل إلى المحتوى الرئيسي

Custom Attributes

Custom attributes let you extend customer profiles with your own fields beyond the built-in name, email, and phone number. Use them to store business-specific data — like customer tier, product interest, or account type — and then filter, segment, and target customers based on those values.


What Are Custom Attributes?

Every customer in Orki has standard fields (name, email, phone, language, country, tags). Custom attributes add your own fields to every customer profile, tailored to your business needs. For example:

  • A tier attribute to classify customers as bronze, silver, gold, or platinum
  • An interest attribute to track what product or service they're interested in
  • A companySize attribute to store the number of employees

Once created, custom attributes appear on the customer profile, are available in filters and segments, and are accessible to AI agents during conversations.


Creating Attributes

Navigate to Settings > Customer Attributes to create and manage custom attributes.

To create a new attribute:

  1. Click Add Attribute
  2. Enter a descriptive name (this is the key the AI agent sees)
  3. Choose the data type
  4. For Enum types, define the list of allowed values
  5. Save

Data Types

Data TypeDescriptionExample Values
TextFree-form string"Interested in Pro plan", "Muscat branch"
NumberNumeric value (integer or decimal)500, 3.5, 12000
DateDate value2026-01-15
EnumOne value from a predefined list"gold" from [bronze, silver, gold, platinum]
BooleanTrue or falsetrue, false
ArrayList of values["electronics", "home", "garden"]

Enum Attributes

Enum attributes are especially powerful because they restrict values to a predefined list. This ensures data consistency and makes the attribute reliable for filtering and AI usage.

Example enum attributes:

Attribute NameAllowed Values
tierbronze, silver, gold, platinum
statuslead, prospect, customer, churned
interestStarter, Business Pro, Enterprise
departmentSales, Support, Billing, Technical

How the AI Agent Uses Attributes

Custom attributes are deeply integrated with Orki's AI agents, enabling personalized and context-aware conversations.

Reading Attributes

Customer attributes are automatically included in the AI agent's context when a conversation starts. The agent can see all attribute key-value pairs and use them to personalize responses.

For example, if a customer has tier: gold, the agent knows they are a high-value customer and can adjust its tone and offers accordingly.

Updating Attributes

AI agents can update customer attributes during a conversation using built-in tools. This lets the agent capture and store information as it learns about the customer.

Example Flow

  1. A customer messages your WhatsApp number
  2. The AI agent sees their current attributes (e.g., tier: silver, interest: null)
  3. During the conversation, the agent asks about their needs
  4. The agent sets interest: "Business Pro" based on the conversation
  5. Later, a marketing campaign targets all customers where interest = "Business Pro"
تلميح

Use enum types for attributes the AI should recognize and set — like tier, status, or interest. The predefined values help the agent choose correctly.


Using Attributes in Filtering

Custom attributes appear as filter criteria in the Advanced Filter panel on the Customers page.

Depending on the data type, you can filter by:

Data TypeAvailable Filters
TextExact match, contains
NumberEquals, greater than, less than
DateBefore, after, between
EnumExact match (select from allowed values)
BooleanTrue or false
ArrayContains value

Combine custom attribute filters with tags, language, platform, and country filters for precise targeting.


Using Attributes in Segments

Save any attribute-based filter as a reusable segment for quick access and campaign targeting.

Example segments using custom attributes:

Segment NameFilter Criteria
"High-value Omani customers"countryCode = OM AND tier = platinum
"Business Pro leads"interest = "Business Pro" AND status = lead
"Large companies"companySize > 100

See Customer Segments for full details on creating and managing segments.


Using Attributes in Campaigns and Broadcasts

Custom attributes integrate with marketing campaigns in several ways:

  • Target campaigns to customers with specific attribute values by selecting an attribute-based segment in the campaign audience step
  • Map attributes to template variables — use attribute values as dynamic content in WhatsApp template messages (e.g., include the customer's tier in the message)
  • Set attributes when sending broadcasts — the customAttributes field lets you assign or update attribute values for all recipients as part of a broadcast send

Best Practices

تلميح

Use enum types for structured data the AI should recognize — tier, status, interest, department. The predefined list keeps data clean and filterable.

تلميح

Keep attribute names descriptive and concise — the AI agent sees the key name directly. customerTier is clearer than ct or field1.

  • Use text for free-form data where values vary widely
  • Use number for quantitative data you might want to filter with greater/less than
  • Use date for tracking milestones (e.g., contract renewal date, onboarding date)
  • Use boolean for simple yes/no flags (e.g., verified, onboarded)
  • Use array for multi-value fields (e.g., product categories of interest)

Where to Find It

  • Create and manage attributes: Settings > Customer Attributes
  • View and edit attribute values: Individual customer profile page
  • Filter by attributes: Customers page > Advanced Filter panel