๐Ÿ”’ Monitor Zoho CRM changes & alert on suspicious activity with Google Sheets

โšก 84 views ยท ๐Ÿ”’ SecOps & Security Automation

Description

๐Ÿ“„ Zoho CRM Change Tracking & Automated Suspicious Activity Alerts Workflow

This n8n workflow automatically monitors selected Zoho CRM modules for record changes, identifies suspicious modification patterns, logs all activity into a Google Sheet, generates an audit JSON file for each record and sends immediate email alerts for suspicious events. It runs incrementally using a time window so only recent changes are processed, keeping monitoring continuous and accurate.

โšก Quick Start โ€” โ€œImplement in 5 Stepsโ€

  1. Import the workflow JSON into n8n.
  2. Connect credentials: Zoho CRM OAuth2, Gmail OAuth2, Google Sheets.
  3. Update Google Sheet ID + recipient email if needed.
  4. Review modules being monitored (Leads, Contacts, Accounts, Deals).
  5. Activate the workflow โ€” n8n begins tracking CRM changes instantly.

What It Does

This workflow acts as an automated security and audit layer for Zoho CRM. It fetches updated records from selected CRM modules within a calculated time window, extracts critical change details, and enriches them with timestamps, ownership, field change counts, and metadata. Based on defined rules, it identifies unusual or high-risk patterns such as deletions, ownership updates, email modifications or bulk field changes.

Every record that is processed is output in two ways:

When suspicious patterns are detected, the workflow immediately generates a rich HTML email alert to your security team, ensuring fast response. The lastRun value is maintained to avoid duplicate processing.

Whoโ€™s It For

This workflow is ideal for:

Prerequisites

To run this workflow successfully, ensure you have:

How to Use & Setup

Step 1 โ€” Import Workflow

Upload the provided JSON file inside n8n.

Step 2 โ€” Connect Credentials

Configure nodes:

Step 3 โ€” Setup Google Sheet

Your sheet should contain at least these columns:

Update the sheet ID in the node if needed.

Step 4 โ€” Validate Modules List

By default, the workflow monitors:

This is defined in two nodes: Modules list (from API) and Filter unsupported modules.

Step 5 โ€” Activate Workflow

Once activated, it calculates a time window using:

Only changes within this window are processed.

How To Customize Nodes

1. Compute Time Window

2. Modules list (from API)

Update the requiredModule array to include or remove CRM modules.

3. Suspicious Logic (as implemented)

In Detect Unusual Patterns, a record is flagged suspicious if:

These rules can be modified directly inside the function code.

4. Email Template

Edit subject, HTML body, or recipients in the Email Security Team (Gmail) node.

5. Google Sheets Mapping

Column mapping can be modified or extended directly in the Append or update row node.

Add-Ons (Optional Enhancements)

These Add-Ons align strictly with the workflowโ€™s existing structure:

โœ” Add more Zoho CRM modules

Expand requiredModule arrays in two function nodes.

โœ” Adjust suspicious detection rules

Customize keywords, field names, or thresholds in Detect Unusual Patterns.

โœ” Add more fields to the Google Sheet

Extend mapping in the Google Sheets node.

โœ” Change alert recipients or message style

Modify the Gmail nodeโ€™s HTML and toList fields.

โœ” Increase audit retention by storing JSON files

Forward binary audits to Drive, Dropbox, or S3 using an additional node.

Use Case Examples

This workflow can support several practical business scenarios:

There can be many more use cases depending on your CRM setup and security policies.

Troubleshooting Guide

IssuePossible CauseSolution
No data being capturedZoho OAuth issue or wrong modules listReconnect OAuth & verify module API names
Suspicious emails not sentGmail OAuth not connectedRe-authenticate Gmail credentials
Duplicate rows in Google SheetMatching column misconfiguredCheck โ€œRecord Idโ€ mapping in Google Sheet node
Workflow processes too few recordsTime window too smallIncrease pollMinutes in Compute from/to
Missing fields in Google SheetMapping not definedExtend mapping under Sheets โ†’ Columns
Audit file not generatedBinary property overwrittenEnsure no node clears binary data before file creation
Workflow doesnโ€™t resume continuitylastRun not updatingCheck Update lastRun node execution path

Need Help?

If you need assistance customizing:

The n8n Team at WeblineIndia can help extend, optimize or deploy this workflow professionally.

Feel free to reach out for setup, enhancements or complete automation solutions.

๐Ÿ”— Nodes Used

Function, Google Sheets, HTTP Request, Gmail

๐Ÿ“ฅ Import

Download workflow.json and import into n8n: Workflow menu โ†’ Import from File

๐Ÿ“– Importing guide ยท ๐Ÿ”‘ Credential setup