# Building an Audience

### About this export

| Field | Value |
| --- | --- |
| **content_type** | lesson |
| **platform** | contentstack-academy |
| **source_url** | https://www.contentstack.com/academy/courses/data-insights-using-profiles-to-power-personalization/data-insights-course-4--building-an-audience |
| **course_slug** | data-insights-using-profiles-to-power-personalization |
| **lesson_slug** | data-insights-course-4--building-an-audience |
| **markdown_file_url** | /academy/md/courses/data-insights-using-profiles-to-power-personalization/data-insights-course-4--building-an-audience.md |
| **generated_at** | 2026-11-09T09:54:02.122Z |

> Part of **[Using Profiles to Power Personalization](https://www.contentstack.com/academy/courses/data-insights-using-profiles-to-power-personalization)** on Contentstack Academy. **Academy MD v3** — structured for retrieval; no quiz or assessment keys.

<!-- ai_metadata: {"lesson_id":"01","type":"video","duration_seconds":595,"video_url":"https://cdn.jwplayer.com/previews/LVm9uAFn","thumbnail_url":"https://cdn.jwplayer.com/v2/media/LVm9uAFn/poster.jpg?width=720","topics":["Building","Audience"]} -->

#### Video details

#### At a glance

- **Title:** 24-data-insights-building-an-audience
- **Duration:** 9m 55s
- **Media link:** https://cdn.jwplayer.com/previews/LVm9uAFn
- **Publish date (unix):** 1752889734

#### Streaming renditions

- application/vnd.apple.mpegurl
- audio/mp4 · AAC Audio · 113453 kbps
- video/mp4 · 180p · 180p · 127895 kbps
- video/mp4 · 270p · 270p · 135135 kbps
- video/mp4 · 360p · 360p · 143562 kbps
- video/mp4 · 406p · 406p · 148506 kbps
- video/mp4 · 540p · 540p · 163364 kbps
- video/mp4 · 720p · 720p · 187010 kbps
- video/mp4 · 1080p · 1080p · 260143 kbps

#### Timed text tracks (delivery)

- **thumbnails:** `https://cdn.jwplayer.com/strips/LVm9uAFn-120.vtt`

#### Video transcript

Audience building in Lytx at the core is super easy. Just go into audiences, you'll see all of your existing audiences. Lytx comes pre-built with a number of audiences out of the box. So like if you expand it, you'll see things like anonymous profiles and highly engaged users and some of those kind of things. That's what you'll see in a brand new account on day one without doing anything. And then obviously you can go in here and create any number of custom audiences based on your data, based on your specific use cases. When you go into the audience builder, so when you go to build audiences, there's really only two things to keep in mind kind of at a high level. One, you can build Lytx audiences on existing audiences. So usually we'll call those building block audiences. You can think about a use case where, you know, maybe I have a consent audience or audience of high value users in the U.S. or audience of users who have an email address or whatever it may be. You don't want to redefine that logic every single time that you build a segment that uses, say, your consent rules. So you can go in here, build an audience, and then when you come to build a new audience, you can select essentially any of the existing audiences to include in that logic. So for instance, I can search for, say, like known email, which is one of our out-of-the-box audiences, click that, and it'll add that logic to your segment definition. And then you can stack additional rules and ands and ors and all that kind of stuff on top of it. So keep in mind that you can build audiences on top of other audiences. We try to keep the, like, the depth of those includes. Within reason, customers sometimes can do some crazy things and have, you know, an audience that includes an audience that includes an audience that includes an audience that includes an audience. And sometimes that makes the logic difficult to understand. So I wouldn't go terribly deep on those inclusions as a best practice, but there's not really any hard limitations. When you add either a rule, which we'll do here in a second, or an audience, you'll always be presented with included by default. You can toggle it to exclude. And then these counts on the right hand side are real time. The one thing to note about these counts is under the hood, this gets pulled from Elasticsearch. So sometimes, like, if you're doing live testing and pushing a profile in and then building an audience, these numbers will be slightly delayed compared to the profile view, which reads directly from the actual entity store in Bigtable. So just keep in mind that there's some caching, some delay in the actual calculation of these numbers while the data sort of makes its way to Elasticsearch and whatnot. It really only impacts you if you're, like I said, doing a thing in the UI to collect data and then going to build a segment and expect it to show one. It won't always show one right away or whatever that user number is. But for the most part, the counts are pretty close to real time. I think in my testing last week, it's like 10 to 15 minutes and all of the numbers in the audience query should be up to date. And then the other thing you can do, as long as there's users that come back in the audience, is you can sample recent users. So this will pull up a bunch of anonymous profiles because they don't have names yet, but you can click on one of these and actually go to explore the profile just as you're trying to sort of play with and understand the system. The segments at the core in the UI, at least I should say, are built up of rules and rule sets. So rule sets, just think about it as a group of rules, and then rules are the individual logic. We'll probably in a follow-up conversation, maybe go in under the hood how segments are built and touch on filter QL and some of that, which is like the code, the language, the query that the UI builds. But I think we'll save that for a more technical deep dive. But as an example, if I delete this rule, I can go, one thing I would ignore is this content affinity tab is legacy. You're going to open it and there's generally not going to be any content affinities. This thing's going away in the new builder because we don't use it anymore. So just as you see that sort of ignore and pretend that it's not there. The other thing to be aware of is the custom rules. So this is where all of the attributes that we have walked through how to add and change and manipulate and create on the profile, you can ultimately access them and build whatever logic you want. So if I wanted to, for instance, say like, you know, anybody that has had a page view ever, I could add that condition. And then you could add additional rules to the rule set. So like if I did email exists, these two rules in the UI are essentially linked together. So I can switch it and say I want it to be an or or an and pretty basic sort of stuff. I can include or exclude one of them. And then if I were to add another rule set, it's another group of rules that you can then and an or against that top set of rules. So if I did like score frequency is greater than 10. So now you have this rule set, which contains these two rules that have their sort of independent and or switcher. And then I can adjust the logic of this rule set. If I were to add another rule, say like score frequency is exists, whatever bad rule because they're the same ones. But so now these two things work together. These two things work together. And then you can toggle if you want to use both rules or whatever. So it's it's creating this big essentially like and or statement under the hood, which we can show, but just know that you have rule sets so that you can group logic together. And then you have rules which represent the individual rules to be applied. So then the other thing that I wanted to touch on that will definitely come up. Actually, there's two things. So one, you'll see the show unpopulated fields is automatically checked. So it should be on for everybody. If you happen to uncheck it, it's going to hide all of the fields that don't yet have user data on them. So like if I do this, it's going to hide a bunch of fields that maybe we haven't collected first name, last name stuff that doesn't have information yet. So almost always you're going to want to make sure that this is checked. It should be checked by default, but it's a total gotcha of like, I don't see my field. It's not there. How do I build a segment? It generally means that you don't have any users with data on that yet. And then more importantly, field info, which is sort of a background job, hasn't ran yet to update some of those stats. So just kind of a foot gun to always make sure that that's checked. It's going away in the new builder and it's just on. And then the other thing that is a little bit hairy, we'll say, is it's really, really powerful, but it's also a little bit confusing in the UI to use some of that date calculation logic. So if I choose a field first and foremost, that is a time field. So for instance, like event last time seen is a map of the event name and then the time stamp that you last saw it or the time stamp that you first saw it. So if I go in here, for example, and say I want to look at page view, it's going to bring up the sort of date math calculator for lack of a better term. And the first thing to notice, you can do it based on a relative date. So one that slides with you versus specific date. So if a specific date is I want to evaluate this on June 13th, 2025, I can do that and it does it one time. The relative date allows you to do things like I want to reevaluate this an hour in the future for every user based on that date. What I did, because this is always really complicated to explain, I built a picture to try and explain this, which I can share afterwards as well. But essentially, in this UI, if I go back here just real quick, so there's essentially the relative date and there's after, before, or exists. Exists is super easy in that it just evaluates that that key exists. It doesn't care about the time stamp as long as that key's there. So that's just sort of like a check of I've ever made a purchase as an example. But there's after and before and there's in the past and in the future. So this picture sort of breaks down that logic. So for instance, if I say, after one hour in the future, let's say it's 3 p.m. right now, the green, it's going to look at 4 p.m. for my time and then have any time after that, which probably doesn't have any use cases, but technically you could build it. After one hour in the past is going to look an hour in the past. So 2 p.m. in this case, and then look forward from there, essentially. The before one hour in the past is going to look an hour behind and then any time before that. And then before one hour in the future, goes in the future an hour and then looks backward. All of this is horrifically complicated. One of the things that we're working to do, which you'll see in some of like actions and that kind of thing, is like for cart abandonment, we want to pre-build a segment for you that says, okay, we wanted to pull in anybody that has abandoned a cart in the last 30 minutes and hasn't made a purchase in 24 hours, which is a super simple use case, really difficult to build with this particular logic. So you'll see it in the UI, know that this is one of the big focuses for us and one of the reasons that we're rebuilding the segment builder so that we can simplify a bunch of this logic and make it a little bit more human friendly. However, the power of it is super, super cool and that it can do sort of these forward date calculations to reevaluate in the future to see when you're in that segment or not in that segment versus relying on events to come into the stream.

#### Key takeaways

- Connect **Building an Audience** back to your stack configuration before moving to the next module.
- Capture one concrete artifact (screenshot, Postman call, or code snippet) that proves the step works in your environment.
- Re-read the delivery versus management boundary for anything you changed in the entry model.

## Supplement for indexing

### Content summary

Building an Audience. Building an Audience in Using Profiles to Power Personalization (data-insights-using-profiles-to-power-personalization).

### Retrieval tags

- Building
- Audience
- data-insights-using-profiles-to-power-personalization
- lesson 01
- Building an Audience
- data-insights-using-profiles-to-power-personalization lesson

### Indexing notes

Index this lesson as a primary chunk tagged with lesson_id "01" and topics: [Building, Audience].
Parent course slug: data-insights-using-profiles-to-power-personalization. Use asset_references URLs as thumbnail hints in search results when present.
Never surface LMS quiz content or assessment answers from this file.

### Asset references

| Label | URL |
| --- | --- |
| Video thumbnail: Building an Audience | `https://cdn.jwplayer.com/v2/media/LVm9uAFn/poster.jpg?width=720` |

### External links

| Label | URL |
| --- | --- |
| Contentstack Academy home | `https://www.contentstack.com/academy/` |
| Training instance setup | `https://www.contentstack.com/academy/training-instance` |
| Academy playground (GitHub) | `https://github.com/contentstack/contentstack-academy-playground` |
| Contentstack documentation | `https://www.contentstack.com/docs/` |
