---
sourceDocument: Brazil Workflow Data Fabric
sourceDocumentLink: https://www.servicenow.com/docs/r/integrate-applications

 Release :

    - brazil

ft:locale :

    - en-US

ft:publication_title :

    - Brazil Workflow Data Fabric

ft:clusterId :

    - crint

bundleId :

    - crint

workflow :

    - Creator


---

# Invoke Embedded Task Automation via API

# Invoke Embedded Task Automation via API in RPA Hub {#ariaid-title1}

Release version: Brazil  
Updated September 10, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read  
Invoke an attended bot process (attended automation) from the UI experiences by creating an action.
The limitation to trigger the attended bot process (attended automation) from other UI experiences such as playbook can be resolved by performing the following customisation. By default, the UI action is created for classic
or workspace experience to trigger the attended bot process (attended automation) when attended configuration is activated.

To create a UI action or edit an existing one, see [Create a UI action](https://www.servicenow.com/docs/access?context=t_EditingAUIAction&version=brazil&pubname=brazil-platform-administration&ft:locale=en-US).

In the corresponding action, verify that the action visibility is `new sn_rpa_fdn.RPAInstanceFormHooks().canTriggerAutomation(current,'<attended_config_sys_id>`.

Populate the \<`attended_config_sys_id`\> with the associated Attended Configuration Sys ID.​  
The following code must be added to the Script section of the corresponding Action form:

    var rpaFormHooks = new GlideAjax('sn_rpa_fdn.RPAInstanceFormHooks');​

    rpaFormHooks.addParam('sysparm_name', 'generateRuntimeLaunchUrl');​

    rpaFormHooks.addParam('attendedConfigId', '<attended_config_sys_id>');​

    rpaFormHooks.addParam('recordId', g_form.getUniqueValue());​

    rpaFormHooks.getXMLAnswer(function(response) {​

    var result = JSON.parse(response);​

    if (!result.error) ​

    top.window.open(result.url);​

    });​

**Related concepts**   

* [Embedded Task Automation (ETA) in RPA Hub](https://www.servicenow.com/docs/I0zUXsz4veyo~U40rWPMkA "With the embedded task automation feature, trigger attended bot processes (attended automations) from the ServiceNow forms, apart from initiating them from the Attended Robot application.")  
**Related reference**   

* [Conditions for the visibility of UI action (button)](https://www.servicenow.com/docs/gIENOMIKRdtE7XFCGxt2rw "Ensure the following conditions are met to view the UI action (button) on the corresponding ServiceNow form, for the associated table that is selected in the Attended Configuration record.")

