Automation

Get a Telegram alert and a Google Sheets row for every new WhatsApp chat

Hear about every WhatsApp lead the moment it’s sent to one of your admins, with the campaign and link it came from, and keep a running list in Google Sheets. A ready-made n8n template does the work.

iLiBuat.Link Team7 min read

Key takeaways

  • Every chat Sales Router sends to an agent can become a row in Google Sheets and a Telegram message, with the agent, campaign, link and Ref.
  • It runs on the Chat sent to an agent webhook event and a ready-made n8n template, 01-new-lead-alert.json. No API key needed.
  • You need Pro or higher, n8n (Cloud or self-hosted), a Google account and a Telegram bot.
  • iBuat.Link knows a chat was started from your link. It never sees what’s written in it.
On this page6
  1. 1. What the automation does
  2. 2. What you need
  3. 3. Set it up step by step
  4. 4. What you’ll see
  5. 5. Make it yours
  6. 6. Honest limits

It’s the first week of Bu Sari’s Ramadan promo. Her ads on Instagram and TikTok send people to WhatsApp through Sales Router short links that split chats between admins, and Rina, Dewi and Ayu take turns answering. Somewhere between packing orders and replying to her supplier, Bu Sari keeps wondering: are chats coming in? From which ad? Is one admin getting buried?

The answers are all in the dashboard, but she has to stop and open it to see them. And on Friday she wants a simple list of who got which chat, so she can check that nobody was left without a reply. Copying that list by hand every week gets old fast.

This workflow sends her a short message for every new chat and adds it to a Google Sheet at the same moment. She keeps working, and the list fills itself in.

Telegram

New chat for Sales East: Rina

campaign Spring Sale · Ref IB-7F3A09C2D1

Leads

TimeAgentCampaign
10.15RinaSpring
10.21AyuSpring
10.40DewiCatalog
A new chat goes to Rina. A second later Bu Sari’s phone shows who got it, from which campaign and link, with the Ref.

What the automation does

If you haven’t met n8n yet: it’s a robot assistant that follows rules, “when this happens, do that”. The overview of all 8 workflows explains the idea. This workflow listens for one bell: Chat sent to an agent. Every time Sales Router hands a chat to someone on your team, iBuat.Link sends that event to n8n, and the robot does two things:

  1. 1Adds a row to a Google Sheet tab called Leads, with six columns: Time, Team, Agent, Campaign, Link and Ref.
  2. 2Sends you a Telegram message with the same details.
“New chat for CS Jakarta: Rina (campaign Promo Ramadan, link /promo-ramadan, Ref IB-7F3A09C2D1)”
— The Telegram message from the template

The Ref is the same code that appears in the customer’s first WhatsApp message. Later you can search for it in WhatsApp to find the chat, or look it up on the Sales Team page when you want to Mark sale. That’s how closing tracking shows which ads actually sell.

What you need

WhatDetails
iBuat.Link planPro, Business or Agency. Webhooks start on Pro.
A Sales TeamWith at least one Sales Router short link that people are using.
n8nn8n Cloud or self-hosted, with the Webhook, Code, Google Sheets and Telegram nodes.
Google accountA spreadsheet with a tab named Leads and the headers Time, Team, Agent, Campaign, Link, Ref in the first row.
Telegram botA bot made with Telegram’s @BotFather, and the chat id of the chat or group where messages should go.

This workflow only listens to the bell, so you don’t need an API key.

Set it up step by step

  1. 1

    Prepare the sheet

    Create a Google Sheet, rename the first tab to Leads, and type Time, Team, Agent, Campaign, Link and Ref across row 1.

  2. 2

    Download the template

    In the dashboard go to Integrations → Automate with n8n. On the “New chat → alert + sheet” card click Download template. You get the file 01-new-lead-alert.json.

  3. 3

    Import it into n8n

    Open a new workflow, open the “…” menu and choose Import from File. The yellow “Setup (read me)” note on the canvas repeats these steps.

  4. 4

    Connect Google Sheets and Telegram

    In the “Add a row to the sheet” node, pick your Google credential and replace REPLACE_WITH_YOUR_SHEET_ID with your sheet’s link. In the “Tell me on Telegram” node, pick your bot’s credential and replace YOUR_TELEGRAM_CHAT_ID with your chat id.

  5. 5

    Copy the Production URL and activate

    Open the “iBuat.Link webhook” node and copy the Production URL, not the Test URL. Then activate the workflow. The Production URL only listens while the workflow is active.

  6. 6

    Add the webhook in iBuat.Link

    Back in Integrations, click + Webhook on the same template card. The Name is filled in and Chat sent to an agent is already ticked under Events to send. Paste the address into HTTPS URL. If you only want chats from one team, choose it under Sales Team, otherwise leave All Sales Teams. Click Save webhook.

  7. 7

    Paste the signing secret into n8n

    The signing secret is shown once, right after saving. Copy it, open the “Sign the request” node in n8n (right after the webhook) and paste it into Secret, in place of PASTE_YOUR_SIGNING_SECRET. Save the workflow, and publish it again if your n8n has a Publish button. Without the right secret, “Check the signature” stops every delivery, so nobody else can add fake rows to your sheet.

  8. 8

    Test it

    Click Send test on the webhook row to check that n8n receives deliveries. You get a “✅ iBuat.Link test received” message and a TEST row, which you can delete. For the full run, tap one of your own Sales Router short links on your phone and watch the row and the message arrive. Nothing arrives? Open Executions in n8n. A run that stopped at “Check the signature” means the secret is missing or wrong.

What you’ll see

Every routed chat adds one line. After a busy morning, Bu Sari’s Leads tab looks something like this (example data):

TimeTeamAgentCampaignLinkRef
2026-10-12T02:14:03.000ZCS JakartaRinaPromo Ramadanpromo-ramadanIB-7F3A09C2D1
2026-10-12T02:21:47.000ZCS JakartaDewiPromo Ramadantiktok-ramadanIB-2C81E4B07A
2026-10-12T02:35:10.000ZCS JakartaAyu-katalogIB-91D0A3F5C6
Example rows, for illustration

The time arrives in UTC (the Z at the end). If you’d rather see local time, change it in the “Format the chat” node or with a formula in the sheet. A dash in Campaign means the link isn’t part of a campaign.

With a list like this, Friday’s check takes a minute. Filter by agent to see who handled the most chats, by campaign to see which promo is busiest, and pick a few Refs to make sure each one got a reply.

Make it yours

Email instead of Telegram

Swap the Telegram node for a Gmail node and use the same message as the email body.

Tell the whole team

Add your bot to the team’s Telegram group and use the group’s chat id, so everyone sees chats coming in.

Only one team

Pick that team under Sales Team when you add the webhook. Chats from other teams won’t be sent.

Sheet only, or message only

Delete the node you don’t need. The other one keeps working.

Into your CRM

Replace the Google Sheets node with your CRM’s node. The CRM webhook guide lists every field the event sends.

Honest limits

  • A row means a chat was routed: the customer tapped your link and WhatsApp opened with an agent. It doesn’t prove they pressed send, and it isn’t a sale.
  • iBuat.Link doesn’t read WhatsApp messages, so the alert can’t tell you what the customer asked.
  • It needs Pro or higher, plus n8n. n8n Cloud is paid. Self-hosting is free but needs a server.
  • If n8n is down, iBuat.Link retries for about 3 hours, then emails the account owner. Your short links keep working the whole time.
  • Now and then a delivery can arrive twice, for example after a retry. Each one has an x-ibuat-event-id header you can use to skip duplicates.

The full walkthrough, including why the template checks the signature, is in the step-by-step n8n guide.

Frequently asked questions

Does the alert show what the customer wrote?+

No. iBuat.Link never reads WhatsApp messages. The alert tells you which agent got the chat, from which link and campaign, and its Ref.

Will this slow down my short links?+

No. Webhooks are sent in the background, so the customer goes straight to WhatsApp without waiting for n8n. If n8n is offline, links keep working as usual.

Can I get the alert on WhatsApp instead?+

iBuat.Link doesn’t send WhatsApp messages. The template uses Telegram because a bot is quick to set up, and you can swap it for email or another app that n8n connects to.

Can I limit it to one Sales Team?+

Yes. When you add the webhook, choose the team under Sales Team. Leave All Sales Teams to get chats from every team.

Which plan do I need?+

Pro, Business or Agency. Pro includes 5 webhook endpoints, Business and Agency 15.

Know about every chat as it comes in

Webhooks are on Pro, Business and Agency. Download the template from Integrations and have your first alert in a few minutes.

Share