Zoho CRM
Zoho CRM is a sales CRM. Its webhooks are actions of workflow rules: when a lead or a contact is created, or a deal changes its stage, Zoho calls an address with a body you write yourself. Written in the AlphaFlow format and pointed at the Flows address, this body starts your flows: a new lead gets a welcome in Viber or SMS, with a reminder if nothing happens.
Deals are the weak spot: a deal has no phone of the contact, so its events do not reach a person by themselves — see Deals have no phone.
This page is written from the public documentation of Zoho CRM and has not been checked on a live account yet.
What you need
- Zoho CRM Professional, Enterprise or Ultimate — these editions are in the webhook limits of the Zoho documentation. Whether Free and Standard have webhooks is not confirmed by the documentation.
- Access to Setup → Automation.
- Zoho limits the webhook calls per day, whichever is less: Professional — 50,000 or 100 per user, Enterprise — 500,000 or 500 per user, Ultimate — 1,000,000 or 1,000 per user. Above it Zoho sends nothing and notifies the administrator.
- One webhook per event: leads are one webhook, contacts another. All of them use the same address.
Step 1. Create a connection
- Open
Flows → Connections, press Connect a system and choose Zoho CRM. - Press Copy address. It looks like
https://events.alphasms.net/hooks/<TOKEN>— keep it secret.
Step 2. Set up a webhook in Zoho CRM
- Open Setup → Automation → Actions → Webhooks and press Configure Webhook.
- Name — letters and digits, for example
AlphaFlow leads. - Method —
POST, URL to Notify — the address from the cabinet. - Authorization Type — General: no key is needed, the secret is in the address.
- Module — Leads (for the other bodies — Contacts or Deals).
- Body — Raw, type JSON. Paste the body below. Insert the fields with
#instead of typing them: a field Zoho does not support turns into${Unsupported_Field}, and you see it at once. - Press Save.
- Open Setup → Automation → Workflow Rules and press Create Rule: Module — Leads, the condition — when a record is created. In Instant Actions choose Webhook, pick the webhook, press Associate and Save.
The body for leads:
{"event":"lead_submitted",
"contact":{"phone":"${Leads.Phone}","email":"${Leads.Email}","external_id":"${Leads.Lead Id}"},
"traits":{"first_name":"${Leads.First Name}"},
"message_id":"zoho:lead_submitted:${Leads.Lead Id}",
"context":{"source":"zoho_crm"},
"properties":{"lead_source":"${Leads.Lead Source}"}}
The body for contacts, if your event is about a contact:
{"event":"form_submitted",
"contact":{"phone":"${Contacts.Phone}","email":"${Contacts.Email}","external_id":"${Contacts.Contact Id}"},
"traits":{"first_name":"${Contacts.First Name}"},
"message_id":"zoho:form_submitted:${Contacts.Contact Id}",
"context":{"source":"zoho_crm"}}
The body for deals — the rule fires when the Stage field changes; read Deals have no phone first:
{"event":"deal_stage_changed",
"contact":{"external_id":"${Deals.Contact Name}"},
"context":{"source":"zoho_crm"},
"properties":{"stage":"${Deals.Stage}","deal_name":"${Deals.Deal Name}","amount":"${Deals.Amount}"}}
The format ${Module.Field} and the field ${Leads.Lead Id} are from the Zoho documentation. The other field names
are taken from a third-party guide or are not confirmed by the documentation — another reason to insert them with
#.
The deal body has no message_id on purpose. A Zoho stage name has spaces ("Closed Won"), which a message id
cannot hold, and without the stage the second change of the same deal would be taken for a repeat. AlphaFlow accepts
such an event with the warning no_message_id.
Step 3. Send a test
Create a test lead with your own phone. The event appears in
Flows → Connections → Event journal within seconds. The body
is already in the AlphaFlow format, so AlphaFlow takes it as it is, without mapping. The connection shows Recognised: Zoho
CRM.
Events
| Rule in Zoho CRM | AlphaFlow event | Properties |
|---|---|---|
| Leads — a record is created | lead_submitted | lead_source |
| Contacts — your rule | form_submitted | — |
| Deals — Stage changes | deal_stage_changed | stage, deal_name, amount |
The name of the event is the event field of the body: change it there to send another event. The contact is found
by contact.phone, contact.email and the Zoho id of the record in contact.external_id; the first name goes in
traits.first_name. stage is a plain property: such a body has no table of stages. The names of the events are
the ones the ready-made templates expect — see Recommended events.
A name like order_paid or ticket_closed goes only into the webhook of a rule whose condition checks the value —
for example, Stage is Closed Won. A rule on any change of the stage sends deal_stage_changed with stage:
otherwise a deal that only moved to another stage reaches the customer as finished.
Deals have no phone
The fields of the Deals module have no phone of the contact, and a field of another module turns into
Unsupported_Field there. So the deal body carries only ${Deals.Contact Name}, and whether it is the name or the
id of the contact is not confirmed by the documentation. Such an event reaches only a contact AlphaFlow already knows by
this value; otherwise it is refused with no_contact.
What works instead:
- send the events of Leads and Contacts — they carry the phone;
- a phone field in the deal itself (your own field that copies the phone) — whether Zoho allows it is not confirmed by the documentation.
Good to know
- Zoho waits 10 seconds for the answer. On failure it sends the request once more after 15 minutes, and then nothing.
- Up to 6 webhooks per rule (1 instant and 5 time-based); up to 10 CRM fields per webhook and a Raw body up to 15,000 characters. The modules Call Logs and Notes are not supported.
- A quote or a line break inside a field value — a name with a quote — breaks the JSON. Whether Zoho escapes them is not described in the documentation.
- The address always answers
200. Above the daily event limit the event is refused in AlphaFlow withquota_exceededand shown in the journal; the webhook in Zoho CRM stays on.