---
sourceDocument: Xanadu Governance, Risk, and Compliance
sourceDocumentLink: https://www.servicenow.com/docs/r/xanadu/governance-risk-compliance

 Release :

    - xanadu

ft:locale :

    - en-US

ft:publication_title :

    - Xanadu Governance, Risk, and Compliance

ft:clusterId :

    - grc

bundleId :

    - grc

workflow :

    - Technology


---

# Trigger assessments from a script

# Trigger assessments from a script {#ariaid-title1}

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

Use a script to execute the Trigger Smart Assessment flow action to generate Smart Assessment Engine assessments and assign them to the assessors.

## Before you begin

Role required: flow_designer

## About this task

In the script, you specify the assessment template for the generated assessments and the conditions that trigger the assessments.

## Procedure

1. Navigate to AllProcess AutomationWorkflow Studio.
2. On the Actions tab, select Trigger Smart Assessment.
3. In the More actions icon (![More actions icon.]()), select Create code snippet, and then copy and paste the snippet into your script.

## Result

Note:  
In the snippet, you have the option to specify whether the action should execute synchronously or asynchronously. Select the asynchronous option to help avoid stalling, especially when processing large templates.

The call to the Trigger Smart Assessment action is now part of the script.

## What to do next

Specify the required and optional input settings for the action. The settings are defined on the Trigger Smart Assessment action form and are described in [Trigger Smart Assessment action form](https://www.servicenow.com/docs/vIUPUfXx~ljGDMB9wAXYgA "Use the Trigger smart assessment action form to add assessment actions to a flow or to obtain a code snippet for a script as part of the process for triggering Smart Assessment Engine assessments.").
**Related topics**   

* [Flow Designer](https://www.servicenow.com/docs/access?context=flow-designer&version=xanadu&pubname=xanadu-application-development&ft:locale=en-US)

*[\>]: and then


