Example: Using Named Events in Workspace Rules

A named event is an event assigned a specific name. When this name is referenced in a workspace rule, it can act as a trigger for subsequent actions.

Below is an example demonstrating how to use named events to display an agent insight card:

Open the Workspace Rules editor in the Workspace Designer and create two workspace rules as outlined below.

  • Rule 1: Trigger a Named Event
    • When the editor loads, perform the following action: Show an Insight.
    • In the Named Event field, enter a name for the event that will be used as a trigger in another rule. For example: "Insight Product Update".
  • Rule 2: Respond to the Named Event
    • When the Add Named Event Fires condition is met, perform a specific action.
    • In the Add Named Event Fires dialog, enter the event name you defined in Rule 1, such as "Insight Product Update".
Note: The title of this dialog is entered in the Named Event.

How It Works

When Rule 1 runs, it triggers the named event "Insight Product Update". This, in turn, activates Rule 2, which performs the action you specified.

Important Notes

  • Named events are supported only in specific Workspace Rule actions and Script actions.
  • Not all actions support named events.