Skip to content

Automation triggers

An automation pairs one trigger with one action. To set one up, see Schedule an automation.

Trigger Workflow action Saved Agent action
Schedule ✓ ✓
Email ✓ ✓
Webhook — ✓ (required)
Table ✓ ✓
Event ✓ ✓
Mailbox — ✓ (required)
After creation Can it change?
Trigger kind No (“Trigger kind cannot be changed after creation.”). Delete the automation and create a new one
Action Yes, between a workflow and a Saved Agent, except on a webhook or mailbox trigger, which always runs a Saved Agent
Field Details
Cadence Hourly, Daily, Weekly, Monthly, or Custom (a 5-field cron expression)
Timezone The time zone the schedule runs in, separate from the reporting timezone
Minimum interval 1 hour. A schedule that fires more often is refused
A time that doesn’t exist When a daylight-saving jump skips the time, the run fires at the first moment after the jump
A time that happens twice When the clocks go back, the run can fire at both times, so anything it sends or writes outside Ronja should be safe to run twice

Fires when mail arrives at the automation’s private Routable address from an allowed sender, or from anyone once the trigger is open to any sender.

Field or behavior Details
Routable address Made by Ronja, with Copy and Rotate. Rotating stops the old address at once
Before the first one An Admin sets the Email-trigger ingest prefix under Governance → Organization rules. Until then the editor shows “Address pending”
Allowed sender domains Mail from any address on these domains fires the automation
Allowed sender addresses Single senders allowed as well as the domains
Which sender is checked The address on the From line. For a forwarded email, that is whoever the From line names when it reaches Ronja, so allowlist that address or its domain. Nothing verifies the From line before the run starts: anyone who knows the Routable address can put an allowed sender there, so keep the list narrow, and use a Mailbox trigger when the sender must be confirmed. The sender checks below decide only whether the run may reply
Allowlist required An enabled email trigger needs at least one entry, unless it is open to any sender
Unlisted sender Nothing runs. Run history records Sender refused with the domain of the first refused message, at most once a minute, so it shows that refusals happen, not how many
Refused senders panel Appears once something is refused. Sums up the last 30 days: minutes with a refusal, how many sender domains, the latest refusal and the most recent entries
Alert Automation refused a sender, on by default; see When an email trigger turns a sender away
Replies A Saved Agent you have let ask a person can answer the email in the same thread, from Ronja’s own address, if its instructions say to. An older Agent that was granted every tool at once can’t reply; ask Ronja to grant its tools explicitly. A workflow can’t reply. To answer as your own address, use a Mailbox trigger
Who gets the reply Only the address on the From line, never anyone copied in. If the automation’s address is copied on a thread and several people reply to all, each email starts its own run, and each run can answer only its own sender
When there is no reply The run is told it can’t answer, and why, when the email fails its sender checks or your Agent email policy doesn’t allow the sender. The run is also told not to reach the sender another way. A test with a sample email can’t reply
After the reply It works like a reply to a question: the run can ask the sender a follow-up in the thread, and a message that needs no answer ends the exchange, so nothing reads what they write back. The limits in Carrying on the conversation apply
Body Treated as untrusted input
Attachments Saved as Ronja files for the run, and kept 1 year unless moved into a folder; see Limits and retention
Zip attachments A small zip is unpacked for the run; a large or password-protected one is listed instead; see Zip archives

Choose a Workflow action when code should handle the email first, such as counting, filing or checking every attachment, before any AI reads it. The workflow can hand the email on to a Saved Agent itself.

In the automation’s Parameters, type a placeholder into a text input, such as {{ trigger.payload.from }}. {{ trigger.payload }} passes the whole email as one value.

Field What it holds
from The sender’s address
subject The subject line
body The text, cut off at 256 KB (bodyTruncated is then true). An email with only an HTML part gives its HTML
date The date the sender’s mail program put on it, not when Ronja received it. Empty when the mail has none, and a date parameter then fails
attachments One entry per attachment, in order, each with fileID (empty if it couldn’t be saved), name, contentType, size in bytes and note
automationRunID The id of this automation run
Rule Details
Whole value The placeholder must be the whole value: RFQ {{ trigger.payload.subject }} is refused when you save, as is a field the email doesn’t have
Matching types A field no email could fit is refused at save (“an email would not fit this workflow’s inputs: …”), such as attachments in a number parameter. A parameter with no type takes any field
Zips Each file in a zip follows the zip as its own entry. A zip is unpacked whole, up to 25 files (10 of them images) and 150 MB; at most 25 unpacked files per email
Large attachments An attachment over 1 GB, or one that takes the email past 1 GB, is dropped before the run and isn’t listed
Missing file id An attachment Ronja couldn’t save, or saved but couldn’t record, is listed with no fileID and a note. Have the workflow stop on it rather than skip it
Once per email The same email delivered twice runs once. A failed run isn’t retried unless it never started; have the sender send it again
Long runs A workflow on dedicated compute still running after 15 minutes carries on, and the run history shows its result when it ends
Waiting for a machine A run an email started waits up to 13 minutes for a dedicated machine (other runs wait 40), then Ronja tries once more a minute later
Concurrency Leave the workflow on Allow overlapping runs. On Skip if a run is in progress, an email that arrives during a run is turned away and not run later
Sender Nothing checks that the From line is true, so anyone can claim to be an allowed sender
Handing on to a Saved Agent Attach the email to the Saved Agent’s run as a file, and write its instructions in the workflow. Never copy the email’s text into them
Who can read it A run’s inputs are stored, so anyone who can see the workflow’s runs can read the email
Replying A workflow that emails an automatic sender back can start a loop that only the automation’s rate limits stop
Testing Run now has no email, so the run fails. Send a real email from an allowed sender, or ask Ronja in a chat to test it with a sample email (which has no attachments)

An email trigger can be opened to any sender. For the steps, see Accept mail from anyone.

Requirement or behavior Details
Organization switch Open email triggers on Organization rules, off at first. The line beside it reads Automations may be opened to any sender or No automation may be opened to any sender. Also set from the CLI or the API
Agent email policy Must be Members only or Members + allowed domains. Open email triggers is refused while it is Anyone, and it can’t go back to Anyone while open triggers are allowed
Automation switch Open to any sender, under Configuration on the automation’s page
Rate limits The automation needs its own per-minute and per-day limits. Clear a limit in its per min or per day box; a chat can’t clear one
Who An Admin, in person: on the page, or in a Build mode chat in the Ronja app, where Ronja confirms first
Refused callers An automation, a workflow, a Saved Agent, the CLI and every API token, including a personal one of an Admin’s
Count Under the switch: how many automations you can see are open (“At least 3 automations are open to any sender”), with Review them. With the switch off, it counts what turning it on would re-open
On the Automations page All senders → Open to any sender lists them. A row reads Open to any sender, or Open · org off while the organization switch is off
While open The allowlist is ignored, and may be empty. Rate limits and credit limits still apply
Organization switch off Every opened automation acts as allowlisted again from its next message, including mail already on its way, and re-opens when the switch is back on
Closing one No conditions. If it has no allowed senders, closing it also pauses it, and Ronja says so first
Risk The sender writes the instructions the run follows, and the run reaches everything in the Saved Agent’s Declared references, or everything a workflow reads and writes. If the Saved Agent may ask a person, its reply goes to whoever the From line names, if your Agent email policy allows that address. Mail from a domain that publishes no sender policy passes the sender checks, so a forged From on such a domain is answered too

Fires when another system sends JSON to the automation’s public Receiver URL.

Field Details
Receiver URL Made by Ronja, with Copy and Rotate. Without a signing secret, anyone with the URL can fire it
Signing secret Optional: “Signed (HMAC)” or “Unsigned — the URL is the secret”. Shown once, when created or rotated. Removing it works only in the browser; see Actions the API can’t take
Caps 1,000 runs per rolling 24 hours per automation · 1 MB request body · a signed request must be within 5 minutes of its timestamp
How to call it The editor’s “How to call this webhook” shows the exact request, with the signature headers and an idempotency key for safe retries

Fires when a watched table finishes building.

Field or behavior Details
Watched tables 1 to 25 tables from the automation’s feature
Caps 50 runs per rolling 24 hours per automation
What the action gets A Saved Agent gets the table that changed; a workflow runs on its saved parameters
A workflow that writes a watched table Refused, but only for tables the workflow declares it writes. Don’t watch a table the action writes
Keeping a table up to date Watch the table a workflow reads, to rebuild with Python; see Derive a table with Python
Deleting a watched table Refused while any automation watches it, on or paused; Ronja names the automations to change first
A table with several inputs Rebuilds once after its inputs catch up, so the automation fires once per upstream change
A build with no new data Still counts as a build. Pushing files to a watched table on a schedule fires it each time, against the 50-run cap
A skipped fire Runs once more after the run in its way finishes; see Skipped runs

Fires when a named custom event is sent in your organization. Every automation that listens for that name fires.

Field or behavior Details
Event name The event to listen for, in lowercase. Fixed after creation
Sending an event A workflow sends one during a run (ask Ronja to add the step), or another system sends one to POST /service-api/v1/event with an API token
Caps 5,000 runs per rolling 24 hours across all event automations in your organization, against loops
Payload Untrusted, like an email body. A Saved Agent reads it; a workflow parameter set to take a field of it is filled from each event
A missing field The run fails
An empty or null field Fails a required parameter with no default. Otherwise an empty field is passed as it is, and a null one takes the default when it has one
Testing Run now has no event, so a workflow that takes a payload field fails. Send the event, or ask Ronja in a chat to test it with a sample event

Fires when new mail arrives in a connected mailbox. Each matching message starts one run of the Saved Agent, with that message. Attaching a mailbox needs an Admin.

Field Details
Watched mailbox One of your working connected mailboxes. Fixed after creation, except after the mailbox is disconnected. The API can re-point it (Admin only), and starts it from that moment
Filters (optional) From these domains · From these addresses · Subject contains · Only messages with an attachment. Up to 50 entries per list
Caps 1,000 runs per rolling 24 hours and 60 runs per minute, per automation, by default
Behavior Details
No filters Runs on every new message, the usual setup for a support inbox
Matching A message must match every section you fill in, and any one entry in a section. Domains and addresses count as one section
Domains Match exactly: acme.com doesn’t match mail.acme.com
Sender check A sender filter matches only mail whose domain passes DMARC. If an expected sender never fires it, ask their mail admin whether their domain publishes DMARC
Attachment filter Narrows what runs, but anyone can attach a file, so it doesn’t limit who
Watched label If the mailbox has one, only mail under it reaches its automations. A label that no longer exists is ignored, and the whole mailbox is watched
Attachments Saved as Ronja files: up to 20 per message, 25 MB each, 100 MB in all, and kept 1 year unless moved into a folder. A small zip is unpacked. A skipped file is named in what the run gets
Only new mail Mail that arrived before you switched it on, or while it was paused, never fires it. The editor shows the time it starts from. To work a backlog, ask Ronja in a chat
How often Ronja looks About every couple of minutes while mail is arriving, easing off to every five and then every twenty as the mailbox goes quiet
Look-back 6 hours. Mail older than that by the next successful check, as after a long outage or while the mailbox needs reconnecting, is not picked up
Mailbox needs reconnecting Its automations stop firing but still read Active. The card reads Needs reconnect and your admins get a Secret needs attention notification. Reconnect on the mailbox resumes them
Mailbox disconnected Its automations are switched off, with the reason. Point each one at a newly connected mailbox, save, and switch it back on
Saved Agent without the mailbox Ronja warns you: the run starts, but can’t read, reply or triage. Add the mailbox to the Saved Agent’s references
Compose recipients Bounds where a run’s new mail can go, and starts empty, which means anywhere. Ronja warns you when it’s empty; see Compose recipients
Setting Details
Reporting timezone The zone a Saved Agent action counts days, weeks and months in; blank means your organization’s. A workflow with its own ignores it
Concurrency Set on the workflow or Saved Agent, not the automation; see Concurrency
Pause / resume The toggle on the automation’s row and page. A paused automation ignores its trigger
Run now / Test Runs the automation once, from its row or page; Ronja can also test it before you switch it on. Refused while one of its runs is going or waiting
Deletion Pauses the automation and moves it to the Trash for 30 days; see Restore from trash

A workflow with a mid-run approval runs from an automation as usual and stops only at the step that asks. An older workflow with a Pre-run approval gate, labelled Deprecated, can only be run from a chat, so an automation that fires one fails (“this workflow requires approval and cannot be run from this entry point”). Ask Ronja to convert it to a mid-run approval; see Approval before a run.