Most articles about AI automation list fifty tools and promise ten hours a week back. This one is shorter. It covers four automations we built and run for real IT operations, what each one replaced, and what went wrong along the way.
If you run a small business or a small IT team, the useful question is not “what can AI do?” It is “which of our repeated jobs follows rules clear enough that a script can do it safely?”
The thing most people get wrong
The hard part of automation is not the code. It is the rules.
Code is cheaper than ever. An AI coding assistant can produce a working script in minutes. What it cannot do is decide who is allowed to approve a change, what happens when a request is malformed, or how you will know when the automation quietly stops working.
Every automation below works because the rules were agreed first. Where we skipped that step, it broke.
1. DNS changes approved by email, applied automatically
Before: Someone needed an A, TXT or CNAME record. They emailed a request. There were follow-ups, then an approval, then a person logged in to the DNS provider and typed the change by hand. Slow, and one typo away from taking a service offline.
What we built: A small Python (Flask) API connected to the DNS provider, triggered by a Power Automate approval flow.
- The requester sends an email in a fixed template.
- Power Automate sends it to the mandatory approvers.
- Only the exact keyword APPROVED, from a listed approver, triggers the change.
- The API validates the request, checks the approval and creates the record.
- Anything that does not match the template is rejected automatically.
What to watch for: Loose approvals. A reply like “approved, but change the TTL” must not trigger execution with the original values. That is why only the exact keyword counts, and anything else goes back to a person.
2. A self-hosted monitoring tool, built in a few hours
Before: A client environment with Windows servers, Linux machines, Hyper-V hosts and SQL Server. The choices were an expensive per-server monitoring product or a Grafana and Prometheus stack that was heavier than the job needed.
What we built: A central FastAPI server with SQLite, a cross-platform agent for Windows and Linux, a live dashboard per machine, service checks (nginx, MSSQL and others), and alerts to email and Slack. Deployed with Docker, with one-line agent installs.
This is where AI genuinely changed the economics. We described the tool in plain English, and Claude generated the initial backend, agent and dashboard. Then we iterated: bugs, layout, Docker deployment problems, Windows and Linux differences. Total build time was a few hours with very little hand-written code.
What to watch for: Noisy alerts. A disk briefly crossing a threshold during a backup should not page anyone, and alerts that fire too often get ignored. Tune thresholds so a condition has to persist before an alert goes out.
You can read more in the monitoring case study.
3. Paced, authenticated email campaigns
Before: A client planned to email 250 contacts from a domain that had moved to Microsoft 365. Nobody had checked whether the domain’s SPF record allowed Microsoft 365 to send. It didn’t, and a DMARC quarantine policy would have sent every message silently to junk.
What we built: A sending system that checks authentication before anything goes out, de-duplicates and validates the list, adds the legally required footer, personalises each message and paces sends to protect the domain’s reputation. Every send and result is logged.
What went wrong: The list was marked “verified” but contained duplicates, addresses assigned to two different people and records missing required details. Automation does not fix bad data. It sends bad data faster. List checks are now the first step, not an afterthought. The full story is in the email deliverability case study.
4. Scheduled clean-up and maintenance scripts
Before: Remote Desktop servers in the cloud slowly filled their disks with old user profiles and temporary files, and someone had to clean them up by hand.
What we built: PowerShell scripts on a weekly schedule that remove stale profiles and temporary data on Remote Desktop servers running in the cloud, with a log of what was removed and a safety list of accounts never to touch.
What to watch for: How “stale” is defined. A profile folder’s date is not a reliable sign of the last logon, and a script that trusts it can remove the profile of someone who signed in yesterday. Base it on actual last-logon information, and run in report-only mode before letting it delete anything.
Where AI helps, and where it doesn’t
It helps with:
- Writing the first version of a script, API or small internal tool
- Explaining an unfamiliar API or error message
- Turning a messy process description into clear steps
- Drafting personalised text at volume, with a human reviewing samples
It does not replace:
- Deciding the rules: who approves, what is allowed, what happens on failure
- Testing against real data before production
- Monitoring that the automation is still running next month
What to do if you want to start
- Pick one task. The one that wastes the most time or causes the most errors.
- Write the rules down first. Inputs, approvers, limits, what happens when it fails.
- Run in report-only mode before letting it change anything.
- Log everything so you can prove what it did.
- Have a manual fallback for when it breaks, because one day it will.
If you have a repeated job you would like off your team’s plate, our AI and workflow automation service starts with exactly this conversation.
Questions
Quick answers
What is a good first task to automate?
A job that is repeated, rule-based and currently done by copying information from one place to another, such as approvals, routine changes or a weekly report. Start with whichever one costs your team the most time or causes the most mistakes.
Do I need to buy new software?
Often not. Power Automate is included with many Microsoft 365 plans, and n8n, Python and PowerShell are free. The cost is mostly the time to design the rules and test them properly.
Can AI write the automation for me?
It can write a lot of it, and fast. We built a working monitoring tool in a few hours with Claude as a coding partner. But an engineer still has to define the rules, review the code and test it against real data before it touches production.