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:
- Unsubscribed — contacts who opted out of messages. You cannot remove contacts from it by hand.
- Failed campaign — the group that receives contacts whose campaign message failed, when your organization has set one up.
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:
- any — contacts that have at least one of the selected tags
- all — contacts that have every selected tag
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.
- Saved segments — you create them from the filters on the Contacts page (groups, tags, country, language, created date, last activity, and so on).
- Smart segments — built in. They are always available:
- New this week
- New this month
- Inactive for 30 days
- Inactive for 90 days
- Blocked contacts
- Tagged contacts (has at least one tag)
- Country known
- Language known
"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:
- Reachable count. The count shown in the campaign form is the number of contacts the campaign can reach now. It leaves out contacts who opted out (unsubscribed). The number is cached for a short time, so it can lag a little behind a change.
- Segment rules are frozen when you schedule the campaign. A draft keeps only a reference to the segment. When you schedule the campaign, the segment's current rules are copied into the campaign. After that, changes to the segment do not change this campaign. For a campaign scheduled for the future, the recipient list is created when the send time is reached, from the frozen rules. Contacts who start matching before the send time are included. Contacts who stop matching are not. Opted-out contacts are always excluded.
- Specific lists are capped at 500 contacts. A "Create campaign" link from the Contacts page carries up to 100 contacts. You can add more in the campaign form, up to 500. For a bigger audience, use a group, a tag, or a segment.
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:
GET /api/contact-groups— list groups (paginated: results come in pages)POST /api/contact-groups— create a group (name)PUT /api/contact-groups/{uuid}— rename a groupDELETE /api/contact-groups/{uuid}— delete a group
Contacts:
GET /api/contacts,POST /api/contactsPUT /api/contacts/{uuid},DELETE /api/contacts/{uuid}
So you can prepare group lists through the API. Tags, segments, and campaign audiences are set up in the web app.
Practical pattern
- Use the API to create the groups you need, for example
Spring offer. - Add the contacts to the group in the web app.
- Open the campaign in the web app, choose Groups, and pick the group.
- Check the reachable count before you schedule.