Webhook connection

An universal method of transferring data from any of your lead sources into the CRM system
Written by LeadBox
Updated 1 year ago

Webhook is an address for transferring data from your resource (Website, Google Ads Lead Form or any other form) to the LeadBox service, for further processing and transfer to your CRM system

Connecting the source of leads via Webhook can be configured in 3 steps:

STEP 1: Creating a Webhook in LeadBox.

  1. Go to the integration section
  2. Click “Add Integration”
  3. From the list of integrations that appears, select "Webhook" and click on it
  4. Write down the name of the integration (so that you can then understand what is which of the connected integrations)

STEP 2: Set up sending data from the form of your Website or any other form to the created Webhook.

After you have saved the integration with the name, the configuration page for this integration opened. The first item after the name of the integration is the Webhook address. Copy the webhook by clicking on it.

Next, you have to send data from the form (or from many forms, if they have the same structure) to this webhook.

  • If your Website or form is on a service that already has a pre-configured option to send data to a webhook, you can learn how to set up this sending from the technical support of the service or from the documentation of this service.
  • If your Website was developed by a technical specialist, then you need to transfer this webhook to him with a request to configure the sending of data from the form to the webhook address.
The data transfer method must be: POST
Data format: JSON
Example:
{
  "name": "Ivan",
  “phone”: “(099) 123-45-67”,
  “email”: “test@gmail.com”
}

The response from the webhook to the server will be HTTP 200

For each separate form on the  Website, you can make a separate integration in LeadBox to be able to configure fields and distribution among managers as flexibly as possible. Accordingly, you then create your webhook for each form.

After installing the webhook on the side of Website/form, we send a test lead. It should appear in the Register page of the LeadBox as an array of information. To expand the received data, click on the arrow in the first column of the list. You will need this data to match the fields in the next step.

To make it easier to navigate, choose JSON data display:

STEP 3: Setup webhook and transfer information to CRM on LeadBox side.

Open the page of webhook integration in LeadBox and go through the configuration blocks.

  • Connection to - select in this field the CRM to which applications will be sent. CRM must be pre-connected
How to connect CRM to LeadBox, read here
  • Field mapping.

In the field mapping block, the column on the left "Parameter key" is responsible for the data that will be filled in CRM. And the column on the right "Parameter value" is for selecting data getting from Webhook.

The data put in the "Parameter value" (data received from Webhook) is taken from the first test lead that should be sent after connecting Webhook. You will find this data in the Register section of LeadBox. Depending on the fields of your form, you will receive the appropriate data set.

There is no need to compare the data that came with the "name", "phone" and "email" parameters. 
Read more about field mapping here
It should look like this if the form contains only the name / phone number and email fields (and we compare only the fields related to traffic sources and the name of the deal and the stage of Pipeline). The name of the deal is matched without {{}}, in order to pass a constant value:
  • List of responsible managers.

Settings for distribution of orders from this source among different managers. To configure, select a pre-created collection of managers. Use it if no responsible manager is configured in the field mapping block.

Read more about the general distribution of applications to managers here, and about creating collections - here
  • Integration rules.

In the standard setting, LeadBox checks the presence of a contact and an active deal in the CRM. If there are both of them - it puts the task on the responsible user in the deal. If there is a contact only (without deal), LeadBox creates a deal assigned to the responsible manager from the existing contact. If there is neither a contact nor a deal, LeadBox will create both for the responsible user selected in the distribution settings.

This algorithm can be supplemented with settings from the blocks below:
- Disable deal creation - if activated, LeadBox will not create a deal even if there is neither a contact nor a deal in CRM. Only update data in existing deal / contact;
- Prohibit task creation for a duplicate deal - if activated, LeadBox will not create a task for the responsible user if there is a new active deal for the same contact;
- Update fields - if activated, LeadBox will update all fields in the contact and already existing active deal according to the data transferred from the new lead.
- Update only empty fields - will update only those fields that were empty in the contact / deal with new information from the lead (for example information about Traffic Source). 

Most often, you need to make the following settings here:
Read more about setting up integration rules here
  • Filter setting

Setting the filter is necessary if you do not need all the leads from this connection in your CRM system.

Additional, you can read about filter settings here
  • Unification of the phone.

In the standardization of the phone number, the format of the Ukrainian number is a priori selected, but it is possible to insert another code and change the check of the number of characters in the phone number for leads from another country. Standardization is configured for only one format. So if you have different countries, it is better to make different lead forms for them and set the necessary number settings in each of them separately.

Did this answer your question?