AI Segmentation
Use natural language to build segments — describe the audience you want in plain English and Gleantap generates the filter criteria.
AI Segmentation lets you build segments by describing them in plain English. Instead of assembling filters manually (find attribute → pick operator → set value → repeat), you type a sentence like "members who booked a class in the last 30 days but haven't visited yet" and Gleantap generates the segment for you.
This is a helper on top of the regular segment builder — the segments it produces are normal dynamic segments you can edit further, use in campaigns and flows, and combine with other segments.
For manual segment building, see Creating Segments and Filter Options.
When to use AI Segmentation
Good fit:
You know exactly who you want to reach but don't remember which filters get you there.
The segment involves 3+ criteria and the manual assembly is tedious.
You're new to Gleantap and haven't learned the filter builder yet.
You want a fast first draft that you'll refine manually.
Not the right tool:
The segment is a single simple filter (
Is Member = True). Manual is faster.You need very precise operator control (e.g., specific null-handling behavior) — build it manually and use Filter Options as a reference.
You're building a segment used in a critical automation. AI drafts benefit from human review, especially for anything driving customer-facing sends.
How to use it
Go to Audience → Segments.
Look for the AI Segmentation option (typically a distinct button or entry point on the segment creation flow).
Type a natural-language description of the audience you want. Be specific — see Prompt patterns below.
Gleantap analyzes your description, maps it to available attributes and operators, and generates a segment with the appropriate filters.
Review the generated filters before saving.
Adjust manually if needed — the result is a normal dynamic segment; every filter is editable.
Always review the output. AI Segmentation is a productivity accelerator, not a replacement for your judgment. Confirm the filters match what you meant.
Prompt patterns that work
Like other AI features (see Creative Playground (AI)), the quality of the output depends on the specificity of your input.
Weak prompt: dormant members
Better prompt: Members who haven't visited in 30 days but had at least 5 visits in the previous month
Even better: add specifics for edge cases.
Members with an active membership status who haven't visited in the last 30 days but had at least 5 visits in the 30 days prior — exclude anyone who has already been enrolled in the reactivation flow
Patterns to include
The status of the person — member, lead, prospect, past-member
A time window — "in the last N days", "since Jan 1", "over 60 days ago"
A behavior — visited, purchased, booked, filled out a form, opened an email
Exclusions — "except those who...", "not tagged X", "haven't received Y campaign"
Location (for multi-location accounts) — "at Location A"
Patterns to avoid
Very abstract goals — "people who might churn" won't produce a good segment. Instead: "members with no visits in 21 days and no purchases in 30 days" — the specific behaviors that mean "might churn" for your business.
Ambiguous references — "our best customers" is subjective. Define the criteria: "members with lifetime purchases over $500 AND at least 20 visits in the last year".
What Gleantap actually does under the hood
When you describe a segment in natural language, Gleantap:
Parses the description to identify entities (attributes) and constraints (operators + values).
Matches those to the actual filter categories and attribute names available in your account.
Generates a segment configuration using the segment builder's normal filter format.
Presents the result for you to review.
The generated segment is stored the same way as one you built by hand. No special "AI segment" type exists — once saved, it's a regular segment.
Refining AI-generated segments
After the initial generation, expect to make manual tweaks:
Swap operators. The AI might pick
Is Greater Than 5when you meantIs Greater Than or Equal To 5. Change it.Adjust date windows. "Recently" might be interpreted as 7 days when you meant 30. Refine.
Add exclusions. The AI usually captures the positive criteria well; exclusions ("but not...") are trickier. Add them manually in the segment builder.
Change segment type. AI-generated segments are typically dynamic (auto-updating). If you want a static snapshot, change the type before saving.
See Filter Options → How missing data is handled for the null-handling behavior of operators — this catches most "the count is off" surprises.
Common scenarios
"The AI generated a segment with 0 results but I know there are matching contacts"
Two likely causes:
The AI picked the wrong attribute. Open the segment and inspect the filters — does the attribute name match the field you actually use? Some businesses have multiple similarly-named attributes (e.g., "Membership Type" vs a custom attribute called "Plan Type"); the AI may have picked the wrong one.
Null handling is filtering everything out. If the criteria involves a numeric or date field, contacts with no value for that field are excluded. See Filter Options → How missing data is handled.
"The AI segment is close but I want to add an OR condition"
AI Segmentation typically produces AND-combined filters (all conditions must match). To add OR logic, open the segment in the manual builder and group filters — see the group logic in Filter Options.
"How do I combine two AI-generated segments?"
Save both as regular segments, then create a third segment with Is In Segment A OR Is In Segment B using the manual builder. AI Segmentation is good for individual segment generation; composition is manual.
"Can I regenerate if I don't like the first output?"
Yes — refine your description and generate again. The generated segment overwrites the previous attempt (until you save, at which point it becomes a saved segment).
"The AI didn't use an attribute I know exists"
The AI works from the attributes visible in your workroom. If the attribute is custom and was only recently added, the AI may not have picked it up. Add it manually to the segment.
Related pages
Creating Segments — manual segment building
Filter Options — the full operator reference
Custom Attributes — segmenting on custom fields
Creative Playground (AI) — AI-assisted content generation (same "AI as a starting point" pattern)
Was this helpful?