---
sourceDocument: Xanadu Build or modify applications
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/xanadu/application-development

 Release :

    - xanadu

ft:locale :

    - en-US

ft:publication_title :

    - Xanadu Build or modify applications

ft:clusterId :

    - cadev

bundleId :

    - cadev

workflow :

    - Development, Data, and Analytics


---

# Add a component to Agent Workspace

# Add a component to Agent Workspace {#ariaid-title1}

* Release version: Xanadu
* 
* Updated August 1, 2024
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 2 minutes to read

Use custom components to create a custom Workspace interface to
fulfill the specific need of your company's agents.
Communicating with customers through multiple channels can be time consuming. To be efficient in these omni-channel interactions, your agents need a single view of customer information to reduce context switching between multiple tools. By developing custom components for Workspace, your team can bring communications from multiple channels into one interface.

## Adding components to a Workspace {#workspace-component__section_m3f_dgk_qkb}

Once deployed to your instance, you can add components to Workspace in
these ways.  

Add a component to a Workspace modal
:   Use a UI action to launch a custom component in a modal so an agent doesn't have to navigate to a different screen to accomplish a task. For more information, see [Render a component in a modal](https://www.servicenow.com/docs/access?context=declarative-actions-landing&version=xanadu&pubname=xanadu-platform-user-interface&ft:locale=en-US).

Add a component to a Workspace landing page using UI
Builder

:   Use the UI Builder to create custom landing pages for your agents. UI Builder is a drag-and-drop tool that lets you visually arrange workspace components. For more information, see [Configuring Configurable Workspace](https://www.servicenow.com/docs/access?context=c_set-up-configurable-workspace&version=xanadu&pubname=xanadu-platform-user-interface&ft:locale=en-US).

    Configure properties in the now-ui.json file to use deployed components in the UI Builder. For instructions, see the [ServiceNow Developer Site](https://developer.servicenow.com/dev.do#!/reference/next-experience/xanadu/cli/ui-builder).

Add a component to a Workspace record view
:   You can add custom or standard components to the component area in the Workspace record view. For more information, see [Forms](https://www.servicenow.com/docs/access?context=form-configurable-workspace&version=xanadu&pubname=xanadu-platform-user-interface&ft:locale=en-US).

## Add a component to UI Builder {#ariaid-title2}

Set properties in a configuration file to add your component to the UI Builder in your instance.

### Before you begin

* [Set up your environment](https://servicenow-prod.fluidtopics.net/7fwEmY7ytgAe_M1H8nFU8Q "Prepare your local environment by installing the Node.js JavaScript runtime environment, Node package manager (npm), and the ui-component extension. These tools enable you to develop and build components locally and deploy them to your instance.")
* [Set up your project](https://servicenow-prod.fluidtopics.net/3hj38VhiZtOrrrFx6HSA~g "Create the component project and the set of files required to develop a component. You can connect to your instance and create an application scope for your component, or you can reserve a scope to verify later.")
* [Develop a component](https://servicenow-prod.fluidtopics.net/z4VmUhpo6wwJBnwpQpN7VQ "Add your component code and test it using a local development server.")
{#view-in-uib__ul_wb3_xbn_tkb}

### Procedure

1. In your project directory, open now-ui.json.
2. Add the `components.[component-name].uiBuilder` object to the file.  
   This object adds the component to the UI Builder.  
   This object includes these key-value pairs:{#view-in-uib__table_spf_5sb_5kb__entry__3}

   | Key | Data type | Description |
   |-|-|-|
   | components.\[component-name\].uiBuilder | Object | Object that adds the component to UI Builder. |
   | components.\[component-name\].uiBuilder.label | String | Required. The display name of the component in UI Builder. |
   | components.\[component-name\].uiBuilder.icon | String | Required. The name of the icon that appears in UI Builder. |
   | components.\[component-name\].uiBuilder.description | String | Required. A short description of the functionality of the component. |
   [ ]

   {#view-in-uib__table_spf_5sb_5kb}  

       {
         "components": {
           "card": {
             "uiBuilder": {
               "label" : "Card",
               "icon" : "chat-fill", 
               "description" : "A visual card format for a record.",
               "associatedTypes": ["global.core"]
             },

3. If your component includes properties, add the `components.[component-name].properties` array to the file.  
   This adds the properties as configuration options for the component in UI Builder.  
   This object includes these key-value pairs:{#view-in-uib__table_vdz_qzb_5kb__entry__3}

   | Key | Data type | Description |
   |-|-|-|
   | components.\[component-name\].properties | Array \<Object\> | An array of objects that includes all the properties of the component and all relevant information about those properties. |
   | components.\[component-name\].properties\[\].name | String | Name of the property in your component's code. |
   | components.\[component-name\].properties\[\].label | String | Display name of the property to display in UI Builder, if applicable. |
   | components.\[component-name\].properties\[\].description | String | A short description of what the property does or how to use it. |
   | components.\[component-name\].properties\[\].readOnly | Boolean | When true, prevents a user from configuring the property in UI Builder. Default: false. |
   | components.\[component-name\].properties\[\].required | Boolean | When true, the user must configure the property. Default: false. |
   | components.\[component-name\].properties\[\].defaultValue | String | The default value when the user does not provide one. |
   | components.\[component-name\].properties\[\].associatedTypes | Array | Describes where in the UI Builder toolbox the component appears. Value must be `"global.core"`. |
   | components.\[component-name\].properties\[\].typeMetadata | Object | Extra configuration data that some data types require, such as reference properties and choice lists. |
   [ ]

   {#view-in-uib__table_vdz_qzb_5kb}  

       {
         "components": {
           "properties": [
       		    {
       			"name": "backgroundColor",
       			"label": "Background Color",
       			"description": "Background Color",
       			"readOnly": false,
       			"required": false,
       			"defaultValue": "lightgray"
       		    },
       		    {
       		       "name": "cardType",
       			"label": "Type of card",
       			"description": "Type of card",
       			"readOnly": false,
       			"required": false,
       			"defaultValue": ""
       		    }
       			]

4. Save the file.

### What to do next

[Deploy a component to an instance](https://servicenow-prod.fluidtopics.net/MEztUtnVVo3baJd3KAKLmw "Deploy your component to display in your instance as an application plugin.").
**Related concepts**   

* [Create custom components using ServiceNow CLI](https://servicenow-prod.fluidtopics.net/KY_xJD~3ToQMolg1ly161g "Develop custom components using the Next Experience UI Framework and the ui-component extension.")

