Preview
With Davis CoPilot in Workflows, you can automate problem summarization and ask Davis CoPilot to suggest remediation steps that can be sent to your email.
This guide is written for:
Let’s assume you want to automate analyzing new problems and get immediate suggestions for resolving the issue. To do this, you need to create a workflow that uses Davis CoPilot to summarize all open problems and automatically suggest the best way to remediate them. When a new problem is opened, the workflow will automatically run, and the Davis CoPilot response will be sent to your email.
To use Davis CoPilot in Workflows, ensure that you have:
ALLOW davis-copilot:conversations:execute;
) permission.active
.Custom
.include entities with all defined tags below
.matchesPhrase(event.name, "Host cpu stateful anomaly detector 1h")
This example demonstrates filtering for a specific problem. However, you can apply a filter to include all new problems as well.
Run JavaScript
, or select Run JavaScript from the list of the import { execution } from '@dynatrace-sdk/automation-utils';export default async function ({ executionId }) {const ex = await execution(executionId);let rawEvent = ex.params.event;let problemDescription = rawEvent["event.description"];return {description : rawEvent["event.description"],problem_id : rawEvent["display_id"]};}
Davis CoPilot
, or select Prompt Davis CoPilot from the list of the A new Davis Problem with id {{result("extract_problem_details").problem_id}} has just been opened. Please provide a summary of what happened and actionable steps to remediate it. Provide output as plain text without any formatting or markdown
Use the following information about the Davis Problem with Id {{result("extract_problem_details")["problem_id"]}}:"""{{result("extract_problem_details")["description"]}}"""
Disabled
.Send email
, or select ;
to separate them.New Davis Problem {{ result("extract_problem_details")["problem_id"] }} started
A Davis Problem with ID {{ result("extract_problem_details")["problem_id"] }} has been opened.Davis CoPilot has analyzed it and provided the following information:{{ result("analyze_problem_with_davis_copilot")["text"] }}
Once a new problem appears, you should receive an email from no-reply@dev.apps.dynatracelabs.com
. You can see the example of the message content below: