Workflow automation
Automating repeated tasks with scripts, integrations and appropriate checks.
Automation turns repeated personal and team tasks into reliable workflows using scripts, integrations or AI where appropriate. Start with a clear process and handle partial failures explicitly. Keep a human check where errors are costly.
Why it matters for a product engineer
Every team repeats tasks by hand: reports, data fixes, releases, onboarding steps. Automating them saves time and removes mistakes, but only if the automation is reliable. A script that fails silently is worse than no script, because people stop checking. With AI, more of these tasks can be automated, including ones that need judgement. The engineering is the same: a clear process, explicit handling of failures, and a person in the loop where an error costs a lot.
How to do it
- Do the task by hand a few times and write the steps down before you automate them.
- Automate the steps that are clear and repeated; keep judgement steps for a person or a reviewed AI step.
- Make every run report success, not only failure, so silence is a warning.
- Handle partial failures: retry safe steps, stop and alert on the others.
- Test the result, not the run: restore the backup, open the report, check the record.
Common mistakes
- Alerts that only fire on failure, sent to a channel nobody reads.
- Automation that depends on a version or setting that can change without notice.
- No owner, so a broken job runs for months.
- Using an agent where a simple script would do the job reliably.
Example
On 31 January 2017, an engineer at GitLab deleted the production database by mistake, thinking it was a replica. The team then found that the daily backups were missing. The job used pg_dump 9.2 against a PostgreSQL 9.6 database, so it failed every time. The failure emails were rejected because of an email security setting, so nobody knew. GitLab restored from a copy made for staging six hours earlier, and lost data for about 5,000 projects.
How GitLab's daily backup failed without anyone knowing
The automation ran every day and produced nothing. An alert that only fires on failure cannot warn you when the alert itself fails.
ReportedGitLab postmortem, 10 February 2017
Sources: Postmortem of database outage of January 31 (GitLab) ↗ · Building effective AI agents (Anthropic) ↗
Resources
2- articleStart here
Building effective AI agents ↗
Anthropic · 2024 · 12 minWhen a simple workflow beats an agent, and the handful of patterns that cover most real systems.
- docsStart here
What is the Model Context Protocol? ↗
Model Context Protocol docs · 9 minThe open standard for connecting AI applications to tools and data, from its official docs.
Tools
2- ToolFree
- ToolFreemium