Bemærk
Adgang til denne side kræver godkendelse. Du kan prøve at logge på eller ændre mapper.
Adgang til denne side kræver godkendelse. Du kan prøve at ændre mapper.
Build an automated health check that runs on schedule and sends results via email. You connect a tool (Outlook), create a custom agent to use it, and attach a scheduled task to trigger it.
What you accomplish
By the end of this step, your agent:
- Has an Outlook connector that provides email tools
- Has a custom agent configured with the SendOutlookEmail tool
- Runs a scheduled task that executes the custom agent daily
Prerequisites
| Requirement | Details |
|---|---|
| Agent created | Complete the agent setup in the Azure portal first |
Tip
Enrich your automated tasks While not required, completing the knowledge setup and connecting source code makes your scheduled tasks more effective. Health checks can reference your runbooks and correlate findings to recent code changes, turning generic reports into actionable insights.
Step 1: Add the Outlook connector
First, connect an external tool. You need the connector before you can give its tools to a custom agent.
- Select Builder in the left sidebar.
- Select Connectors.
- Select Add connector.
- Select the Notification tab, then select Send email (Office 365 Outlook).
- Sign in with your Microsoft account.
- Select Add connector.
The connector creates tools your custom agents can use: SendOutlookEmail, GetOutlookEmail, ListOutlookEmails, and others.
Step 2: Create a custom agent with the email tool
Next, create a custom agent that can send emails. Custom agents are specialized workers that the agent can invoke for specific tasks.
- Select Builder → Custom agent builder.
- Select Create custom agent (or the plus icon on the canvas).
- Name it
email-notifications. - Set Autonomy to "Autonomous" (runs without user confirmation).
- Add the tool: Select the tools dropdown and select SendOutlookEmail.
- Select Save.
Your custom agent now appears on the canvas with its connected tool.
Step 3: Add a scheduled task to the custom agent
Now link a scheduled task to the custom agent. You do this step directly from the custom agent node.
Select the plus sign (+) on the left side of the
email-notificationscustom agent node.Select Add scheduled task.
Fill in the task details:
Field Value Task name daily-resource-health-reportSchedule Every 24 hours (or use cron: 0 8 * * *for 8 AM daily)Notification channel (Optional) Teams webhook URL Enter the task prompt:
Check the health of our Azure resources: 1. Verify all container apps are running 2. Check CPU and memory metrics over the last hour 3. Review any recent warning logs 4. Summarize findings and send a report via email using SendOutlookEmailSelect Save.
The canvas now shows the complete workflow: scheduled task → custom agent → tool.
Tip
The scheduled task triggers the custom agent, which has access to the SendOutlookEmail tool from the Outlook connector. Without the connector, the custom agent has no email tool. Without the custom agent, the scheduled task has no way to send notifications.
Verify it works
Test your scheduled task:
- Select Scheduled tasks in the left sidebar.
- Select your task in the list (check the checkbox).
- Select Run task now in the toolbar.
- Select the chat thread that opens to see execution details.
The agent shows:
- Active status and execution time
- Planning and reasoning steps
- Tool invocations (SendOutlookEmail)
- Completion confirmation
What you unlocked
Your agent now:
- Connects to external tools (Outlook)
- Runs custom agents with specific tool access
- Executes scheduled tasks automatically
- Sends proactive notifications without manual triggers
You completed the getting started journey!
Related content
Your agent is fully operational. Here's where to go deeper:
Understand the concepts
- Custom agents: How custom agents work, when to use them, autonomy levels
- Connectors: All available connectors and how they extend your agent
- Tools: Built-in tools and how to add custom ones
- Skills: Modular capabilities your agent loads on demand
Explore more capabilities
- Scheduled tasks: Full capability details for automated recurring work
- Send notifications: Notify your team via Teams, Outlook, or MCP tools
- Workflow automation: Chain actions together for complex workflows
- Agent hooks: Validate agent responses and audit tool usage
- Monitor agent usage: Track how your agent is being used
- Audit agent actions: Review what your agent did and why
Add more connectors
- Tutorial: Connect Azure Data Explorer for log queries
- Tutorial: Build custom MCP connectors: Jira, Slack, Grafana, any API
Advanced automation
- Tutorial: Scheduled task patterns: Cron expressions, business hours, chained workflows
- Tutorial: Set up response plans: Configure incident automation
- Tutorial: Create Python tools: Extend your agent with custom Python code
- Tutorial: Agent hooks: Add guardrails to automated actions