Loading...
Loading...
Loading...
Custom conversation attributes capture structured, interaction-specific context, such as an incident type, a claim reference, or an application stage. They are stored at the conversation level and vary from one interaction to the next. A segment, by contrast, persists on the external contact as part of the customer’s profile. For more information, see Conversation schemas overview.
Some attributes also signal who the customer is. Persist an attribute as segment membership only when it is a durable fact about the customer that stays true after the conversation ends and is useful in future interactions.
For example, a customer who asks about a flight booking may have their flying tier captured as a conversation attribute. The flow reads that attribute and assigns a matching segment, so later interactions can recognize the tier and prioritize or personalize service.
The segment must exist and be active before a flow can assign it. Create segments in Genesys Cloud, or use the POST /api/v2/journey/segments endpoint.
FindCustomerSegments() function to look up the segment by name.Download the sample flow and import it into your Genesys Cloud organization. It shows how to read the conversation attribute and use it to assign a segment.
| Flow name | Description | Type | File |
|---|---|---|---|
| Assign Flyer Tier | A sample bot flow that reads the flying tier from a custom conversation attribute and assigns a “Gold” or “Silver” customer segment based on the value. Note: The sample flow references a conversation schema that does not exist in your organization, so Architect shows a validation error after you import it. | Bot | Assign Flyer Tier Segment Bot Flow |
For more information, see Import or export a flow and Download Architect flow examples.
A customer can belong to many segments at the same time. If a customer moves between segments that are mutually exclusive, such as flyer tiers, the previous segment stays assigned until it expires.
To keep membership accurate, do either of the following:
POST /api/v2/externalcontacts/contacts/{contactId}/journey/segments.If the contact is already assigned to the segment, the Assign Customer Segment action renews the assignment and resets its expiry.
Get user feedback about articles.