# Taskman automation format (for AI assistants) Taskman is an Android automation app. Users can ask an AI to write an automation and paste the JSON into Taskman (Settings > Paste JSON). Taskman validates it, shows a plain-language summary and the permissions it needs, and imports it turned off. Rules for generating automations: - Output only JSON. Either one automation object or {"automations": [ ... ]}. - Use only the block types listed below. Unknown types are kept but cannot run. - Every block is {"type": "...", "params": { ... }}. Missing params take their default. - Steps in "actions" are objects with "kind": "action" (with "block"), "if" (with "condition", "then", "otherwise") or "repeat" (with "times", "steps"). - "condition" is {"kind": "all"|"any", "items": [...]}, {"kind": "not", "item": ...} or {"kind": "check", "block": ...}. "any" and "not" need Pro. - Text params marked templated accept {{trigger.x}}, {{var.x}}, {{secret.x}}, {{now}} and {{uuid}}, with pipes such as {{trigger.text | upper}}. - Never put passwords or API keys in JSON. Reference them as {{secret.name}}; the user stores them in Taskman Secrets. - Taskman never executes trades or payments. ## Example ```json { "id": "4f699afd-b903-48a8-979a-cc13f8566441", "name": "Quiet night", "enabled": false, "triggers": [ { "id": "58150563-8ae1-4d22-b18b-694302d65878", "type": "trigger.time.daily", "params": { "time": "23:00", "days": [ 1, 2, 3, 4, 5, 6, 7 ] } } ], "condition": { "kind": "all", "items": [ { "kind": "check", "block": { "id": "913db9b8-2ff5-441f-94d9-dce9c377c6cb", "type": "condition.charging", "params": { "state": "charging" } } } ] }, "actions": [ { "kind": "action", "id": "9203a623-9490-4ca7-a5e7-af5f3063bca4", "block": { "id": "b49a5ae3-5886-420f-b9ee-ebfb6b42c896", "type": "action.dnd", "params": { "mode": "priority" } } }, { "kind": "action", "id": "a1c44831-b37a-4f7e-9e1f-c7678035859f", "block": { "id": "9477e5ea-ff56-418b-879a-3b702cdebfc3", "type": "action.notify", "params": { "title": "Good night", "text": "Battery: charging since {{trigger.time}}", "button1": "", "button1_automation": "", "button2": "", "button2_automation": "", "importance": "normal", "sound": "default", "vibrate": "default" } } } ], "settings": { "cooldownSeconds": 0, "concurrency": "QUEUE", "stopOnError": true, "confirmBeforeRun": false }, "layout": {}, "appearance": { "color": -1, "icon": "" }, "loose": [], "formatVersion": 1 } ``` ## Triggers ### `trigger.manual` ### `trigger.text` - `hint`: text, default "", optional - provides: {{trigger.text}} ### `trigger.time.daily` - `time`: time HH:mm, default "08:00" - `days`: array of ISO weekdays 1 (Monday) .. 7 (Sunday), default [1,2,3,4,5,6,7] - provides: {{trigger.time}} ### `trigger.interval` - `minutes`: integer 1..1440, default 30, values below 5 need Pro - provides: {{trigger.time}} ### `trigger.boot` ### `trigger.power` - `state`: one of connected | disconnected | any, default "connected" - provides: {{trigger.state}}, {{trigger.source}} ### `trigger.battery.level` - `comparison`: one of below | above, default "below" - `level`: integer 0..100, default 20 - provides: {{trigger.level}} ### `trigger.screen` - `state`: one of on | off | unlocked, default "unlocked" - provides: {{trigger.state}} ### `trigger.unlock.failed` - `attempts`: integer 1..20, default 2 - provides: {{trigger.attempts}} ### `trigger.headset` - `state`: one of plugged | unplugged | any, default "plugged" - provides: {{trigger.state}} ### `trigger.bluetooth` - `state`: one of connected | disconnected | any, default "connected" - `device`: text, default "", optional - provides: {{trigger.state}}, {{trigger.device}}, {{trigger.address}} ### `trigger.bluetooth.power` - `state`: one of on | off, default "on" - provides: {{trigger.state}} ### `trigger.network` - `state`: one of connected | disconnected, default "connected" - `network`: one of any | wifi | cellular, default "any" - `ssid`: text, default "", optional - provides: {{trigger.state}}, {{trigger.network}}, {{trigger.ssid}} ### `trigger.notification` - `app`: Android package name, default "", optional - `category`: one of message | call, default "message" - `lock_state`: one of any | locked | unlocked, default "any" - `contains`: text, default "", optional - provides: {{trigger.app}}, {{trigger.app_name}}, {{trigger.title}}, {{trigger.text}}, {{trigger.subtext}}, {{trigger.amount}}, {{trigger.number}}, {{trigger.url}} ### `trigger.sms` - `from`: text, default "", optional - `contains`: text, default "", optional - provides: {{trigger.from}}, {{trigger.text}}, {{trigger.app}} ### `trigger.call` - `state`: one of ringing | answered | ended | missed | outgoing | any, default "ringing" - `from`: text, default "", optional - provides: {{trigger.state}}, {{trigger.caller}} ### `trigger.telegram` - `token`: text, default "{{secret.telegram_token}}", templated - `contains`: text, default "", optional - `chat`: text, default "{{secret.telegram_chat}}", templated, optional - `minutes`: integer 1..1440, default 15, values below 5 need Pro - provides: {{trigger.text}}, {{trigger.chat_id}}, {{trigger.from}}, {{trigger.username}}, {{trigger.message_id}} ### `trigger.email` - `connection`: slug of a saved email connection, default "", optional - `provider`: one of gmail | icloud | yahoo | fastmail | other, default "gmail" - `imap_host`: text, default "", templated, optional - `imap_port`: integer 1..65535, default 993 - `from`: text, default "", templated - `password`: text, default "{{secret.email_password}}", templated - `sender`: text, default "", optional - `subject_contains`: text, default "", optional - `minutes`: integer 1..1440, default 15, values below 5 need Pro - provides: {{trigger.from}}, {{trigger.address}}, {{trigger.subject}}, {{trigger.text}}, {{trigger.date}} ### `trigger.http.poll` - `url`: text, default "https://", templated - `path`: text, default "", optional - `mode`: one of changed | above | below, default "changed" - `threshold`: text, default "", optional - `minutes`: integer 1..1440, default 15, values below 5 need Pro - `token`: text, default "", templated, optional - provides: {{trigger.value}}, {{trigger.previous}}, {{trigger.status}} ### `trigger.tile` ### `trigger.share` - `content`: one of text | image | file, default "text" - `contains`: text, default "", optional - provides: {{trigger.text}}, {{trigger.subject}}, {{trigger.url}}, {{trigger.image}}, {{trigger.file}}, {{trigger.file_name}} ### `trigger.float` (Pro) - `icon`: text, default "⚡" ### `trigger.tag` - `tag_match`: one of id | taskman, default "id" - `tag_id`: text, default "" - `tag`: text, default "home" - provides: {{trigger.tag}}, {{trigger.id}} ### `trigger.qr` - `mode`: one of any | equals | contains | matches, default "any" - `value`: text, default "", optional - `confirm`: boolean, default false - provides: {{trigger.value}}, {{trigger.format}} ### `trigger.webhook` - `path`: text, default "hook" - provides: {{trigger.path}}, {{trigger.body}}, {{trigger.method}} ### `trigger.cron` (Pro) - `expression`: text, default "0 9 * * 1-5" - provides: {{trigger.time}} ### `trigger.location` - `state`: one of enter | exit | any, default "enter" - `latitude`: text, default "40.4168" - `longitude`: text, default "-3.7038" - `radius`: integer 50..20000, default 200 - provides: {{trigger.state}}, {{trigger.latitude}}, {{trigger.longitude}}, {{trigger.radius}} ### `trigger.calendar` - `state`: one of start | end, default "start" - `offset`: integer -1440..1440, default 0 - `contains`: text, default "", optional - provides: {{trigger.title}}, {{trigger.location}}, {{trigger.description}}, {{trigger.calendar}}, {{trigger.start}}, {{trigger.end}} ### `trigger.motion` - `gesture`: one of shake | face_down | face_up, default "shake" - provides: {{trigger.gesture}} ### `trigger.sun` - `event`: one of sunrise | sunset, default "sunset" - `offset`: integer -240..240, default 0 - `latitude`: text, default "40.4168" - `longitude`: text, default "-3.7038" - provides: {{trigger.time}} ### `trigger.app` - `app`: Android package name, default "" - `state`: one of opened | closed, default "opened" - provides: {{trigger.app}}, {{trigger.state}} ### `trigger.intent` (Pro) - `name`: text, default "my_event" - provides: {{trigger.name}}, {{trigger.value}} ### `trigger.time.once` - `date`: date yyyy-MM-dd, default "" - `time`: time HH:mm, default "09:00" - provides: {{trigger.time}} ### `trigger.run.failed` - `automation`: id of another automation, default "", optional - provides: {{trigger.automation}}, {{trigger.automation_id}}, {{trigger.block}}, {{trigger.reason}} ### `trigger.countdown` - `name`: text, default "timer" - provides: {{trigger.name}} ### `trigger.health` - `issue`: one of any | permission | service, default "any" - provides: {{trigger.issue}}, {{trigger.detail}} ### `trigger.serial` - `device`: text, default "", optional - `baud`: one of 9600 | 19200 | 38400 | 57600 | 115200, default "115200" - `contains`: text, default "", optional - provides: {{trigger.text}}, {{trigger.key}}, {{trigger.value}} ### `trigger.lora` (Pro) - `device`: text, default "", optional - `baud`: one of 2400 | 4800 | 9600 | 19200 | 38400 | 57600 | 115200, default "9600" - `format`: one of taskman | raw, default "taskman" - `password`: text, default "", optional - `contains`: text, default "", optional - provides: {{trigger.text}}, {{trigger.key}}, {{trigger.value}}, {{trigger.from}}, {{trigger.secure}} ### `trigger.supabase` (Pro) - `connection`: slug of a saved supabase connection, default "" - `table`: text, default "" - `schema`: text, default "public" - `event`: one of any | insert | update | delete, default "any" - `filter`: text, default "", optional - `cursor`: text, default "", optional - provides: {{trigger.event}}, {{trigger.record}}, {{trigger.old}}, {{trigger.table}} ### `trigger.firebase` (Pro) - `connection`: slug of a saved firebase connection, default "" - `path`: text, default "", optional - provides: {{trigger.event}}, {{trigger.path}}, {{trigger.data}} ### `trigger.firestore` (Pro) - `connection`: slug of a saved firebase connection, default "" - `collection`: text, default "" - `field`: text, default "updatedAt" - `minutes`: integer 1..1440, default 15 - provides: {{trigger.id}}, {{trigger.document}}, {{trigger.path}} ### `trigger.postgres` (Pro) - `connection`: slug of a saved postgres connection, default "" - `channel`: text, default "" - `cursor`: text, default "", optional - `recovery`: multiline text, default "", optional - provides: {{trigger.channel}}, {{trigger.payload}} ### `trigger.audio.file` (Pro) - `folder`: text, default "Recordings/Call", optional - `contains`: text, default "", optional - provides: {{trigger.file}}, {{trigger.name}}, {{trigger.path}}, {{trigger.size}}, {{trigger.duration}} ### `trigger.sqlite` (Pro) - `database`: text, default "taskman" - `table`: text, default "", optional - `event`: one of any | insert | update | delete, default "any" - provides: {{trigger.database}}, {{trigger.table}}, {{trigger.event}}, {{trigger.count}} ## Conditions ### `condition.daylight` - `state`: one of day | night, default "night" - `latitude`: text, default "40.4168" - `longitude`: text, default "-3.7038" ### `condition.app` - `app`: Android package name, default "" ### `condition.time.between` - `from`: time HH:mm, default "22:00" - `to`: time HH:mm, default "07:00" ### `condition.weekday` - `days`: array of ISO weekdays 1 (Monday) .. 7 (Sunday), default [1,2,3,4,5] ### `condition.battery.level` - `comparison`: one of below | above, default "below" - `level`: integer 0..100, default 20 ### `condition.charging` - `state`: one of charging | not_charging | usb | ac | wireless, default "charging" ### `condition.screen` - `state`: one of on | off | locked | unlocked, default "unlocked" ### `condition.network` - `network`: one of any | wifi | cellular | none, default "wifi" - `ssid`: text, default "", optional ### `condition.headset` - `state`: one of plugged | unplugged, default "plugged" ### `condition.ringer` - `mode`: one of normal | vibrate | silent, default "normal" ### `condition.dnd` - `state`: one of on | off, default "on" ### `condition.bluetooth` - `state`: one of connected | disconnected, default "connected" - `device`: text, default "", optional ### `condition.variable` - `value`: text, default "{{var.name}}", templated - `comparison`: one of equals | not_equals | contains | matches | empty | not_empty | above | below, default "equals" - `expected`: text, default "", templated, optional ### `condition.date.between` - `from`: date yyyy-MM-dd, default "" - `to`: date yyyy-MM-dd, default "" ### `condition.privileged` (Pro) ### `condition.run.count` (Pro) - `period`: one of today | week, default "today" - `comparison`: one of below | above, default "below" - `count`: integer 0..1000, default 1 ### `condition.month` - `months`: array of months 1 (January) .. 12 (December), default [1,2,3,4,5,6,7,8,9,10,11,12] ### `condition.trigger` - `trigger`: id of one of this automation's triggers, optionally followed by :state, default "" ### `condition.device` - `setting`: one of flashlight | wifi | bluetooth | rotation | airplane | dark_mode | battery_saver | location | sync | media, default "flashlight", Pro values: airplane, dark_mode - `state`: one of on | off, default "on" ## Actions ### `action.volume` - `stream`: one of media | ring | notification | alarm | call, default "media" - `operation`: one of set | save_and_set | restore, default "set" - `level`: integer 0..100, default 50 ### `action.ringer` - `mode`: one of normal | vibrate | silent, default "vibrate" ### `action.dnd` - `mode`: one of off | priority | alarms | silence, default "priority" ### `action.vibrate` - `pattern`: one of short | long | double, default "short" ### `action.sound` - `sound`: one of notification | ringtone | alarm, default "notification" ### `action.speak` - `text`: text, default "Hello", templated - `language`: one of device | en | es | pt | fr | de | it | nl | pl | ru | uk | tr | ar | hi | id | ja | ko | zh, default "device" ### `action.media` - `command`: one of play_pause | play | pause | next | previous | stop, default "play_pause" ### `action.flashlight` - `state`: one of on | off | toggle | blink, default "toggle" - `count`: integer 1..20, default 3 ### `action.brightness` - `mode`: one of manual | auto, default "manual" - `level`: integer 0..100, default 40 ### `action.screen.timeout` - `seconds`: one of 15 | 30 | 60 | 120 | 300 | 600 | 1800, default "60" ### `action.rotation` - `state`: one of on | off | toggle, default "toggle" ### `action.notify` - `title`: text, default "Taskman", templated - `text`: text, default "", templated, optional - `button1`: text, default "", templated, optional - `button1_automation`: id of another automation, default "", optional - `button2`: text, default "", templated, optional - `button2_automation`: id of another automation, default "", optional - `importance`: one of normal | high | low, default "normal" - `sound`: "default", "silent" or a content:// sound URI, default "default" - `vibrate`: one of default | on | off, default "default" ### `action.toast` - `text`: text, default "Taskman", templated ### `action.text.show` - `text`: multiline text, default "{{var.answer}}", templated - `title`: text, default "", templated, optional ### `action.ask` (Pro) - `question`: text, default "Continue?", templated - `yes`: text, default "", templated, optional - `no`: text, default "", templated, optional - `timeout`: integer 10..600, default 120 - `on_no`: one of stop | continue, default "stop" - provides: {{trigger.answer}} ### `action.event.send` - `target`: one of taskman | other_app, default "taskman" - `name`: text, default "my_event", templated - `value`: text, default "", templated, optional - `broadcast_action`: text, default "com.example.ACTION", templated - `app`: Android package name, default "", optional - `extras`: multiline text, default "", templated, optional ### `action.screen.keep_on` - `state`: one of on | off, default "on" - `minutes`: integer 0..720, default 30 - `keep_with`: one of overlay | basic, default "overlay" ### `action.screen.wake` ### `action.screen.lock` - `lock_with`: one of admin | shizuku, default "admin", Pro values: shizuku ### `action.battery_saver` (Pro) - `state`: one of on | off, default "on" ### `action.sync` - `state`: one of on | off | toggle, default "toggle" ### `action.wallpaper` - `url`: text, default "https://", templated - `target`: one of both | home | lock, default "both" ### `action.photo` - `camera`: one of back | front, default "back" - `shutter`: one of auto | me, default "auto" - `save_as`: text, default "photo" - provides: {{trigger.photo}} ### `action.image.text` - `source`: text, default "{{trigger.image}}", templated - `read`: one of text | receipt, default "text" - `save_as`: text, default "text" - provides: {{trigger.text}} ### `action.google.form` - `url`: text, default "https://docs.google.com/forms/" - `mode`: one of send | open, default "send" - `decimal`: one of auto | dot | comma, default "auto" - `form`: multiline text, default "", optional - `answers`: multiline text, default "{}", templated, optional ### `action.audio.record` - `operation`: one of start | stop, default "start" - `max_minutes`: integer 1..120, default 10 - `save_as`: text, default "recording" - provides: {{trigger.recording}} ### `action.open.app` - `app`: Android package name, default "" ### `action.open.url` - `url`: text, default "https://", templated ### `action.open.settings` - `screen`: one of wifi | bluetooth | location | display | sound | battery | notifications | app | nfc | hotspot, default "wifi" ### `action.clipboard` - `text`: text, default "", templated ### `action.email` - `to`: text, default "", templated, optional - `subject`: text, default "", templated, optional - `body`: multiline text, default "", templated, optional ### `action.sms.compose` - `number`: text, default "", templated, optional - `text`: multiline text, default "", templated, optional ### `action.alarm` - `time`: time HH:mm, default "07:00" - `label`: text, default "", templated, optional ### `action.timer` - `seconds`: integer seconds 1..86400, default 300 - `label`: text, default "", templated, optional ### `action.web.read` - `url`: text, default "https://", templated - `selector`: multiline text, default "", templated, optional - `extract`: one of text | attribute | html, default "text" - `attribute`: text, default "href", templated - `take`: one of first | all, default "first", Pro values: all - `save_as`: text, default "page" - provides: {{trigger.page}}, {{trigger.page_count}}, {{trigger.page_title}}, {{trigger.page_url}} ### `action.http` - `method`: one of GET | POST | PUT | PATCH | DELETE, default "GET", Pro values: PUT, PATCH, DELETE - `url`: text, default "https://", templated - `headers`: multiline text, default "", templated, optional - `content_type`: one of json | form | text, default "json" - `body`: multiline text, default "", templated, optional - `auth`: one of none | basic | bearer | digest | oauth_client | google, default "none", Pro values: digest, oauth_client, google - `username`: text, default "", templated, optional - `password`: text, default "{{secret.password}}", templated, optional - `token`: text, default "{{secret.token}}", templated, optional - `token_url`: text, default "https://", templated, optional - `client_id`: text, default "", templated, optional - `client_secret`: text, default "{{secret.client_secret}}", templated, optional - `scope`: text, default "", templated, optional - `account`: text, default "{{secret.google_account}}", templated, optional - `offline`: one of fail | queue, default "fail" - `save_as`: text, default "response" - provides: {{trigger.response}}, {{trigger.response_status}} ### `action.email.send` - `connection`: slug of a saved email connection, default "", optional - `provider`: one of gmail | icloud | yahoo | fastmail | other, default "gmail" - `smtp_host`: text, default "", templated, optional - `smtp_port`: integer 1..65535, default 587 - `smtp_security`: one of starttls | ssl, default "starttls" - `from`: text, default "", templated - `password`: text, default "{{secret.email_password}}", templated - `to`: text, default "", templated - `subject`: text, default "Taskman", templated - `body`: multiline text, default "", templated - `attach`: one of none | file, default "none", Pro values: file - `attachment`: text, default "{{var.photo}}", templated, optional ### `action.kindle` (Pro) - `to`: text, default "{{secret.kindle_email}}", templated - `file`: text, default "{{trigger.file}}", templated - `pdf`: one of keep | convert, default "keep" - `via`: one of app | smtp, default "app" - `connection`: slug of a saved email connection, default "", optional - `provider`: one of gmail | icloud | yahoo | fastmail | other, default "gmail" - `smtp_host`: text, default "", templated, optional - `smtp_port`: integer 1..65535, default 587 - `smtp_security`: one of starttls | ssl, default "starttls" - `from`: text, default "", templated - `password`: text, default "{{secret.email_password}}", templated ### `action.telegram.send` - `text`: multiline text, default "", templated - `silent`: boolean, default false - `chat`: text, default "{{secret.telegram_chat}}", templated - `token`: text, default "{{secret.telegram_token}}", templated - provides: {{trigger.message_id}} ### `action.lg.ac` (Pro) - `lg_device`: text, default "" - `lg_country`: text, default "", optional - `lg_power`: one of on | off | keep, default "on" - `lg_mode`: one of keep | cool | heat | dry | fan | auto, default "keep" - `lg_temperature`: text, default "", templated, optional - `lg_fan`: one of keep | low | mid | high | auto, default "keep" - `token`: text, default "{{secret.lg_token}}", templated ### `action.wol` - `mac`: text, default "AA:BB:CC:DD:EE:FF" - `broadcast`: text, default "255.255.255.255" ### `action.ssh` - `host`: text, default "", templated - `port`: integer 1..65535, default 22 - `user`: text, default "", templated - `auth`: one of key | password, default "key" - `key_type`: one of ed25519 | rsa, default "ed25519" - `password`: text, default "{{secret.ssh_password}}", templated, optional - `command`: multiline text, default "uptime", templated - `timeout`: integer 5..600, default 60 - `legacy`: boolean, default false - `save_as`: text, default "output" - provides: {{trigger.output}} ### `action.serial.send` - `device`: text, default "", optional - `baud`: one of 9600 | 19200 | 38400 | 57600 | 115200, default "115200" - `text`: text, default "LED ON", templated - `line_end`: one of lf | crlf | none, default "lf" ### `action.serial.ask` - `device`: text, default "", optional - `baud`: one of 9600 | 19200 | 38400 | 57600 | 115200, default "115200" - `text`: text, default "GET VALUE", templated - `line_end`: one of lf | crlf | none, default "lf" - `reply_contains`: text, default "", optional - `timeout`: integer 1..120, default 5 - `save_as`: text, default "reply" - provides: {{trigger.reply}} ### `action.lora.send` (Pro) - `device`: text, default "", optional - `baud`: one of 2400 | 4800 | 9600 | 19200 | 38400 | 57600 | 115200, default "9600" - `text`: text, default "Hello", templated - `format`: one of taskman | raw, default "taskman" - `password`: text, default "", optional - `ack`: boolean, default true - `retries`: integer 0..5, default 3 ### `action.lora.ping` (Pro) - `device`: text, default "", optional - `baud`: one of 2400 | 4800 | 9600 | 19200 | 38400 | 57600 | 115200, default "9600" - `password`: text, default "", optional - `timeout`: integer 5..120, default 20 - `save_as`: text, default "ping" - provides: {{trigger.ping}} ### `action.csv.append` - `file`: text, default "taskman-log.csv" - `line`: text, default "{{now | date:yyyy-MM-dd HH:mm}};{{trigger.type}}", templated ### `action.wifi` - `state`: one of on | off | toggle, default "on" - `method`: one of panel | direct, default "panel", Pro values: direct ### `action.bluetooth` - `state`: one of on | off | toggle, default "on" - `method`: one of panel | direct, default "panel", Pro values: direct ### `action.mobile.data` (Pro) - `state`: one of on | off, default "on" ### `action.airplane` (Pro) - `state`: one of on | off, default "on" ### `action.dark.mode` (Pro) - `state`: one of on | off | toggle, default "toggle" ### `action.location` (Pro) - `state`: one of on | off, default "on" ### `action.kill.app` (Pro) - `app`: Android package name, default "" ### `action.shell` (Pro) - `command`: multiline text, default "echo hello", templated - `save_as`: text, default "output" - provides: {{trigger.output}} ### `action.automation.set` - `automation`: id of another automation, default "" - `state`: one of on | off | toggle, default "on" ### `action.automation.run` - `automation`: id of another automation, default "" ### `action.wait` - `duration`: integer 1..9999, default 5 - `unit`: one of seconds | minutes | hours | days, default "seconds" ### `action.countdown` - `operation`: one of start | cancel, default "start" - `name`: text, default "timer" - `duration`: integer 1..9999, default 10 - `unit`: one of seconds | minutes | hours | days, default "minutes" ### `action.log` - `text`: text, default "", templated ### `action.variable.set` - `name`: text, default "name" - `value`: text, default "", templated, optional - `keep`: boolean, default false ### `action.extract` - `source`: text, default "{{trigger.text}}", templated - `kind`: one of number | amount | after | between | regex | url | email | line | total | date, default "amount" - `marker`: text, default "", templated, optional - `end_marker`: text, default "", templated, optional - `pattern`: text, default "", optional - `line`: integer 1..50, default 1 - `save_as`: text, default "value" ### `action.stop` ### `action.supabase` (Pro) - `connection`: slug of a saved supabase connection, default "" - `operation`: one of select | insert | update | upsert | delete | rpc, default "select" - `table`: text, default "", templated - `filter`: text, default "", templated, optional - `body`: multiline text, default "", templated, optional - `save_as`: text, default "rows" - provides: {{trigger.rows}}, {{trigger.rows_count}} ### `action.firebase` (Pro) - `connection`: slug of a saved firebase connection, default "" - `operation`: one of get | replace | push | update | delete, default "get" - `path`: text, default "", templated, optional - `body`: multiline text, default "", templated, optional - `save_as`: text, default "data" - provides: {{trigger.data}}, {{trigger.data_key}} ### `action.firestore` (Pro) - `connection`: slug of a saved firebase connection, default "" - `operation`: one of get | list | query | create | replace | update | delete, default "get" - `path`: text, default "", templated - `where`: text, default "", templated, optional - `limit`: integer 1..500, default 50 - `body`: multiline text, default "", templated, optional - `save_as`: text, default "data" - provides: {{trigger.data}}, {{trigger.data_count}} ### `action.postgres` (Pro) - `connection`: slug of a saved postgres connection, default "" - `sql`: multiline text, default "" - `params`: multiline text, default "", templated, optional - `save_as`: text, default "rows" - provides: {{trigger.rows}}, {{trigger.rows_count}} ### `action.sqlite` (Pro) - `database`: text, default "taskman" - `sql`: multiline text, default "" - `params`: multiline text, default "", templated, optional - `save_as`: text, default "rows" - provides: {{trigger.rows}}, {{trigger.rows_count}} ### `action.turso` (Pro) - `connection`: slug of a saved turso connection, default "" - `sql`: multiline text, default "" - `params`: multiline text, default "", templated, optional - `save_as`: text, default "rows" - provides: {{trigger.rows}}, {{trigger.rows_count}} ### `action.ai` (Pro) - `connection`: slug of a saved ai connection, default "" - `prompt`: multiline text, default "", templated - `image`: text, default "", templated, optional - `system`: multiline text, default "", templated, optional - `max_tokens`: integer 16..32000, default 1024 - `remember`: boolean, default false - `memory_turns`: integer 1..20, default 4 - `save_as`: text, default "answer" - provides: {{trigger.answer}} ### `action.ai.local` (Pro) - `model`: one of qwen3_0_6b | qwen3_1_7b | gemma4_e2b | imported, default "qwen3_0_6b" - `prompt`: multiline text, default "", templated - `image`: text, default "", templated, optional - `system`: multiline text, default "", templated, optional - `max_tokens`: integer 16..2048, default 256 - `think`: boolean, default false - `remember`: boolean, default false - `memory_turns`: integer 1..20, default 3 - `save_as`: text, default "answer" - provides: {{trigger.answer}} ### `action.file.copy` (Pro) - `file`: text, default "{{trigger.file}}", templated - `name`: text, default "{{trigger.name}}", templated, optional - provides: {{trigger.saved_file}} ## Template functions - `upper` e.g. `{{trigger.text | upper}}` - `lower` e.g. `{{trigger.text | lower}}` - `trim` e.g. `{{var.name | trim}}` - `length` e.g. `{{trigger.text | length}}` - `digits` e.g. `{{trigger.text | digits}}` - `substring:start[:end]` e.g. `{{trigger.text | substring:0:8}}` - `replace:from:to` e.g. `{{trigger.text | replace:-:}}` - `regex:pattern[:group]` e.g. `{{trigger.text | regex:'^LOC-(\d+)'}}` - `split:separator:index` e.g. `{{trigger.text | split:;:1}}` - `removeprefix:text` e.g. `{{trigger.text | removeprefix:SKU-}}` - `removesuffix:text` e.g. `{{trigger.text | removesuffix:-A}}` - `padstart:length[:char]` e.g. `{{trigger.text | padstart:13:0}}` - `padend:length[:char]` e.g. `{{trigger.text | padend:20: }}` - `default:text` e.g. `{{var.name | default:unknown}}` - `date:pattern` e.g. `{{now | date:yyyy-MM-dd HH:mm}}` - `urlencode` e.g. `{{trigger.text | urlencode}}` - `base64` e.g. `{{secret.user_pass | base64}}` - `base64decode` e.g. `{{var.data | base64decode}}` - `json` e.g. `"note": "{{var.note | json}}"` - `csv` e.g. `{{trigger.text | csv}}` - `sha256` e.g. `{{trigger.text | sha256}}` - `md5` e.g. `{{trigger.text | md5}}` - `gs1:ai` e.g. `{{trigger.text | gs1:01}}` - `add:number` e.g. `{{var.count | add:1}}` - `sub:number` e.g. `{{var.count | sub:1}}` - `mul:number` e.g. `{{var.price | mul:1.21}}` - `div:number` e.g. `{{var.total | div:3}}` - `round[:decimals]` e.g. `{{var.price | round:2}}` - `random:min:max` e.g. `{{now | random:1:6}}` - `number` e.g. `{{trigger.text | number}}` - `amount` e.g. `{{trigger.text | amount}}` - `after:text` e.g. `{{trigger.text | after:'Balance:'}}` - `between:start:end` e.g. `{{trigger.text | between:'from ':' at'}}` - `url` e.g. `{{trigger.text | url}}` - `email` e.g. `{{trigger.text | email}}`