View Categories

Sending SMS and WhatsApp Messages via Webhook in Zoho

CRM Messaging allows you to send SMS and WhatsApp messages through Zoho CRM workflows by setting up webhooks. Follow this guide to understand where to configure each parameter.


Steps to Create a Workflow with Webhook in Zoho CRM

  1. Access Workflow Rules:
    • Navigate to Settings > Automation > Workflow Rules in Zoho CRM.
  2. Define the Workflow:
    • Click Create Rule.
    • Select the module (e.g., Leads, Contacts) where you want the trigger to occur.
    • Define the trigger condition (e.g., On Record Creation or On Record Update).
  3. Add Webhook Action:
    • In the actions section, choose Webhook and click Create Webhook.
  4. Configure Webhook Settings:
    • Webhook Name: Enter a descriptive name (e.g., “Welcome SMS on Lead Creation”).
    • Notify URL: Use the following endpoint shared below, copy it
    • Method: Set the method to POST.
    • Authorization Type: Choose General.
https://app.crm-messaging.cloud/index.php/Zoho/Webhook
  1. Set Up Request Body:
    • Under the Body section, select Form Data.
    • Configure the parameters as described below:

Parameter Categories

Module Parameters (Mandatory)

These parameters are required to process the webhook and should reference fields in the module:

  • message_to: The field containing the recipient’s phone number.
    • Example: #{Leads.Phone} (if using the Leads module).
  • zoho_token: Your Zoho authentication token field in CRM Messaging.

User-Defined Format

This parameter contains the message content and is user-defined:

  • message_body: The text of your SMS or WhatsApp message.
    • Example: "Welcome to our platform, #{Leads.Name}!".

Custom Parameters (Optional)

These parameters allow additional customization for WhatsApp messages or advanced configurations:

  • tempName (Mandatory for WhatsApp): The unique name of the WhatsApp template.
    • Example: "welcome_template".
  • channel (Optional): Specify the channel (sms or whatsapp).
    • Example: "whatsapp".
  • mediaUrl (Optional): The link to any media file to be included in the message.
    • Example: "https://example.com/media.jpg".
  • fromnum (Optional): Specify the sender’s number if you have multiple numbers in your account.
    • Example: "9876543210".

  1. Save the Webhook:
    • After adding all parameters, review the configuration and click Save.
Screenshot 2023 12 30 150303 1024x510 1

Workflow Summary

  • Module Parameters: Include message_to and zoho_token.
  • User-Defined Format: Use message_body for the message content.
  • Custom Parameters: Add optional parameters like tempName, channel, mediaUrl, and fromnum for WhatsApp or advanced SMS configurations.