---
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: Add AI Widgets to Extend Pages
layout: subsection
---

### Prerequisites

-   An Extend app with an edit page.


### Context

For Extend Professional customers: Use the `richText` widget to embed AI prompts for generating content on Extend pages. The AI prompts in your Extend pages help end-users to quickly perform time-consuming tasks such as:

-   Creating job descriptions based on job title.
-   Creating contribution goals based on position.
-   Condensing content.
-   Expanding content.


In App Builder, you can:

-   Add the AI prompts to the `richText` tag.
-   Author AI prompts.
-   Test AI prompts with generated content in App Preview.


When a user clicks a prompt button on the `richText` widget, it generates content using the configured prompt. If a prompt depends on the input value of another tag on the page, you can define a list of dependency tags. The `dependencyTags[]` for a prompt button ensures that users can only click the prompt if they’ve entered values in all the dependency tags.

### Steps

1.  In App Builder, add or open an edit page.
2.  Determine the tags that will be used for input value to the AI prompts. Ensure that these tags have the `id` attribute.
3.  In <b>Visual</b> or <b>Code</b> mode, add a `richText` tag for the AI-generated content.
4.  Add the `aiPrompt` attribute to the `richText` tag.

    For details, see [aiPrompt in richText](/wcp_docs/GUID-2267ac13-43f2-4dbf-9d25-9808158d2725-enHYPHENus.html).

5.  Open the edit page in App Preview.
6.  On the `richText` widget containing the `aiPrompt`, click the prompt icon to generate content.

    If you configured `dependencyTags` on a button, enter values in the dependency tags before clicking the button.

    If you configured multiple buttons on the `aiPrompt` attribute, the button labels appear as drop-down list options.



### Result

After the content generation is complete, a popup window displays:

-   The generated content.
-   Options to insert or replace content in the richText widget, or to regenerate.
-   Data sources used to generate the content.


### Next Steps

<a id="postreq_1"></a>
Save and deploy the app to the tenant. Run the app and test the buttons on the `richText` widget to generate content.

