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
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
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:
- 1Adds a row to a Google Sheet tab called Leads, with six columns: Time, Team, Agent, Campaign, Link and Ref.
- 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 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
| What | Details |
|---|---|
| iBuat.Link plan | Pro, Business or Agency. Webhooks start on Pro. |
| A Sales Team | With at least one Sales Router short link that people are using. |
| n8n | n8n Cloud or self-hosted, with the Webhook, Code, Google Sheets and Telegram nodes. |
| Google account | A spreadsheet with a tab named Leads and the headers Time, Team, Agent, Campaign, Link, Ref in the first row. |
| Telegram bot | A 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
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
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
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
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
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
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
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
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):
| Time | Team | Agent | Campaign | Link | Ref |
|---|---|---|---|---|---|
| 2026-10-12T02:14:03.000Z | CS Jakarta | Rina | Promo Ramadan | promo-ramadan | IB-7F3A09C2D1 |
| 2026-10-12T02:21:47.000Z | CS Jakarta | Dewi | Promo Ramadan | tiktok-ramadan | IB-2C81E4B07A |
| 2026-10-12T02:35:10.000Z | CS Jakarta | Ayu | - | katalog | IB-91D0A3F5C6 |
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.