# How do I hook up a button in workshop to send a prompt to AIP Assist?

**URL:** <https://community.palantir.com/t/how-do-i-hook-up-a-button-in-workshop-to-send-a-prompt-to-aip-assist/247>\
**Category:** Ask the Community\
**Tags:** aip-assist, workshop\
**Created:** [May 20, 2024, 12:57pm UTC](https://community.palantir.com/t/how-do-i-hook-up-a-button-in-workshop-to-send-a-prompt-to-aip-assist/247 "2024-05-20T12:57:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ishan](https://yyz1.discourse-cdn.com/palantir/user_avatar/community.palantir.com/ishan/32/159_2.png) [@ishan](https://community.palantir.com/u/ishan)\
**Post date:** [May 20, 2024, 12:57pm UTC](https://community.palantir.com/t/how-do-i-hook-up-a-button-in-workshop-to-send-a-prompt-to-aip-assist/247/1 "2024-05-20T12:57:35Z")

</div>

Hey everyone. I’ve heard that you can use configure a button in workshop with a variable prompt so that when someone clicks on the button, it opens up the AIP assist pop-out. How do I do this?

---

<div class="post-metadata">

**Author:** ![michaeld](https://avatars.discourse-cdn.com/v4/letter/m/c37758/32.png) [@michaeld](https://community.palantir.com/u/michaeld)\
**Post date:** [May 20, 2024, 1:14pm UTC](https://community.palantir.com/t/how-do-i-hook-up-a-button-in-workshop-to-send-a-prompt-to-aip-assist/247/2 "2024-05-20T13:14:36Z")

</div>

To connect a button to send a prompt to AIP Assist in Workshop, you need to use the “Send to AIP Assist” event. This event can send either static text or the value of a string variable to AIP Assist and automatically run the query. When this event is triggered, the AIP Assist sidebar will automatically open if it is not currently open.

Here are the steps to configure a button to trigger this event:

1. Add a Button Group to your Workshop module.
2. Single-click on the Button Group within your on-screen module to open the widget’s configuration panel on the right-hand side of your screen.
3. In the **Buttons** section, adjust the **Text** , **Intent** , **Left icon** , and **Right icon** options to control the display of your button.
4. Proceed to the **On click** section to connect your intended action. Click into the **Select an event…** dropdown and then filter to and select the “Send to AIP Assist” action.
5. Set the **Parameter defaults**. You can set a default value equal to a variable in the Workshop module or leave no default.

Please see the docs for the AIP assist event in Workshop:  
[Workshop • Events • AIP Assist](https://www.palantir.com/docs/foundry/workshop/concepts-events/#aip-assist)
