---
category: [Administration & Integrations, Platform and Product Extensions, Platform and Product Extensions/Integration, Administration & Integrations/Custom Integrations & Apps, Platform and Product Extensions/Workday Extend]
keyword: [Extend, AI Widgets, widgets, tags, UI components]
nav: wcp_docs
parent_url: /wcp_docs/
title: AI Widgets Considerations
layout: subsection
---

-   You can use `aiPrompt` only with `richText` on edit pages.
-   You can’t use `richText` with `aiPrompt` in a `grid`, `panelList`, `loop`, nor `pod`.
-   Specify at least 1 AI prompt button. The list of buttons in `aiPrompt` can’t be empty.
-   Use either a `text` or `richText` tag when you specify `dependencyTags` that enable the AI prompts. The list of `dependencyTags` for each button can contain the `id` attributes of only `text` and `richText` tags.
-   For a long prompt, you can split a string into multiple lines by enclosing the lines within a pair of backtick (`) characters. You can also use string interpolation to reference variables.

    The prompt in this sample `richText` tag contains multiple lines enclosed in tick marks. Note that it uses string interpolation to reference the dependency tag values.

    ```
    {
       "type": "richText",
       "id": "aiGeneratedValue",
       "value": "",
       "label": "AI Generated Contribution Goal (Output)",
       "aiPrompt": {
        "buttons": [
          {
            "label": "Generate Contribution Goal",
            "dependencyTags": [
               "currentJobTitle",
               "skillsToDevelop"
            ],
            "prompt": "<% `Based on the worker current job title  {{currentJobTitle.value}} 
    and desired skill to develop {{skillsToDevelop.value}} 
    suggest ONE development item for the worker.  
    The goal needs to be Specific, Measurable, Achievable, Relevant, Time-bound. 
    Return the result in sections: Objective, Skills, Steps, Results. 
    The suggestion should have a clear and detailed outcome to strive for.  
    The output must be less than 100 words.` %>"
    
          }
        ]
      }
    }
     
    ```

-   The `onChange` event on `richText` doesn’t trigger when `aiPrompt` displays the generated text.
-   Don’t include Personally Identifiable Information (PII) data and sensitive information when using AI Widgets.


## <a id="limitsonAiWidgets"></a>Limits on AI Widgets

<table><thead><tr><th>Limit</th><th>Maximum Value</th></tr></thead><tbody><tr><td>Number of buttons in an <code>aiPrompt</code>.</td><td>2</td></tr><tr><td>Number of richText tags that use aiPrompt in an Extend app.</td><td>3</td></tr><tr><td>Number of characters within the prompt, including referenced values.</td><td>1000</td></tr></tbody></table><br/>

