Notion CRM: daily AI nudges for stale deals via Telegram (n8n)
At a glance
- Setup estimate
- 1–2 h (ESTIMATE)
- Tools
- Industries
- General (any small business)
Problem
Deals in a Notion CRM go untouched for weeks and nobody notices until they are lost
Who it's for
An n8n Notion CRM add-on for small sales teams that track deals in Notion and talk on Telegram. The trigger: deals sit untouched for weeks and nobody notices until they're lost, so you want a daily nudge sent to the person responsible for each stale deal.
Skip it if your CRM isn't in Notion or your team doesn't use Telegram, or if you'd rather not have an AI write messages to staff in a 'tough boss' voice. It also expects the author's Notion database layout.
Tools and what each does
- n8n Schedule Trigger + CONFIGURATION node
- Runs every 24 hours and holds the settings: inactivity limit (7 days), max alerts per run (5), fallback Telegram chat and the coach persona.
- Notion (two databases)
- 'Agents' maps each salesperson's email to a Telegram ID and handle; 'Active Deals' is read with a filter excluding Active User, Closed Won and Lost/Archived.
- Code node
- Works out days since each deal was last edited, keeps those over the limit, matches the assigned manager by email and keeps the five most overdue.
- OpenAI gpt-4o-mini
- Writes a short nudge using the client, days of silence, value, stage and the agent's tag.
- Telegram bot
- Sends the nudge with a link to the Notion deal.
Steps
- Duplicate the author's Notion template, then point the two Notion nodes at your copies.
- Each run loads the agents and the open deals.
- Deals whose last edit is at least 7 days old are flagged and sorted by days inactive.
- Each flagged deal is matched to its manager's Telegram ID; unmatched ones are tagged 'Unassigned'.
- For up to five deals, OpenAI writes a nudge and Telegram sends it.
Known problems in the source template
Found by reading the template's JSON, not by running it. Likely fails as shipped.
Problem: The Telegram node picks the chat from $json.target_chat_id, but at that point $json is the OpenAI reply, which doesn't carry it. Every nudge likely goes to the fallback chat instead of the assigned person.
Fix: Use $('🔄 Loop Stale Leads').item.json.target_chat_id.
Problem: The fallback chat ID is the placeholder '-1+1234567890', and both Notion database selections are blank.
Fix: Enter your group's chat ID and select your databases.
Before you start
- A Notion workspace and an internal integration shared with both databases.
- A Telegram bot token from BotFather, and each salesperson's chat ID.
- An OpenAI API key with billing set up.
- Setup estimate: 1–2 h (ESTIMATE).
What can go wrong
Needs the author's Notion database structure (the template links a Notion template to duplicate), a Telegram bot and an OpenAI API key. Deal details are sent to OpenAI. The default coach persona can be sarcastic; set the persona to a tone your team is comfortable with.
- Silent failure'Days inactive' comes from Notion's last edited time, so any edit to the page (a typo fix, a bulk update, another automation) resets the clock even if the client wasn't contacted. Add a 'Last contacted' date property and use that.
- Silent failureOnly the five most overdue deals are sent each run (MAX_ALERTS_PER_RUN); the rest wait without notice. Notion 'get many' calls also return a limited page unless 'Return All' is on, so large CRMs may be partly skipped.
- ReliabilityHave each salesperson open the bot and press Start before go-live: a bot likely can't open a private chat with someone who has never messaged it, so their nudges would fail. Messages use HTML formatting, so a '<' or '&' in the AI's text can make Telegram reject the message.
- ReliabilityManager matching relies on reading an email from the Notion people field. Notion only shares user emails when the integration has permission to read user information including email addresses, so without it every deal is 'Unassigned'.
- Data privacyClient names, deal values and stages are sent to OpenAI. The default prompt tells the AI to be 'sarcastic' about long silences; set a persona your team is comfortable receiving.
- ModelThe template uses gpt-4o-mini, which OpenAI's deprecations page lists for removal from the API on Jan 14, 2027 (recommended replacement gpt-6-luna).
How to adapt it
- Change the schedule to a fixed weekday morning (the template's 24-hour interval drifts with when it was activated).
- Swap Telegram for Slack or email by replacing the last node; keep the per-agent mapping.
- Raise or lower DAYS_INACTIVE_LIMIT per stage (for example 3 days for proposals, 14 for cold leads).
- Skip the AI step and send a fixed message if you just need a reliable reminder.
Sources we checked
- Status
- Researched: Sourced and summarized, not yet run end-to-end by us
- Last checked
- Details checked
Setup estimates are rough guesses for someone comfortable with the tools who already has the accounts and API keys. Real time is unknown until tested.