Nia Automation & Hook Engine

Automations running 24/7.
Guarded by veto-capable hooks.

Set-and-forget background AI tasks, recurring cron schedules, push reminders, and event triggers. Intercept sensitive operations before they touch your system.

24/7
Continuous Background Operation
5-Field
Standard Cron Expression Support
BLOCK:
Veto Contract Security
Durable
BullMQ Queue Persistence

Four core automation primitives.

Everything from scheduled briefings to durable background tasks is handled natively.

Recurring Cron Jobs with Pre-Scripts

Schedule AI prompts using standard 5-field cron syntax (e.g. 0 9 * * 1-5). Pre-scripts run shell commands (like uptime or df -h) right before the prompt fires, injecting live context into the AI session automatically.

0 9 * * 1-5 • Morning BriefingPre-Script Enabled

Event Triggers

Trigger AI automations dynamically on system events (like event:new_email or event:calendar_event_start).

Event Stream Listener

Durable Tasks

Fire-and-forget background agent tasks run with full tool access (shell, file system, browser). Tasks survive app restarts via BullMQ Redis queues.

BullMQ + Redis Worker

Push Notifications & Scheduled Reminders

Set one-time push reminders for specific moment ISO dates. Reminders deliver Web Push notifications directly to your desktop or mobile browser even when the application tab is closed.

remind(message: "Call dentist", due_at: "2026-07-28T09:00:00Z")Push Delivered
Programmable Interception

Lifecycle Hook Engine

Attach shell scripts, HTTP webhooks, or prompts to AI events. Veto unsafe calls using the BLOCK: contract.

beforeToolCall

Pre-Execution Guardrail

Veto Capable

Intercepts tool calls before execution. Supports the BLOCK: veto contract to stop sensitive actions before they run.

Hook Command Example
if [ "$RECIPIENT_DOMAIN" != "company.com" ]; then
  echo "BLOCK: Email recipients must be internal @company.com addresses."
  exit 0
fi

The BLOCK: Veto Contract

If a beforeToolCall hook outputs text starting with BLOCK: <reason>, tool execution is aborted immediately. The AI receives your veto reason without performing the action.

Tool Dispatch Protocol

Unified automate Tool

Dispatch recurring crons, reminders, and background tasks using a single declarative interface.

// Schedule a recurring weekday 9 AM briefing with shell pre-script context
automate({
  action: "schedule",
  cron: "0 9 * * 1-5",
  label: "Morning System Diagnostics",
  prompt: "Analyze the attached system metric context and summarize any anomalies.",
  pre_script: "uptime && df -h && docker ps --format 'table {{.Names}}\t{{.Status}}'",
  model: "gemini-2.5-flash"
});

Put your AI on autopilot

Manage cron schedules, set push reminders, and inspect background tasks directly in the dashboard.

Go to Automations Dashboard