> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.chrisp.chat/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Getting started with Segments

__Learn what segments are in Crisp, how to assign them, and how your team can use them across support and campaigns.__

Segments are simple labels you can attach to contacts or conversations. They help your team organize users, route conversations, create filters, trigger automations, and target campaigns more accurately.

---

# What a segment is

A segment is a tag-like label that marks a profile or conversation with a behavior, status, source, or business meaning.

For example, you can add a `` `lead` `` segment to potential customers, a `` `vip` `` segment to high-priority accounts, or a `` `bug_report` `` segment to conversations that need product follow-up.

| Coming from Intercom? Segments are similar to tags.

---

# Assign segments

Segments can be assigned manually, from your website code, through the API, or from workflows.

#### Assign a segment manually

Inside a contact or conversation, add the segment from the dedicated segment field.

![Manual segments assigned to a Crisp contact](https://storage.crisp.chat/users/helpdesk/website/-/a/b/3/c/ab3cdc0093ab9800/32e13b57-3825-4138-90b6-c79649_1x71s6r.png)

#### Assign segments with the JavaScript SDK

Use the ****Crisp JavaScript SDK**** when your website knows which segments should be attached to the current visitor session.

```
// Replace these segments with your own internal labels.$crisp.push(["set", "session:segments", [["registered_users", "lead"]]]);
```

Read the dedicated guide: [How can I automatically set user segments?](/en/article/how-can-i-automatically-set-user-segments-oerdox/)

#### Assign segments with the API

Use the ****REST API**** when segments need to be updated from your backend.

__Useful API routes:__

* ****Conversation segments**** → [Update Conversation Metas](https://docs.crisp.chat/references/rest-api/v1/#update-conversation-metas)
* ****Contact segments**** → [Update People Profile](https://docs.crisp.chat/references/rest-api/v1/#update-people-profile)

In the request body, add your segments in the `` `segments` `` array.

```
{  "segments": ["lead"]}
```

#### Assign segments from a workflow

Use the ****Set Session Segment**** action block when a workflow should tag the conversation automatically.

![Set Session Segment action block in a Crisp workflow](https://storage.crisp.chat/users/helpdesk/website/-/a/6/9/3/a693baacca4e1000/845f39f3-a153-43bd-85a1-fa4195_nz9f4r.png)

#### Assign segments from email aliases

If you use multiple email aliases in the same inbox, such as `` `contact+billing@company.com` `` or `` `contact+sales@company.com` ``, segments can help classify the conversation and route it to the right team.

---

# Use segments in your team workflow

#### Build campaign audiences

Segments are available as targeting options in [Campaigns](https://crisp.chat/en/campaigns/). This lets you follow up with users who experienced a specific event, joined a sales process, reported a bug, or belong to a meaningful lifecycle group.

![Campaign audience based on Crisp segments](https://storage.crisp.chat/users/helpdesk/website/-/8/e/e/2/8ee21533b0748800/b8926317-0a9c-417d-9fc9-7f60b1_m6nq9j.png)

#### Trigger a Zapier workflow

You can use Zapier to trigger an action when a segment is assigned. For example, assigning a `` `bug` `` segment could create an issue in Jira or Trello.

![Zapier trigger based on a Crisp segment](https://storage.crisp.chat/users/helpdesk/website/-/f/d/e/f/fdef2a19be9f9800/88f08933-7415-47c2-992b-d7a5db_10pg3bf.png)

#### Create Inbox filters

Segments can be used in Inbox filters so agents focus on the conversations that matter to their role, language, team, or priority level.

![Inbox filter based on Crisp segments](https://storage.crisp.chat/users/helpdesk/website/-/9/4/5/9/94590558e3af200/83f339b6-dadf-4afc-9001-17c331_i7ym91.png)

Segments are intentionally simple. If you need to store detailed key/value information, use [custom data](/en/article/what-is-custom-data-and-why-is-it-powerful-43jgi3/) instead.