You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/alerts/get-notified/destinations.mdx
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,8 @@ The supported destination platforms include:
30
30
* AWS EventBridge: Available in [workflows](/docs/alerts-applied-intelligence/applied-intelligence/incident-workflows/incident-workflows/).
31
31
* PagerDuty: Available in [workflows](/docs/alerts-applied-intelligence/applied-intelligence/incident-workflows/incident-workflows/).
32
32
* New Relic Mobile Push: Available in [workflows](/docs/alerts-applied-intelligence/applied-intelligence/incident-workflows/incident-workflows/).
33
-
* Microsoft Teams: Available in [workflows](/docs/alerts/get-notified/microsoft-teams-integrations/).
33
+
* Microsoft Teams: Available in [workflows](/docs/alerts/get-notified/microsoft-teams-integrations/).
34
+
***Workflow Automation**: Available in [workflows](/docs/alerts-applied-intelligence/applied-intelligence/incident-workflows/incident-workflows/). Triggers [automated incident response workflows](/docs/workflow-automation/setup-and-configuration/create-destinations#trigger-from-alerts) when alert conditions are breached.
34
35
35
36
For more on these and other destinations, see [notification integrations](/docs/alerts-applied-intelligence/notifications/notification-integrations).
Copy file name to clipboardExpand all lines: src/content/docs/workflow-automation/create-a-workflow-automation/create-your-own.mdx
+15-13Lines changed: 15 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,9 +20,9 @@ When templates don't fit your needs, [Create Your Own](https://onenr.io/0OQM47Kg
20
20
21
21
This guide shows you how to build workflows using concepts and a complete example. Choose your learning path:
22
22
23
-
-**Learn core concepts first** → Read [Core concepts](#core-concepts) and [Workflow patterns](#workflow-patterns) to understand the fundamentals, then apply them
24
-
-**Follow the example** → Jump to [Example walkthrough](#example-walkthrough) to build an EC2 auto-resize workflow step-by-step
25
-
-**Reference patterns** → Use the [Workflow patterns](#workflow-patterns) section as a quick reference when building your own workflows
23
+
-**Learn core concepts first**: Read [Core concepts](#core-concepts) and [Workflow patterns](#workflow-patterns) to understand the fundamentals, then apply them
24
+
-**Follow the example**: Jump to [Example walkthrough](#example-walkthrough) to build an EC2 auto-resize workflow step-by-step
25
+
-**Reference patterns**: Use the [Workflow patterns](#workflow-patterns) section as a quick reference when building your own workflows
26
26
27
27
<Calloutvariant="tip">
28
28
**New to workflows?** Start with core concepts, then follow the example. The EC2 workflow demonstrates all key patterns in a real-world scenario.
@@ -116,7 +116,7 @@ Understand these fundamentals before you build:
@@ -134,7 +134,7 @@ Understand these fundamentals before you build:
134
134
</td>
135
135
136
136
<td>
137
-
Mandatory field for loop functions to define iteration count
137
+
Required parameter for loop functions to define iteration count
138
138
</td>
139
139
140
140
<td>
@@ -183,7 +183,7 @@ For detailed error handling patterns, see [Best practices](/docs/workflow-automa
183
183
Build your first workflow in five steps:
184
184
185
185
1. Navigate to **[one.newrelic.com](https://one.newrelic.com) > All Capabilities > Workflow Automation** and select **[Create Your Own](https://onenr.io/0OQM47KgxjG)**
186
-
2. Define parameters for credentials (from secrets manager: `${{ :secrets:keyName }}`), configuration (regions, instance types), and runtime data (account IDs, alert IDs)
186
+
2. Define parameters for credentials (from [secrets manager](/docs/workflow-automation/limitations-and-faq/workflow-best-practices/#secure-credentials): `${{ :secrets:keyName }}`), configuration (regions, instance types), and runtime data (account IDs, alert IDs)
187
187
3. Drag actions from the [catalog](/docs/workflow-automation/setup-and-configuration/actions-catalog/actions-catalog), connect them with `${{ .steps.stepName.outputs.field }}` syntax to pass data
188
188
4. Insert switches for conditional branching, loops for processing lists or polling, approval gates for human decisions
189
189
5. Run after each section to catch errors early, then [start or schedule](/docs/workflow-automation/create-a-workflow-automation/start-schedule) your workflow
@@ -218,6 +218,8 @@ Four essential patterns handle most automation scenarios. Each pattern is demons
218
218
219
219
**Use loops when:** Processing multiple items or repeating actions
220
220
221
+
For detailed information about loop structure, parameters, and advanced usage (including break/continue), see [Loop structure](/docs/workflow-automation/workflow-examples#loop-structure).
222
+
221
223
**Key syntax:**
222
224
```yaml
223
225
# Send progress updates using range loop
@@ -242,7 +244,7 @@ Four essential patterns handle most automation scenarios. Each pattern is demons
242
244
243
245
### Approval gates and waiting
244
246
245
-
**Use approval gates when:** Human judgment needed before destructive operations or compliance sign-off required
247
+
**Use approval gates when:** Human judgment is needed before destructive operations or compliance sign-off is required
246
248
247
249
**Key syntax:**
248
250
```yaml
@@ -314,7 +316,7 @@ Before building this workflow, ensure you have:
314
316
- **AWS**: Credentials with EC2 and Systems Manager permissions
315
317
- **Slack**: Bot token and channel for notifications
316
318
- **New Relic**: Alert condition monitoring EC2 CPU
317
-
- **Secrets manager**: Configured (see [secrets management](/docs/infrastructure/host-integrations/installation/secrets-management/))
319
+
- **Secrets manager**: Configured (see [secrets manager](/docs/workflow-automation/limitations-and-faq/workflow-best-practices/#secure-credentials))
318
320
319
321
### Workflow overview [#workflow-overview]
320
322
@@ -332,10 +334,10 @@ This example demonstrates key patterns you'll use in custom workflows: querying
332
334
**Skip if you're reading for concepts.** This table details the 12 parameters this workflow uses. You can reference it when building, but it's not essential for understanding the flow.
333
335
</Callout>
334
336
335
-
This workflow requires credentials, configuration, and runtime context as inputs. Sensitive values come from secrets manager using `${{ :secrets:keyName }}` syntax.
337
+
This workflow requires credentials, configuration, and runtime context as inputs. Sensitive values come from [secrets manager](/docs/workflow-automation/limitations-and-faq/workflow-best-practices/#secure-credentials) using `${{ :secrets:keyName }}` syntax.
336
338
337
339
**Input categories:**
338
-
- **Authentication**: AWS and Slack credentials from secrets manager
340
+
- **Authentication**: AWS and Slack credentials from [secrets manager](/docs/workflow-automation/limitations-and-faq/workflow-best-practices/#secure-credentials)
339
341
- **Alert context**: Account ID and issue ID from New Relic
@@ -370,7 +372,7 @@ This workflow requires credentials, configuration, and runtime context as inputs
370
372
`${{ :secrets:awsAccessKeyId }}`
371
373
</td>
372
374
<td>
373
-
AWS Access Key ID retrieved from secrets manager for authenticating with AWS services.
375
+
AWS Access Key ID retrieved from [secrets manager](/docs/workflow-automation/limitations-and-faq/workflow-best-practices/#secure-credentials) for authenticating with AWS services.
374
376
</td>
375
377
</tr>
376
378
<tr>
@@ -384,7 +386,7 @@ This workflow requires credentials, configuration, and runtime context as inputs
384
386
`${{ :secrets:awsSecretAccessKey }}`
385
387
</td>
386
388
<td>
387
-
AWS Secret Access Key retrieved from secrets manager. Pairs with the access key ID.
389
+
AWS Secret Access Key retrieved from [secrets manager](/docs/workflow-automation/limitations-and-faq/workflow-best-practices/#secure-credentials). Pairs with the access key ID.
388
390
</td>
389
391
</tr>
390
392
<tr>
@@ -606,7 +608,7 @@ Now let's build each part of the workflow. Each step includes the specific actio
606
608
The workflow resizes the instance through AWS Systems Manager (SSM):
607
609
608
610
* **`createSsmDocument`**: Creates an SSM Automation document that stops the instance, modifies type, and restarts it.
609
-
* **`generateIdempotencyToken`**: Creates a unique UUID. Prevents duplicate resizes if the workflow runs twice.
611
+
* **`generateIdempotencyToken`**: Creates a unique UUID to prevent duplicate resizes if the workflow runs twice.
610
612
* **`startResizing`**: Executes the SSM document with instance ID and new type.
611
613
* **`progressLoop` (Loop)**: Posts Slack updates every 10 seconds (5 times total).
612
614
* **`waitForCompletion`**: Polls SSM status with 2-minute timeout.
Copy file name to clipboardExpand all lines: src/content/docs/workflow-automation/create-a-workflow-automation/start-schedule.mdx
+15-12Lines changed: 15 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,19 +16,22 @@ freshnessValidatedDate: never
16
16
This feature is currently provided as part of a preview program pursuant to our [pre-release policies](/docs/licenses/license-information/referenced-policies/new-relic-pre-release-policy).
17
17
</Callout>
18
18
19
-
Once you've created a workflow, you can run it manually on demand or schedule it to run automatically at specific times. Both methods use the [NerdGraph API](/docs/apis/nerdgraph/get-started/nerdgraph-explorer) to trigger workflow execution.
19
+
Once you've created a workflow, you can trigger it in three ways: from alerts, manually on demand, or on a schedule.
20
20
21
21
## Choose your trigger method
22
22
23
23
Select the right approach for your use case:
24
24
25
-
|**Use on-demand**|**Use scheduled**|
26
-
|-------------------|-------------------|
27
-
| Testing new workflows | Regular health checks |
28
-
| Manual approval workflows | Periodic data processing |
|**Setup**: [Configure as alert destination](/docs/workflow-automation/setup-and-configuration/create-destinations#trigger-from-alerts)|**API**: [StartWorkflowRun](#on-demand)|**API**: [CreateSchedule](#scheduled)|
31
+
32
+
<Calloutvariant="tip">
33
+
**Alert-triggered workflows**: When alert conditions are breached, New Relic can automatically trigger workflows by configuring Workflow Automation as a destination. The `issueId` and `accountId` are passed automatically. See [Send notifications from workflows](/docs/workflow-automation/setup-and-configuration/create-destinations#trigger-from-alerts) for setup instructions.
34
+
</Callout>
32
35
33
36
## Before you begin
34
37
@@ -38,7 +41,7 @@ Before triggering workflows, ensure you have:
38
41
-**Account ID**: Your New Relic account ID (found in [Account settings](/docs/accounts/accounts-billing/account-structure/account-id)).
39
42
-**Workflow name**: The exact name from your workflow definition.
40
43
-**Required inputs**: Values for any parameters your workflow expects.
41
-
-**Secrets configured**: AWS credentials, Slack tokens, or other secrets stored in [secrets manager](/docs/infrastructure/host-integrations/installation/secrets-management/).
44
+
-**Secrets configured**: AWS credentials, Slack tokens, or other secrets stored in [secrets manager](/docs/workflow-automation/limitations-and-faq/workflow-best-practices/#secure-credentials).
42
45
43
46
<Calloutvariant="tip">
44
47
**New to workflows?** Create your first workflow before trying to trigger it. Start with [Use a template](/docs/workflow-automation/create-a-workflow-automation/use-a-template) for pre-built workflows.
@@ -95,9 +98,9 @@ The following workflow definition invokes an AWS Lambda function and logs the ou
95
98
- message: 'The lambda function message output is:${{ .steps.invoke1.outputs.payload.body }}'
96
99
```
97
100
98
-
To start this workflow, use the following NerdGraph mutation. Before running this mutation, ensure you've stored your AWS credentials using the `secretsManagementCreateSecret` mutation. For more information, see [Introduction to secrets management](/docs/apis/nerdgraph/examples/nerdgraph-secrets-management).
101
+
To start this workflow, use the following NerdGraph mutation. Before running this mutation, ensure you've stored your AWS credentials using the `secretsManagementCreateSecret` mutation. For more information, see [secrets manager](/docs/workflow-automation/limitations-and-faq/workflow-best-practices/#secure-credentials).
99
102
100
-
```graphql
103
+
```yaml
101
104
mutation {
102
105
workflowAutomationStartWorkflowRun(
103
106
# Specify the account where the workflow is defined
@@ -165,7 +168,7 @@ Schedules use cron expressions to define when workflows run. Format: `minute hou
165
168
166
169
The following example schedules the `lambda1` workflow to run every day at 9 AM Eastern Time:
167
170
168
-
```graphql
171
+
```yaml
169
172
mutation {
170
173
workflowAutomationCreateSchedule(
171
174
# Specify the account where the workflow is defined
Copy file name to clipboardExpand all lines: src/content/docs/workflow-automation/introduction-to-workflow.mdx
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,11 @@ freshnessValidatedDate: never
18
18
19
19
Workflow Automation connects New Relic with your existing tools to automate incident response, infrastructure management, and operational tasks—without writing code. Build workflows that respond to alerts, integrate with AWS and Slack, manage approvals, and execute complex automation logic.
20
20
21
+
**Trigger workflows in three ways:**
22
+
-**From alerts**: Automatically start workflows when alert conditions are breached (see [Send notifications from workflows](/docs/workflow-automation/setup-and-configuration/create-destinations#trigger-from-alerts))
23
+
-**On demand**: Manually trigger workflows via API when needed
24
+
-**On schedule**: Run workflows automatically at specific times using cron expressions
25
+
21
26
<img
22
27
title="Create and manage workflows in New Relic"
23
28
alt="Screenshot showing the workflow automation interface"
0 commit comments