Skip to contentSkip to navigationSkip to topbar
On this page

Unified Profiles Container (Public Beta)


Use Unified Profiles container capabilities(link takes you to an external page) to programmatically customize your agent experiences in Unified Profiles.

With the UnifiedProfilesContainer.ProfileTabs component, you can:

  • Add a new custom tab
  • Update the tab display name
  • Remove an existing tab by child key
  • Update the order (index) of the built-in tabs
Unified Profiles container.

All normal programmability actions (add, remove, replace) are also available for this component and its content.

Visit the docs to learn more about how to update the Flex UI programmatically.


Unified Profiles container

unified-profiles-container page anchor

The Unified Profiles container has the following child keys:

NameKeyNotes
Alert Banneralert
  • Can only be removed/styled
Loading Viewloading-view
  • Can only be removed/styled
Profile Header and Link Menuprofile-header-and-link-menu
  • Can only be removed/styled

  • Removing this key affects the replace/unlink profiles experience
Profile Highlightsprofile-highlights
  • Can only be removed/styled
Profile Connector Tabsprofile-connector-tabs
  • Can only be removed/styled
Profile Not Found Viewprofile-not-found-view
  • Can only be removed/styled

  • Removing this key affects the profile search experience
Profile Unlink Modalprofile-unlink-modal
  • Can only be removed/styled

  • Removing this key affects the replace/unlink profile experience
Search Viewsearch-view
  • Can only be removed/styled

  • Removing this key affects the profile search experience

Use ProfileHighlights to update the highlights component in your container.

Profile Highlights has the following child keys:

NameKeyNotes
Highlights Iconhighlights-icon
  • Can only be removed/styled
Highlights Titlehighlights-title
  • Can be renamed with the title default prop in the profileHighlightsTitle component

  • Can only be removed/styled
Highlights Chevronhighlights-chevron
  • Can only be removed/styled
Highlights Summaryhighlights-summary
  • Can only be removed/styled

You can use ProfileHeader to update the profile header. For example:

  • Flex.UnifiedProfilesContainer.ProfileHeader.Content.remove("header-avatar");

Profile Header has the following child keys:

NameKeyNotes
Header Avatarheader-avatar
  • Can only be removed/styled
Header Textheader-text
  • Can only be removed/styled

  • Contains the profile header text (profile name and subtitle)

  • Additional configuration handled in the Twilio Console

You can use ProfileHeaderText to update the profile header name and subtitle. For example:

  • Flex.UnifiedProfilesContainer.ProfileHeaderText.Content.remove("header-name");
  • Flex.UnifiedProfilesContainer.ProfileHeaderText.Content.remove("header-subtitle");

Profile Header Text has the following child keys:

NameKeyNotes
Header Nameheader-name
  • Can only be removed/styled
Header Subtitleheader-subtitle
  • Can only be removed/styled
  • Additional configuration handled in the Twilio Console

Reorder an in-house tab first and rename it

reorder-an-in-house-tab-first-and-rename-it page anchor

To reorder an in-house tab first in the container and rename it, add the following code to your plugin:

1
Flex.UnifiedProfilesContainer.ProfileTabs.defaultProps.crmViewTabProps = {
2
label: "Custom CRM",
3
index: 1
4
};
5
6
Flex.UnifiedProfilesContainer.ProfileTabs.defaultProps.timelineViewTabProps = {
7
index: 2
8
};
9
10
Flex.UnifiedProfilesContainer.ProfileTabs.defaultProps.profileViewTabProps = {
11
index: 3
12
};

Note that you must set all container tabs together to reorder them.

Need some help?

Terms of service

Copyright © 2024 Twilio Inc.