Русский
Academy → Plugins

Bitrix24: create a lead from an enquiry

See how your team could receive enquiries in its usual CRM. For example, submitting a measurement request can create a lead in a test Bitrix24 account.

Standalone adapter · preview · bitrix24

What visitors see

The guest uses a regular HOBA form with consent for CRM forwarding. No Bitrix24 window appears. After HOBA accepts the form, the operator checks delivery to the CRM separately.

What you need

This preview is a separate Node.js 22+ service, with no Admin plugin to install. An integrator runs it in an approved test environment with a private journal. It needs a supported hosted Bitrix24 account with leads, a minimally privileged Bitrix24 inbound webhook, and a HOBA signed outbound webhook. The CRM token and signing secret belong in the configured server services only.

Where the data goes

HOBA sends a signed notification for a saved enquiry. The adapter verifies its signature, form, site, and recorded consent. It sends only the supplied name, phone and email when there is a usable contact, plus a fixed lead title. The journal tracks delivery without retaining form answers.

How to enable it

  1. Create a test form with consent for CRM forwarding and arrange dedicated access that can add leads in Bitrix24.

  2. Have the integrator run the adapter separately, following the archive README. Set the exact site, form and consent identifiers, supply secrets privately, and set up HTTPS to receive the signed event.

  3. Create a signed HOBA subscription for form submissions. There is no package to upload in Plugins.

Which settings go where

  • Bitrix24 administrator · create an inbound webhook with CRM access to add a lead (crm.lead.add). The preview supports an exact hosted domain such as account.bitrix24.ru or account.bitrix24.com. Provide the hostname, user number, and token rather than pasting the whole webhook URL.

  • Integrator · adapter environment: HOBA_SITE_ID, HOBA_FORM_ID, HOBA_CONSENT_FIELD_ID, BITRIX24_HOST, BITRIX24_WEBHOOK_USER, BITRIX24_STATE_DIR. HOBA_WEBHOOK_SECRET and BITRIX24_WEBHOOK_TOKEN are separate server secrets. PORT is optional (default 8787 on 127.0.0.1).

  • Operator · the site’s Admin → Webhooks → New webhook: set Endpoint URL to the adapter’s HTTPS address with path /webhooks/hoba, select form.submitted under Events, and enter the same private HOBA_WEBHOOK_SECRET under Signing secret. Use Core that includes a consent snapshot and form revision in the notification.

How to check it

Send fictitious contact details and verify the contents of the resulting lead. Replay the same notification and check that it does not create a second lead. A form outside the configured site/form pair should not create a lead.

If something does not work

After an uncertain outcome, the adapter does not send another CRM request because it could create a duplicate. Compare the HOBA delivery log and Bitrix24 before creating a lead manually: a timeout does not prove the lead is absent. The enquiry remains in HOBA. This is a preview for testing; delivery is not guaranteed.