This n8n automation monitors open Zoho CRM Deals every week, identifies stalled opportunities, scores their health using Google Gemini AI and triggers sales intervention by emailing the deal owner and creating a high-priority task in Zoho CRM — before the deal goes cold.
This workflow dynamically analyzes every open sales deal retrieved from Zoho CRM. It calculates key metrics per deal such as inactivity duration, stage aging and deal age to understand whether the opportunity has stalled. Only deals with significant inactivity move forward to AI scoring.
Using Google Gemini, each deal receives a Health Score (0–100), along with a risk level, reasons and recommended next actions. If a deal is considered “At-Risk,” the system automatically:
It ensures timely sales intervention without needing manual checks.
| Requirement | Why |
|---|---|
| n8n instance (Self-hosted or Cloud) | Runs the workflow |
| Zoho CRM OAuth2 Credentials | Fetch deals + Create tasks |
| Gmail (or SMTP) credentials | Send alert emails |
| Google Gemini API access | AI scoring on deals |
| Deals must have Stage + Owner + Activity history | Ensures accurate scoring |
Last_Activity_TimeStageOwner.emailQualification, Negotiation, Proposal, etc.| Node | What You Can Customize | Example |
|---|---|---|
| Weekly Trigger | Change execution frequency | Daily scan |
| Fetch Deals | Include additional deal stages | Add “Value Proposition” |
| Filter Stalled Deals | Adjust inactivity threshold | > 15 days instead of 30 |
| AI Prompt | Add more data points | Probability to close |
| Email Alert | Modify message template | Localization |
| Task creation | Add reminder / follow-up info | Due date +1 day |
You can easily extend this workflow by adding:
This workflow is ideal for:
Many more scenarios are possible based on deal movement automation.
| Issue | Possible Cause | Fix / Solution |
|---|---|---|
| No deals processed | Stage filters too narrow | Update fetch URL stage list |
| Emails not sent | Gmail credentials missing or expired | Reconnect Gmail OAuth2 |
| Tasks not created | Zoho API permissions missing | Enable write permissions |
| Owner email missing | CRM field not mapped correctly | Update sendTo expression |
| Health score always null | Output parser mismatch | Check prompt & parser config |
| Workflow runs but no alerts sent | No stalled deals or score >= threshold | Temporarily lower threshold for testing |
If you would like expert help customizing this workflow or implementing additional automation like stage-based triggers, dashboards or integration with Slack/Teams, our n8n automation team at WeblineIndia can assist you.