Task automation

From siddsachar/row-bot · View interactive version

Task automation is an AI agent skill from the GitHub repository siddsachar/row-bot. Design effective automated workflows using scheduled tasks, clear messages, and delivery channels.

How to use this skill

Skill file

When the user wants to set up automations, create recurring workflows, schedule something, or set a reminder, apply these principles:

How Workflows Work

A workflow is a chat that runs on its own. Each run sends its message to the workflow's own conversation, in the background, as a chat turn: it has every tool a chat has, finds apps and tools the same way, and asks before actions at the workflow's approval level, on the same cards. Every run is a new turn in that same conversation, so a run can see what earlier runs found.

Each workflow also keeps short notes between runs. A run's first message starts with them, and the run keeps them current with task_update(task_id=..., notes=...) before it ends: what it checked and when, ids it will need again, what's left. So a run doesn't check again what an earlier one already did.

There are three kinds:

Writing The Message

  1. Keep it short and positive — A good brief says, in a few sentences, what to make, for whom, in what voice, and where the results go. Say what to do; a list of what not to do makes results timid and long.

"Each weekday, write one post for @rowbot_ai about something Row-Bot does well, for people who run AI on their own computer. Friendly and concrete, in the voice of the account's best posts. Attach a real screenshot when it shows the point. Post it."

  1. Let Row-Bot enforce the rules — The approval level, the card each post or email asks on, the account a post names, X's length limit and never sending the same thing twice are all enforced by the app. Don't repeat them in the brief ("ask me before posting", "don't post twice", "keep it under 280 characters").
  1. Say the branches in words — There are no condition steps: write what to do in each case.

"Check my calendar for tomorrow. If there are no events, just say 'Clear schedule tomorrow.' Otherwise list them with times and highlight any conflicts."

  1. Say what to do when there is nothing to do — "If nothing is new since the last run, say so in one line and stop."
  1. Use template variables — {{date}}, {{day}}, {{time}}, {{month}}, {{year}} make messages context-aware at runtime. "Summarise news for {{date}}" produces different results each day.
  1. Add a second message only when it helps — for example "Draft a short email to my team from the summary above" after a research message. Most workflows need one.

When to Use One Workflow vs. Several

  1. One workflow when the work belongs together — research that searches, reads sources and writes a brief is one message.
  2. Separate workflows when the pieces are independent — a morning weather check and an inbox summary don't need each other. Separate workflows can be turned on and off, scheduled and delivered on their own.

Handing Work On

Scheduling

  1. Match the schedule to the rhythm:

Delivery & Notification

  1. Pick the right channel — Telegram for mobile-friendly results the user needs on the go, email for reports others need to see, desktop notification (notify_only) for simple nudges.
  2. Ask before defaulting — Don't assume a delivery channel. Ask how the user wants to receive results. Some automations are better read on demand in the app.
  3. Each delivery says what happened first — "Sent · …" with what went out, or "Finished · nothing was posted or sent", then the reply. The person chooses in Workflow settings › Send results whether results go after every run, only when a run needs them, or in a daily digest at 6 PM; suggest the digest for frequent runs.

Approval Levels

Every workflow has an approval level (approval_mode), as a chat does:

A run's outcome comes from what its tools did, so a post or email that went out is recorded with its link. A run that fails on a passing problem tries again by itself, but never after something has gone out.

Other Settings

  1. Model override — Use the model parameter to run a workflow on a different model (e.g. a heavier model for complex research, a lighter one for quick checks).
  2. Agent profile — agent_profile picks the profile whose instructions and capability the runs use. Profiles list no tools.

Maintenance

  1. Check first — Before creating a new workflow, check task_list to avoid duplicates or overlapping schedules.
  2. Test immediately — Always suggest task_run_now after creation so the user can check the result before the first scheduled run.
  3. Iterate the message — If the output isn't right, update the messages with task_update rather than deleting and recreating.

Monitoring / Polling

When the user wants to monitor a condition and be told when it changes ("check X and tell me when Y", "alert me if Z drops below W"), use the interval + self-disable pattern:

  1. Use an interval schedule — interval_minutes:M for frequent checks (stock availability, price drops) or interval:H for slower checks.
  1. Write a conditional message — It should:

The runs share one conversation, so each check can compare with the last one ("tell me when there's a new version" needs to know the old version).

  1. Template: polling message pattern —

```

Search for [condition]. If [success criteria], report your findings

and call task_update(task_id='{{task_id}}', enabled=false) to stop

this monitor. If [condition not met], say '[thing] not yet

available as of {{time}} — will check again.'

```

  1. Self-disable, don't self-delete — Background runs cannot delete their own workflow (safety restriction). Use task_update(enabled=false) instead. The user can re-enable, delete, or leave the disabled workflow.
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.