All posts

Triggering Workflows on Click: How to Build Real-Time Follow-Ups with Link Webhooks

Why wait for weekly analytics reports when a link click is a live signal of customer intent? Here is how to use real-time link webhooks to trigger instant Slack alerts, CRM score updates, and automated follow-up sequences without adding latency.

A real-time automation dashboard showing a short link click triggering a signed JSON webhook payload that powers instant Slack alerts, CRM scoring, and automated messages
On this page
  1. 4 high-ROI automations powered by click webhooks
  2. Anatomy of a link.clicked webhook payload
  3. Under the hood: Delivering webhooks without slowing down redirects
  4. Security: Verifying signatures
  5. Privacy by design: DPDP Act & GDPR compliance
  6. How to set up a webhook in getclkr.com
  7. Summary: Turn passive clicks into active conversions

Imagine this scenario:

Your sales team sends a tailored enterprise proposal to a prospective client. Three days pass with silence. Then, at 2:15 PM on Thursday, the prospect taps the link on their phone while sitting in a budget meeting.

In traditional link management setups, this critical moment goes completely unnoticed. The click gets aggregated into a database, summarized in a chart, and buried in an analytics report that your team might review next Monday.

By then, the prospect has moved on to three other meetings, the context is lost, and the deal cools down.

A link click is not just historical data—it is a live signal of customer intent.

When someone clicks a short link in an email, an SMS notification, or a WhatsApp message, they are engaging with your brand at that exact second. If you can react while their phone screen is still illuminated, conversion rates skyrocket.

Link webhooks bridge this gap. Instead of forcing you to poll an API or review retroactive dashboards, webhooks push a real-time, cryptographically signed JSON event to your servers, CRM, or automation tools (like Zapier, Make, and n8n) the millisecond a click occurs.


4 high-ROI automations powered by click webhooks

1. The “Hot Lead” Slack & CRM alert

For B2B sales teams, high-ticket services, and real estate, timing is everything.

  • The Workflow: When a prospect clicks a proposal or pitch deck link (e.g., acme.in/q3-proposal), a webhook fires into your team’s Slack channel or CRM:

    🚨 High Intent Alert: Acme Corp just opened the Q3 Proposal link from Mumbai on an iPhone.

  • The Impact: The account executive can review the notification and send a timely, relevant follow-up while the material is still top of mind.

2. Instant conversational follow-ups (WhatsApp & SMS)

In conversational commerce, automated follow-ups triggered by clicks prevent cart abandonment and streamline customer service:

  • The Workflow: A customer receives an SMS about an approved personal loan or an order delivery confirmation containing a short link. When they tap the link, a webhook informs your messaging provider (Gupshup, Yellow.ai, Twilio) to trigger the next contextual step—such as asking if they need help uploading verification documents.
  • The Impact: Customers receive conversational assistance the moment they exhibit interest, rather than being subjected to blind, scheduled blasts.

3. Real-time lead scoring in HubSpot or Salesforce

Marketing automation platforms rely on lead scores to determine when a prospect is ready for sales outreach.

  • The Workflow: Listening for link.clicked events allows your backend to increment a lead’s behavioral score immediately. Clicking a pricing link might add +20 points; clicking a technical documentation link might add +15 points.
  • The Impact: Leads transition from Marketing Qualified (MQL) to Sales Qualified (SQL) dynamically, triggering automated assignment rules in seconds.

4. Dynamic security and fraud alerts

If an account-activation or password-reset link is clicked from an unexpected country, or if a single link receives an anomalous burst of 500 clicks within 60 seconds from disparate IP addresses:

  • The Workflow: Your security monitoring service ingests the webhook stream and flags potential credential stuffing or link forwarding.

Anatomy of a link.clicked webhook payload

When a link is clicked, getclkr.com dispatches an HTTP POST request with a structured JSON body.

Here is what a complete link.clicked payload looks like:

{
  "id": "msg_01M7RJ1NCN6XEG3C26JD9B",
  "type": "link.clicked",
  "version": 1,
  "timestamp": "2026-11-02T14:15:02.128Z",
  "data": {
    "workspaceId": "ws_1a2b3c4d5e6f7g8h9i0j",
    "link": {
      "id": "lnk_4h7j9k2m1n3p5q7r8s9t",
      "domain": "acme.in",
      "slug": "q3-proposal",
      "shortUrl": "https://acme.in/q3-proposal",
      "url": "https://docs.acmeproducts.com/proposals/client-xyz-2026.pdf"
    },
    "click": {
      "timestamp": "2026-11-02T14:15:02.128Z",
      "country": "IN",
      "region": "MH",
      "city": "Mumbai",
      "device": "mobile",
      "os": "iOS",
      "browser": "Safari",
      "referrer": "(direct)",
      "language": "en",
      "qr": false,
      "ip": "49.37.12.0",
      "visitorId": "8f3b2c1a0e9d",
      "userAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 17_5 like Mac OS X)..."
    }
  }
}

Key payload details:

  • id: A unique message identifier (msg_...), also sent as the webhook-id header and the same on every retry. If your server receives the same id twice, you can safely ignore the duplicate.
  • click.region & click.city: Granular geographic context provided directly at Cloudflare’s edge without requiring third-party IP lookup services.
  • click.qr: A boolean flag indicating whether the click originated from a physical QR code scan (?qr=1) or a digital tap.
  • click.ip: Anonymized IP address (IPv4 truncated to the /24 subnet, IPv6 truncated to /48).

Under the hood: Delivering webhooks without slowing down redirects

One common architectural flaw in older link shorteners is that they attempt to make webhook HTTP requests synchronously during the redirect.

If your webhook receiver takes 800 milliseconds to respond, the customer clicking the short link sits waiting on a white screen for nearly a full second.

getclkr.com uses a decoupled, queue-based architecture that guarantees zero impact on redirect speed:

A technical architecture diagram showing how clkr processes redirects at the Cloudflare edge in under 10 milliseconds, passes click data to Cloudflare Queues in the background, and delivers cryptographically signed webhooks with automatic retries

1. Instant edge response (< 10 ms)

When a visitor hits acme.in/q3-proposal, the edge Worker resolves the destination from edge cache and returns the HTTP 302 redirect immediately.

2. Background queue dispatch (ctx.waitUntil)

After the redirect response is sent to the client, the Worker executes background telemetry inside ctx.waitUntil. It checks a fast KV flag (__click_webhooks:<workspaceId>). If your workspace has an active webhook configured for clicks, the event is enqueued into Cloudflare Queues (clkr-webhooks).

3. Zero false alarms: Bot & preview filtering

Chat apps like WhatsApp, Slack, Telegram, and iMessage automatically fetch URLs to generate preview cards (title, thumbnail, description) when a user pastes a message.

If a link shortener blindly fired webhooks for every HTTP GET request, your sales reps would receive false “Someone clicked your proposal!” alerts before the prospect even opened the message thread.

getclkr.com inspects client headers, browser purpose flags (Sec-Purpose: prefetch), and crawler User-Agents. Link unfurls never trigger link.clicked webhooks. Webhooks fire strictly when a real human navigates to the link.

4. Resilient delivery with automatic retries

The event is handed to our delivery service, which picks the fields you configured, signs the request and delivers it to your endpoint.

If your server is temporarily down, overloaded or returning a 5xx error, the delivery is retried up to 7 more times over about seven hours: after 5 seconds, 30 seconds, 2 minutes, 10 minutes, 1 hour, 2 hours and 4 hours. A Retry-After header is honoured. An endpoint that keeps failing is paused and probed until it answers again, then the backlog drains.

Every attempt is listed under Deliveries on the webhook in your dashboard, with the response code, and any delivery can be sent again with one click.


Security: Verifying signatures

Because webhook endpoints are public URLs, your server must verify that incoming requests actually originated from getclkr.com and have not been tampered with or replayed by an attacker.

Deliveries are signed with the open Standard Webhooks scheme, so you can verify them with an existing library instead of writing the cryptography yourself. Every delivery includes these headers:

webhook-id: msg_01M7RJ1NCN6XEG3C26JD9B
webhook-timestamp: 1762092902
webhook-signature: v1,K5oZfzN95Z9UVu1EsfQmfVNQhnkZ2pj9o9NDN/H/pI4=
  • webhook-id: the message ID, the same on every retry. Use it to ignore duplicates.
  • webhook-timestamp: when this attempt was sent, in UNIX seconds. Reject old ones to stop replays.
  • webhook-signature: v1, followed by the base64 HMAC-SHA256 of ${id}.${timestamp}.${rawBody}, keyed with your webhook’s secret (whsec_..., base64-decoded). After you rotate the secret, both the old and new signatures are sent for 24 hours, space-separated.

How to verify signatures in Node.js / Express

Use the standardwebhooks package (libraries exist for Python, Go, Ruby, PHP, Java and more):

import express from "express";
import { Webhook } from "standardwebhooks";

const wh = new Webhook(process.env.CLKR_WEBHOOK_SECRET!); // whsec_...
const app = express();

// The raw body: re-serialised JSON won't match the signature.
app.post("/webhooks/clkr", express.raw({ type: "application/json" }), (req, res) => {
  let event;
  try {
    event = wh.verify(req.body.toString("utf8"), {
      "webhook-id": req.header("webhook-id")!,
      "webhook-timestamp": req.header("webhook-timestamp")!,
      "webhook-signature": req.header("webhook-signature")!,
    });
  } catch {
    return res.status(401).json({ error: "Invalid signature" });
  }
  // event.type === "link.clicked", event.data.link, event.data.click …
  res.sendStatus(204); // answer fast, then do the work in the background
});

The library checks the signature in constant time and rejects timestamps more than five minutes off.


Privacy by design: DPDP Act & GDPR compliance

Capturing click events requires balancing deep marketing intelligence with consumer privacy obligations.

Under frameworks like India’s Digital Personal Data Protection (DPDP) Act 2023 and the EU GDPR, IP addresses and fine-grained device fingerprints are classified as personal data.

getclkr.com incorporates privacy controls directly into the webhook engine:

  1. Granular field selection: You configure exactly which fields your webhook receives. If your application only needs country, city, and linkId, you can deselect personal identifiers entirely.
  2. IP truncation: Full visitor IP addresses are never queued or sent over webhooks. IPv4 addresses are truncated to /24 (e.g. 203.0.113.0), and IPv6 addresses are truncated to /48 (e.g. 2001:db8:1::), providing geographic fidelity without identifying individual households.
  3. Daily rotating visitor hashes: The visitorId field is computed using a daily-salted SHA-256 hash. You can detect whether the same person clicked a link multiple times in a single day without storing persistent tracking cookies or raw PII.

How to set up a webhook in getclkr.com

Setting up a real-time webhook takes less than two minutes in your dashboard:

Step 1: Add your webhook endpoint

  1. Navigate to Settings → Integrations → Webhooks in your getclkr.com dashboard.
  2. Click Add Webhook.
  3. Enter your destination URL (e.g., your Zapier Catch Hook URL, or your server’s https://api.yourdomain.com/webhooks/clkr).

Step 2: Select your events and fields

  • Choose which events you want to listen to:
    • link.clicked: Fired every time a person follows a short link.
    • link.created, link.updated, link.deleted: Fired when team members or API tokens manage links.
  • Customize payload fields to include only the telemetry your application requires.

Step 3: Test and activate

  • Click Test to send a webhook.test event to your endpoint and see its response.
  • Copy your webhook secret (whsec_...) when it’s shown and store it securely in your environment variables.

Summary: Turn passive clicks into active conversions

Every time a customer clicks a link, they are raising their hand.

Treating that click as a row in a monthly CSV file wastes valuable intent. By connecting getclkr.com webhooks to your sales stack:

  • Your sales reps get notified while leads are actively engaged.
  • Your messaging systems deliver contextual, automated responses.
  • Your redirects stay blazing fast, handled at the edge in under 10 milliseconds.
  • Your customer data remains protected by cryptographic signing and IP anonymization.

Ready to build real-time automations? Set up your first webhook in getclkr.com or explore our API Documentation to start streaming live click events today.

Put it into practice with clkr.

Branded short links, QR codes and click analytics in one place. Free to start, no card needed.