Loading...
Loading...
Loading...
External contacts are direct customers or individuals, such as employees of companies that you do business with. For more information about External Contacts, see About External Contacts and About creating a repository of customer data.
Use the Get Assigned Customer Segments action in Architect to retrieve the customer segments assigned to an external contact, then tailor the flow based on segment membership. For example, you can:
From a new or existing flow, open a task or state. From the toolbox, expand the Flow container and drag a Get Assigned Customer Segments action into the task editor: Toolbox > Flow > Get Assigned Customer Segments.
| Field | Description |
|---|---|
Name | Type a name for the action. The label you enter here becomes the action’s name displayed in the task sequence. |
External Contact ID | Enter the ID of the external contact whose assigned segments you want to retrieve. You can reference the built-in External Contact ID variable to target the contact already associated with the current conversation, or supply any valid literal value or expression. |
Customer Segments Returned | Select how to filter the segments returned for the external contact:
|
Customer Segments Result | Enter a name for the collection variable that stores the retrieved customer segments. You can reference this variable elsewhere in the flow. The variable holds up to 25 assigned segments. Each segment includes:
|
| Field | Description |
|---|---|
| Failure Outputs | These outputs allow you to map the results of any resulting errorType and errorMessage variables when the action takes the failure path.
|
| Path | Description |
|---|---|
| Found | The action takes this path when it returns at least one assigned segment. |
| Not Found | The action takes this path when the contact has no assigned segments, or none match the filter. |
| Failure | The action takes this path when it cannot complete the request. For example, the external contact ID is empty or invalid, or the flow reaches the action limit for a single execution. |
To check for a specific segment, use the FindFirstItem() function in the expression of a Decision or Switch action. The function searches the result collection for a segment name and returns the index of the first match, or -1 if the segment is not in the collection. Any value other than -1 means that the contact has the segment.
Download the sample flows and import them into your Genesys Cloud organization. They show how to configure the Get Assigned Customer Segments action in each filter option and how to use the result to personalize the interaction.
| Flow name | Description | Type | File |
|---|---|---|---|
| Get Assigned Customer Segments — Latest Assigned | A sample bot flow that retrieves the 25 most recently assigned customer segments and uses a Switch action to personalize the greeting for corporate, small and medium-sized enterprise (SME), and sole trader customers. | Bot | Get Assigned Customer Segments (Latest Assigned) Bot Flow |
| Get Assigned Customer Segments — Selected Segments | A sample bot flow that checks for the auto, home, and travel policy segments in Literal mode and transfers customers who hold all three to a priority queue. | Bot | Get Assigned Customer Segments (Selected Segments) Bot Flow |
| Get Assigned Customer Segments — Function | A sample bot flow that looks up segments by name with the FindCustomerSegments() function and tells Pro and Free plan customers the support options that they can use. | Bot | Get Assigned Customer Segments (Function) Bot Flow |
For more information, see Import or export a flow and Download Architect flow examples.
Get user feedback about articles.