Routines and webhooks
Run agents on a schedule, collect their reports in one thread, or trigger work from an external event.
Routines
A routine runs once, at a repeating interval, or on selected weekdays. Each run starts a fresh execution using the selected bot's model, permissions, tools, and computer configuration.
Run receipts distinguish queued, active, waiting, completed, missed, failed, and cancelled work. Unelora must be running when a local routine becomes due.
Results arrive in the bot's chat
Each run works in a conversation of its own, out of the way, and only its result comes to the bot's chat: one message from the bot, with a small line above it naming the automation and when it ran. Reply to it like any other message; the bot knows what its automation found. A run with nothing to tell you stays quiet: no message, no unread dot, no notification, and the automation's card says Nothing new.
When a run needs you, it asks in that chat. A question in words shows needs you on the message; answer it there, or react ๐ or ๐. A choice or an approval the run waits on appears in the chat too, and answering it there, or reacting ๐ or ๐, carries the run on. A sign-in, a connection or a key it needs is named in the chat, with See run to it. When a run can't finish, the chat says so once, with what to fix.
Nothing lands in the middle of your own conversation: if you are chatting with the bot when a run finishes, its message waits and appears right after the bot's reply to you.
Files a run links in its message open from the chat, just as they would in the run's own conversation. Use See run on a message for the run's full conversation, then Back to results to return. Run logs keeps the execution history, including failures and waiting runs. Background run conversations stay out of the normal sidebar and mobile thread pickers.
In a routine's editor, use Post results to to choose an existing thread, or leave it on The bot's main thread: the conversation you last wrote in, which is also the one conversation you see with threads hidden. You can move a results thread into a folder, such as OMB management, just like any other thread. On My Cloud, an automation that an outside event starts, or that someone else wrote, reports into a chat of its own, so the chats you write in stay yours alone and can keep using a Mac you lend to My Cloud.
A bot schedules, changes, pauses, resumes, and deletes its own routines from chat without asking, and each change shows as one line with Undo (see Changes a bot makes). A routine for another bot asks first unless the conversation has Full access.
Without a chosen thread, each run reports into the bot's main thread as it is when the run starts, wherever the routine was made, so results follow you to the conversation you are in. Changing the destination affects future runs, not the messages older runs left. If you delete a results thread, its hidden execution threads become visible so you can still inspect their work and respond to approvals.
Claude Code routines that use custom MCP tools
Start with the bot's Access settings. Enable the custom MCP server for
that bot and check Tool selection. If Only allow listed tools is on,
keep native:* and add the exact tool selector, such as mcp:notes:find_note.
This is the tool scope (toolScope). It controls which tools Claude can find
and call. Approval is checked separately.
Unelora enables Claude Code's ToolSearch by default and respects opt-outs
such as ENABLE_TOOL_SEARCH=false. Discovery can happen on demand. Name the
server, tool and intended action in the routine's instructions so Claude knows
what to look up. Use Run now on a test record and open See run or
Run logs to check what happened. If Claude cannot find the tool, check the
server's connection, the bot's tool selection and the selected model's support
for ToolSearch.
A routine's schedule determines when it runs. With Approve for me, Claude
Code's Auto mode reviews each tool call. If the run shows an approval card,
review the action and approve it once. Always allow, when offered, saves
an approval (alwaysAllow) for the exact provider instance, MCP tool and server
configuration. It can answer a matching future request that reaches Unelora.
If Claude Code denies the call before it asks, that saved approval cannot
answer it. For writes that require review, keep a person available to approve
them or schedule a read-only step that prepares what they need to review.
For a schedule that persists across conversations, create a routine in
Automations or ask your bot to schedule one. The chat tool is trigger
with action: "create" and when: "schedule" (formerly create_trigger).
Unelora disables Claude Code's session-scoped CronCreate in its managed turns.
Remember the last run
Each run starts fresh by default. For work that builds on last time, such as a QA pass, monitoring or follow-ups, turn on Remember the last run under the routine's instructions. Each run then starts with the previous run's report (up to 2,000 characters), so the bot knows what it found before. It is available for repeating routines that one bot runs; team goals don't carry it yet. You can also ask the bot in chat to turn it on.
Run when the app starts
If your computer is often off when a routine is due, open the routine's Advanced options and turn on Also run when Unelora starts. The routine then runs once each time Unelora opens, as well as on its schedule. Its run logs show these runs as On startup. A routine that Unelora is already catching up on at startup runs once, not twice, and an occurrence missed by more than 12 hours is covered by the startup run instead of being reported as missed. Switching to another workspace and back, or Unelora recovering from a crash, doesn't count as opening the app again. Pausing a routine stops its startup runs too. It's available for repeating routines, and you can also ask the bot in chat to turn it on.
A routine's own model
A routine runs on its bot's model unless it has its own. Give it one through the API with modelSelection (the same shape as a bot's: instanceId, model, and an optional effort or variant), for example a light hourly check on a smaller model while the bot chats on a stronger one: PATCH /api/routines/<id> with {"modelSelection": {"instanceId": "claude", "model": "claude-haiku-4-5"}}. Each run's thread then uses that model; if its AI isn't available, the thread falls back to the bot's model. The model has to keep the bot's permission level, as a bot's own model change does: with Custom approval it must run on the bot's own engine, and with Auto-accept edits on an engine that has that level. Other models are refused, and if the bot's permissions change later so the routine's model no longer fits, runs use the bot's model. Room goals always use their bots' own models, and a limit-reset routine stays on the model of the conversation it continues. Send "modelSelection": null to go back to the bot's model.
When the AI's usage limit stops a run
If a bot's AI reaches its usage limit during a run and the limit resets within 12 hours, Unelora starts that run once more a minute after the reset, and tells you so. A repeating routine's scheduled run is the exception when the routine's next scheduled run comes no later than one of its intervals after the reset (an hour for an hourly routine, a day for a daily one): that next run does the same work, so the stopped run fails with the usual usage-limit notice instead. Runs you start with Run now, one-time routines and routines that run when a limit resets still start again at the reset, and a bot with a backup AI still switches to it at once.
Clear a folder's unread dots
Right-click a folder or open its โฆ menu, then choose Mark folder as read. This clears unread dots without opening each thread. It does not answer approvals, dismiss questions, or stop any running work.
Webhook triggers
Webhooks start the same queued task executor from an external HTTP request. They are independent from schedules and use a dedicated receiver on 127.0.0.1:8800 by default.
The receiver exposes only health and secret hook routes. It does not expose the broader Unelora API.
Bearer authentication is preferred because it keeps the secret out of URLs and most access logs. A capability URL is available for senders that cannot set headers.
GitHub events
Ask your bot: "When a pull request opens in acme/widgets, review it."
The bot first checks its connected-app events with trigger_info action=events app=github.
Connect GitHub and allow the bot to use it under Access.
Use the event and repository settings returned by that catalog.
Available events and branch settings depend on Composio's event type.
App events require Unelora's managed connected apps; they do not support your own Composio key.
Use a repository webhook when the catalog does not offer the event you need:
- Ask the bot to create a webhook automation for the work. Include the repository, action, and branch conditions in its instructions. For example: "Review acme/widgets PRs only when action is opened and the base branch is main. Stop for other events."
- In your own chat, ask the owning bot for setup details with
trigger_infoandinclude_address. Use the private result'sgithubUrlfor the signed endpoint. Get the secret separately from itsbearerfield; keep it only in GitHub's Secret field. Do not append/githubto Copy address or the result'surl; those may contain the secret. - In the GitHub repository, open Settings โ Webhooks โ Add webhook.
- Set Payload URL to
githubUrl, such ashttps://bots.example.com/hooks/wh_example/github. - Set Content type to
application/jsonand Secret to the automation's secret. Keep SSL verification enabled. - Select the events you need, such as Pull requests, Issues, Pushes, Releases, or Workflow runs. Save the webhook and check GitHub's recent deliveries.
The signed endpoint verifies X-Hub-Signature-256 against the raw request body before parsing it.
It requires X-GitHub-Delivery and X-GitHub-Event.
Retries with the same delivery ID keep the existing duplicate handling.
The URL contains no secret. Do not append the secret to the signed URL.
If an older automation cannot show its secret, replace its address and update GitHub's secret.
The repository webhook selects the repository and event families.
The automation's event-type list can also limit families, such as pull_request or workflow_run.
Action and branch conditions in instructions are checked by the bot after a run starts.
For merged PRs, require action=closed and pull_request.merged=true.
For CI failures, require action=completed and workflow_run.conclusion=failure.
External event content is untrusted; it does not grant the bot extra permissions.
A bot that sets up its own webhook
When a bot creates a webhook automation from chat, it gets the private address in the result, and it can ask for it again later, so it can paste the address into the other app's setup itself instead of asking you to use Copy address. Only the bot the automation belongs to gets it, or a Chief of Staff that can reach that bot (bots with a different audience on a shared workspace cannot), and only in a conversation you drive: never in a run that a webhook or app event started, and never in a My Cloud conversation a guest drives. The address stays in that tool result; chat transcripts, step details and logs show it masked, and the Automations page keeps the secret hidden until you press Show. Copy address copies the same address the bot has, so copying never breaks a setup; Replace address makes a new one and the old one stops working.
Reaching a local webhook
On My Cloud there is nothing to set up: webhooks use the workspace's own address. The Webhooks panel shows https:// plus the workspace's hostname followed by /hooks/ and the endpoint, and only those hook paths are passed to the receiver. The same is true of a hosted workspace.
On the desktop app the receiver listens only on this computer. To accept events from the public internet, proxy only the webhook receiver through a narrowly configured relay or tunnel. Do not expose the main harness port.
Unelora must remain running
Local routines and webhook deliveries are not hosted jobs. Closing the desktop app stops the local executor and receiver. My Cloud keeps running them while your computer is off.