Browse this section
Enterprise Agents

Automations & triggers

Run agents on schedules, events, webhooks, chat mentions or on demand.

Triggers

triggers:
  - type: schedule
    cron: "0 7 * * 1-5"
    timezone: Europe/Helsinki
  - type: email.received
    mailbox: invoices@
  - type: event
    source: zendesk
    event: ticket.created
  - type: webhook
    # POST https://api.brewmycode.com/v1/agents/{id}/trigger with the agent's webhook secret
  - type: mention
    channels: ["#finance-agent"]
  - type: manual
TriggerStarts a run when
scheduleA cron expression fires
email.receivedA message arrives in a connected mailbox (optionally filtered by sender, subject, attachment type)
eventA connected system emits an event: new ticket, new deal, file added, row inserted…
webhookYour system calls the agent's webhook URL
mentionSomeone mentions the agent in an allowed channel
manualA user clicks Run or calls POST /agents/{id}/runs

Inputs

Triggers pass an input object to the run (the email, the ticket, the webhook body). The job can refer to it; tools can use it. Inputs are stored with the trace.

Deduplication

Event and email triggers deduplicate on the source item id, so a retried notification doesn't start a second run. Webhooks accept an optional Idempotency-Key.

Batching

For high-volume events, set batch: { size: 50, window: 10m } to process items in one run rather than one run per item.

Zapier

BrewMy{Code} is a verified Zapier partner. The Zapier app exposes Run agent and Query knowledge base actions and Run completed / Approval requested triggers, so agents can be started from — and results pushed to — 7,000+ other apps.

Monitoring

Agents → (agent) → Runs lists runs by status and trigger. Set alerts for failed runs, hand-off rate and approval backlog under Alerts. Alerts deliver to Slack, Teams, email or a webhook.