---
sourceDocument: Brazil Conversational Interfaces
sourceDocumentLink: https://www.servicenow.com/docs/r/conversational-interfaces

 Release :

    - brazil

ft:locale :

    - en-US

ft:publication_title :

    - Brazil Conversational Interfaces

ft:clusterId :

    - convint

bundleId :

    - convint

workflow :

    - Platform


---

# Script bot response control

# Script bot response control {#ariaid-title1}

Release version: Brazil  
Updated September 10, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read  
Use the Script bot response control in a Virtual Agent topic to run a script that returns a single response or a multi-part response.
Use the Script bot response control when creating a more complex response that relies on scripted calculations or requires a multi-part response. Scripted output can include text, image, cards, links, and HTML to create a
versatile response.

## Script bot response control properties {#va-script-output__section_twc_ffl_vdb}

{#va-script-output__table_l2x_5jn_vdb__entry__2}

| Property | Description |
|-|-|
| Node name | The name that identifies this Script bot response control node in the topic flow. |
| Script output type | The type of output returned by the script, either single-part or multi-part. |
| Script response message | The script that generates the selected output type. |
| Advanced ||
| Hide this node ||
| Conditionally show this node if | No-code condition statement or low-code script that specifies a condition for presenting this node in the conversation. The condition must evaluate to true. |
[ ]

{#va-script-output__table_l2x_5jn_vdb}

## Channel support {#va-script-output__section_bwr_s34_tsb}

{#va-script-output__table_oxg_t34_tsb__entry__3}

| Channel | Support | Constraints |
|-|-|-|
| Microsoft Teams | Supported | None |
| Slack | Supported | None |
| SMS Twilio | Not supported | Not applicable |
| WhatsApp | Not supported | Not applicable |
| Google Chat | Supported | None |
[Table 1. Channel support for the Script bot response control]

{#va-script-output__table_oxg_t34_tsb}

## Example script {#va-script-output__section_bl4_ffl_vdb}

In this example, the script calculates the time two hours from the current time and outputs a multi-part message that includes this information.

    (function execute() {
          var gdt = new GlideDateTime();
          var gt = new GlideTime();
          gdt.addSeconds(7200);
          gt = gdt.getTime();
          var multiOutMsg = new sn_cs.MultiPartOutMsg();
          multiOutMsg.addPlainTextPart('Thank you for submitting an incident.');
          multiOutMsg.addPlainTextPart('You should receive a response from a technician by ' + gt.getByFormat('HH:mm'));
          return multiOutMsg;
    })()

## Example Script bot response control {#va-script-output__section_vyr_2fl_vdb}

Note:  
Asset library controls may display and function differently in other channels.  
{#va-script-output__table_f1f_v2p_xdb__entry__2}

| Script properties | Script bot response output |
|-|-|
| Figure 1. Script bot response control basic properties | Figure 2. Web UI Script bot response output |
[ ]

{#va-script-output__table_f1f_v2p_xdb}

