Skip to content
All case studies
AI & AutomationProduct DevelopmentInternal Tools

MAHDD – An AI Marketing Agent That Does the Work and Asks Before It Acts

Host Dada (my own company) needed a steady flow of marketing without a marketing team, and an AI left to run on its own can spend money, publish or overreach. MAHDD is the autonomous agent I built to do that work: it researches, writes, records, voices and edits video assets and plans campaigns on a schedule, while every risky step — spend, licensing, publishing, pricing or anything needing more access — stops for my approval, with hard spend caps and every claim checked. It now runs the Host Dada YouTube channel.

Jump to a section
MAHDD – An AI Marketing Agent That Does the Work and Asks Before It Acts

Built with

  • Claude API
  • Python
  • Node.js
  • Playwright
  • ElevenLabs
  • HeyGen
  • FFmpeg
  • SQLite
  • MySQL
  • PHP
  • systemd
  • Linux

At a glance

Client

Host Dada (my own company), a UK hosting business selling web hosting, email and Host Dada's WPBuild, an AI WordPress website builder.

The challenge

a small business needs a steady flow of marketing — research, scripts, videos, briefs, campaign plans — without a marketing team to make it.

What I built

MAHDD, the Marketing & Awareness Host Dada Droid: an autonomous AI agent that researches, writes and produces video assets on a schedule, and stops for my approval before every risky step.

My role

the idea, the agent design, the guardrails, the tooling, the review app and the server it runs on.


The brief: a marketing department I couldn't hire

Too much to make, too few hands

Host Dada has a product that is easiest to understand by watching it work: you give WPBuild a brief and it builds a WordPress site you approve. Selling that well means tutorials, short adverts, example briefs, landing-page copy, competitor research and pricing thinking, every week. That is a marketing team's job, and a small business doesn't have one.

Autonomy is only useful if it is safe

An AI that writes a few paragraphs on request doesn't solve that. The work needs something that keeps going on its own: picks up the next task, does it properly, writes down what it did and moves on. But an agent left to run unattended can spend money, say things that aren't true, publish under your name or reach parts of your systems it shouldn't. The same independence that makes it useful is what makes it a risk.


From "make me some videos" to an agent I can trust with the work

The goal wasn't an AI that could do everything. It was an AI that does the real work and knows exactly where it has to stop and ask.

So I designed MAHDD around two lists. The first is everything it can do on its own: research, planning, writing, screen recordings, edits, reports. The second is everything that needs me: anything that costs money, goes public, touches prices or needs more access than it has. The second list is not a set of polite instructions in a prompt. It is enforced by the code and the server around the agent.


How a campaign moves

ResearchBriefScriptMy approvalVoice and presenterEdit and checksReview libraryI publish

MAHDD works from a written plan: a roadmap and a backlog of tasks, each with its phase, what it depends on and which approval gate, if any, it sits behind. A work session takes the next task that is ready, splits it if it is too big, does it, writes it up in that day's journal and marks it done or waiting.

Where it has to stop

Every task carries a gate. When MAHDD reaches one, it parks the task as waiting for approval and emails me exactly what it wants to do and what it will cost. The gates are:

  • Script: no voiceover or presenter video is generated until I've approved the words.

  • Stock licence: no paid stock is licensed without my say-so.

  • Public: nothing is published, posted or emailed to customers or prospects.

  • Price: MAHDD advises on pricing; it never changes a price or a product.

  • Spend: anything over budget waits for me.

  • Root or another server: anything needing more access than MAHDD has becomes a request, never an action.

I answer by replying to the email with APPROVE, CHANGE plus a note, or REJECT, or by approving a finished file in the review library. The approval is applied to the backlog by plain code, not by the AI reading my email and deciding what I meant, and a late or repeated approval can never move a task backwards.


What MAHDD does

Market and competitor research

For the business: dated, sourced comparisons of AI website builders, UK hosts and email providers, with where Host Dada wins and loses, plus pricing advice I can act on or ignore.

Under the hood: public pages only. It never logs in anywhere, never disguises itself and never works around bot protection; a page that blocks it is noted as "not fetched". Every fact is stored with its source and the date it was checked, and anything older than 30 days is re-checked before it can go into an advert.

Example briefs for demo businesses

For the business: realistic website briefs written in a small-business owner's voice for clearly fictional companies, which do two jobs: the input for a real WPBuild demo build, and a downloadable example showing customers what a good brief looks like.

Under the hood: each brief comes out as readable text, a structured file WPBuild can import and a branded PDF. Demo companies are fictional by rule, checked for real namesakes and labelled as example businesses wherever a viewer could mistake them for real ones.

Screen recordings, voiceover and presenters

For the business: the raw material of a tutorial or advert — the real app being used, a consistent British voice and an on-screen presenter — made to a repeatable recipe rather than by hand.

Under the hood:

  • Playwright drives the real WPBuild app from a recipe, at a human typing pace, on demo accounts only, blurring email addresses, IP addresses and tokens. Long AI waits are cut to a "a few minutes later" card, never presented as instant.

  • ElevenLabs produces the voiceover from the approved script, with word-level timings for captions, a pronunciation dictionary for the brand name and loudness normalised for each platform.

  • HeyGen produces presenter clips driven by that same approved voice track, using licensed stock presenters only. Never a real person's likeness.

  • Free stock comes from Pixabay; anything premium is put to me as a shortlist to license myself.

Editing and quality checks

For the business: finished videos in widescreen, vertical and square formats, with thumbnails and captions, ready for YouTube and social platforms.

Under the hood: FFmpeg assembles each video from an edit list: recordings, voiceover, presenter, brand cards, captions and music ducked under the voice. Before anything reaches me it is checked for duration, loudness, black frames, a hook in the first three seconds, an end card, caption timing and sensitive data on screen, and every piece of on-screen text is re-checked against the claims rules.

A private review library

For the business: one logged-in place where I preview every finished asset, approve it and download it. I upload to YouTube and social platforms myself; MAHDD never uploads to any platform.

Under the hood: a deliberately small, plain PHP 8.3 app with no framework. Sign-in has failed-login lockout that backs off exponentially, every form is protected against cross-site requests, nothing is indexed by search engines, and media is streamed only to a signed-in user and only if the campaign's manifest lists it. Approving an asset writes a record that maps straight back to the task it closes.


Hard limits, not good intentions

Telling an AI to be careful is not a control. These are.

Spend is capped and recorded

Every paid provider has a daily and a monthly cap, in that provider's own units: characters of voiceover, seconds of presenter video, stock licences. The tools check the ledger before every paid call and record the actual use afterwards. If a cap would be passed, the tool refuses, and the rule is to park the task and report it, never to switch to a different paid provider. The stock-licensing tool also refuses to run at all unless it is explicitly told the purchase was approved.

Every claim is checked

MAHDD keeps a claims file: what it may and may not say about Host Dada. Banned wording such as "unlimited" or "guarantee", features that aren't live, supplier names, and claims about what the AI does that aren't true. Every script, caption and advert is checked against it before I see it. Prices come only from a product list regenerated from the billing system on the day, always with the billing period.

The claims are mine to decide. When an earlier AI-written notes file had banned some wording that was in fact true, the fix was my sign-off in the claims file, not the agent changing its own rules.

Least privilege, enforced by the server

MAHDD runs as its own unprivileged system user. Its installed code is owned by root, so it can't rewrite itself. Its access to the billing database is read-only and limited to product, price and help-article tables, with no customer data. Its session settings deny sudo, SSH, systemctl, raw web downloads, pushing code and reading its own secrets file.

Secrets never leave

API keys live in a file the tools read for themselves; the AI session is only given its own sign-in, so it never sees the keys. Every outgoing email passes a guard that blocks the message outright if it contains a private key, any configured secret, something shaped like an API key or a password assignment, and scrubs IP addresses and unknown email addresses. Outgoing mail also has a daily limit, and a dry-run mode writes messages to a folder instead of sending them.

Only verified mail from me counts

An email that claims to be from me is ignored unless the mail server's own authentication results show it really came from my domain. Having my address in the From line is not enough, and a spoof is logged as a possible spoof.


Agents that talk in threads I can read

MAHDD isn't the only agent in the business. Each server has a read-only monitoring agent, a Sentinel, and a coordinating agent called BOSS routes work between them. I designed a shared email protocol, HD-AGENT, so they can work together without me building a private back channel I can't see.

Plain email

every message is a normal email with a short human summary first and a small structured block underneath, so I can read any thread in my inbox.

Typed messages

question, request, privileged request, reply, report and result, each with clear rules on who may act on it.

Data, never instructions

a message from another agent is information. No agent runs a command, changes a file or spends money because another agent asked it to.

No loops

agents never auto-answer replies, reports or results, and every message in or out is logged.

A practical example: before filming the WPBuild app, MAHDD can ask that server's Sentinel whether the app is healthy for a recording. It gets an answer, not a lever.

When something needs root

MAHDDBOSSServer SentinelI approve on the serverResult

If MAHDD's work needs a privileged change, it sends a request rather than attempting it. BOSS triages it and passes it to the Sentinel on the right server, which drafts the exact script, the reasons, the risks and the rollback, then emails me. Nothing runs until I approve it by logging into that server myself. Email can never approve privileged work, and no agent holds a sudo password.

When I tell BOSS something for MAHDD, such as which campaign to do first, BOSS relays my words. MAHDD can treat that as direction on priorities and schedule, but never as approval for a gated step: those still need my own reply or a click in the review library.


How it runs day to day

Every 15 minutes

the inbox is checked by plain code, with no AI involved. My approvals are applied and everything else is queued for the next session.

Twice a day

a scheduled work session takes the next ready tasks, inside a fixed time budget, with a lock so two sessions can never overlap.

Every evening

a daily report email — done today, waiting for my approval, waiting on another agent, next up, and spend against every cap. BOSS keeps a copy so I can ask it what MAHDD is doing.

Every Monday

the product facts are refreshed, the market is re-scanned and next week's priorities are proposed in the journal.


What was delivered

  • An agent that works without being prompted: it keeps a plan, works through it on a schedule and reports every day.

  • A full production line: research, briefs, screen recordings, voice, presenters, editing and quality checks in one repeatable pipeline.

  • Human control at every risky step: money, publishing, pricing and privileged changes all wait for me, enforced by code rather than by the AI's good behaviour.

  • Spend I can see: hard daily and monthly caps per provider, with every paid call recorded.

  • Honest marketing by default: every claim checked against a rules file I own; prices only from the live product list.

  • A team of agents I can audit: marketing and server agents coordinating in email threads I can read, with privileged work approved only by me on the server.


Results

MAHDD runs the Host Dada YouTube channel. In its first ten days live (13 to 22 November 2026) it published 13 videos, with publishing held for my approval:

Promos

the official Host Dada promo and "Everything for your website, from one UK team".

WPBuild walkthroughs

eight how-to videos covering the whole journey, from building a WordPress site from a brief to changing it by asking, signing it off, sending changes live and putting it on a domain.

Customer guides

logging in to the control panel with single sign-on, creating a professional email account and reading email in webmail.

Not just marketing

Most businesses won't need a marketing droid. Many could use an AI that does real, repetitive work on its own, as long as they stay in charge of what matters. The patterns in MAHDD carry over directly:

  • Approval gates: let an agent prepare the work and stop before anything is sent, spent, published or changed.

  • Budget caps and ledgers: put a hard ceiling on any AI or API spend, with a record of every call.

  • Rules the AI can't rewrite: claims, compliance wording or pricing kept in files a person owns and the agent checks against.

  • Least-privilege automation: run agents with only the access the job needs, so a mistake stays small.

  • Review portals: one private place where people preview, approve and download what automation has produced.

  • Agent-to-agent workflows: several specialised agents coordinating in a way people can read and audit.

If there's work in your business that an AI could do — with you approving the parts that matter — I can help you design it with the limits built in from day one.

Talk to me about AI that does real work


Technical stack

Claude running headless on a schedule as the agent, Python for the agent's command-line core (backlog, spend ledger, inbox, outbound guard, mail and agent protocol) with SQLite state, Node.js and Playwright for screen recording and brand cards, ElevenLabs for voiceover and timed captions, HeyGen for presenter clips, Pixabay for free stock, FFmpeg for editing and loudness, a read-only MySQL connection to the billing system for product facts, a plain PHP 8.3 review library, and systemd timers on Linux.

AI AgentsAutomationHuman in the LoopMarketingAI SafetyVideo Production

Discuss a project

Tell me what you're trying to achieve.

A short description is enough. I'll come back with questions, an honest view on the best approach and, if it's a fit, a proposal.

  • A direct conversation with me, not a sales team
  • Clear recommendations before any commitment
  • Or call 07853 089988

Read and answered by me personally, usually within one working day.