Setting up and using the Bitrix24 integration

This article explains how to set up and use the integration between your bot and Bitrix24, and what it can do.

Connecting

df689aa142970e9dfcb4973e3d1f8cbf.png

1. Log in or sign up to Bitrix24 and copy the link to your Bitrix24 account, for example: https://*******.bitrix24.ru/

88bb01037af9116d4eb890467499b17f.png

2. Go to the integration settings in your puzzlebot account: Bot — Settings — Integrations — Bitrix24 — Set up integration.

e53ffe2cbf1cc8890a110d0baebd6abe.png

3. Paste the copied link to your Bitrix24 account into the input field in step one and click "Save".

f5305c934ebbfa3cc0a388011455c13a.png
7e813da1b6009571fd361a1526c5b89a.png

4. Use the button in step two or the link https://www.bitrix24.ru/apps/app/puzzlebot.puzzlebot/ to go to your Bitrix24 account and install the puzzlebot app.

6033a9f8a227c97c38b07f36e98846f0.jpg

5. When the installation finishes, the app window shows the result of linking the accounts.

96bbb1e0be4d0cb06b05e84d0828f749.png

6. Go back to your puzzlebot account and click "Continue".

7f84bb0e1563f32edd6cb7c5d1b5a267.png

7. Specify the fields and variables for storing the user's Telegram User ID and Name, or leave everything as is, and click "Connect integration".

Settings

Let's go through the integration settings tab by tab.

Important! All actions with contacts, leads and deals are based on the user's Telegram User ID. If this field is changed in Bitrix24, the action will not be performed.

Contacts

On this tab you can:

  1. Set up synchronization between Bitrix24 contacts and your bot's users.

  2. Add bot users to Bitrix24 clients as a one-time operation.

  3. Add Bitrix24 clients to bot users as a one-time operation.

08e85be01d2862beb84648ea6aa36e96.png

Before any of the actions above, link puzzlebot variables to contact fields in Bitrix24.

You can enter names of fields that don't exist yet, and they will be created automatically.

Important! While synchronization is active, linked variables and fields keep each other up to date wherever the change is made: if you change a value in a Bitrix24 field, the value of the puzzlebot variable changes too, and vice versa. Links marked with arrows are the exception.

738490fe4add8167b596427d50f7a8b4.png

To activate synchronization, click the corresponding button. Synchronization stays active until you cancel it or change the link to your Bitrix24 account.

Deals and Leads

c6e37c7422fa5e2b04a00bcefc247354.png

Final stages / statuses — this setting defines from which stage or status the system may ignore deals and leads.
Example: a check for an existing deal returns a negative answer if the deal has moved to a final stage.

Several Deals / Leads from one user — allows creating 2 or more Deals / Leads from one user.

Ignore Deals / Leads in a final stage / status — works together with the final stages setting and turns ignoring on or off.

3c96a5cde04145a5762b6373d60416b6.png

Stage / status change notification — lets you set up sending a command when a Deal / Lead moves from one stage / status to another.

Important! When the Ignore Deals / Leads in a final stage / status function is enabled, no notification is sent for final stages / statuses.

Actions

Here are the actions available for working with Bitrix24.

f40c4dccba4b263ba36afdcd49e5f3bc.png

Deals and Leads

The following types are available:

  1. Create lead / deal

  2. Change lead / deal field

  3. Change lead / deal status

  4. Delete lead / deal

Most settings are self-explanatory, so let's look at the special ones:

a325bd8ccd88487e2a13028b9374d37d.png

Write to field — writes the value specified on the puzzlebot :// side to the specified field of the lead or deal. On the puzzlebot :// side, the input line can contain text, a number, a formula or a variable.

Important! You can't write to lead or deal fields that don't exist.

ef6feefb74e4549f07c55f6993b7b629.png

Link to user — defines what is specified in the lead / deal information: a contact or the user's Telegram User ID.

Important! If you choose "By contact", the contact must already exist in Bitrix24. With active synchronization this is done automatically.

aaa87877fab95307b27bc86d1da04483.png

Active lead / deal — defines which lead or deal to work with. Relevant when the "Several leads / deals from one user" function is enabled in the settings.

Contact

The following types are available:

  1. Create contact

  2. Delete contact

Checks

Here are the checks available for working with Bitrix24.

bb50988857ba74cc2a73b61163374976.png

Deals and Leads

The following types are available:

  1. Lead / deal exists

  2. Lead / deal status

  3. Lead / deal field value

Contacts

The following types are available:

  1. Contact exists

  2. Contact field value

Was this page helpful?