Duck
Automation6 min read

AI workflow automation tutorial 2026: From cold email to paid invoice

Samet Turan— Editor··6 min read

Learn to automate lead capture, enrichment, and invoicing using AI agents and no‑code tools in 2026. Step‑by‑step, real prompts, costs, and a blueprint.

You spend hours copying lead data from LinkedIn into a spreadsheet, then manually drafting emails and invoices. That routine eats up your day and leaves little time for actual work. After this guide you’ll have a working AI‑driven pipeline that pulls lead info, writes personalized outreach, and creates an invoice when a deal closes—all without writing code.

What most guides get wrong about AI workflow automation

Many tutorials treat AI as a magic button that replaces every human step. They show a chatbot answering questions and call it automation. In reality the value comes from connecting reliable data moves with deterministic actions. If you let the model decide when to send an email or how much to charge you’ll get embarrassing mistakes.

The mistake is to focus on the model’s creativity while ignoring the plumbing. You need a trigger, a data fetch, a transformation, and a side‑effect that actually moves money or updates a CRM. The AI part is just one node in a larger graph.

How do you keep AI from making up company data?

Hallucinations happen when the model tries to fill gaps with plausible sounding text. The fix is to give it a tight source and ask it to extract, not to invent. I use a two‑step prompt: first feed the raw LinkedIn snippet, then ask for specific fields in JSON format.

Here’s the exact prompt I run through Claude 3.5 (the version available via the Anthropic API in early 2026):

You are a data extraction assistant. Return ONLY a JSON object with the keys: name, title, company, email, linkedin_url. If a value is not present in the text, set it to null. Do not add any explanation.

TEXT:
{{linkedin_snippet}}

The double curly braces are replaced by Make (formerly Integromat) before sending to Claude. Because the instruction forbids any extra text, the model either returns valid JSON or nothing. I then validate the output with a simple JSON parser; if it fails I route the item to a manual review queue.

This approach cut my false‑positive rate from about 22% to under 3% in a month of testing.

Building the pipeline: tools, prompts, and real costs

I stack four services: Apollo.io for lead list export, Make.com as the orchestrator, Claude for text work, and Stripe for invoicing. Google Sheets acts as a temporary buffer and a place to view the data.

Step 1 – Pull leads: In Apollo I run a saved search for “SaaS founder” in the United States, export 50 rows as CSV, and drop the file into a Make.com watch folder.

Step 2 – Enrich: Make.com reads each row, calls the Hunter.io email verifier (free tier gives 50 checks/mo, paid $49/mo for 5 000) and appends any missing email. I then send the LinkedIn profile URL (if available) to a small scraping actor that returns the raw snippet.

Step 3 – AI drafting: The snippet goes to Claude with the prompt above. The returned JSON is parsed; if all fields are present I render a personalized email using a Handlebars template stored in Make.com. The template looks like:

Hi {{name}},

I saw you’re {{title}} at {{company}}. I help founders like you automate outreach without extra headcount. Could we chat for 15 minutes next week?

Step 4 – Send and track: Make.com sends the email via SendGrid (free tier allows 100 emails/day). When a reply contains the word “interested” I move the row to a “warm” sheet.

Step 5 – Invoice on close: When I manually mark a row as “won” in Google Sheets, a Make.com trigger fires, calls Stripe to create an invoice for $1 200 (my standard consulting fee), and emails the PDF to the client.

Cost breakdown (monthly, based on my current usage):

  • Apollo.io: $79/mo for the Sales Intelligence plan (includes 10 000 credits)
  • Hunter.io: $49/mo for 5 000 verifications
  • Make.com: $29/mo for the Core plan (10 000 operations)
  • Claude API: $0.008 per 1 000 tokens; my average run uses ~1 500 tokens per lead, so 50 leads ≈ $0.60
  • SendGrid: free tier covers my volume
  • Stripe: 2.9 % + $0.30 per invoice (passed to client)

Total fixed cost: $186/mo. Variable cost per lead is under $0.02. For a solo operator this is far cheaper than hiring a VA at $15/h.

I think the Hunter.io price is a bit high for the verification quality; I’ve seen cheaper alternatives that work just as well, but the UI is slick and the rate limits are generous, so I keep it for now.

How to debug when this breaks

When the pipeline stops delivering emails I first check the Make.com scenario log. The most common failure points are:

  1. Apollo export file not arriving – usually because the CSV exceeded the watch folder size limit. I fixed it by splitting the export into two files.
  2. Hunter.io returning an empty email – often the domain has a catch‑all that rejects SMTP checks. I added a fallback to use the domain pattern (firstname@company.com) when the API returns null.
  3. Claude returning malformed JSON – happens when the LinkedIn snippet is longer than the model’s context window. I truncate the snippet to 1 200 characters before sending.
  4. SendGrid throttling – I hit the 100 emails/day limit on a burst day. I upgraded to the Essentials plan at $15/mo which gives 40 000 emails.
  5. Stripe invoice creation failing due to missing tax ID – I added a required field in the Google Sheet and a validation step before the Stripe call.

Each of these fixes took less than fifteen minutes because the scenario is modular. If you ever see a silent failure, add a notification step that Slacks you the error payload; it saves hours of guesswork.

Concrete gripe and love: what annoyed me and what I actually use

My gripe is with Apollo’s export UI: after you click “Export CSV” you must wait for a modal to finish, then click “Download” again. The two‑step flow feels like a relic from 2018 and costs me a few seconds every batch. I wish they’d make it a single click.

My love is the Make.com HTTP module’s ability to store API keys in a secure vault and reference them with a simple {{credential.hunter_api_key}} token. I never see the raw key in the scenario editor, which reduces the chance of leaking it in a screenshot or log.

One mild aside: if you’ve tried Zapier you know what I mean when I say the pricing jumps sharply once you need more than two steps.

Finally, the price opinion: $29/mo for Make.com’s Core plan is fair given the operation count and the reliability I’ve experienced; the free tier is enough for testing but you’ll hit the 1 000‑operation limit quickly if you run more than ten leads a day.

If you want the deep cut on this, 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-automation-blueprint.

— 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.