ai.aiAssistant.outputAction

Triggered when an action button on an output card is clicked. This event is fired for both built-in and custom actions.

Event Data

e.command String

The command identifier of the clicked action.

e.outputId String

The unique identifier of the output associated with the action.

e.output String

The output text content associated with the action.

e.prompt String

The prompt text that was used to generate the output.

e.button jQuery

The jQuery element of the clicked button.

Example

<div id="grid"></div>
<script>
$("#grid").kendoGrid({
   columns: [{ field: "product" }, { field: "category" }],
   dataSource: [{ product: "Tea", category: "Beverages" }],
   toolbar: ["aiAssistant"],
   ai: {
     aiAssistant: {
       outputAction: (e) => {
        console.log("outputAction:", e);
       }
     },
     service: "https://demos.telerik.com/service/v2/ai/grid/smart-state"
   }
});
</script>
In this article
ai.aiAssistant.outputAction
Not finding the help you need?
Contact Support