Skip to content
← Semir Hamid

It was a Bubble app.A person still approves the spend.

AdTeam runs ad campaigns with a chain of AI agents. I led the rebuild that replaced the Bubble app. The approval step, before any money goes out, stayed.

Product
AdTeam.ai
Category
AI marketing SaaS
Role
Software Engineer
Focus
Platform rebuild · AI agents · performance

The agent chain

Each agent hands its output to the next. Before any money goes out, a person decides.

  1. 1 · AGENT

    Research

    The product, its competitors, and their top-performing ads

  2. 2 · AGENT

    Strategy

    Positioning and budget

  3. 3 · AGENT

    Copywriting

    Headlines and variants

  4. 4 · AGENT

    Design

    The ad itself, video included

  5. 5 · PERSON

    Approve the spend

    Nothing goes live without this

  6. 6 · AGENT

    Launch

    The campaign goes live

  7. 7 · AGENT

    Analysis

    Cost and results

  8. 8 · AGENT

    Update

    The campaign changes from what it learned

Results feed back into the strategy, and the loop runs again.

Simplified. Provider and internal names are left out.

Bubble, then a codebase we can change

When I joined, the product was Bubble. People clicked through a lot of it by hand, bugs came back, and it was slow. I led the engineering that replaced it: the screens, the workflows, a lot of the database shape, and automation where someone had been clicking. I set up the cloud functions, the deploys and CI, and the auth and permissions. New features kept landing the whole time. That was the annoying part.

  • Core functionality, interfaces and workflows rebuilt
  • Architecture, database structures and service integrations designed and evolved
  • Cloud infrastructure, serverless functions and CI/CD set up
  • Security, authentication and access permissions developed and reviewed

Keeping the work pointed the same way

I don't only pick up tickets. I coordinate the engineering, I get a say in how the app is shaped, and I review auth and data access before they get clever. Production bugs get looked at properly. I also built an internal tool that reviews our code in rounds, using what past reviews flagged, so the same mistakes stop coming back. What a customer complains about decides a lot of what we do next, which is the right order for this product.

  • Development coordinated across different parts of the product
  • Internal code-review tool that learns from past review feedback
  • Architecture, component design and implementation standards
  • Production issues investigated; reliability and usability prioritised

Agents that run campaigns, a person who approves

A campaign is a loop. Research the product and its competitors. Find the ads that perform best in that space. Generate an ad based on what works, including video. Launch it, then watch how it does on cost and everything else, and update the campaign from that. I built and wired up the agents for those stages, and the automation that passes work between them and the rest of the app. Before a campaign or its budget goes live, a person approves it. I also worked on scraping product info in, and I keep changing the automation when it breaks or when a customer hits a case we didn't plan for.

  • Agents for product and competitor research, and studying top-performing ads
  • Ad and video generation based on what's performing
  • Campaign tracking on cost and results, and updates from that data
  • Automation coordinating agents and application services
  • Human review and approval before campaigns or spend go live
  • AI-assisted product discovery, scraping and content extraction

The product around the agents

The rebuild wasn't a pause. In the same stretch I worked on pulling products in from Google Drive, Dropbox, Shopify and other sites, on payments and subscriptions, on branding, on teams and workspace permissions, and on the scheduled jobs underneath.

  • Product imports from Google Drive, Dropbox, Shopify and external sites
  • Payments, subscriptions and billing
  • Branding, collaboration, workspace roles and permissions
  • Scheduled jobs and asynchronous background processing

The listing page took 15 seconds

I lead the performance work. Profiling, benchmarks, and whatever a customer says is slow. The listing page went from about 15 seconds to about 1 second in later benchmarks. Fewer API calls, pagination, better queries, cache the data everyone hits, and don't load the expensive model calls up front. k6 told us whether a change was real.

  • API request patterns and data retrieval redesigned
  • Pagination, caching and fewer network requests
  • Better database structures and queries
  • AI features loaded more efficiently; changes load tested

The Bubble app is gone. Agents research the market, study the best-performing ads, generate the ad and the video, run the campaign and keep tuning it on cost and results, and a person still approves it before money goes out. I led a lot of that engineering, and features kept shipping while the old thing was being replaced. The number I'll point at is the listing page: about 15 seconds, then about 1.

Technologies

Next.js, React, TypeScript, Xano, PostgreSQL, Redis, Serverless functions, Vercel, CI/CD, OAuth, k6