Prompt
How do I segment in-app messages by plan or role?
Latest observation
Nov 1, 2026
OpenAI APIWeb search: off
To segment in-app messages by plan or role, you usually need to use your product’s user properties / traits and then build a targeting rule in your in-app message campaign.
Typical approach
-
Track the user’s plan and role
- Examples:
plan = free | pro | enterpriserole = admin | member | viewer
- Make sure these are sent to your messaging/analytics tool as user attributes.
- Examples:
-
Create a segment
- Build a segment like:
plan is prorole is adminplan is enterprise AND role is owner
- Build a segment like:
-
Target the in-app message to that segment
- In the campaign targeting settings, choose the segment you created.
- You can also use inline rules if your tool supports it.
Example targeting rules
- Show upgrade prompt to:
plan = free
- Show admin-only onboarding to:
role = admin
- Show new feature announcement to:
plan IN (pro, enterprise)
If you’re using event-based targeting
You can combine attributes with behavior, for example:
plan = freeANDvisited_pricing_page = truerole = adminANDcreated_team = false
Important notes
- Make sure the attribute is available before the message can trigger.
- If plan/role changes, update the user profile immediately so segmentation stays accurate.
- Use server-side updates if possible for billing plan, since it’s usually more reliable than client-side only.
If you tell me which platform you’re using (e.g. Intercom, Braze, Customer.io, Appcues, etc.), I can give you the exact steps and rule syntax.