Skip to content
Almog Koren
← All writing
Building AI · 4 min read

DocSend Had No Webhook. So My PDFs Now Report to n8n.

Every time someone read DogBase's brochure, I wrote to them by hand, because DocSend had no webhook. I moved 16 PDFs to my own document tracker, and now a read turns into a Chat alert and a follow-up sequence on its own.

This is part four of the lead pipeline. I swapped Apollo for Instantly, then built a pipeline that finds leads I still approve one by one. Both are about people who never asked to hear from me. This one is about the people who did. Someone who opens a DogBase brief has already raised a hand.

The manual part I wanted gone

DocSend would tell me that someone opened the brochure. Nothing else could know. There was no webhook and no integration, so the follow-up was me: copy the email, open Gmail, paste the same note about Echo and DogBase, send.

It worked, one reader at a time. It also only worked when I happened to be looking.

The tracker

I've been building Pagetrail, an open-source DocSend alternative. It gets its own launch post when it's ready. For this, three things mattered: an email gate on each link, time per page, and a signed webhook for every visit.

This week I added two features for this setup. Links can ask for a first and last name, and the viewer can show two buttons. Ours are Book a demo and Start free trial. I also added both to its MCP tools, so Claude could set up the links instead of me clicking through 16 forms.

What happens when someone reads a PDF now

Flow: a Pagetrail read goes to an n8n workflow, which posts a Google Chat card and adds first-time website readers to the Doc Viewers sequence in Instantly
Flow: a Pagetrail read goes to an n8n workflow, which posts a Google Chat card and adds first-time website readers to the Doc Viewers sequence in Instantly
A read becomes a Chat card in about two minutes. Only first-time website readers go into the sequence.
  • They enter their name and email. There's no code step. A one-time code is too much friction for a marketing PDF.
  • They read. Pagetrail counts the time on each page.
  • Two minutes after they leave, the visit summary goes to n8n. A card lands in our Google Chat: who, which document, pages read out of the total, time, and whether it's a first visit or a return.
  • If they click Book a demo, a 🔥 card arrives right away.
  • If it's a first visit from outside DogBase, Instantly verifies the email and adds them to a four-email sequence.
A Google Chat card for a test read, with the name and email blurred: Sales Brochure, 4 of 11 pages, 48 seconds, first visit
A Google Chat card for a test read, with the name and email blurred: Sales Brochure, 4 of 11 pages, 48 seconds, first visit
My own test read. The card says who, which PDF, how far they got and whether they came back.

The PDF picks the proof

The document someone reads tells me who they are. The search and rescue brief means a SAR team. The law enforcement brief means a K9 unit. So the sequence pulls its proof and its links from what they read: TEXSAR for SAR teams, the Oneida County Sheriff's Office for police, True West K9 and Mold Dog USA for detection. These are the same fields my UK and Australia campaigns already use, so no new copy had to be written for each segment.

My first version of the sequence didn't sound like my other ones. It had a different rhythm, a link in the first email and a gap of two weeks. I had it rebuilt on the same frame as my other sequences: four emails over twelve days, one question in the first email and no link, proof in the second, a feature in the third, and a short last note.

Halfway through I noticed a problem with my own plan. My cold emails link to the same brochure. A cold lead who clicked would be asked for their name, which Instantly already has, and could then be added to a second sequence.

Two links for the same PDF: Marketing links on the website ask for name and email and feed the sequence, Outreach links in cold emails ask for email only and never add anyone to Instantly
Two links for the same PDF: Marketing links on the website ask for name and email and feed the sequence, Outreach links in cold emails ask for email only and never add anyone to Instantly
Same brochure, two links. Cold leads are already in Instantly, so they only trigger the Chat card.

So each document now has two kinds of link:

  • Marketing links, on the website, ask for name and email and feed the sequence.
  • Outreach links, in cold emails, ask for email only. They post the Chat card tagged "cold email" and never add anyone to Instantly.

That meant replacing 26 links across 17 live campaigns and 41 links on 26 pages of dogbase.co, without breaking anything.

In Instantly, updating a campaign replaces its whole sequence, so retyping 17 sequences by hand was asking for a changed word. Instead, a temporary n8n workflow fetched each campaign, replaced only the exact URLs and wrote the sequence back. It ran on one finished campaign first. Then every campaign was read again and compared with the planned version, and the workflow was deleted.

For the website, the first step was crawling all 272 live pages to find every DocSend link. Some were component buttons and some were plain links, and three of them opened in the same tab. Only the URL changed. After publishing, another crawl found 0 DocSend links left.

What went wrong

  • A free trial link that went nowhere. The viewer button and the third email pointed to app.dogbase.co/signup. That page is a 404. The real one is /register, which the website already used, and that's how it got caught. It was fixed in three places before anyone got that email.
  • The buttons didn't show. The default buttons had never been saved in Pagetrail's settings, so the 🔥 card could never fire. A test read with a fake reader caught it.
  • No signature check. Pagetrail signs every webhook, but my n8n setup keeps secrets in credentials only, and Code nodes there can't run crypto. So the unguessable webhook path is the protection. The worst case is fake Chat cards, or an email that still has to pass verification before it's added.

I built most of this with Claude Code in one long session. It moved fast and checked its own work: dry runs, one campaign before seventeen, a crawl before and after. Two of the catches were still mine. The first copy didn't sound like me, and cold leads would have been asked for their name and sequenced twice. Claude found the 404. I found the parts that needed someone who knows the customers.

What I don't know yet

Whether it converts. The first website readers are going through it now. In a few weeks I'll know how many reads turn into demo clicks and replies, and whether asking for a name costs more readers than it's worth.

What I do know: nobody who reads a DogBase brief has to wait for me to notice anymore.

#AI#n8n#Instantly#Pagetrail#build in public

Building something with AI?

Fractional CTO, AI agents, or a rescue for an AI-built app.