---
sourceDocument: Xanadu API Reference
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/xanadu/api-reference

 Release :

    - xanadu

ft:locale :

    - en-US

ft:publication_title :

    - Xanadu API Reference

ft:clusterId :

    - crapiref

bundleId :

    - crapiref

workflow :

    - Creator


---

# Now Assist for code generation

# Now Assist for code generation {#ariaid-title1}

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

Use ServiceNow®
Now Assist for code generation for help writing scripts quickly with AI-generated code based on text or code prompts.

## Get started {#now-assist-code-landing__section_hzc_23p_vyb}

|-|-|-|
| [ExploreLearn about how developers script with AI-generated code.](https://servicenow-prod.fluidtopics.net/m4tR01lyvfKF6tbM212tDQ "Learn about how AI-generated code can empower developers scripting on the ServiceNow AI Platform.") | [ConfigureConfigure code generation functionality for an instance.](https://servicenow-prod.fluidtopics.net/S7o12OB9GJuI6msdYYvAbA "Configure how developers can use code generation on an instance.") | [Generate scriptsWrite scripts quickly with AI-generated code.](https://servicenow-prod.fluidtopics.net/DzE1YBUq2vN_K7g1SprRDQ#generate-code "Generate scripts from text, code, or a combination of both with AI-powered code generation.") |
| [Edit scriptsEdit scripts quickly with AI-generated code.](https://servicenow-prod.fluidtopics.net/bQL~SuxTM3JcHWeNAbJxUQ "Edit scripts quickly by telling Now Assist how to improve the code.") | [ReferenceGet details about properties, roles, and more.](https://servicenow-prod.fluidtopics.net/682WjI7AKBxc_oYyJDIyiQ "Reference topics provide additional information about configuration properties, roles, and more.") |   |
[ ]

{#now-assist-code-landing__table_izc_23p_vyb2}

## Troubleshoot and get help {#now-assist-code-landing__section_nzc_23p_vyb}

* [ServiceNow Community](https://www.servicenow.com/community/ai-intelligence-articles/tkb-p/ai-platform-kb)
* [Search the Known Error Portal for known error articles](https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0597477)
* [Contact Customer Service and Support](https://support.servicenow.com/now?draw=case)
{#now-assist-code-landing__ul_ozc_23p_vyb}

## AI limitations

This application uses artificial intelligence (AI) and machine learning, which are rapidly evolving fields of study that generate predictions based on patterns in data. As a result, this application may not
always produce accurate, complete, or appropriate information. Further, there is no guarantee that this application has been fully trained or tested for your use case. To mitigate these issues, it is your responsibility to
test and evaluate your use of this application for accuracy, harm, and appropriateness for your use case, employ human oversight of output, and refrain from relying solely on AI-generated outputs for decision-making purposes.
This is especially important if you choose to deploy this application in areas with consequential impacts such as healthcare, finance, legal, employment, security, or infrastructure. You agree to abide by [ServiceNow's AI Acceptable Use Policy](https://www.servicenow.com/ai-acceptable-use-policy.html), which may be updated by ServiceNow.{#now-assist-code-landing__p_kv2_nfg_h1c}

## Data processing

This application requires data to be transferred from ServiceNow customers' individual instances to a centralized ServiceNow environment, which may be located in a different data center region from the one where your instance is, and potentially to a third-party cloud provider, such as Microsoft Azure. This data is handled per ServiceNow's internal policies and procedures, including our policies available through our [CORE Compliance Portal](https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0564067).{#now-assist-code-landing__p_lv2_nfg_h1c}

## Data collection

ServiceNow collects and uses the inputs, outputs, and edits to outputs of this application to develop and improve ServiceNow technologies including ServiceNow models and AI products. In addition, this application will collect information about scripts (and associated script records) in which Now Assist for code generation is called. Customers can opt out of future data collection at any time, as described in the [Now Assist Opt-Out page](https://www.servicenow.com/docs/access?context=opt-out-of-data-sharing-for-now-assist&version=xanadu&pubname=xanadu-intelligent-experiences&ft:locale=en-US).

For more information, see the [Now Assist documentation](https://www.servicenow.com/docs/access?context=platform-now-assist-landing&version=xanadu&pubname=xanadu-intelligent-experiences&ft:locale=en-US).

