Tasks run an enabled tool when you are not in chat. They are available on Hobby and Pro (tasks: true), capped at 25 tasks per hub (maxTasksPerHub: 25). Free cannot create tasks.
Manage via Tasks in the app (/tasks) or Smia connector: smia_list type=task, smia_create type=task, smia_update type=task, smia_delete type=task. Historical task run lists in the UI are Pro.
Kinds
Exactly one kind per task:
| Kind | Behavior |
|---|---|
schedule | Cron + timezone |
webhook | HTTP POST with bearer token |
once | Single run, then auto-disables |
Tasks invoke as the creator with stored args. The tool must already be enabled.
Webhook pattern
- Build and enable the tool (
smia_test→smia_update type=tool enabled:true). - Pin stable defaults in task
args. Omit keys the sender should supply.
smia_create type=task
hub_slug=ops
name="Growth updates"
kind=webhook
server_slug=comms
tool_name=post_growth_update_to_discord
args={ "channel": "vekst" }
enabled=true
Create returns the webhook token once—never commit it to docs or git. Use:
POST https://smia.tools/api/hooks/tasks
Authorization: Bearer <token from create response>
Content-Type: application/json
Merge rule: stored args win. Keys absent from stored args are filled from the POST body. Env interpolation runs on stored args only.
Concurrency: second POST while queued/running → 429 in_flight. Rate limit: 30 fires/minute → 429 rate_limited.
Schedules and once
Use kind=schedule with cron fields, or kind=once for a single fire. Manual fire: smia_update type=task run=true (stored args only, no webhook body).
Graph caveat
The executor runs every node in the graph—logic.switch picks outputs but does not skip branches. Design one side-effect path or ensure idle branches still satisfy required inputs (see repo docs/TASKS.md).
Example
Stripe sends events to your Smia webhook Task; stored args pin hub_slug and channel, while the body supplies event_type and amount. The same post_billing_to_growth tool your team calls from chat runs on the server with hub DISCORD_BOT_TOKEN from env—no duplicate Zapier step.
Verified against commit aae68ddd0a3c9597d8481c376d33eb3ca2effcb3 on 2026-11-26.