---
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 properties to communicate with Virtual Agent

# Add properties to communicate with Virtual Agent {#ariaid-title1}

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

To develop a component for Virtual Agent, add specific properties and actions to interact with the Virtual Agent client interface. The properties required depend on the type of component you are creating.

## 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.")
{#add-va-properties__ul_wb3_xbn_tkb}

## Procedure

1. In your component code, add the Virtual Agent properties to interact with the Virtual Agent client interface.  
   {#add-va-properties__table_k3t_nqd_lmb__entry__2}

   | Property | Description |
   |-|-|
   | controlData | Initial data that the Virtual Agent server sends to your component as the topic runs. Data type: JSON Object |
   | responseValue | Data sent to the component from the user's response, either from the client directly, or from the server if there is a refresh. Only use in components that require user input. Data type: JSON Object |
   | forceCloseControl | Flag that indicates whether the component can accept input. When true, the control closes and the user cannot interact with it. Monitor changes on the client to update this value. Only use in components that require user input. Data type: Boolean |
   [Table 1. Virtual Agent component properties]

   {#add-va-properties__table_k3t_nqd_lmb}
2. If creating an input component, use the `VA_CONTROL#VALUE_SENT` action to send user values to the server.  
   {#add-va-properties__table_pdz_frd_lmb__entry__2}

   | Action | Description |
   |-|-|
   | VA_CONTROL#VALUE_SENT | Response data from the client to send to the server. Only use in components that require user input. Data type: JSON Object |
   [Table 2. Virtual Agent component actions]

   {#add-va-properties__table_pdz_frd_lmb}

## What to do next

[Test a component for Virtual Agent](https://servicenow-prod.fluidtopics.net/~lmpRbVwHqyElO~pFpFkcw "Test your Virtual Agent custom component before deploying it to your instance.") and [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.")

