Chatrixa Developers

Targeting contacts: groups vs tags vs segments

Chatrixa has three ways to pick a set of contacts. They look alike in the dashboard, but they work differently. This guide explains each one, how a campaign uses them, and what the public API can do today.

The three concepts

Groups Tags Segments
What it is A manual list of contacts A tag you apply to contacts A saved filter that updates itself
How a contact joins You add the contact to the group You attach the tag The contact matches the filter rules
Can a contact be in many? Yes Yes Yes (a contact can match many segments)
Who maintains it You, or the platform for system groups You The rules, automatically
Where you manage it Contacts, or the groups API Chat and Contacts (web app) Contacts, saved filters (web app)

Groups

A group is a list you control. Add a contact, remove a contact, and the list changes. A contact can be in several groups.

Two groups are system groups. The platform maintains them, and users cannot rename, delete, or remove contacts from them:

Tags

A tag is a short name, for example VIP or Kuwait. You attach tags from the chat or from the contact profile. Tags are shown as Tags everywhere in the product. A contact can have many tags.

When you select several tags in a campaign, you choose how they combine:

Segments

A segment is a saved set of filter rules. It updates itself: when a contact starts or stops matching the rules, the segment changes with it. There are two kinds.

"New this week" starts on your organization's first day of the week, in your organization's timezone. The default is Sunday; an organization can use Monday instead. The setting is metadata.week_start on the organization (sunday or monday; anything else means Sunday).

The Tagged, Country known and Language known smart segments use segment definition version 2. The keys they use (has_tags, country_known, language_known) exist only in version 2, and for now they are read-only: you cannot save your own segment with them yet.

How campaigns use them

A campaign has one audience. You pick one of these:

Audience Who receives the campaign
All Every contact that can be messaged
Groups Contacts in one or more selected groups
Tags (any or all) Contacts that match the selected tags
Segment Contacts that match one segment
Specific A list of up to 500 contacts

Things to know:

What the public API can manage today

The public API (/api, Bearer token (a secret key you send in the Authorization header), see the Authentication guide) covers groups and contacts. It does not have campaign endpoints, tag endpoints, or segment endpoints.

Groups, from developer-api.yaml:

Contacts:

So you can prepare group lists through the API. Tags, segments, and campaign audiences are set up in the web app.

Practical pattern

  1. Use the API to create the groups you need, for example Spring offer.
  2. Add the contacts to the group in the web app.
  3. Open the campaign in the web app, choose Groups, and pick the group.
  4. Check the reachable count before you schedule.

Related guides