# Set up Lead or Contact Creation for Bitrix24 CRM

Once Cloud Voice is connected to Bitrix24 CRM (Customer Relationship Management, the software your team uses to track leads and contacts), you can have calls involving unrecognized numbers populate your CRM records. This keeps your Bitrix24 database current by capturing every new caller as a lead or contact, whether the system logs them for you or your extension users add them during a call.

## Before you begin

Make sure you have already [integrated Cloud Voice with Bitrix24 CRM](/pbx/integrations/bitrix24/integrate-cloud-voice-with-bitrix24-crm/).

## Configure record creation

1. Sign in to the PBX (Private Branch Exchange, the phone system) web portal and open **Integrations > CRM**.
2. On the CRM integration page, enable **Create New Contact**.
3. From the **Create Contact or Lead** drop-down list, choose which record type(s) an unknown number should be saved as:

   ![Drop-down menu for choosing whether a new number is stored as a contact or a lead](/images/pbx/creat-lead-or-contact.png)

   - **Contacts**: store the unknown number as a Contact.
   - **Leads**: store the unknown number as a Lead.
4. Under **Create Method**, decide how records are added:
   - To let the system add records on its own for the call types you specify:
   1. Select **Automatically**.
   2. Open the **Call Type** drop-down list and choose the calls that should trigger creation:

        ![Call type selector for choosing inbound, outbound, or both as the trigger for record creation](/images/pbx/select-in-or-out-to-create-new-contact.png)

        - **Inbound**: a call received from an unknown number that does not match any existing Contact, Lead, or Account in the CRM.
        - **Outbound**: a call placed to an unknown number that does not match any existing Contact, Lead, or Account in the CRM.
   - To let the associated extension users (the extensions linked to CRM users in the integration) create records themselves while on a call, select **Manually**.

   :::tip
   Automatic creation is convenient, but it adds a record for every unknown number that matches your **Call Type**, including wrong numbers and one-off calls. To keep the database tidy, either choose **Manually** so users decide which callers are worth saving, or limit **Call Type** to **Inbound** only.
   :::
5. Click **Save**.

## What happens next

- With automatic creation turned on, a new lead or contact appears in Bitrix24 CRM whenever an associated extension places or receives a call involving an unknown number.

  :::note
  Records created this way are named with the prefix `Automatic New Contact` followed by the number.
  :::

  ![A newly generated Bitrix24 record named with the Automatic New Contact prefix](/images/pbx/auto-create-new-contact.png)

- With manual creation turned on, the associated extension users can add an unknown number to the CRM as a lead or contact during the call.

  ![A user adding an unknown caller to the CRM as a new record during a call](/images/pbx/manually-create-crm-contact.png)

:::note
If [Contact Synchronization](/pbx/integrations/bitrix24/set-up-contact-synchronization-from-bitrix24-crm/) is turned on, each new lead or contact is also copied to the corresponding Cloud Voice phonebook automatically.
:::
