Skip to content

[Observability AI Assistant] rule connector - handle multiple prompt #209221

Merged
arturoliduena merged 5 commits intoelastic:mainfrom
arturoliduena:185032-o11y-AI-Assistant-action-intermediate-releases-trigger-on-alert-status-change
Feb 5, 2025
Merged

[Observability AI Assistant] rule connector - handle multiple prompt #209221
arturoliduena merged 5 commits intoelastic:mainfrom
arturoliduena:185032-o11y-AI-Assistant-action-intermediate-releases-trigger-on-alert-status-change

Conversation

@arturoliduena
Copy link
Copy Markdown
Contributor

@arturoliduena arturoliduena commented Feb 2, 2025

Intermediate releases to change rule or connector schemas in serverless for #185032

Summary

An Observability AI Assistant connector is available to be set as action for Observability rules. When an alert is triggered, a conversation with the AI assistant will be created sending the initial prompt set by the user in the rule action. The conversation is then stored and can be retrieved from the AI Assistant interface. the action is triggered on any status change of the alert (active, recovered, untracked), creating a new conversation for each of them using the same initial prompt which may not be suitable for the 3 cases.

Improvement
The user is able to choose in when the action should be run (active, recovered, untracked, all),. That would allow the user to specify more than one AI Assistant action, with a different and more suitable prompt in each case.

Checklist

Check the PR satisfies following conditions.

Reviewers should verify this PR satisfies this list as well.

  • Any text added follows EUI's writing guidelines, uses sentence case text and includes i18n support
  • Documentation was added for features that require explanation or tutorials
  • Unit or functional tests were updated or added to match the most common scenarios
  • If a plugin configuration key changed, check if it needs to be allowlisted in the cloud and added to the docker list
  • This was checked for breaking HTTP API changes, and any breaking changes have been approved by the breaking-change committee. The release_note:breaking label should be applied in these situations.
  • Flaky Test Runner was used on any tests changed
  • The PR description includes the appropriate Release Notes section, and the correct release_note:* label is applied per the guidelines

Identify risks

Does this PR introduce any risks? For example, consider risks like hard to test bugs, performance regression, potential of data loss.

Describe the risk, its severity, and mitigation for each identified risk. Invite stakeholders and evaluate how to proceed before merging.

@arturoliduena arturoliduena added release_note:feature Makes this part of the condensed release notes Team:Obs AI Assistant Observability AI Assistant backport:version Backport to applied version labels v8.18.0 labels Feb 2, 2025
@arturoliduena arturoliduena requested a review from a team as a code owner February 2, 2025 16:33
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/obs-ai-assistant (Team:Obs AI Assistant)

@elasticmachine
Copy link
Copy Markdown
Contributor

elasticmachine commented Feb 3, 2025

💔 Build Failed

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #18 / Fleet Endpoints Integrations inputs_with_standalone_docker_agent "before all" hook for "generate a valid config for standalone agents"
  • [job] [logs] FTR Configs #18 / Fleet Endpoints Integrations inputs_with_standalone_docker_agent "before all" hook for "generate a valid config for standalone agents"

Metrics [docs]

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
observabilityAIAssistantApp 14.9KB 14.9KB -3.0B

History

  • 💔 Build #272559 failed 5ac8cff01e44281c33d8e7f8daf96bf2a386ad87
  • 💔 Build #272523 failed e3807d352e18bba13e00492162fc0ff7c2396e0c
  • 💔 Build #272520 failed 0a9c3d58742a716f7b5b8bca0d2cfbc818bb67f7

Copy link
Copy Markdown
Contributor

@pmuellr pmuellr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, if I understand what's going on. This is an intermediate change to be released before #203729, which changes the connector schema in such a way that it continues to accept the "old format" but won't be setting any of the "new format" fields yet. In the follow-on PR 203729, to be released after this PR has been merged to serverless, the "new format" will be available to all Kibana instances running in serverless, both "old" (running this PR) and "new" (running 203729).

@arturoliduena arturoliduena force-pushed the 185032-o11y-AI-Assistant-action-intermediate-releases-trigger-on-alert-status-change branch from 6070011 to 002f1ba Compare February 3, 2025 21:57
)
),
status: schema.maybe(schema.string()),
message: schema.maybe(schema.string({ minLength: 1 })), // this is a legacy field
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When can this be removed? Should we add a TODO: remove in 9.1 or something like that?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I understand, action parameters generated by an old action connector will retain the same schema, so we need to keep this property to ensure backward compatibility.

logger: Logger
): Promise<void> {
const alerts = {
new: [...(params.alerts?.new || [])],
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you need the spread?

Suggested change
new: [...(params.alerts?.new || [])],
new: params.alerts?.new || [],

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I used spread operator to create a shallow copy of the params alerts.

): Promise<void> {
const alerts = {
new: [...(params.alerts?.new || [])],
recovered: [...(params.alerts?.recovered || [])],
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above

@arturoliduena
Copy link
Copy Markdown
Contributor Author

LGTM, if I understand what's going on. This is an intermediate change to be released before #203729, which changes the connector schema in such a way that it continues to accept the "old format" but won't be setting any of the "new format" fields yet. In the follow-on PR 203729, to be released after this PR has been merged to serverless, the "new format" will be available to all Kibana instances running in serverless, both "old" (running this PR) and "new" (running 203729).

Thanks, @pmuellr! Yes, that’s correct. This PR is an intermediate step to ensure compatibility before #203729 is released

@arturoliduena arturoliduena merged commit 3924e09 into elastic:main Feb 5, 2025
@kibanamachine
Copy link
Copy Markdown
Contributor

Starting backport for target branches: 8.18

https://github.com/elastic/kibana/actions/runs/13154015918

@kibanamachine
Copy link
Copy Markdown
Contributor

💔 All backports failed

Status Branch Result
8.18 Backport failed because of merge conflicts

Manual backport

To create the backport manually run:

node scripts/backport --pr 209221

Questions ?

Please refer to the Backport tool documentation

@kibanamachine
Copy link
Copy Markdown
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create automatically backports add a backport:* label or prevent reminders by adding the backport:skip label.
You can also create backports manually by running node scripts/backport --pr 209221 locally

@kibanamachine kibanamachine added the backport missing Added to PRs automatically when the are determined to be missing a backport. label Feb 6, 2025
@arturoliduena
Copy link
Copy Markdown
Contributor Author

💚 All backports created successfully

Status Branch Result
8.18

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

drewdaemon pushed a commit to drewdaemon/kibana that referenced this pull request Feb 6, 2025
…lastic#209221)

Intermediate releases to change rule or connector schemas in serverless
for elastic#185032

## Summary

An Observability AI Assistant connector is available to be set as action
for Observability rules. When an alert is triggered, a conversation with
the AI assistant will be created sending the initial prompt set by the
user in the rule action. The conversation is then stored and can be
retrieved from the AI Assistant interface. the action is triggered on
any status change of the alert (active, recovered, untracked), creating
a new conversation for each of them using the same initial prompt which
may not be suitable for the 3 cases.

Improvement
The user is able to choose in when the action should be run (active,
recovered, untracked, all),. That would allow the user to specify more
than one AI Assistant action, with a different and more suitable prompt
in each case.
arturoliduena added a commit to arturoliduena/kibana that referenced this pull request Feb 7, 2025
…lastic#209221)

Intermediate releases to change rule or connector schemas in serverless
for elastic#185032

## Summary

An Observability AI Assistant connector is available to be set as action
for Observability rules. When an alert is triggered, a conversation with
the AI assistant will be created sending the initial prompt set by the
user in the rule action. The conversation is then stored and can be
retrieved from the AI Assistant interface. the action is triggered on
any status change of the alert (active, recovered, untracked), creating
a new conversation for each of them using the same initial prompt which
may not be suitable for the 3 cases.

Improvement
The user is able to choose in when the action should be run (active,
recovered, untracked, all),. That would allow the user to specify more
than one AI Assistant action, with a different and more suitable prompt
in each case.

(cherry picked from commit 3924e09)

# Conflicts:
#	x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.json
arturoliduena added a commit that referenced this pull request Feb 7, 2025
…prompt (#209221) (#210050)

# Backport

This will backport the following commits from `main` to `8.18`:
- [[Observability AI Assistant] rule connector - handle multiple prompt
(#209221)](#209221)

<!--- Backport version: 9.6.4 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Arturo
Lidueña","email":"arturo.liduena@elastic.co"},"sourceCommit":{"committedDate":"2025-02-05T09:16:42Z","message":"[Observability
AI Assistant] rule connector - handle multiple prompt
(#209221)\n\nIntermediate releases to change rule or connector schemas
in serverless\r\nfor #185032\r\n\r\n## Summary\r\n\r\nAn Observability
AI Assistant connector is available to be set as action\r\nfor
Observability rules. When an alert is triggered, a conversation
with\r\nthe AI assistant will be created sending the initial prompt set
by the\r\nuser in the rule action. The conversation is then stored and
can be\r\nretrieved from the AI Assistant interface. the action is
triggered on\r\nany status change of the alert (active, recovered,
untracked), creating\r\na new conversation for each of them using the
same initial prompt which\r\nmay not be suitable for the 3
cases.\r\n\r\nImprovement\r\nThe user is able to choose in when the
action should be run (active,\r\nrecovered, untracked, all),. That would
allow the user to specify more\r\nthan one AI Assistant action, with a
different and more suitable prompt\r\nin each
case.","sha":"3924e095c5d9791e7a83208fdde6e542de1475bb","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["backport
missing","release_note:feature","Team:Obs AI
Assistant","backport:version","v8.18.0","v9.1.0"],"title":"[Observability
AI Assistant] rule connector - handle multiple prompt
","number":209221,"url":"https://github.com/elastic/kibana/pull/209221","mergeCommit":{"message":"[Observability
AI Assistant] rule connector - handle multiple prompt
(#209221)\n\nIntermediate releases to change rule or connector schemas
in serverless\r\nfor #185032\r\n\r\n## Summary\r\n\r\nAn Observability
AI Assistant connector is available to be set as action\r\nfor
Observability rules. When an alert is triggered, a conversation
with\r\nthe AI assistant will be created sending the initial prompt set
by the\r\nuser in the rule action. The conversation is then stored and
can be\r\nretrieved from the AI Assistant interface. the action is
triggered on\r\nany status change of the alert (active, recovered,
untracked), creating\r\na new conversation for each of them using the
same initial prompt which\r\nmay not be suitable for the 3
cases.\r\n\r\nImprovement\r\nThe user is able to choose in when the
action should be run (active,\r\nrecovered, untracked, all),. That would
allow the user to specify more\r\nthan one AI Assistant action, with a
different and more suitable prompt\r\nin each
case.","sha":"3924e095c5d9791e7a83208fdde6e542de1475bb"}},"sourceBranch":"main","suggestedTargetBranches":["8.18"],"targetPullRequestStates":[{"branch":"8.18","label":"v8.18.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/209221","number":209221,"mergeCommit":{"message":"[Observability
AI Assistant] rule connector - handle multiple prompt
(#209221)\n\nIntermediate releases to change rule or connector schemas
in serverless\r\nfor #185032\r\n\r\n## Summary\r\n\r\nAn Observability
AI Assistant connector is available to be set as action\r\nfor
Observability rules. When an alert is triggered, a conversation
with\r\nthe AI assistant will be created sending the initial prompt set
by the\r\nuser in the rule action. The conversation is then stored and
can be\r\nretrieved from the AI Assistant interface. the action is
triggered on\r\nany status change of the alert (active, recovered,
untracked), creating\r\na new conversation for each of them using the
same initial prompt which\r\nmay not be suitable for the 3
cases.\r\n\r\nImprovement\r\nThe user is able to choose in when the
action should be run (active,\r\nrecovered, untracked, all),. That would
allow the user to specify more\r\nthan one AI Assistant action, with a
different and more suitable prompt\r\nin each
case.","sha":"3924e095c5d9791e7a83208fdde6e542de1475bb"}}]}] BACKPORT-->
@kibanamachine kibanamachine removed the backport missing Added to PRs automatically when the are determined to be missing a backport. label Feb 7, 2025
@arturoliduena arturoliduena added v8.19.0 v9.0.0 backport:version Backport to applied version labels and removed backport:version Backport to applied version labels labels Feb 9, 2025
@kibanamachine
Copy link
Copy Markdown
Contributor

Starting backport for target branches: 8.18, 8.x, 9.0

https://github.com/elastic/kibana/actions/runs/13241091303

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Feb 10, 2025
…lastic#209221)

Intermediate releases to change rule or connector schemas in serverless
for elastic#185032

## Summary

An Observability AI Assistant connector is available to be set as action
for Observability rules. When an alert is triggered, a conversation with
the AI assistant will be created sending the initial prompt set by the
user in the rule action. The conversation is then stored and can be
retrieved from the AI Assistant interface. the action is triggered on
any status change of the alert (active, recovered, untracked), creating
a new conversation for each of them using the same initial prompt which
may not be suitable for the 3 cases.

Improvement
The user is able to choose in when the action should be run (active,
recovered, untracked, all),. That would allow the user to specify more
than one AI Assistant action, with a different and more suitable prompt
in each case.

(cherry picked from commit 3924e09)
@kibanamachine
Copy link
Copy Markdown
Contributor

💔 Some backports could not be created

Status Branch Result
8.18 Backport failed because of merge conflicts
8.x Backport failed because of merge conflicts
9.0

Note: Successful backport PRs will be merged automatically after passing CI.

Manual backport

To create the backport manually run:

node scripts/backport --pr 209221

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Feb 10, 2025
…rompt (#209221) (#210357)

# Backport

This will backport the following commits from `main` to `9.0`:
- [[Observability AI Assistant] rule connector - handle multiple prompt
(#209221)](#209221)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Arturo
Lidueña","email":"arturo.liduena@elastic.co"},"sourceCommit":{"committedDate":"2025-02-05T09:16:42Z","message":"[Observability
AI Assistant] rule connector - handle multiple prompt
(#209221)\n\nIntermediate releases to change rule or connector schemas
in serverless\r\nfor #185032\r\n\r\n## Summary\r\n\r\nAn Observability
AI Assistant connector is available to be set as action\r\nfor
Observability rules. When an alert is triggered, a conversation
with\r\nthe AI assistant will be created sending the initial prompt set
by the\r\nuser in the rule action. The conversation is then stored and
can be\r\nretrieved from the AI Assistant interface. the action is
triggered on\r\nany status change of the alert (active, recovered,
untracked), creating\r\na new conversation for each of them using the
same initial prompt which\r\nmay not be suitable for the 3
cases.\r\n\r\nImprovement\r\nThe user is able to choose in when the
action should be run (active,\r\nrecovered, untracked, all),. That would
allow the user to specify more\r\nthan one AI Assistant action, with a
different and more suitable prompt\r\nin each
case.","sha":"3924e095c5d9791e7a83208fdde6e542de1475bb","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["v9.0.0","release_note:feature","Team:Obs
AI
Assistant","backport:version","v8.18.0","v9.1.0","v8.19.0"],"title":"[Observability
AI Assistant] rule connector - handle multiple prompt
","number":209221,"url":"https://github.com/elastic/kibana/pull/209221","mergeCommit":{"message":"[Observability
AI Assistant] rule connector - handle multiple prompt
(#209221)\n\nIntermediate releases to change rule or connector schemas
in serverless\r\nfor #185032\r\n\r\n## Summary\r\n\r\nAn Observability
AI Assistant connector is available to be set as action\r\nfor
Observability rules. When an alert is triggered, a conversation
with\r\nthe AI assistant will be created sending the initial prompt set
by the\r\nuser in the rule action. The conversation is then stored and
can be\r\nretrieved from the AI Assistant interface. the action is
triggered on\r\nany status change of the alert (active, recovered,
untracked), creating\r\na new conversation for each of them using the
same initial prompt which\r\nmay not be suitable for the 3
cases.\r\n\r\nImprovement\r\nThe user is able to choose in when the
action should be run (active,\r\nrecovered, untracked, all),. That would
allow the user to specify more\r\nthan one AI Assistant action, with a
different and more suitable prompt\r\nin each
case.","sha":"3924e095c5d9791e7a83208fdde6e542de1475bb"}},"sourceBranch":"main","suggestedTargetBranches":["9.0","8.x"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/210050","number":210050,"state":"MERGED","mergeCommit":{"sha":"2d36c65bc3840ee83858ecca678ebd499a935602","message":"[8.18]
[Observability AI Assistant] rule connector - handle multiple prompt
(#209221) (#210050)\n\n# Backport\r\n\r\nThis will backport the
following commits from `main` to `8.18`:\r\n- [[Observability AI
Assistant] rule connector - handle multiple
prompt\r\n(#209221)](https://github.com/elastic/kibana/pull/209221)\r\n\r\n<!---
Backport version: 9.6.4 -->\r\n\r\n### Questions ?\r\nPlease refer to
the [Backport
tool\r\ndocumentation](https://github.com/sorenlouv/backport)\r\n\r\n<!--BACKPORT
[{\"author\":{\"name\":\"Arturo\r\nLidueña\",\"email\":\"arturo.liduena@elastic.co\"},\"sourceCommit\":{\"committedDate\":\"2025-02-05T09:16:42Z\",\"message\":\"[Observability\r\nAI
Assistant] rule connector - handle multiple
prompt\r\n(#209221)\\n\\nIntermediate releases to change rule or
connector schemas\r\nin serverless\\r\\nfor #185032\\r\\n\\r\\n##
Summary\\r\\n\\r\\nAn Observability\r\nAI Assistant connector is
available to be set as action\\r\\nfor\r\nObservability rules. When an
alert is triggered, a conversation\r\nwith\\r\\nthe AI assistant will be
created sending the initial prompt set\r\nby the\\r\\nuser in the rule
action. The conversation is then stored and\r\ncan be\\r\\nretrieved
from the AI Assistant interface. the action is\r\ntriggered on\\r\\nany
status change of the alert (active, recovered,\r\nuntracked),
creating\\r\\na new conversation for each of them using the\r\nsame
initial prompt which\\r\\nmay not be suitable for the
3\r\ncases.\\r\\n\\r\\nImprovement\\r\\nThe user is able to choose in
when the\r\naction should be run (active,\\r\\nrecovered, untracked,
all),. That would\r\nallow the user to specify more\\r\\nthan one AI
Assistant action, with a\r\ndifferent and more suitable prompt\\r\\nin
each\r\ncase.\",\"sha\":\"3924e095c5d9791e7a83208fdde6e542de1475bb\",\"branchLabelMapping\":{\"^v9.1.0$\":\"main\",\"^v8.19.0$\":\"8.x\",\"^v(\\\\d+).(\\\\d+).\\\\d+$\":\"$1.$2\"}},\"sourcePullRequest\":{\"labels\":[\"backport\r\nmissing\",\"release_note:feature\",\"Team:Obs
AI\r\nAssistant\",\"backport:version\",\"v8.18.0\",\"v9.1.0\"],\"title\":\"[Observability\r\nAI
Assistant] rule connector - handle multiple
prompt\r\n\",\"number\":209221,\"url\":\"https://github.com/elastic/kibana/pull/209221\",\"mergeCommit\":{\"message\":\"[Observability\r\nAI
Assistant] rule connector - handle multiple
prompt\r\n(#209221)\\n\\nIntermediate releases to change rule or
connector schemas\r\nin serverless\\r\\nfor #185032\\r\\n\\r\\n##
Summary\\r\\n\\r\\nAn Observability\r\nAI Assistant connector is
available to be set as action\\r\\nfor\r\nObservability rules. When an
alert is triggered, a conversation\r\nwith\\r\\nthe AI assistant will be
created sending the initial prompt set\r\nby the\\r\\nuser in the rule
action. The conversation is then stored and\r\ncan be\\r\\nretrieved
from the AI Assistant interface. the action is\r\ntriggered on\\r\\nany
status change of the alert (active, recovered,\r\nuntracked),
creating\\r\\na new conversation for each of them using the\r\nsame
initial prompt which\\r\\nmay not be suitable for the
3\r\ncases.\\r\\n\\r\\nImprovement\\r\\nThe user is able to choose in
when the\r\naction should be run (active,\\r\\nrecovered, untracked,
all),. That would\r\nallow the user to specify more\\r\\nthan one AI
Assistant action, with a\r\ndifferent and more suitable prompt\\r\\nin
each\r\ncase.\",\"sha\":\"3924e095c5d9791e7a83208fdde6e542de1475bb\"}},\"sourceBranch\":\"main\",\"suggestedTargetBranches\":[\"8.18\"],\"targetPullRequestStates\":[{\"branch\":\"8.18\",\"label\":\"v8.18.0\",\"branchLabelMappingKey\":\"^v(\\\\d+).(\\\\d+).\\\\d+$\",\"isSourceBranch\":false,\"state\":\"NOT_CREATED\"},{\"branch\":\"main\",\"label\":\"v9.1.0\",\"branchLabelMappingKey\":\"^v9.1.0$\",\"isSourceBranch\":true,\"state\":\"MERGED\",\"url\":\"https://github.com/elastic/kibana/pull/209221\",\"number\":209221,\"mergeCommit\":{\"message\":\"[Observability\r\nAI
Assistant] rule connector - handle multiple
prompt\r\n(#209221)\\n\\nIntermediate releases to change rule or
connector schemas\r\nin serverless\\r\\nfor #185032\\r\\n\\r\\n##
Summary\\r\\n\\r\\nAn Observability\r\nAI Assistant connector is
available to be set as action\\r\\nfor\r\nObservability rules. When an
alert is triggered, a conversation\r\nwith\\r\\nthe AI assistant will be
created sending the initial prompt set\r\nby the\\r\\nuser in the rule
action. The conversation is then stored and\r\ncan be\\r\\nretrieved
from the AI Assistant interface. the action is\r\ntriggered on\\r\\nany
status change of the alert (active, recovered,\r\nuntracked),
creating\\r\\na new conversation for each of them using the\r\nsame
initial prompt which\\r\\nmay not be suitable for the
3\r\ncases.\\r\\n\\r\\nImprovement\\r\\nThe user is able to choose in
when the\r\naction should be run (active,\\r\\nrecovered, untracked,
all),. That would\r\nallow the user to specify more\\r\\nthan one AI
Assistant action, with a\r\ndifferent and more suitable prompt\\r\\nin
each\r\ncase.\",\"sha\":\"3924e095c5d9791e7a83208fdde6e542de1475bb\"}}]}]
BACKPORT-->"}},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/209221","number":209221,"mergeCommit":{"message":"[Observability
AI Assistant] rule connector - handle multiple prompt
(#209221)\n\nIntermediate releases to change rule or connector schemas
in serverless\r\nfor #185032\r\n\r\n## Summary\r\n\r\nAn Observability
AI Assistant connector is available to be set as action\r\nfor
Observability rules. When an alert is triggered, a conversation
with\r\nthe AI assistant will be created sending the initial prompt set
by the\r\nuser in the rule action. The conversation is then stored and
can be\r\nretrieved from the AI Assistant interface. the action is
triggered on\r\nany status change of the alert (active, recovered,
untracked), creating\r\na new conversation for each of them using the
same initial prompt which\r\nmay not be suitable for the 3
cases.\r\n\r\nImprovement\r\nThe user is able to choose in when the
action should be run (active,\r\nrecovered, untracked, all),. That would
allow the user to specify more\r\nthan one AI Assistant action, with a
different and more suitable prompt\r\nin each
case.","sha":"3924e095c5d9791e7a83208fdde6e542de1475bb"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Arturo Lidueña <arturo.liduena@elastic.co>
@arturoliduena
Copy link
Copy Markdown
Contributor Author

💚 All backports created successfully

Status Branch Result
8.x

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

arturoliduena added a commit to arturoliduena/kibana that referenced this pull request Feb 12, 2025
…lastic#209221)

Intermediate releases to change rule or connector schemas in serverless
for elastic#185032

## Summary

An Observability AI Assistant connector is available to be set as action
for Observability rules. When an alert is triggered, a conversation with
the AI assistant will be created sending the initial prompt set by the
user in the rule action. The conversation is then stored and can be
retrieved from the AI Assistant interface. the action is triggered on
any status change of the alert (active, recovered, untracked), creating
a new conversation for each of them using the same initial prompt which
may not be suitable for the 3 cases.

Improvement
The user is able to choose in when the action should be run (active,
recovered, untracked, all),. That would allow the user to specify more
than one AI Assistant action, with a different and more suitable prompt
in each case.

(cherry picked from commit 3924e09)

# Conflicts:
#	x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.json
arturoliduena added a commit that referenced this pull request Feb 12, 2025
…rompt (#209221) (#210774)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Observability AI Assistant] rule connector - handle multiple prompt
(#209221)](#209221)

<!--- Backport version: 9.6.4 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Arturo
Lidueña","email":"arturo.liduena@elastic.co"},"sourceCommit":{"committedDate":"2025-02-05T09:16:42Z","message":"[Observability
AI Assistant] rule connector - handle multiple prompt
(#209221)\n\nIntermediate releases to change rule or connector schemas
in serverless\r\nfor #185032\r\n\r\n## Summary\r\n\r\nAn Observability
AI Assistant connector is available to be set as action\r\nfor
Observability rules. When an alert is triggered, a conversation
with\r\nthe AI assistant will be created sending the initial prompt set
by the\r\nuser in the rule action. The conversation is then stored and
can be\r\nretrieved from the AI Assistant interface. the action is
triggered on\r\nany status change of the alert (active, recovered,
untracked), creating\r\na new conversation for each of them using the
same initial prompt which\r\nmay not be suitable for the 3
cases.\r\n\r\nImprovement\r\nThe user is able to choose in when the
action should be run (active,\r\nrecovered, untracked, all),. That would
allow the user to specify more\r\nthan one AI Assistant action, with a
different and more suitable prompt\r\nin each
case.","sha":"3924e095c5d9791e7a83208fdde6e542de1475bb","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["v9.0.0","release_note:feature","Team:Obs
AI
Assistant","backport:version","v8.18.0","v9.1.0","v8.19.0"],"title":"[Observability
AI Assistant] rule connector - handle multiple prompt
","number":209221,"url":"https://github.com/elastic/kibana/pull/209221","mergeCommit":{"message":"[Observability
AI Assistant] rule connector - handle multiple prompt
(#209221)\n\nIntermediate releases to change rule or connector schemas
in serverless\r\nfor #185032\r\n\r\n## Summary\r\n\r\nAn Observability
AI Assistant connector is available to be set as action\r\nfor
Observability rules. When an alert is triggered, a conversation
with\r\nthe AI assistant will be created sending the initial prompt set
by the\r\nuser in the rule action. The conversation is then stored and
can be\r\nretrieved from the AI Assistant interface. the action is
triggered on\r\nany status change of the alert (active, recovered,
untracked), creating\r\na new conversation for each of them using the
same initial prompt which\r\nmay not be suitable for the 3
cases.\r\n\r\nImprovement\r\nThe user is able to choose in when the
action should be run (active,\r\nrecovered, untracked, all),. That would
allow the user to specify more\r\nthan one AI Assistant action, with a
different and more suitable prompt\r\nin each
case.","sha":"3924e095c5d9791e7a83208fdde6e542de1475bb"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/210357","number":210357,"state":"MERGED","mergeCommit":{"sha":"5908ba19e7419dd1757fb401dcd85bce01ffd262","message":"[9.0]
[Observability AI Assistant] rule connector - handle multiple prompt
(#209221) (#210357)\n\n# Backport\n\nThis will backport the following
commits from `main` to `9.0`:\n- [[Observability AI Assistant] rule
connector - handle multiple
prompt\n(#209221)](https://github.com/elastic/kibana/pull/209221)\n\n<!---
Backport version: 9.4.3 -->\n\n### Questions ?\nPlease refer to the
[Backport
tool\ndocumentation](https://github.com/sqren/backport)\n\n<!--BACKPORT
[{\"author\":{\"name\":\"Arturo\nLidueña\",\"email\":\"arturo.liduena@elastic.co\"},\"sourceCommit\":{\"committedDate\":\"2025-02-05T09:16:42Z\",\"message\":\"[Observability\nAI
Assistant] rule connector - handle multiple
prompt\n(#209221)\\n\\nIntermediate releases to change rule or connector
schemas\nin serverless\\r\\nfor #185032\\r\\n\\r\\n##
Summary\\r\\n\\r\\nAn Observability\nAI Assistant connector is available
to be set as action\\r\\nfor\nObservability rules. When an alert is
triggered, a conversation\nwith\\r\\nthe AI assistant will be created
sending the initial prompt set\nby the\\r\\nuser in the rule action. The
conversation is then stored and\ncan be\\r\\nretrieved from the AI
Assistant interface. the action is\ntriggered on\\r\\nany status change
of the alert (active, recovered,\nuntracked), creating\\r\\na new
conversation for each of them using the\nsame initial prompt
which\\r\\nmay not be suitable for the
3\ncases.\\r\\n\\r\\nImprovement\\r\\nThe user is able to choose in when
the\naction should be run (active,\\r\\nrecovered, untracked, all),.
That would\nallow the user to specify more\\r\\nthan one AI Assistant
action, with a\ndifferent and more suitable prompt\\r\\nin
each\ncase.\",\"sha\":\"3924e095c5d9791e7a83208fdde6e542de1475bb\",\"branchLabelMapping\":{\"^v9.1.0$\":\"main\",\"^v8.19.0$\":\"8.x\",\"^v(\\\\d+).(\\\\d+).\\\\d+$\":\"$1.$2\"}},\"sourcePullRequest\":{\"labels\":[\"v9.0.0\",\"release_note:feature\",\"Team:Obs\nAI\nAssistant\",\"backport:version\",\"v8.18.0\",\"v9.1.0\",\"v8.19.0\"],\"title\":\"[Observability\nAI
Assistant] rule connector - handle multiple
prompt\n\",\"number\":209221,\"url\":\"https://github.com/elastic/kibana/pull/209221\",\"mergeCommit\":{\"message\":\"[Observability\nAI
Assistant] rule connector - handle multiple
prompt\n(#209221)\\n\\nIntermediate releases to change rule or connector
schemas\nin serverless\\r\\nfor #185032\\r\\n\\r\\n##
Summary\\r\\n\\r\\nAn Observability\nAI Assistant connector is available
to be set as action\\r\\nfor\nObservability rules. When an alert is
triggered, a conversation\nwith\\r\\nthe AI assistant will be created
sending the initial prompt set\nby the\\r\\nuser in the rule action. The
conversation is then stored and\ncan be\\r\\nretrieved from the AI
Assistant interface. the action is\ntriggered on\\r\\nany status change
of the alert (active, recovered,\nuntracked), creating\\r\\na new
conversation for each of them using the\nsame initial prompt
which\\r\\nmay not be suitable for the
3\ncases.\\r\\n\\r\\nImprovement\\r\\nThe user is able to choose in when
the\naction should be run (active,\\r\\nrecovered, untracked, all),.
That would\nallow the user to specify more\\r\\nthan one AI Assistant
action, with a\ndifferent and more suitable prompt\\r\\nin
each\ncase.\",\"sha\":\"3924e095c5d9791e7a83208fdde6e542de1475bb\"}},\"sourceBranch\":\"main\",\"suggestedTargetBranches\":[\"9.0\",\"8.x\"],\"targetPullRequestStates\":[{\"branch\":\"9.0\",\"label\":\"v9.0.0\",\"branchLabelMappingKey\":\"^v(\\\\d+).(\\\\d+).\\\\d+$\",\"isSourceBranch\":false,\"state\":\"NOT_CREATED\"},{\"branch\":\"8.18\",\"label\":\"v8.18.0\",\"branchLabelMappingKey\":\"^v(\\\\d+).(\\\\d+).\\\\d+$\",\"isSourceBranch\":false,\"url\":\"https://github.com/elastic/kibana/pull/210050\",\"number\":210050,\"state\":\"MERGED\",\"mergeCommit\":{\"sha\":\"2d36c65bc3840ee83858ecca678ebd499a935602\",\"message\":\"[8.18]\n[Observability
AI Assistant] rule connector - handle multiple prompt\n(#209221)
(#210050)\\n\\n# Backport\\r\\n\\r\\nThis will backport the\nfollowing
commits from `main` to `8.18`:\\r\\n- [[Observability AI\nAssistant]
rule connector - handle
multiple\nprompt\\r\\n(#209221)](https://github.com/elastic/kibana/pull/209221)\\r\\n\\r\\n<!---\nBackport
version: 9.6.4 -->\\r\\n\\r\\n### Questions ?\\r\\nPlease refer to\nthe
[Backport\ntool\\r\\ndocumentation](https://github.com/sorenlouv/backport)\\r\\n\\r\\n<!--BACKPORT\n[{\\\"author\\\":{\\\"name\\\":\\\"Arturo\\r\\nLidueña\\\",\\\"email\\\":\\\"arturo.liduena@elastic.co\\\"},\\\"sourceCommit\\\":{\\\"committedDate\\\":\\\"2025-02-05T09:16:42Z\\\",\\\"message\\\":\\\"[Observability\\r\\nAI\nAssistant]
rule connector - handle
multiple\nprompt\\r\\n(#209221)\\\\n\\\\nIntermediate releases to change
rule or\nconnector schemas\\r\\nin serverless\\\\r\\\\nfor
#185032\\\\r\\\\n\\\\r\\\\n##\nSummary\\\\r\\\\n\\\\r\\\\nAn
Observability\\r\\nAI Assistant connector is\navailable to be set as
action\\\\r\\\\nfor\\r\\nObservability rules. When an\nalert is
triggered, a conversation\\r\\nwith\\\\r\\\\nthe AI assistant will
be\ncreated sending the initial prompt set\\r\\nby the\\\\r\\\\nuser in
the rule\naction. The conversation is then stored and\\r\\ncan
be\\\\r\\\\nretrieved\nfrom the AI Assistant interface. the action
is\\r\\ntriggered on\\\\r\\\\nany\nstatus change of the alert (active,
recovered,\\r\\nuntracked),\ncreating\\\\r\\\\na new conversation for
each of them using the\\r\\nsame\ninitial prompt which\\\\r\\\\nmay not
be suitable for
the\n3\\r\\ncases.\\\\r\\\\n\\\\r\\\\nImprovement\\\\r\\\\nThe user is
able to choose in\nwhen the\\r\\naction should be run
(active,\\\\r\\\\nrecovered, untracked,\nall),. That would\\r\\nallow
the user to specify more\\\\r\\\\nthan one AI\nAssistant action, with
a\\r\\ndifferent and more suitable
prompt\\\\r\\\\nin\neach\\r\\ncase.\\\",\\\"sha\\\":\\\"3924e095c5d9791e7a83208fdde6e542de1475bb\\\",\\\"branchLabelMapping\\\":{\\\"^v9.1.0$\\\":\\\"main\\\",\\\"^v8.19.0$\\\":\\\"8.x\\\",\\\"^v(\\\\\\\\d+).(\\\\\\\\d+).\\\\\\\\d+$\\\":\\\"$1.$2\\\"}},\\\"sourcePullRequest\\\":{\\\"labels\\\":[\\\"backport\\r\\nmissing\\\",\\\"release_note:feature\\\",\\\"Team:Obs\nAI\\r\\nAssistant\\\",\\\"backport:version\\\",\\\"v8.18.0\\\",\\\"v9.1.0\\\"],\\\"title\\\":\\\"[Observability\\r\\nAI\nAssistant]
rule connector - handle
multiple\nprompt\\r\\n\\\",\\\"number\\\":209221,\\\"url\\\":\\\"https://github.com/elastic/kibana/pull/209221\\\",\\\"mergeCommit\\\":{\\\"message\\\":\\\"[Observability\\r\\nAI\nAssistant]
rule connector - handle
multiple\nprompt\\r\\n(#209221)\\\\n\\\\nIntermediate releases to change
rule or\nconnector schemas\\r\\nin serverless\\\\r\\\\nfor
#185032\\\\r\\\\n\\\\r\\\\n##\nSummary\\\\r\\\\n\\\\r\\\\nAn
Observability\\r\\nAI Assistant connector is\navailable to be set as
action\\\\r\\\\nfor\\r\\nObservability rules. When an\nalert is
triggered, a conversation\\r\\nwith\\\\r\\\\nthe AI assistant will
be\ncreated sending the initial prompt set\\r\\nby the\\\\r\\\\nuser in
the rule\naction. The conversation is then stored and\\r\\ncan
be\\\\r\\\\nretrieved\nfrom the AI Assistant interface. the action
is\\r\\ntriggered on\\\\r\\\\nany\nstatus change of the alert (active,
recovered,\\r\\nuntracked),\ncreating\\\\r\\\\na new conversation for
each of them using the\\r\\nsame\ninitial prompt which\\\\r\\\\nmay not
be suitable for
the\n3\\r\\ncases.\\\\r\\\\n\\\\r\\\\nImprovement\\\\r\\\\nThe user is
able to choose in\nwhen the\\r\\naction should be run
(active,\\\\r\\\\nrecovered, untracked,\nall),. That would\\r\\nallow
the user to specify more\\\\r\\\\nthan one AI\nAssistant action, with
a\\r\\ndifferent and more suitable
prompt\\\\r\\\\nin\neach\\r\\ncase.\\\",\\\"sha\\\":\\\"3924e095c5d9791e7a83208fdde6e542de1475bb\\\"}},\\\"sourceBranch\\\":\\\"main\\\",\\\"suggestedTargetBranches\\\":[\\\"8.18\\\"],\\\"targetPullRequestStates\\\":[{\\\"branch\\\":\\\"8.18\\\",\\\"label\\\":\\\"v8.18.0\\\",\\\"branchLabelMappingKey\\\":\\\"^v(\\\\\\\\d+).(\\\\\\\\d+).\\\\\\\\d+$\\\",\\\"isSourceBranch\\\":false,\\\"state\\\":\\\"NOT_CREATED\\\"},{\\\"branch\\\":\\\"main\\\",\\\"label\\\":\\\"v9.1.0\\\",\\\"branchLabelMappingKey\\\":\\\"^v9.1.0$\\\",\\\"isSourceBranch\\\":true,\\\"state\\\":\\\"MERGED\\\",\\\"url\\\":\\\"https://github.com/elastic/kibana/pull/209221\\\",\\\"number\\\":209221,\\\"mergeCommit\\\":{\\\"message\\\":\\\"[Observability\\r\\nAI\nAssistant]
rule connector - handle
multiple\nprompt\\r\\n(#209221)\\\\n\\\\nIntermediate releases to change
rule or\nconnector schemas\\r\\nin serverless\\\\r\\\\nfor
#185032\\\\r\\\\n\\\\r\\\\n##\nSummary\\\\r\\\\n\\\\r\\\\nAn
Observability\\r\\nAI Assistant connector is\navailable to be set as
action\\\\r\\\\nfor\\r\\nObservability rules. When an\nalert is
triggered, a conversation\\r\\nwith\\\\r\\\\nthe AI assistant will
be\ncreated sending the initial prompt set\\r\\nby the\\\\r\\\\nuser in
the rule\naction. The conversation is then stored and\\r\\ncan
be\\\\r\\\\nretrieved\nfrom the AI Assistant interface. the action
is\\r\\ntriggered on\\\\r\\\\nany\nstatus change of the alert (active,
recovered,\\r\\nuntracked),\ncreating\\\\r\\\\na new conversation for
each of them using the\\r\\nsame\ninitial prompt which\\\\r\\\\nmay not
be suitable for
the\n3\\r\\ncases.\\\\r\\\\n\\\\r\\\\nImprovement\\\\r\\\\nThe user is
able to choose in\nwhen the\\r\\naction should be run
(active,\\\\r\\\\nrecovered, untracked,\nall),. That would\\r\\nallow
the user to specify more\\\\r\\\\nthan one AI\nAssistant action, with
a\\r\\ndifferent and more suitable
prompt\\\\r\\\\nin\neach\\r\\ncase.\\\",\\\"sha\\\":\\\"3924e095c5d9791e7a83208fdde6e542de1475bb\\\"}}]}]\nBACKPORT-->\"}},{\"branch\":\"main\",\"label\":\"v9.1.0\",\"branchLabelMappingKey\":\"^v9.1.0$\",\"isSourceBranch\":true,\"state\":\"MERGED\",\"url\":\"https://github.com/elastic/kibana/pull/209221\",\"number\":209221,\"mergeCommit\":{\"message\":\"[Observability\nAI
Assistant] rule connector - handle multiple
prompt\n(#209221)\\n\\nIntermediate releases to change rule or connector
schemas\nin serverless\\r\\nfor #185032\\r\\n\\r\\n##
Summary\\r\\n\\r\\nAn Observability\nAI Assistant connector is available
to be set as action\\r\\nfor\nObservability rules. When an alert is
triggered, a conversation\nwith\\r\\nthe AI assistant will be created
sending the initial prompt set\nby the\\r\\nuser in the rule action. The
conversation is then stored and\ncan be\\r\\nretrieved from the AI
Assistant interface. the action is\ntriggered on\\r\\nany status change
of the alert (active, recovered,\nuntracked), creating\\r\\na new
conversation for each of them using the\nsame initial prompt
which\\r\\nmay not be suitable for the
3\ncases.\\r\\n\\r\\nImprovement\\r\\nThe user is able to choose in when
the\naction should be run (active,\\r\\nrecovered, untracked, all),.
That would\nallow the user to specify more\\r\\nthan one AI Assistant
action, with a\ndifferent and more suitable prompt\\r\\nin
each\ncase.\",\"sha\":\"3924e095c5d9791e7a83208fdde6e542de1475bb\"}},{\"branch\":\"8.x\",\"label\":\"v8.19.0\",\"branchLabelMappingKey\":\"^v8.19.0$\",\"isSourceBranch\":false,\"state\":\"NOT_CREATED\"}]}]\nBACKPORT-->\n\nCo-authored-by:
Arturo Lidueña
<arturo.liduena@elastic.co>"}},{"branch":"8.18","label":"v8.18.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/210050","number":210050,"state":"MERGED","mergeCommit":{"sha":"2d36c65bc3840ee83858ecca678ebd499a935602","message":"[8.18]
[Observability AI Assistant] rule connector - handle multiple prompt
(#209221) (#210050)\n\n# Backport\r\n\r\nThis will backport the
following commits from `main` to `8.18`:\r\n- [[Observability AI
Assistant] rule connector - handle multiple
prompt\r\n(#209221)](https://github.com/elastic/kibana/pull/209221)\r\n\r\n<!---
Backport version: 9.6.4 -->\r\n\r\n### Questions ?\r\nPlease refer to
the [Backport
tool\r\ndocumentation](https://github.com/sorenlouv/backport)\r\n\r\n<!--BACKPORT
[{\"author\":{\"name\":\"Arturo\r\nLidueña\",\"email\":\"arturo.liduena@elastic.co\"},\"sourceCommit\":{\"committedDate\":\"2025-02-05T09:16:42Z\",\"message\":\"[Observability\r\nAI
Assistant] rule connector - handle multiple
prompt\r\n(#209221)\\n\\nIntermediate releases to change rule or
connector schemas\r\nin serverless\\r\\nfor #185032\\r\\n\\r\\n##
Summary\\r\\n\\r\\nAn Observability\r\nAI Assistant connector is
available to be set as action\\r\\nfor\r\nObservability rules. When an
alert is triggered, a conversation\r\nwith\\r\\nthe AI assistant will be
created sending the initial prompt set\r\nby the\\r\\nuser in the rule
action. The conversation is then stored and\r\ncan be\\r\\nretrieved
from the AI Assistant interface. the action is\r\ntriggered on\\r\\nany
status change of the alert (active, recovered,\r\nuntracked),
creating\\r\\na new conversation for each of them using the\r\nsame
initial prompt which\\r\\nmay not be suitable for the
3\r\ncases.\\r\\n\\r\\nImprovement\\r\\nThe user is able to choose in
when the\r\naction should be run (active,\\r\\nrecovered, untracked,
all),. That would\r\nallow the user to specify more\\r\\nthan one AI
Assistant action, with a\r\ndifferent and more suitable prompt\\r\\nin
each\r\ncase.\",\"sha\":\"3924e095c5d9791e7a83208fdde6e542de1475bb\",\"branchLabelMapping\":{\"^v9.1.0$\":\"main\",\"^v8.19.0$\":\"8.x\",\"^v(\\\\d+).(\\\\d+).\\\\d+$\":\"$1.$2\"}},\"sourcePullRequest\":{\"labels\":[\"backport\r\nmissing\",\"release_note:feature\",\"Team:Obs
AI\r\nAssistant\",\"backport:version\",\"v8.18.0\",\"v9.1.0\"],\"title\":\"[Observability\r\nAI
Assistant] rule connector - handle multiple
prompt\r\n\",\"number\":209221,\"url\":\"https://github.com/elastic/kibana/pull/209221\",\"mergeCommit\":{\"message\":\"[Observability\r\nAI
Assistant] rule connector - handle multiple
prompt\r\n(#209221)\\n\\nIntermediate releases to change rule or
connector schemas\r\nin serverless\\r\\nfor #185032\\r\\n\\r\\n##
Summary\\r\\n\\r\\nAn Observability\r\nAI Assistant connector is
available to be set as action\\r\\nfor\r\nObservability rules. When an
alert is triggered, a conversation\r\nwith\\r\\nthe AI assistant will be
created sending the initial prompt set\r\nby the\\r\\nuser in the rule
action. The conversation is then stored and\r\ncan be\\r\\nretrieved
from the AI Assistant interface. the action is\r\ntriggered on\\r\\nany
status change of the alert (active, recovered,\r\nuntracked),
creating\\r\\na new conversation for each of them using the\r\nsame
initial prompt which\\r\\nmay not be suitable for the
3\r\ncases.\\r\\n\\r\\nImprovement\\r\\nThe user is able to choose in
when the\r\naction should be run (active,\\r\\nrecovered, untracked,
all),. That would\r\nallow the user to specify more\\r\\nthan one AI
Assistant action, with a\r\ndifferent and more suitable prompt\\r\\nin
each\r\ncase.\",\"sha\":\"3924e095c5d9791e7a83208fdde6e542de1475bb\"}},\"sourceBranch\":\"main\",\"suggestedTargetBranches\":[\"8.18\"],\"targetPullRequestStates\":[{\"branch\":\"8.18\",\"label\":\"v8.18.0\",\"branchLabelMappingKey\":\"^v(\\\\d+).(\\\\d+).\\\\d+$\",\"isSourceBranch\":false,\"state\":\"NOT_CREATED\"},{\"branch\":\"main\",\"label\":\"v9.1.0\",\"branchLabelMappingKey\":\"^v9.1.0$\",\"isSourceBranch\":true,\"state\":\"MERGED\",\"url\":\"https://github.com/elastic/kibana/pull/209221\",\"number\":209221,\"mergeCommit\":{\"message\":\"[Observability\r\nAI
Assistant] rule connector - handle multiple
prompt\r\n(#209221)\\n\\nIntermediate releases to change rule or
connector schemas\r\nin serverless\\r\\nfor #185032\\r\\n\\r\\n##
Summary\\r\\n\\r\\nAn Observability\r\nAI Assistant connector is
available to be set as action\\r\\nfor\r\nObservability rules. When an
alert is triggered, a conversation\r\nwith\\r\\nthe AI assistant will be
created sending the initial prompt set\r\nby the\\r\\nuser in the rule
action. The conversation is then stored and\r\ncan be\\r\\nretrieved
from the AI Assistant interface. the action is\r\ntriggered on\\r\\nany
status change of the alert (active, recovered,\r\nuntracked),
creating\\r\\na new conversation for each of them using the\r\nsame
initial prompt which\\r\\nmay not be suitable for the
3\r\ncases.\\r\\n\\r\\nImprovement\\r\\nThe user is able to choose in
when the\r\naction should be run (active,\\r\\nrecovered, untracked,
all),. That would\r\nallow the user to specify more\\r\\nthan one AI
Assistant action, with a\r\ndifferent and more suitable prompt\\r\\nin
each\r\ncase.\",\"sha\":\"3924e095c5d9791e7a83208fdde6e542de1475bb\"}}]}]
BACKPORT-->"}},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/209221","number":209221,"mergeCommit":{"message":"[Observability
AI Assistant] rule connector - handle multiple prompt
(#209221)\n\nIntermediate releases to change rule or connector schemas
in serverless\r\nfor #185032\r\n\r\n## Summary\r\n\r\nAn Observability
AI Assistant connector is available to be set as action\r\nfor
Observability rules. When an alert is triggered, a conversation
with\r\nthe AI assistant will be created sending the initial prompt set
by the\r\nuser in the rule action. The conversation is then stored and
can be\r\nretrieved from the AI Assistant interface. the action is
triggered on\r\nany status change of the alert (active, recovered,
untracked), creating\r\na new conversation for each of them using the
same initial prompt which\r\nmay not be suitable for the 3
cases.\r\n\r\nImprovement\r\nThe user is able to choose in when the
action should be run (active,\r\nrecovered, untracked, all),. That would
allow the user to specify more\r\nthan one AI Assistant action, with a
different and more suitable prompt\r\nin each
case.","sha":"3924e095c5d9791e7a83208fdde6e542de1475bb"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:version Backport to applied version labels release_note:feature Makes this part of the condensed release notes Team:Obs AI Assistant Observability AI Assistant v8.18.0 v8.19.0 v9.0.0 v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants