[One workflow] 🐞 Include registered triggers in agent builder experience#270221
Conversation
…tions-tool-to-include-custom-trigger-types
… the server side as well. Leaving PublicDefinition thin
…tions-tool-to-include-custom-trigger-types
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]Async chunks
Page load bundle
History
cc @yngrdyn |
|
Starting backport for target branches: 9.4 https://github.com/elastic/kibana/actions/runs/26293133711 |
💔 All backports failed
Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation |
|
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Following #270221, I introduced properties to `CommonTrigerDef` mistakenly as optional, now they are properly required
…nce (#270221) Closes elastic/security-team#17218. ## Summary Extends the workflow agent `platform.workflows.get_trigger_definitions` tool (and workflow-gen `get_trigger_definitions`) so agents see **built-in triggers** (`manual`, `scheduled`, `alert`) **plus** event-driven triggers from `workflows_extensions` (e.g. `cases.caseUpdated`), each with `jsonSchema`, `eventContextSchema`, and examples where applicable. ## UI verification prompt ``` List all workflow triggers ``` or ``` I need a workflow that will alert me every time a cases status changes ``` or ``` Create a workflow that would alert me in slack eveytime a workflow fails ``` Any of those prompts should include the use of event-driven triggers ## 🎥 Demo https://github.com/user-attachments/assets/1a08f47a-929a-4928-9ffd-da4fa8fa00c8
|
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Closes https://github.com/elastic/security-team/issues/17218.
Summary
Extends the workflow agent
platform.workflows.get_trigger_definitionstool (and workflow-genget_trigger_definitions) so agents see built-in triggers (manual,scheduled,alert) plus event-driven triggers fromworkflows_extensions(e.g.cases.caseUpdated), each withjsonSchema,eventContextSchema, and examples where applicable.UI verification prompt
or
or
Any of those prompts should include the use of event-driven triggers
🎥 Demo
Screen.Recording.2026-05-20.at.16.53.02.mov