Agent Triggers let you invoke agents automatically without opening the chat UI. Archestra supports three trigger types: Scheduled Tasks that run on a cron schedule, Webhook (A2A) endpoints for programmatic HTTP invocation, and Incoming Email aliases that route Outlook mail to an agent. All trigger types are managed from Agent Triggers in the sidebar. Every run, regardless of trigger type, records the full agent conversation for review.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/archestra-ai/archestra/llms.txt
Use this file to discover all available pages before exploring further.
Schedule — Cron-Based Automated Runs
Schedule — Cron-Based Automated Runs
Scheduled Tasks run an agent automatically on a repeating schedule. Each run sends a configured prompt to the agent and records the full conversation. The task always runs under the permissions of the user who created it.Common use cases: daily standup preparation (fetching tasks and summarizing progress before a morning meeting), or periodic support triage (processing incoming requests on a defined cadence).
Creating a Scheduled Task
Choose an agent and prompt
Select the agent to run and write the prompt that will be sent on each execution.
Set the schedule
Choose Hourly, Daily, or Custom. Custom accepts a standard 5-field cron expression evaluated in the creator’s timezone.
Reviewing Runs and Following Up
Every completed run preserves the full agent conversation. Open any run from the task’s History tab to review the result. Task owners can continue chatting with the agent in the same context to ask follow-up questions, request changes, or dig deeper into the output.Users with
scheduledTask:admin can view other users’ run conversations, but only the conversation owner can continue them. To follow up on another user’s run, start a new chat from that conversation — it copies the existing messages and runs under your permissions.Permissions
ThescheduledTask resource controls access. Without scheduledTask:admin, users only see tasks they created. With scheduledTask:admin, users can view and manage all tasks across the organization.Webhook / A2A — HTTP Invocation via the A2A Protocol
Webhook / A2A — HTTP Invocation via the A2A Protocol
Webhook (A2A) lets external systems invoke an agent by POSTing to a per-agent URL. The endpoint follows the A2A (Agent-to-Agent) 1.0 protocol for interoperability with any A2A-compatible caller.
The AgentCard advertises the agent’s name, description, and a single skill. A2A clients fetch it first to discover capabilities, then send messages to the POST endpoint.A personal token from Settings > Your Account, a team token from Settings > Teams, or the organization token from Settings > Organization all work, as long as the token has access to the target agent.Field notes:To approve (or reject), send a follow-up
Endpoints
| Method | Path | Purpose |
|---|---|---|
GET | /v2/a2a/{agentId}/.well-known/agent-card.json | A2A 1.0 AgentCard for capability discovery |
POST | /v2/a2a/{agentId} | JSON-RPC entry point for SendMessage and GetTask |
Authentication
Both endpoints require an Archestra token in theAuthorization header:Sending a Message
JSON-RPC methodSendMessage runs a message against the agent and returns the response synchronously.messageId— required, must be unique per message (UUIDs recommended)role—ROLE_USERfor the caller’s messagecontextId/taskId— omit on the first message; copy from the response for follow-up turns
result.message:Multi-Turn Conversations
To continue a conversation, copycontextId from the first response into every subsequent request:contextId is generated by Archestra on the first message. Callers cannot supply their own. X-Archestra-Session-Id and Mcp-Session-Id are observability-only headers and do not group conversations.Approvals
When a tool call hits a tool invocation policy requiring human approval, the response contains atask instead of a message:SendMessage with taskId, contextId, and decisions in metadata.taskOps:Legacy Pass-Through (v1 Only)
The legacyPOST /v1/a2a/{agentId} endpoint accepts any non-A2A JSON body. The body is stringified and passed to the agent as the user message — useful for simple event-forwarding integrations:Incoming Email — Outlook-Based Email Invocation
Incoming Email — Outlook-Based Email Invocation
Incoming Email lets users invoke agents by sending mail to agent-specific aliases. Archestra watches a shared Microsoft 365 mailbox, extracts the target agent from the recipient alias, and turns the email body into the agent’s first message. The agent’s response can optionally be sent back as a reply.For example, if your mailbox is Copy the exact alias for any enabled agent from Agent Triggers → Email.
Image attachments are included inline in the agent’s context. Non-image attachments are noted but not processed as inline content. Files exceeding limits are silently skipped.
How It Works
- Microsoft Graph sends a webhook notification to Archestra when new mail arrives
- Archestra extracts the agent ID from the recipient alias
- The email body becomes the agent’s input message
- The agent executes and generates a response
- Optionally, the agent’s response is sent back as an email reply in the same thread
Prerequisites
- Microsoft 365 mailbox (Exchange Online)
- Azure AD application with
Mail.Readapplication permission (andMail.Sendif replies are enabled) - Publicly accessible webhook URL
Azure AD Setup
Create an App Registration
Go to the Azure Portal and create a new App Registration.
Add application permissions
Under Microsoft Graph, add
Mail.Read (required) and Mail.Send (required for reply emails) as application permissions (not delegated).Environment Configuration
Webhook Setup
Archestra needs a public webhook URL for Microsoft Graph notifications.- Automatic: Set
ARCHESTRA_AGENTS_INCOMING_EMAIL_OUTLOOK_WEBHOOK_URLand Archestra creates the subscription on startup. - Manual: Open Agent Triggers → Email and run the setup wizard.
Microsoft Graph subscriptions expire after 3 days. Archestra automatically renews them before expiration. You can also renew or replace them manually from the Email trigger page.
Email Address Format
Each enabled agent gets an alias following this pattern:agents@company.com and your agent ID is abc12345-6789-..., the alias is:Security Modes
Incoming email is disabled by default for all agents. When enabled, you must choose a security mode:| Mode | Description |
|---|---|
| Private | Only registered Archestra users with team-based access to the agent can invoke it. The sender’s email must match an existing user who belongs to at least one team assigned to the agent. |
| Internal | Only emails from a specified domain are accepted (exact match — subdomains are not included). |
| Public | Any email address can invoke the agent. Use with caution. |
Conversation History and Thread Context
When processing emails that are replies in a thread, Archestra automatically fetches the conversation history and provides it to the agent, allowing it to understand the full context of back-and-forth exchanges.Attachment Limits
| Limit | Value |
|---|---|
| Max attachments per email | 20 |
| Max size per file | 10 MB |
| Max total attachment size | 25 MB |