Duck
Tutorials5 min read

AI Agent Companies: How to Build a Lead‑Gen Agent Without Overpaying

Samet Turan— Editor··5 min read

Learn to build an AI agent for lead generation using Make.com, GPT‑4, and Google Sheets—with real prompts, costs, and debugging tips for solo operators.

ai agent companies: How to Build a Lead‑Gen Agent Without Overpaying

If you run ai agent companies or want to start one, the biggest bottleneck is turning a demo into a reliable, money‑making workflow.

In this guide you’ll see how to assemble a lead‑generation agent that scrapes LinkedIn, writes personalized emails with GPT‑4, and logs results in Google Sheets—all without writing code.

By the end you’ll know the exact prompts, tool costs, and debugging steps to keep the agent running 24/7.

What most guides get wrong about ai agent companies

Most tutorials treat the agent as a magic black box that just “works” once you plug in an API key.

They skip the part where you have to define a tight loop: trigger → action → verification → repeat.

Without that loop the agent either stalls after the first run or burns through credits on useless retries.

I’ve seen teams waste weeks polishing prompts while the underlying automation never gets a proper error handler.

The fix is simple: draw the loop on paper before you touch any tool.

Defining the agent’s core loop

Start with a clear trigger: a new row added to a Google Sheet that contains a LinkedIn profile URL.

The agent then calls a scraping service (we’ll use Apify’s LinkedIn scraper via a webhook) to pull the person’s name, title, and company.

Next it feeds that data into a GPT‑4 prompt that writes a cold‑email line.

Finally it writes the email back to the sheet and sends it through SMTP.

If any step fails, the loop logs the error and stops—no infinite retry.

That tiny loop is the backbone of any profitable ai agent company.

Concrete example: cold‑email outreach agent with Make.com, GPT‑4, and Google Sheets

First mention of each tool will be bolded.

We’ll use Make.com as the orchestration layer, Google Sheets as the database, and OpenAI’s GPT‑4 for copy.

Here’s the exact prompt we use for the email line (copy‑paste into the OpenAI module):

You are a friendly sales assistant. Write a one‑sentence intro for a cold email to {{Name}} who works as {{Title}} at {{Company}}. Mention a specific pain point you noticed from their LinkedIn post about {{RecentPostTopic}}. Keep it under 20 words and sound helpful, not pushy.

Now the numbered steps to get it running:

  1. In Make.com create a new scenario.
  2. Add a Google Sheets module: “Watch rows” set to trigger when a new row appears in the “Leads” sheet.
  3. Add an HTTP module calling Apify’s LinkedIn scraper endpoint (pass the URL from the sheet).
  4. Add a JSON parser to extract name, title, company, and recent post topic.
  5. Add an OpenAI module: set model to gpt-4, temperature 0.7, and paste the prompt above, mapping the placeholders.
  6. Add another Google Sheets module: “Update row” to write the generated email line back to column E.
  7. Add an SMTP module (e.g., Gmail) to send the email to the address in column F.
  8. Add a Router: if the SMTP module returns error, route to an Email module that alerts you; otherwise end.

Cost breakdown: Make.com’s Core plan is $29/mo (fair for light automation), Google Sheets is free, Apify’s LinkedIn scraper runs about $0.01 per profile, and GPT‑4 costs roughly $0.03 per 1k tokens—about $0.005 per email.

At 200 emails a day you’re looking at under $5 daily, which is cheap for a solo operator.

I love how Make.com’s visual debugger lets you click any module and see the exact payload in real time—no guesswork.

My gripe? The free tier caps at 1,000 operations a month and the error log is hidden behind a modal you have to click twice to see (which, yes, is annoying).

Why does my AI agent hit rate limits after a few hours?

This usually happens because the scraping service or the OpenAI endpoint is being called faster than the provider allows.

If you’re using Apify’s free tier you get 10,000 compute seconds per month—easily burned by a tight loop.

OpenAI imposes rate limits per organization: 3,500 requests per minute for GPT‑4, but burst limits are lower.

The fix is to add a delay between iterations.

In Make.com you can insert a “Sleep” module set to 2 seconds after each OpenAI call.

If you’re hitting Apify limits, add a Sleep of 5 seconds after the HTTP scraper step.

These small pauses keep you well under the thresholds while still processing ~30 leads per hour.

How to debug when your AI agent stops responding

First, open the scenario’s execution history in Make.com.

Look for the red‑failed module and click it to see the input and output.

Common culprits:

  • Authentication expired – refresh your API key in the HTTP or OpenAI module.
  • Sheet changed – if you added a column, the “Update row” mapping breaks.
  • Prompt too long – GPT‑4 throws a 400 error when the combined prompt exceeds context length.
  • Empty data – the scraper returned nothing because the LinkedIn URL was malformed.

Fix each by re‑mapping fields, shortening the prompt, or adding a validation step that skips rows with missing URLs.

Once the scenario runs green for three consecutive executions, you can consider it stable.

Pricing opinion and when to buy the blueprint

$29/mo for Make.com’s Core plan is fair if you’re under 5,000 operations a month.

If you need more, the next tier jumps to $108/mo which feels steep for a solo agent.

I think paying $199/mo for a no‑code AI agent platform that bundles similar features is ridiculous for solo work—you’re mostly paying for a slick UI.

My concrete love is the real‑time execution log in n8n; it saved me hours when a webhook kept failing.

We cover this in more depth elsewhere — deeper coverage of AI agent platforms.

If you’d rather skip the build and deploy a working version in an afternoon, we’ve packaged this workflow as a blueprint at deepusecase.com/vault/ai-agent-builder-kit.

— The Colophon

One AI tool. Tested. Reviewed.
In your inbox every Sunday.

~3 minute read. Real outcomes from operators, not marketers.

Free. One email per Sunday. Unsubscribe in one click.