Skip to main content

Automation and triggers

A task runs the same agent, tools and permissions as chat, started by a trigger instead of a message.

📝 Create a task​

  1. Open Tasks and press Add Task.
  2. Enter a name and describe What should the agent do? Use Get inspired to fill in a starter task.
  3. Choose the Trigger type and its schedule or event conditions.
  4. Choose Result Delivery and the Assigned Agent; the task uses that agent's memory and accounts. Model overrides and loop controls are under Advanced settings.
  5. Check Enabled before saving. Turn it off to keep the task without running it automatically. Required-field and save errors appear inside the dialog so you can correct them without losing your input.
  • From chat. Ask the agent for a reminder or a recurring check; it creates the task with its create_task tool.
  • Starter ideas. Get inspired fills in ready-made tasks such as Morning briefing, Hourly inbox check and Weekly review.
  • Run Now. Any task can be started by hand from its card.

⚙️ How triggers fire​

  • Code checks, the model runs. Each trigger tests its condition in server code; a model run starts only when it fires.
  • Polling triggers query the connected account every 1 to 15 minutes; World News every 30 by default.
  • Event triggers (messaging, MCP, phone, wearable, other tasks) fire as soon as the event arrives.
  • Baseline first. Items that existed when the task was created never fire.
  • No duplicates. Every event carries a fingerprint, so the same email, row or reading fires once.
  • One run at a time. A task that is still running makes new events wait their turn.

🗂️ Trigger types​

The server registers 42 trigger types in server/services/tasks/adapters/index.js.

GroupType IDFires whenNeeds
On demand and timemanualYou press Run NowNothing
scheduleA cron slot or a one-time date arrivesNothing
webhookA signed request reaches the task's webhook URLNothing (API only, not in the picker)
Emailgmail_message_receivedA new Gmail message matches an optional search query or unread filterGoogle Workspace
outlook_email_receivedA new Outlook email matches an optional folder, search or unread filterMicrosoft 365
Messagingslack_message_receivedA message lands in a Slack channel, optionally from one senderSlack integration
teams_message_receivedA message lands in a Teams chat, optionally from one senderMicrosoft 365
whatsapp_personal_message_receivedA message arrives in a chosen personal WhatsApp chatPersonal WhatsApp integration
messaging_member_joinedSomeone joins a Discord server, Telegram or WhatsApp group, Slack channel or Matrix roomThat messaging channel
messaging_member_leftSomeone leaves one of those spacesThat messaging channel
messaging_reaction_addedAn allowed person reacts in a private Discord, Telegram or WhatsApp chatThat messaging channel
messaging_platform_disconnectedA channel stops and needs you, for example after a logoutAny messaging channel
Calendargoogle_calendar_event_startingA timed event is N minutes away (default 10; all-day events skipped)Google Workspace
google_calendar_event_createdA new event appears, optionally only invites organized by othersGoogle Workspace
outlook_calendar_event_startingA timed Outlook event is N minutes awayMicrosoft 365
nextcloud_calendar_event_startingAn event in a chosen Nextcloud calendar is N minutes awayNextcloud
Files and documentsgoogle_drive_file_addedA file appears in a Drive folder, or anywhere in DriveGoogle Workspace
google_sheets_row_addedA row is added to a range such as Sheet1!A:EGoogle Workspace
onedrive_file_addedA file appears in a OneDrive folderMicrosoft 365
nextcloud_file_addedA file appears in a Nextcloud folderNextcloud
nextcloud_share_receivedSomeone shares a file with youNextcloud
notion_database_item_addedAn item is added to a Notion databaseNotion
notion_database_item_updatedAn item in a Notion database changesNotion
trello_card_entered_listA card is created in or moved into a listTrello
figma_comment_addedSomeone comments on a Figma fileFigma
Developergithub_issue_openedAn issue opens, filtered by author, assignee, labels or textGitHub
github_pr_openedA pull request opens, filtered by author or textGitHub
github_workflow_run_failedA GitHub Actions run fails, optionally for one workflow or branchGitHub
github_commit_pushedA commit lands on a branch (the default branch if empty)GitHub
mcp_server_disconnectedOne MCP server, or any, failsAn MCP server
Home, media and memoryhome_assistant_state_changedAn entity changes, or starts matching a target state or numeric rangeHome Assistant
spotify_track_changedA different track starts playingSpotify
neorecall_memory_createdNeoRecall saves a memory, filtered by type, topic or textNeoRecall
neorecall_daily_summary_createdNeoRecall finishes a daily summaryNeoRecall
neorecall_conversation_recordedNeoRecall records a conversationNeoRecall
Weather and newsweather_eventThe forecast shows rain or snow starting, strong wind, or a temperature thresholdWeather (Open-Meteo, no key)
world_newsNew headlines match your keywords or category; the run decides if they matterWorld News (GNews API key)
Devices and placesandroid_notification_receivedA notification arrives on your phone, optionally from one app packageAndroid app, Notification triggers on
geofence_eventYour phone enters or leaves a place (radius 50 m to 50 km, default 200 m)Android app, Location triggers on
health_metric_recordedA phone health sync contains a matching metric, optionally above or below a valueAndroid app with Health Connect
wearable_connection_changedThe wearable connects or disconnectsESP32-S3 wearable
Taskstask_run_finishedAnother task finishes with any outcome, success or failureAnother task
Chained tasks

task_run_finished chains stop after three linked runs, so tasks that trigger each other cannot loop forever.

⏰ Schedules​

  • Presets. Every 15 minutes, Every 30 minutes, Hourly, Daily, Weekdays, Weekly, Monthly, or Custom cron.
  • Once. Choose Once and set Run At.
  • Cron. Five fields, minute hour day-of-month month day-of-week. Seconds are not supported.
  • Your time zone. Cron slots and dates without an offset use the account Time zone under Settings › General.
  • Finish at the scheduled time. Starts early by the task's measured average run time, so the result lands on time.
  • Missed slots are skipped. A recurring run that cannot start within 90 seconds of its slot waits for the next one.
ExpressionRuns
0 9 * * *Every day at 09:00
0 9 * * 1-5Weekdays at 09:00
0 8 * * 1Mondays at 08:00
*/30 * * * *Every 30 minutes

📬 Delivery​

A run's final answer is what it delivers. When there is nothing worth sending, the agent answers exactly [NO RESPONSE] and nothing goes out.

  • One path. The agent does not send the result itself; a send_message it does send counts as the delivery, and nothing is sent twice.
  • Destination. Result Delivery sets the channel; Use default channel picks the chat you last used with this agent.
  • Quiet by default. Built-in rules report only what changed and skip empty results. Your instructions override them.
  • Failures reach you. After one automatic retry, a failed run sends its reason. Provider outages and rate limits stay quiet.
  • Delivery needs a channel. Connect a messaging channel; a run can succeed while its delivery fails.

✍️ Write instructions that run alone​

  • Self-contained. The run sees no chat history. Name the account, chat, repository or folder.
  • Say when to stay quiet. For example: "Do not send anything when no reply is needed."
  • Prefer structured tools. Integrations and MCP are easier to restrict and debug than browser automation.
Search unread Gmail received since the previous run. Summarize messages that
need a reply and send the summary to my Telegram chat. Do not send anything
when no reply is needed.

🔗 Webhooks​

The webhook trigger is API-only: create the task by asking the agent, or with POST /api/tasks.

  1. Get the signing secret while signed in: POST /api/task-webhooks/<taskId>/rotate. It is shown once.
  2. Send each event to POST /api/task-webhooks/<taskId>/deliver with the headers below.
  3. Check recent deliveries with GET /api/task-webhooks/<taskId>/deliveries.
HeaderValue
X-NeoAgent-TimestampUnix time in milliseconds, within 5 minutes of the server clock
X-NeoAgent-Request-IdUnique per request; a reused ID is rejected
X-NeoAgent-Signaturesha256= plus the hex HMAC-SHA256 of <timestamp>.<raw body>, keyed with the secret
TS=$(date +%s000)
BODY='{"event":"deploy_finished"}'
SIG=$(printf '%s.%s' "$TS" "$BODY" | openssl dgst -sha256 -hmac "$SECRET" -hex | sed 's/^.* //')
curl -X POST "$PUBLIC_URL/api/task-webhooks/$TASK_ID/deliver" \
-H 'Content-Type: application/json' \
-H "X-NeoAgent-Timestamp: $TS" \
-H "X-NeoAgent-Request-Id: $(uuidgen)" \
-H "X-NeoAgent-Signature: sha256=$SIG" \
-d "$BODY"
  • Size limit. Bodies up to 256 KiB.
  • Untrusted payload. The body reaches the run as fenced data, never as instructions.

📊 Runs and pausing​

  • Runs. Every execution appears in Runs with its trigger, steps, tool calls, final response and errors.
  • Pause task loop. The switch under Loop execution skips the task before it calls the model.
  • No run caps. Tasks have no daily run or token limit; pause or disable a task to stop it.
  • API flag. loopPaused: true in the task config is the same switch; legacy loopBudget.paused still works.

🔒 Safety​

  • Start read-only. Connect integration accounts as Read Only until a task must write.
  • Keep approvals on. Leave shell, file write, Android and desktop categories on approval for unattended work.
  • Approvals need you present. An unanswered prompt blocks the call after 30 seconds.
  • No secrets in instructions. Use the credential broker instead.
  • Restrict senders. Messaging allowlists decide who can start runs.
  • Treat trigger content as untrusted. Emails, pages, messages and webhook bodies can carry prompt injection.