Enrichment
Keep workflows support enrichment, a powerful feature that allows you to enhance alerts with additional data, making them more actionable and meaningful. Enrichments add custom fields or modify existing ones in an alert directly from your workflow.
Why Enrich Alerts?
- Provide Context: Add critical information, such as related customer data or ticket IDs.
- Enable Automation: Use enriched fields in subsequent actions for dynamic processing.
- Improve Visibility: Surface essential metadata for better decision-making.
How to Enrich Alerts
Using the enrich_alert
Directive
The enrich_alert
directive is used in actions to add or update fields in the alert. You specify a list of key-value pairs where:
key
is the field name to add or update.value
is the data to assign to the field. It can be a static value or dynamically derived from steps or other parts of the workflow.
Example Workflow with Enrichment
In this example:
- The
get-customer-details
step fetches customer data based on the alert. - The
enrich_alert
directive addscustomer_name
andcustomer_tier
to the alert.
Enrichment Syntax
Key-Value Pairs
Each enrichment is defined as a key-value pair:
- Static Values: Use static strings or numbers for straightforward enrichments:
— Dynamic Values: Use values derived from steps, actions, or the alert itself:
Conditional Enrichment
You can combine enrichment with conditions to enrich alerts dynamically:
Advanced Use Cases
Enrich Alerts with Results from Actions
Enrichments can use results from actions, allowing dynamic updates based on previous steps:
Enrichment Workflow Example
This example demonstrates how to enrich an alert with ticket details from ServiceNow: