Automation · 2026
Operations portal automation for a Saudi contractor
Bots around a trip-management portal: management approves by email and the trip is unlocked and answered within minutes, fuel statements become trip expenses in one upload, and coordinator changes run across every client account at once.
- Client
- Zeeta Contracting, Saudi Arabia
Zeeta Contracting
- Role
- Design, build, operation and support
- Stack
- Python · Microsoft Graph · Playwright · Flask · SQLite · Odoo XML-RPC · Railway · openpyxl · WhatsApp notifications
Updated 22 Nov 2026

The problem
Trips, expenses and client accounts live in a web portal with no API. Every correction to a locked trip needed a manager's approval by email, and then someone opened the portal and unlocked each trip ID by hand, often dozens per request, sometimes listed in a spreadsheet attachment. The daily fuel statement was entered as expenses one vehicle at a time, coordinator changes meant editing client accounts one by one, and the portal's two-factor login kept expiring in the middle of work.
What I built
A set of small bots and one dashboard, each doing one job. The email bot reads the request threads through Microsoft Graph, waits for an approver's own reply that plainly says "approved", unlocks the trips and answers "Done" on the same thread. A reply that only quotes an approval, asks a question or says "will be approved" unlocks nothing. Trip IDs are read from the email body or an attached sheet, and IDs that do not exist are reported back instead of failing the whole batch. Status changes go through a real browser, because the portal's form fills required fields with JavaScript. The fuel bot matches each plate on the fuel statement to its trip on the same day, the day before or the day after, and posts the expenses after review. A coordinator centre changes assignments across all client accounts in one job. Sessions renew themselves with the portal's authenticator code.
- Trip unlock bot: approval threads read every 2 minutes, explicit-approval rule, reply "Done" on the same thread
- Trip IDs from the email body or an attached Excel, CSV or text file; missing IDs reported, valid ones still unlocked
- Trip status changes per trip, unlocking first, through a real browser session
- Approval dashboard: pending requests, Allow or Dismiss, restore a dismissed request, manual unlock box
- Fuel expense bot: fuel statement upload, plate-to-trip matching, review sheets, one-click posting
- Coordinator centre: all client accounts in one grid, bulk changes with preview and verification
- Automatic portal re-login with the authenticator setup key, kept alive by a 5-minute check
- WhatsApp alert when an approval arrives that the bot could not act on
- Operations dashboard: purchase documents checked against the portal before validation, with recommend-validate, recommend-reject and portal-mismatch queues
- Email centre: work emails sorted from reports and newsletters, one click to turn an email into an Odoo task with a deadline
- Microsoft 365 and VoIP set up for the company
Outcome
An approval email is now the whole process. From 2 July to 21 November 2026 the bots handled 142 requests and 1,461 trip unlocks across 1,157 trips, 919 of them straight from email with nobody opening the portal. A coordinator change that used to be account-by-account ran across all 738 client accounts in one job.
Screens
Click any screen to enlarge it. Arrow keys move between them.
Validation queue: each purchase document reconciled and checked against the portal, with a recommendation (client data blurred) Odoo tasks by urgency, including tasks created straight from email Email centre: work emails separated from reports and newsletters, one click to an Odoo task (contents blurred) Settings kept in the app: deadlines, weekend days, thread checks every 2 minutes, time zone
Want this for your company?
The engagement is described on the Business process automation service page: who it is for, what you get, how it runs, and the questions I get asked.
Notes from this build
Have a process like this?
Send me the thing your team does by hand every week. I will tell you honestly whether it is worth automating, even when the answer is no.

← Personal brand website and SEO: muhammadmohtashimhusnain.comAll 20 case studies