Skip to main content

Step 5: Automate Workflows

Your team probably has recurring tasks — checking service health every morning, reviewing overnight alerts, verifying certificate expirations, or posting weekly capacity reports. Connect your tools, build a workflow, and let the agent run it on a schedule.

What you'll accomplish

  • Connect a notification tool so the agent can send messages
  • Create a custom agent that uses that tool
  • Schedule a recurring health check that runs automatically
  • See the complete workflow on the visual canvas

Prerequisites

RequirementDetails
Completed Steps 1–2Create and set up and Team onboarding
tip

Steps 3 and 4 (First investigation and Automate incidents) are not required for this step, but completing them first gives you a better understanding of what workflows can automate.


How it works

Automation connects three building blocks — each one set up through the portal:

Building blockWhat it doesExample
ConnectorGives the agent access to an external serviceTeams, Outlook, Jira, Grafana
Custom agentA specialized worker with access to specific toolshealth-check-reporter with permission to send messages
Scheduled taskTriggers a custom agent on a recurring schedule"Every morning at 8 AM, check resource health and send a summary"

Add a connector

Connectors let the agent interact with external services. Start with a notification tool so your agent can report findings. This guide walks through setting up the Outlook connector — for Teams, see Set Up Teams Connector.

  1. Go to Builder → Connectors in the left sidebar.
  2. Click Add connector.
  3. Select Outlook Tools (Office 365 Outlook).
  4. Sign in and authorize access.
  5. Click Next.
  6. Select a Managed identity — the agent uses this identity at runtime to securely access the connector. We recommend using a User assigned managed identity so you can reuse it across connectors and manage its lifecycle independently.
  7. Click Next, review your configuration, then click Add connector.
info

Some connectors require both OAuth sign-in and a managed identity. OAuth authorizes access to the external service, while the managed identity authenticates the agent to Azure Resource Manager at runtime.

Checkpoint: The connector appears in your connectors list with a "Connected" status.

Connectors list showing a connected notification tool
More connectors

You can also add MCP-based connectors for Datadog, Splunk, Elasticsearch, Dynatrace, New Relic, and custom MCP servers. See MCP Connectors for the full list.


Create a custom agent

Custom agents are specialized workers with access to specific tools. Create one for health reporting.

  1. Go to Builder → Agent Canvas in the left sidebar.
  2. Click the Create dropdown in the toolbar and select Custom Agent. The creation dialog opens with two tabs: Form and YAML.
  3. Fill in the required fields:
    • Custom agent name — e.g. health-check-reporter
    • Instructions — describe what this custom agent does, e.g. "You are a health check reporter. Check Azure resource health for my container apps and send a summary via email."
  4. Click Choose tools and select the notification tool from your connector.
  5. Click Create.

The custom agent appears as a node on the visual canvas.

Agent Canvas showing a custom agent node with connected tool

Checkpoint: Your custom agent shows on the canvas with the notification tool connected to it.

More options

The custom agent form also lets you configure skills, hooks, and other advanced settings. See Create a Custom Agent for the full walkthrough.


Schedule a recurring task

Link a scheduled task to the custom agent so it runs automatically.

  1. Click the + button on the left side of your custom agent node on the canvas — the Response custom agent field is automatically populated with that agent.

  2. Select Add scheduled task.

  3. Fill in the required fields:

    • Task name — e.g. daily-health-report

    • Task details — describe what the agent should do:

      Check the health of the container apps in my resource group. Verify all apps are running, check CPU and memory metrics over the last hour, review any recent warning logs. Summarize findings and send the report.

  4. Set the Frequency (Daily by default) and Time of day (e.g. 8:00 AM).

  5. Click Create task.

The canvas now shows the complete workflow chain visually.

Canvas showing the complete workflow: scheduled task connected to custom agent connected to tool

Checkpoint: The task appears on the canvas connected to your custom agent. You can see the full automation chain: Scheduled task → Custom agent → Tool.


Test it

Run the task immediately to verify everything works:

  1. Go to Builder → Scheduled tasks.
  2. Select your task (check the checkbox).
  3. Click Run task now in the toolbar.
  4. To watch execution, click the task name to open the executions view, then click the thread name link — or find the thread under Chats in the sidebar.

The agent shows each step in real time: checking resources, collecting metrics, composing the report, and sending via your notification tool.

Checkpoint: You receive a health report. The chat thread shows the complete execution trace.


You've completed the getting-started journey

Your agent now delivers four outcomes:

  • Autonomous incident response — alerts are acknowledged, investigated, and resolved without you typing a message
  • Lightning-fast root cause analysis — the agent reads your code, queries your infrastructure, and traces issues to specific lines and configurations
  • Extensible automation — scheduled tasks, connectors, and custom agents handle recurring work on your behalf
  • Knowledge that never leaves — every investigation, every runbook, every conversation builds persistent expertise that stays with your team forever

The longer you use it, the better it gets. The runbooks you uploaded in Step 2, the investigation you ran in Step 3, the incidents it handled in Step 4 — all of that becomes persistent expertise the agent recalls automatically in future investigations.


CapabilityWhat it adds
Scheduled TasksAdvanced scheduling options and task management
ConnectorsHow connectors provide tools to your agent
Custom AgentsHow custom agents delegate and specialize work

Keep going

Now that you're set up, explore Concepts to understand how the agent thinks, or dive into Tutorials for hands-on guides on advanced features.

Where to goWhat you'll find
ConceptsHow roles, permissions, memory, connectors, and agent reasoning work
CapabilitiesDetailed pages on every feature the agent offers
TutorialsStep-by-step guides for deep investigation, connectors, hooks, and more
Was this page helpful?