Events within Workshop modules enable application builders to trigger specific behavior whenever a user takes a given action. Events can be triggered from many widgets, including the Button Group, Object Table on row selection, and Tabs widgets. Learn more in our event-triggering and navigational widgets documentation. A full list of available events is documented below, but available event types may vary by widget.
Layers events trigger changes in the on-screen display state of overlays (drawers and modals) in a Workshop module.
For each overlay in the module, the following two events are available:
Layout events trigger changes in the on-screen display within a Workshop module, such as switching the selected page, expanding or collapsing a given section, and switching the active tab in a Tabs layout.
For each page in the module, an event is available to switch to the chosen page when the event is triggered. If the module is using a string variable for the Variable-Based Page Selection option, the value of this variable will not be updated as a result of a Switch to Page event. If you wish to keep this variable value in sync with the selected page, you can use a Set Variable Value event instead.
For each collapsible section in the module, the following three events are available:
If the specified section has a Boolean variable backing the collapse state, the value of this variable will not be updated as a result of one of these events. If you wish to keep this variable value in sync with the collapse state of the section, you can use a Set Variable Value event instead.
As an example, an application builder has configured the following module displaying hospital data. The module contains an object table and an initially-collapsed object view that the builder would like to expand when the Open Hospital Object View button is selected.
At the bottom of a button's configuration pane for the Button Group widget, the application builder can choose to trigger a Layout event whenever the button is selected by choosing the Event option from the On click dropdown menu, then using the Add event button that appears to choose the desired Layout event.
Once the button and event is configured, the section containing the object view will expand whenever a user selects the Open Hospital Object View button in this module, as shown below:
For each Tab section in the module, a Switch to {tab name} event will be added for each tab in the section. Unlike the Switch to {page name}, and section collapse state events, events that change the selected tab will also update the value of the string variable configured for Variable-Based Tab Selection if a variable is configured.
Variable events provide application builders with ways to change variable values within a Workshop module.
Reset {variable name} Value events will set the value of the chosen variable to its default value, which is the value configured in the variable definition.
The Set variable value event will assign the current value of the chosen source variable to the value of the chosen target variable.
The Stream LLM response into variable event enables displaying the response of an LLM in real time within a Workshop module.
0
and 1
. Higher values, like 0.8
, will make the output more random, while lower values, like 0.2
, will make the output more focused and deterministic.The screenshot below, which can be found within the event configuration, shows an example configuration with the supplied parameters described above.
The Send to AIP Assist
event offers a way to send a prompt as static text or as 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 already open. To further customize the user experience, builders can also provide a default agent, an LLM-powered assistant that is equipped with enterprise-specific knowledge, to answer queries about custom operational topics. AIP Assist Agents use custom content as their search context, and can be configured in Agent Studio [Beta].
A default AIP Assist Agent can be selected during event configuration, allowing builders to choose the appropriate agent for the given context. Agents can be given access to custom content, such as documentation about the application being used or other operational processes to provide targeted assistance at relevant times. Selecting an agent is optional, and users can also select a dedicated agent in the AIP Assist sidebar. By selecting a default agent, builders can be sure that the correct agent for the task has been chosen without relying on end-users for manual selection. Prompts sent in the event can be static text or dynamic variables, allowing builders to tailor the user experience as they see fit based on the prompt and the receiving agent.
The Send to AIP Assist
event can be added using the Button Group widget. The following is a walkthrough of Send to AIP Assist
event creation using a Button Group widget. This widget will open the AIP Assist sidebar and send a configured prompt when selected.
Add a Button Group widget by selecting + Add widget and selecting Button group from the list of widgets.
Configure the button's name, icon, and description as desired under the Button Configuration section.
In the On Click section of the button configuration panel, select Event from the drop down.
Select +Add event and choose Send to AIP Assist from the list of options.
Configure the event by choosing whether the prompt should be Static text or a computed Variable.
Send to AIP Assist
event and select it using the Select a variable dropdown.(Optional) Select the agent that will be used by default when the event is triggered. This functionality enables builders to select the appropriate AIP Assist Agent for the given context. Note that this step can have a significant impact on user experience, as users can also select a dedicated agent in the AIP Assist sidebar, but selecting a default during configuration ensures that the correct agent for the task has been chosen without relying on end-users for manual selection. This option may give users access to an agent with access to custom content.
For more information on AIP Assist Agent configuration, refer to the AIP Assist Agent documentation.
When configuring a variable for the Send to AIP Assist
event, ensure that your variable value is up to date before using it. There are a number of possible variable configurations, but it is worth noting that the String → Variable Transformation type enables the configuration of complex, dynamic prompts based on the active state of the Workshop application. The following is a sample configuration for a series of connected variables that programmatically change based on Workshop's active state. In this example, the selected Inventory Material
object from the active object table is String concatenation Variable Transform, combined with free text to form a prompt that can be sent to AIP Assist.
The following events provide a way to open other Foundry resources in a new browser tab. If the Workshop module is in a Carbon workspace, using these events will open the target resource in a new Carbon tab.
The Refresh data in module event allows all data in the module to be reloaded when this event is triggered.
The Toggle between light and dark mode event allows the theme of the module to be changed by the user when this event is triggered.