--- title: "Integrate the function with Zoho CRM" url: https://docs.catalyst.zoho.com/en/tutorials/microservice/java/intergrate-crm/ description: "Build a simple microservice using Catalyst Basic I/O Functions and integrate it with Zoho CRM to send automated counter-based email alerts when more than a specific number of leads are created." last_updated: 2026-08-17T12:16:04Z service: All Services type: tutorial related_links: - name: "Functions" url: /en/serverless/help/functions/introduction --- # Integrate the Function with Zoho CRM Let's now integrate this function with Zoho CRM by creating a workflow rule with a webhook associated to it. You can go through the [help resources for Zoho CRM](https://www.zoho.com/crm/help/) to understand it better. To learn about Workflow Management refer to [this help page](https://help.zoho.com/portal/en/kb/crm/automate-business-processes/workflow-management). To learn about Webhooks, refer to [this help page](https://help.zoho.com/portal/en/kb/crm/automate-business-processes/actions/articles/webhooks-workflow). To integrate the function with Zoho CRM: 1. Navigate to **Setup** and then **Workflow Rules** under the *Automation* section. ![microservice_crm_workflow](https://catalyst-docs-development.zohostratus.in/images/tutorials/microservice/crm-setup-workflow-rules.webp) 2. Click **Create Rule** in the *Workflow Rules* page. ![microservice_crm_workflow](https://catalyst-docs-development.zohostratus.in/images/tutorials/microservice/microservice_crm_workflow.webp) 3. Select the **Leads** module and enter the rule name and description in the pop-up box as displayed below. Click **Next**. ![microservice_crm_rule_create](https://catalyst-docs-development.zohostratus.in/images/tutorials/microservice/microservice_crm_rule_create.webp) 4. Select **Create** and click **Next**. ![microservice_crm_alert_create](https://catalyst-docs-development.zohostratus.in/images/tutorials/microservice/microservice_crm_alert_create.webp) 5. Select **All Leads** and click **Next**. ![microservice_crm_all_leads](https://catalyst-docs-development.zohostratus.in/images/tutorials/microservice/microservice_crm_all_leads.webp) 6. Click **Instant Actions** and select **Webhooks**. ![microservice_crm_webhooks](https://catalyst-docs-development.zohostratus.in/images/tutorials/microservice/microservice_crm_webhooks.webp) 7. Enter the details as displayed below in the pop-up box. ![microservice_crm_webhooks_create](https://catalyst-docs-development.zohostratus.in/images/tutorials/microservice/crm-webhook-leads-setup.webp) You can obtain the Function URL from the Catalyst console or from the CLI as discussed in the previous step. You must append this at the end of the Function URL as shown in the picture: "**?feature_name=CRM&mail_count_threshold=5**". Select the HTTP method as **GET**. Click **Save and Associate**. The workflow rule will now be saved and webhook will be associated with it. We have defined the threshold as "5". Therefore, if more than 5 leads are created in the Leads module, the email alert will be sent automatically. The microservice is now functional and will work without any errors.