Hey everyone!
In a sales organization, incoming Leads must be assigned to the right sales representatives based on region or business requirements.
For example, a company operating in India, the USA, and the UK may have separate sales teams for each region. Traditionally, configuring or updating
Assignment Rules in Zoho CRM requires navigating through multiple settings.
With
MCP, users can simplify this process by using natural-language prompts to create, view, and update
Assignment Rules without manually navigating through CRM settings.
Setting Up Zoho MCP
Follow the steps explained in the article to:
1.Create or select a Zoho MCP server.
2.Add the required Zoho CRM tools for this use case.
3.Connect the MCP server to your preferred MCP client.
4.Complete the authorization process.
Once the setup is complete, you can proceed with the Assignment Rule use case explained below.
Note: Make sure Zoho CRM MCP is connected and ready to manage Assignment Rules before proceeding. Before using the prompts below, confirm that the Zoho MCP connection is active, authorized for the intended organization, and has the required Zoho CRM tools enabled. Review the proposed changes and verify the resulting rule in CRM.
The reference article covers MCP server configuration, tool selection, client connection, and authorization.
The Zoho CRM MCP server provides several tools for working with Assignment Rules such as
- List rules: ZohoCRM_getAssignmentRules
- Get a rule’s details: ZohoCRM_getAssignmentRuleById
- Retrieve rule associations: ZohoCRM_getAssignmentRuleAssociations
- Count rules: ZohoCRM_getAssignmentRulesCount
- Create a rule: ZohoCRM_postAssignmentRules
- Update a rule: ZohoCRM_updateAssignmentRuleById
- Delete a rule: ZohoCRM_deleteAssignmentRuleById
- Clone a rule: ZohoCRM_cloneAssignmentRule
- Reorder entries: ZohoCRM_putReorderEntries
Use case: Regional lead distribution
Consider a company that receives Leads from three regions:
- India
- USA
- UK
The company wants incoming Leads to be assigned to the appropriate regional sales representatives.
The required assignment configuration is:
Lead Region | Assigned users |
India | Karthik |
USA | Patricia Boyle |
UK | Jos (later Jos and Smith, distributed round-robin) |
Other regions / no matching criteria | Any user |
The objective is to configure one Assignment Rule named Regional Lead Distribution and make future changes without manually navigating through CRM settings.
Prerequisites for this use case in Zoho CRM
1. The Leads module is enabled.
2. A custom picklist field named Lead Region exists in the Leads module.
3. The picklist contains the values of India, USA, and UK.
4. The following users exist in Zoho CRM:
- Karthik
- Patricia Boyle
- Jos / Smith
- Regional Sales Manager / any other user for default assignee
5. The user connecting through MCP has the necessary permissions to view and manage Assignment Rules.
Note: The names used in this example are illustrative. Replace them with the actual field values and user names in your CRM.
Implementing the use case through MCP
Once the prerequisites are ready, connect to the Zoho CRM MCP server and start a session where the CRM tools are available. The user can now manage the Assignment Rule by entering the following prompts one at a time.
1.View Existing Assignment Rules
It helps avoid creating duplicate or unnecessary Assignment Rules.
Prompt:
Check my Zoho CRM Leads module and show me:
1. Available fields and Lead Region values.
2. Unique ID of users Karthik, Patricia, Jos.
3. Existing Assignment Rules and their total count.
4. Whether Regional Lead Distribution already exists.
Do not make any changes.
2.Create the Assignment Rule
Instead of manually navigating through CRM settings and configuring each condition, the user can describe the required assignment logic in natural language and MCP creates the Assignment Rule based on the user's requirements and presents the resulting configuration for review.
Prompt:
Create an Assignment Rule named 'Regional Lead Distribution' for Leads.
Assign Leads as follows:
- India → Karthik
- USA → Patricia
- UK → Jos
Default assignee: Patricia.
Use the existing CRM field and users. Show me the created rule details.
3.Verify the Assignment Rule
Prompt:
Verify the 'Regional Lead Distribution' Assignment Rule.
Check its name, module, number of entries, region conditions, assigned users, default assignee, and execution order.
Compare the actual configuration with the original requirements in a table.
Do not make any changes. If something is incorrect, explain it and ask for my approval before updating.
4.Update the Assignment Rule
The UK sales team has hired another representative, Smith. The user needs to include this person in the existing UK assignment configuration.
Prompt:
Update the 'Regional Lead Distribution' Assignment Rule:
- India → Karthik
- USA → Patricia
- UK → Jos and Smith
- Default assignee → Patricia
Keep all other conditions unchanged. Show me the updated rule details.
When an entry has more than one assignee, Zoho CRM distributes matching Leads among those users in round-robin order. After this update, UK Leads alternate between Jos and Smith. India and USA Leads, and the default assignee, are unchanged.
The existing Assignment Rule is updated to include Smith in the UK region without changing the India or USA assignments or the default assignee.
5.Clone an Assignment Rule
Prompt:
Clone the 'Regional Lead Distribution' Assignment Rule and name the new rule 'Regional Lead Distribution - Extended'.
Verify that all conditions, assigned users, and the default assignee are copied correctly.
Show me both Assignment Rule IDs. Do not modify or delete the original rule.
6.Reorder Assignment Rule entries
Let us introduce another business requirement. Suppose the organization wants to prioritize UK Leads over India and USA Leads.
Prompt:
Change the execution order of 'Regional Lead Distribution - Extended' to:
1. UK
2. India
3. USA
Keep all conditions and assigned users unchanged. Show me the updated rule and verify the new order. Do not modify any other Assignment Rule.
Final Demo
Creating an Assignment Rule does not itself execute it against existing Leads. You need to test the rule using a supported record-entry method.
Zoho CRM supports Assignment Rules for records entering through imports, webforms and APIs. Manually created records do not trigger them automatically.
In this demo, records have been created using the
Insert Records API. For an API-based test, Zoho's Insert Records API supports the
lar_id parameter, which identifies the Assignment Rule to trigger.
Request URL:{{api-domain}}/crm/v8/Leads
Request Method: POST
Input and demo:
{ "lar_id": "5725767000012041217", //stands for Lead Assignment Rule ID. Unique number used in API requests to force Zoho CRM to evaluate and execute a specific assignment rule when records are created or updated. "data": [ { "Last_Name": "Assignment Test India 001", "Company": "Regional Assignment API Testing", "Lead_Region": "India" }, { "Last_Name": "Assignment Test USA 001", "Company": "Regional Assignment API Testing", "Lead_Region": "USA" }, { "Last_Name": "Assignment Test UK 001", "Company": "Regional Assignment API Testing", "Lead_Region": "UK" }, { "Last_Name": "Assignment Test Unmatched 001", "Company": "Regional Assignment API Testing", "Lead_Region": null } ] }
|
Note: The records used in this example are sample records created for testing purposes only. Please create records based on your actual business requirements.
With Zoho CRM MCP, managing Assignment Rules becomes simpler and more convenient. Users can manipulate Lead Assignment Rules using natural-language prompts without manually navigating through CRM settings.
This approach reduces manual effort, simplifies CRM administration, and helps users manage changing business requirements more efficiently.
Thanks!
Related Links:
- Assignment Rules
- Zoho CRM API Documentation
- MCP
- Zoho MCP connection
- Zoho CRM skills repository