Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

zoho-crm-webhooks

БесплатноЗапускает вложенные скриптыНе проверен

Receive and authenticate Zoho CRM workflow webhooks. Use when setting up a Zoho CRM webhook (Setup > Automation > Actions > Webhooks) and the workflow rule…

hookdeckот hookdeck★ 104 звезды на GitHub

Об этом скилле

Zoho CRM Webhooks

Zoho CRM sends a webhook when a workflow rule fires: you create the webhook under Setup > Automation > Actions > Webhooks, then attach it to a rule with the Call Webhook action. You choose the URL, the method, the headers and the body. Zoho CRM webhooks are not signed. To authenticate them, add a secret header to the webhook as a Custom Parameter under Header and check it on receipt.

When to Use This Skill

  • How do I receive Zoho CRM webhooks?
  • Does Zoho CRM sign webhook requests? (No: add a secret header yourself)
  • How do I add a secret header to a Zoho CRM webhook?
  • Why doesn't my Zoho CRM webhook send the header? (CRM only sends headers on POST and PUT)
  • How do I parse the form-data or raw JSON body of a Zoho CRM webhook?

Verification (core)

const crypto = require('crypto');

// Hash both sides: equal-length digests, so timingSafeEqual never throws.
function safeEqual(a, b) {
  const ha = crypto.createHash('sha256').update(String(a)).digest();
  const hb = crypto.createHash('sha256').update(String(b)).digest();
  return crypto.timingSafeEqual(ha, hb);
}

function verifyZohoCrmRequest(headers,
    name = process.env.ZOHO_CRM_WEBHOOK_HEADER || 'X-Webhook-Secret',
    secret = process.env.ZOHO_CRM_WEBHOOK_SECRET) {
  if (!secret) return false;                       // never accept when unconfigured
  const received = headers[name.toLowerCase()];    // Node lowercases header names
  return typeof received === 'string' && received !== '' && safeEqual(received, secret);
}
  • The header name is the Parameter Name of the Custom Parameter you added. Read it from ZOHO_CRM_WEBHOOK_HEADER (default X-Webhook-Secret) and look it up case-insensitively.
  • ZOHO_CRM_WEBHOOK_SECRET is the exact, whole value you typed. Compare the whole value.
  • Use POST or PUT. Zoho's create-webhook reference says headers are "applicable only for POST and PUT requests". GET and DELETE webhooks put parameters in the URL and send no custom headers, so they can't carry the secret. The examples accept POST and PUT only.
  • Missing header or mismatch: 401. Secret not configured: 500 (fail closed). Success: 200 within Zoho's 10-second socket timeout.

A static shared credential authenticates the sender, not the body, and gives no replay protection (no signature, no timestamp). Use HTTPS only, use a long random value, and rotate it in Zoho and in ZOHO_CRM_WEBHOOK_SECRET if it leaks.

For complete handlers with tests, see examples/express/, examples/nextjs/, examples/fastapi/.

Hookdeck: the Zoho CRM source type (ZOHO_CRM) checks the same header: enter its name and value on the source. Verification is optional on the source, and there's no timestamp to check. The source pre-selects POST; allow PUT too if your webhook uses it.

Payload

Zoho CRM adds no event name or delivery ID: the body is whatever you configure. For POST and PUT you pick one body type:

  • Form-Data: Module Parameters (record fields such as ${Leads.Last Name}), Custom Parameters (static values) and User-defined Parameters, sent as name/value pairs.
  • Raw: your own Text, JSON, HTML or XML (up to 15,000 characters) with #-inserted merge fields.

The examples assume an illustrative raw JSON template like this one, and also accept form-encoded parameters and plain text:

{
  "module": "Leads",
  "id": "${Leads.Lead Id}",
  "last_name": "${Leads.Last Name}",
  "email": "${Leads.Email}"
}

Put the module name in the body (or one webhook URL per module) so the handler knows what changed. A rule can fire again for the same record, so make the handler idempotent on the record ID plus a field like ${Leads.Modified Time}.

Delivery

Behaviour Value
Methods POST (default), PUT, GET, DELETE: only POST and PUT send headers and a body
Timeout No response within 10 seconds counts as a socket timeout
Retries After a failure Zoho CRM sends one more notification 15 minutes later, then stops for that trigger
Ports Only 80 or 443 in the URL to Notify
Daily limit Webhook calls per day depend on the edition; the Free edition has no workflow webhooks

Environment Variables

ZOHO_CRM_WEBHOOK_HEADER=X-Webhook-Secret   # Parameter Name of the Custom Parameter under Header
ZOHO_CRM_WEBHOOK_SECRET=your-long-random-value   # exact Parameter Value

Local Development

# Express / Next.js (use 8000 for FastAPI). No install or account required.
npx hookdeck-cli listen 3000 zoho-crm --path /webhooks/zoho-crm

Paste the printed HTTPS URL as the webhook's URL to Notify, then create or edit a record that meets the workflow rule's criteria. Zoho CRM has no test button. See references/setup.md.

Reference Materials

Полный SKILL.md на GitHub

Установить zoho-crm-webhooks в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

examples/express/.env.exampleexamples/express/README.mdexamples/express/package.jsonexamples/express/src/index.jsexamples/fastapi/.env.exampleexamples/fastapi/README.mdexamples/fastapi/main.pyexamples/fastapi/requirements.txtexamples/fastapi/test_webhook.pyexamples/nextjs/.env.exampleexamples/nextjs/README.mdexamples/nextjs/app/webhooks/zoho-crm/route.tsexamples/nextjs/lib/verify-zoho-crm.tsexamples/nextjs/package.jsonexamples/nextjs/vitest.config.tsreferences/overview.mdreferences/setup.mdreferences/verification.md

FAQ

Что делает скилл zoho-crm-webhooks?

Receive and authenticate Zoho CRM workflow webhooks. Use when setting up a Zoho CRM webhook (Setup > Automation > Actions > Webhooks) and the workflow rule that calls it, adding a secret header as a Custom Parameter, debugging 401s or missing headers (CRM only sends headers on POST and PUT), or parsing the form-data or raw JSON body built from ${Module.Field} merge fields for Leads, Contacts, Deals and other modules.

Как установить скилл zoho-crm-webhooks?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл zoho-crm-webhooks запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить zoho-crm-webhooks с