1. Wiki
  2. Features

Segments: the 11 criteria to filter contacts

Build audiences that update themselves with 11 criteria, from tags and relative dates to events like opening an email, visiting a page or buying.

Quick answer

In Segments → New Segment, open the Filter Editor and combine criteria like Creation Date, Field, Tags, KPI, Event and First / Last Location with All (AND) or Any (OR). Event finds who opened or clicked an email, visited a page or bought in the last 90 days. BIP recalculates the segment before every send.

EffortNo-codeChannelEmail + WhatsAppPlanFree

Talk only to the people who matter: today's birthdays, customers who've gone quiet, whoever clicked your last campaign, everyone in the cities near your new store. A segment groups these people by rules and keeps itself up to date: anyone who starts meeting the rules gets in, and anyone who stops meeting them drops out.

What you need

  • A BIP account (the free plan works)
  • Contacts in BIP, imported from a spreadsheet or arriving through the API
  • The custom fields and KPIs created in Settings, if you'll filter by them
  • The site script installed or events sent through the API, if you'll filter by visits or purchases

What you'll get

  • Dynamic audiences: you define the rule once and BIP recalculates who's in before every campaign send.
  • Audiences based on what people did: who opened or clicked an email, visited a page on your site, came back through a link with UTM or bought.
  • Dates that move on their own: "created in the last 7 days" or "not updated in 30 days", without editing the rule every day.
  • Anniversaries of any date, comparing only the day and month: birth, first purchase, contract signing.
  • Cities within a radius in km or miles, picked on the map with city search.
  • An instant count and the segment's contact list, with CSV download.

How it works

  1. 1Create the segment and open the Filter Editor
  2. 2Combine criteria with All (AND) or Any (OR)
  3. 3Save: BIP recalculates who's in before every send

Rules live in the Filter Editor and have three levels:

  • Criterion: one condition, like Tags → Includes any → customer.
  • Filter: a block of criteria. With two or more criteria in the same block, you choose whether the contact must meet All (AND) or Any (OR) of them.
  • Group: the set of filters. With two or more filters, you again choose between All (AND) and Any (OR).

That way you build rules like "(customer and from Curitiba) or (more than 3 orders)" without writing a line of code.

The segment is dynamic. Every time a campaign goes out, including each run of a recurring campaign, BIP recalculates it with the data at that moment. Anyone imported yesterday who meets the rules is already in today's send.

Step by step

1. Create the segment

  1. In the menu, click Segments. The list shows segments by group, with the date of the last update.
  2. Click New Segment. BIP creates an [untitled] segment, with the Draft badge, and opens its screen.
dash.bip.marketing/…/segments
Segment list with the New Segment button

Screenshot coming soon

Segment list with the New Segment button

2. Give it a name and a group

  1. Click Settings. The Segment Settings panel opens.
  2. Fill in the Name and, next to it, pick an emoji to identify the segment in the list.
  3. If you like, write a Description: it shows up when you pick the segment in a campaign.
  4. Under Group, choose where the segment sits in the list. Groups are created in Settings → Groups → Segments Groups.
  5. Click Save.
dash.bip.marketing/…/segments/…
Segment Settings panel with name, emoji, description and group

Screenshot coming soon

Segment Settings panel with name, emoji, description and group

3. Add the criteria

  1. Click the 0 filter(s) selected button. The Filter Editor opens.
  2. Click Add Criteria and choose one of the 11 criteria.
  3. Fill in the criterion: usually Operator and Value. Some first ask for the Type, the Field or the Indicator (see the Reference below). Event has its own fields, explained in step 4.
  4. To add another condition to the same block, click Add Criteria again. With two or more criteria, the top of the block shows Match … of the following criterias:. Choose All (AND) to require every condition or Any (OR) to accept any of them.
  5. To remove a criterion, click its trash icon and confirm.
dash.bip.marketing/…/segments/…
Filter Editor with two criteria combined by All (AND)

Screenshot coming soon

Filter Editor with two criteria combined by All (AND)

4. Filter by what the contact did

The Event criterion singles out people who did something: opened or clicked an email, visited a page on your site, bought. The contact gets in when they have at least one event, in the last 90 days, that matches every field you fill in. An empty field doesn't restrict anything.

  1. In Add Criteria, choose Event. The card warns that a segment with this criterion takes a little longer to build.
  2. In Event Type, type the type exactly as it was recorded: view for an open or a visit, click for a click, or the type your system sends through the API, such as purchase.
  3. In Source, choose Email, URL (pages on your site, through the script) or WhatsApp. To accept any source, API events included, leave it on Any.
  4. With the URL source, the URL field appears: paste the page's full address, such as https://lojahorizonte.com.br/precos.
  5. In Value, choose the operator and type the text to filter by the clicked link, the reply or the value sent through the API.
  6. To filter by a detail of the event, such as the visit's UTM or the email's campaign, click Add metadata. In Key, pick a suggestion or type the name; then choose the operator and fill in the Value.

The Event table, in the Reference, shows what each source records.

dash.bip.marketing/…/segments/…
Event criterion with Event Type, Source, URL, Value and Metadata

Screenshot coming soon

Event criterion with Event Type, Source, URL, Value and Metadata

5. Combine filters or import existing rules

  1. Click Add Filter to create another block of criteria.
  2. With two or more filters, the top of the editor shows the choice between All (AND) and Any (OR) across blocks. Use Any (OR) to bring different audiences into the same segment.
  3. To start from another segment's rules, click Import from Segment and choose the segment. Its rules replace the ones in the editor; the original segment doesn't change.
  4. Click Close.
dash.bip.marketing/…/segments/…
Filter Editor with two filters combined by Any (OR) and the Import from Segment button

Screenshot coming soon

Filter Editor with two filters combined by Any (OR) and the Import from Segment button

6. Check the count and save

  1. When you close the editor, BIP calculates the segment right away (Building leads segment...) and shows the result in the heading: N matches of T, meaning how many contacts meet the rules out of all the contacts in the account.
  2. Check the list below. Search by Name, Email or Phone and sort by name, creation date or last update. Click a contact to see the full profile.
  3. Click Save. The button turns green with Saved and the Draft badge disappears.

Only saved segments are available to pick in campaigns. While there are unsaved changes, the subtitle shows Unsaved Changes.

dash.bip.marketing/…/segments/…
Segment with the match count and the contact list

Screenshot coming soon

Segment with the match count and the contact list

7. Use the segment

  1. To send, create a campaign in Campaigns and pick the segment under Segments. See Campaigns: one-time, recurring and API-triggered.
  2. To take the list to a spreadsheet, click Download CSV.
  3. To create a variation, go back to the segment list and click Duplicate (copy icon). The copy opens as a Draft, named segment name (Clone). Adjust the rules and click Save.
dash.bip.marketing/…/segments/…
Download CSV, Settings and Save buttons at the top of the segment

Screenshot coming soon

Download CSV, Settings and Save buttons at the top of the segment

Reference

The 11 criteria

CriterionWhat it comparesHow you fill it in
Creation DateThe day the contact joined BIPDate Operator and Value (absolute or relative date)
NameThe contact's nameText Operator and Value
EmailThe contact's emails (one match is enough)Text Operator and Value
EventWhat the contact did in the last 90 days (one matching event is enough)Event Type, Source, URL, Value and Metadata, all optional
FieldA custom fieldField, then Operator and Value according to the field type
First / Last LocationThe city, region and country recorded for the contactType, then Operator and Value (text or radius on the map)
KPIThe numeric value of an indicatorIndicator, Operator and Value
PhoneThe contact's phone numbers, in international format (+5541998765432)Text Operator and Value
First / Last SourceWhere the contact came from the first or the last timeType, Operator and Value
TagsThe contact's tagsList Operator and Value (existing or new tags)
Last UpdatedThe day of the last update to the contact's profileDate Operator and Value (absolute or relative date)

Text operators

They apply to Name, Email, Phone, the text options of First / Last Location and First / Last Source, fields of type String, Phone and Location, and the Value and Metadata of Event.

OperatorThe contact gets in when the value…
Equals / Not equalsis (or isn't) exactly what you typed
Contains / Not containshas (or doesn't have) the text you typed
Starts with / Not starts withstarts (or doesn't start) with the text
Ends with / Not ends withends (or doesn't end) with the text
In / Not inis (or isn't) in a list. In Name, Email, Phone and fields, type each item and press Enter. In Event, separate the items with commas
Is emptywasn't filled in

List operators

They apply to Tags and to fields of type Array. In Value, search for existing tags or type a new one and press Enter.

OperatorThe contact gets in when they…
Includes anyhave at least one of the values
Includes allhave all of the values
Does not include anyhave none of the values
Does not include alldon't have all of them at once (they may have some)
Is empty / Is not emptyhave no value (or have some value)

Number and KPI operators

OperatorNumber fieldKPI
Equals / Not equalsYes—
Greater than / Greater than or equalsYesYes
Less than / Less than or equalsYesYes
Between (From and To, both included)YesYes

In the KPI criterion, choose the Indicator (the KPIs created in Settings), the Operator and the Value. Anyone who has never received a value for that KPI counts as 0. For an exact value, use Between with the same number in From and To.

Operators for Boolean fields

OperatorWhat it checks
Is true / Is falseWhether the field is set to true (or false). Use these day to day
Is truthy / Is falsyTechnical variations of true and false
Is nil / Is null / Is undefined / Not nil / Not null / Not undefinedTechnical checks for a missing value

Date operators

They apply to Creation Date, Last Updated and fields of type Date.

OperatorThe contact gets in when the date is…
After / After or equalslater than (or equal to) the value
Before / Before or equalsearlier than (or equal to) the value
Betweenwithin the range from From to To, both included
Equalson the same day as the value

Absolute or relative date

Click the Value of any date criterion to open the picker. Under Date Mode, choose:

OptionWhat it does
Absolute → Select DateA fixed date on the calendar
Relative → Relative TimeA number and a unit (Days, Months or Years) counted from today. A negative number is the past (-30 = 30 days ago), a positive one is the future, 0 is today
Start of DaySets the time to 00:00
End of DaySets the time to 23:59. One of the two is always on; with Equals, the whole day already counts and they don't appear
GMT Offset (e.g., +00:00, -03:00)The timezone used to calculate "today". It defaults to the account timezone; for Brasília, -03:00
PreviewShows the date calculated right now, so you can check it

In Between, each end has its own picker: you can mix an absolute date with a relative one.

Birthdate mode

In Field criteria of type Date, Relative mode shows the Birthdate toggle (Birthdate within selected period). When it's on, BIP compares only the day and month and ignores the year. It works for any date that comes around every year: birth, first purchase, contract start. Creation Date and Last Updated always take the year into account.

Location and radius

In the First / Last Location criterion, choose the Type:

TypeCompares
First Location / Last LocationCity, region and country together. Use Contains → Curitiba
First Location (Country) / Last Location (Country)Only the country
First Location (Region) / Last Location (Region)Only the region (state)
First Location (City) / Last Location (City)Only the city
First Location (Geo) / Last Location (Geo)Distance on the map, with In radius or Not in radius

In the (Geo) options, click Select Region:

  1. In Search, type at least 3 letters of the city name and pick it from the list. The map moves there.
  2. In Radius, enter the distance (from 0.5, in steps of 0.5).
  3. In Unit, choose km or mi.
  4. To adjust the center, drag the marker or click another point on the map. Then click Close.

Location in BIP is always by city. The radius selects the cities whose center falls inside the circle, never neighborhoods or addresses.

First Location is recorded when the contact signs up through the browser. Last Location is updated when the contact, already identified, visits your site with the BIP script. For contacts who arrive by spreadsheet or through the API, store the city in a custom field of type Location and use the Field criterion: it offers the same options, with the field name followed by (Country), (Region), (City) and (Geo).

Source

In the First / Last Source criterion, choose the Type: First Source (Type), First Source (Form ID), First Source (URL), or the same options for Last Source. In the (Type) options, the Value is a list:

ValueWhere the contact came from
APIThe BIP API and integrations that use the API
InternalManual entry in the dashboard or a spreadsheet import
PageA page or form
Endpoint, Facebook, Flow, Instagram, TikTok, WhatsApp, OtherThe other sources BIP records

(URL) compares the address of the source page, when there is one.

Event

The Event criterion looks at the contact's event history. The contact gets in when at least one event matches all the filled-in fields at once. An empty field accepts anything.

FieldWhat it comparesHow you fill it in
Event TypeThe event type, such as view, click or purchaseThe exact text of the type, with the same upper and lower case: purchase and Purchase are different types
SourceWhere the event came fromEmail, URL (site script) or WhatsApp. Any accepts any source, API events included
URLThe event's page. It appears with the URL sourceThe full address, with https://. BIP strips https:// and anything after ? and compares the whole rest, including www. and the trailing slash
ValueThe event's value: the clicked link or the value sent through the APIA text operator and the text. Upper and lower case don't matter
MetadataThe details stored with the event, such as the visit's UTM parametersAdd metadata, then Key, operator and Value. Each row adds one more condition. Upper and lower case in the value don't matter

The events that reach the criterion:

What happenedEvent TypeSourceURLValueUseful metadata
The contact opened an emailviewEmail——campaignId (the campaign ID)
The contact clicked a link in the emailclickEmail—The clicked linkcampaignId
The contact visited a page with the scriptviewURLThe page—searchParams.utm_source and the other URL parameters, referrer
The contact clicked an external link on your siteclickURLThe page of the clickThe clicked linkreferrer
Your system called POST /api/eventsThe type sentAnyThe url sentThe value sentThe metadata keys
  • Email: anyone who clicks a link also counts as an open. The campaign ID is the end of the campaign page's address, in Campaigns.
  • Links: BIP stores the clicked link without https:// and without anything after ?. With Equals, paste the whole link, exactly as it is in the email or on the site. With Contains, Starts with and the others, write it without https://: lojahorizonte.com.br/oferta.
  • Pages: each URL parameter of the visit becomes a searchParams. key followed by its name, such as searchParams.utm_campaign. referrer is the page the visitor came from. Visits count from the moment the visitor becomes a contact; see the Site script.
  • API: each metadata key becomes a Key, such as pedido. For a key inside another object, use a dot: entrega.cidade. See the API.
  • Period: BIP keeps events for 90 days. A click from four months ago no longer counts.

To require two different events, such as opened the email and visited the pricing page, use two Event criteria in the same filter, with All (AND).

Criteria groups

WhereOptionResult
Inside a filterAll (AND)The contact must meet every criterion in the block
Inside a filterAny (OR)Meeting one criterion in the block is enough
Between filtersAll (AND)The contact must pass every block
Between filtersAny (OR)Passing one block is enough

Actions on the segment screen

ActionWhat it does
New Segment (in the list)Creates an [untitled] segment as a Draft and opens its screen
N filter(s) selectedOpens the Filter Editor. The number is how many criteria there are
Import from SegmentCopies another segment's rules into the editor
SettingsName, emoji, Description and Group
SaveSaves the segment and removes the Draft badge
Download CSVDownloads a CSV (UTF-8) with one row per contact in the segment: the main data (such as name, emails, phone numbers, tags, dates, location, source and KPIs) and one column per custom field
Duplicate (in the list)Creates a copy as a Draft, named (Clone)
Trash icon (in the list)Deletes the segment. A segment used by a campaign can only be deleted after it's removed from that campaign

BIP Full only

On BIP Full, WhatsApp messages sent by Flows generate events with the WhatsApp source: delivered, read and replied (with the reply text in Value). They work in the Event criterion of segments and of the Flows themselves. In Flows, the Filter step and the Entry criteria use this same editor, and Event gains the Entity Value field: with the Email or WhatsApp source, it picks a send from the flow. The Source option (Form ID) identifies people who came in through a BIP form.

Ready to copy

Today's birthdays

First, create the Date of birth field (type Date) in Settings → General → Fields.

CriterionOperatorValue
Field → Date of birthEqualsRelative: 0 Days, Birthdate on

Use it with a Recurring campaign, Daily, at 09:00, with Allow Lead Re-entry on and a Cooldown Period (Days) of 300. That way each person gets the message once a year.

Inactive for 30 days

CriterionOperatorValue
Last UpdatedBeforeRelative: -30 Days, Start of Day
TagsIncludes anycustomer

Combine the two criteria with All (AND). Customers whose profile hasn't been updated in the last 30 days get in.

New in the last week

CriterionOperatorValue
Creation DateAfter or equalsRelative: -7 Days, Start of Day

Cities within 30 km

First, make sure the City field (type Location) is filled in on your contacts, through import or the API.

CriterionOperatorValue
Field → City (Geo)In radiusSearch Curitiba, Radius 30, Unit km

For people who visit your site with the BIP script, also use First / Last Location → Last Location (Geo), with the same values, in a second filter combined with Any (OR).

Customers with area code 41

CriterionOperatorValue
PhoneStarts with+5541

VIP: tag or many orders

First, create the Orders KPI in Settings.

FilterCriterionOperatorValue
1TagsIncludes anyvip
2KPI → OrdersGreater than or equals5

Combine the two filters with Any (OR): anyone with the tag or with 5 orders or more gets in.

Clicked the campaign email

First, open the campaign in Campaigns and copy its ID, at the end of the page address. Then add the Event criterion and fill in:

Event fieldValue
Event Typeclick
SourceEmail
MetadataKey campaignId, Equals, CAMPAIGN_ID

For people who opened it, change the type to view. For people who clicked a specific link, also fill in Value → Contains → lojahorizonte.com.br/oferta.

Visited the pricing page

First, install the site script. In the Event criterion:

Event fieldValue
Event Typeview
SourceURL
URLhttps://lojahorizonte.com.br/precos

Anyone who saw the page in the last 90 days gets in. If your site also opens with www., add a second Event criterion with that address and combine the two with Any (OR).

Came back to the site from an Instagram post

Use utm_source=instagram in the post's link. Contacts who visited the site through that link get in; visits from people who aren't contacts yet aren't stored. In the Event criterion:

Event fieldValue
Event Typeview
SourceURL
MetadataKey searchParams.utm_source, Equals, instagram

Bought in the last 90 days

First, log each purchase with POST /api/events and the type purchase, as in the API guide. In the Event criterion:

Event fieldValue
Event Typepurchase
SourceAny

For customers of all time, use the customer tag or the Orders KPI, which don't expire.

NPS detractors

First, log each response with POST /api/events, the type nps and the score in value. In the Event criterion:

Event fieldValue
Event Typenps
ValueIn, 0,1,2,3,4,5,6

Names and descriptions

Segment names and descriptions
🎂 Today's birthdays — Contacts whose birthday is today (Date of birth field)
💤 Inactive for 30 days — Customers with no profile update in the last 30 days
🆕 New in the last week — Contacts created in the last 7 days
📍 30 km around Curitiba — Contacts in cities up to 30 km from Curitiba
⭐ VIP — vip tag or 5 or more orders
🖱️ Clicked the campaign — Contacts who clicked a link in the campaign email
💲 Visited pricing — Contacts who saw the pricing page in the last 90 days
📣 Back from Instagram — Contacts who visited the site through a link with utm_source=instagram
🛍️ Bought in 90 days — Contacts with the purchase event in the last 90 days
🙁 NPS detractors — Contacts who gave a score from 0 to 6 in the last 90 days

How to measure

  • Close the Filter Editor after each change: the heading shows N matches of T. That's the audience size if the campaign goes out now.
  • Search the list for contacts you know should be in (or out). Open the profile to check the date, tag or city that decided the result. In a segment with Event, the contact's Feed shows the click, visit or purchase that got the person in.
  • Click Download CSV to review the list in a spreadsheet or share it with your team.
  • After the send, compare the count with Processed in the campaign stats. The difference comes from people in more than one of the campaign's segments (they get it only once) and from those the Lead Re-entry Window held back.

Frequently asked questions

Does the segment update itself?

Yes. BIP recalculates the segment before every campaign send, including each run of a recurring campaign. On the segment screen, the count is recalculated whenever you close the Filter Editor.

Does someone in two segments get the campaign twice?

No. In a campaign with several segments, each contact gets the message once per send, even if they show up in more than one.

How long does a click or a visit count in the segment?

For 90 days. BIP keeps events for that period, and the Event criterion only looks at them. To mark something that lasts for good, such as "already a customer", also send a tag or a KPI through the API.

Why does a segment with Event take longer to build?

Because BIP checks each contact's event history. On a large list, building it can take a few extra minutes. The criterion card itself shows this notice.

Can I filter by neighborhood?

Not by location: it's always by city. Store the neighborhood in a String field or a tag (during import or through the API) and filter by Field or Tags.

Why don't my imported contacts match the location filter?

First / Last Location comes from the browser: from the contact's own sign-up and from visits to your site with the BIP script. For people who come from a spreadsheet or the API, store the city in a field of type Location and filter by Field, with the same city and radius options.

See also