# Setting Lead Form

Simply defined, leads in marketing refer to any individual or organisation within your marketing reach who has interacted with your brand way or has the potential to become a future customer.

Leads are crucial for sales & marketing.

Your bot can capture Lead information of any user that interacts with it and store it on your dashboard for future reference. The properties and nature of these leads can be configured by you.

1. Log in to the [Dashboard](https://orimon.ai/login) -> navigate to the overview page of the bot that you want to change.
2. Go to Settings -> Bot Appearance -> Lead Form section and click on it to edit.

<figure><img src="https://55912965-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxUW02x9klXneNc1Bxtt6%2Fuploads%2FaNTKY05wlymQBgn4eRke%2FScreenshot%20from%202024-01-15%2012-13-21.png?alt=media&#x26;token=c9f03814-2fa0-4f73-bb0f-a90152c042a6" alt=""><figcaption></figcaption></figure>

You will now see a page with options to modify various aspects of your bot, along with a preview of your bot on the right side. Here, Click on the "**Lead Form**" drop down.

After this, you will see a list of configurations. These configurations are indexed with respect to their set on instructions in the list below the image.

<figure><img src="https://55912965-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxUW02x9klXneNc1Bxtt6%2Fuploads%2FBYIggRQ0KTeNnc9BTv9W%2FScreenshot%20from%202024-01-15%2012-22-32.jpg?alt=media&#x26;token=48e12554-d015-4565-bd86-58b29167964e" alt=""><figcaption></figcaption></figure>

1. The first check-box on the top right corner is "**Required**", checking this box will ensure that the user cannot start the conversation without filling in the lead form. The second is the "**Active**" switch, which if switched-off, will disable the Lead Form altogether.
2. The "**Required**" & "**Active**" buttons on this index function similar to the ones mentioned above, except they function for the property they are designated for. For example, switching-off the name "**Active**" switch will remove name from the Lead Form. The third parameter is "**Set Primary**", Learn more about primary identifiers of Leads in the drop-down below.

<details>

<summary>Primary Identifiers</summary>

Whenever a Lead is collected it has at least one property that is unique to it, which can be used to identify it in a large collection of leads. It is also a value that must always be present, for every lead.

This is known as a **Primary Identifier**.

Setting a Field as *Primary Identifier* in your **Lead Form Configuration** means that no two leads can have the same value for that field.&#x20;

This also means that this field cannot be disabled as long as the lead form is enabled.

</details>

3. If you feel that the default Lead properties are not suited for your needs, you can add more fields by clicking on "**Add New**"  button. This will display a set of configurations for your new field.

<figure><img src="https://55912965-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxUW02x9klXneNc1Bxtt6%2Fuploads%2FOJg8SHyQMGhcejahuMAP%2FScreenshot%20from%202024-01-15%2012-29-23.png?alt=media&#x26;token=cdaa479f-86e5-4197-bf69-fd0eed53378f" alt=""><figcaption></figcaption></figure>

In the "**Variable**" input you set the name of your field, and from the drop-down on the right you can select the type of input you want - "**Text**", "**Number**" or "**Dropdown**". Click on the section provided below for more on how to configure Dropdowns.

<details>

<summary>Adding Dropdown values</summary>

Dropdown inputs will provide users with a set of options they can select from in the Lead Form, this is especially useful for displaying something like a Product Catalogue.

If you select "**Dropdown**" in the input type, you will see an additional configuration as shown below.

<img src="https://55912965-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxUW02x9klXneNc1Bxtt6%2Fuploads%2FRYzP52llEGQgL4O6J1bq%2FScreenshot%20from%202024-01-15%2012-34-47.png?alt=media&#x26;token=1bc8cd70-5d31-45e9-99c1-c681e197b75d" alt="" data-size="original">

Here click on, "**Add Dropdown Option**".

<img src="https://55912965-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxUW02x9klXneNc1Bxtt6%2Fuploads%2Fgfdnz0wY7Bx5t96rtTwT%2FScreenshot%20from%202024-01-15%2012-35-22.png?alt=media&#x26;token=b3049d08-6e7a-4714-8a4b-8b3411fcb7cc" alt="" data-size="original">

In the "**Label**" input you can enter the text that your users will see, in "**Value**" you can enter the value you will receive upon that option being clicked.

Click on "**Add**" to add this option. Repeat this process until all options are added to the list.&#x20;

</details>

Finally, click on "**Save**" to save the new field you have created or "**Cancel**" to discard your changes.

4. Finally, the "**submit button text"** field simply changes the text of the button that your users click on to submit their lead forms.

Once these steps have been followed, click on "**Save**" above your bot preview to save all the changes to your Lead Form.

{% hint style="info" %}
Don't want your Lead Form to be displayed right away? Read more in the section below!
{% endhint %}

<details>

<summary>Display Lead Form after some messages</summary>

Below the configuration section, of the Lead form, you will see a counter as shown below

<img src="https://55912965-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxUW02x9klXneNc1Bxtt6%2Fuploads%2FjToeEjODwtuPwnKTAFZn%2FScreenshot%20from%202024-01-15%2012-41-07.png?alt=media&#x26;token=8265084e-2f42-4278-acfd-39b790599f65" alt="" data-size="original">

This number represents the *number of messages after which your Lead Form will be presented to your Users*.

You can increase or decrease this number to your liking.

<img src="https://55912965-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxUW02x9klXneNc1Bxtt6%2Fuploads%2F4d1FW8jNiMyCTivcJ8iE%2FScreenshot%20from%202024-01-15%2012-41-33.png?alt=media&#x26;token=a976b9d4-c393-407d-bd1d-38e1eff24353" alt="" data-size="original">

Then click on "**Save**".

</details>

{% hint style="info" %}
Are there any T\&C/Terms of Service that need to be presented to your customers? Read how you can do that in the section below!
{% endhint %}

<details>

<summary>Enable User Consent</summary>

Below the "**Show lead form after**" section, you will see a switch as shown below

<img src="https://55912965-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxUW02x9klXneNc1Bxtt6%2Fuploads%2FBIgZJnO07MOljZBlWFAW%2FScreenshot%20from%202024-01-15%2012-57-49.png?alt=media&#x26;token=26467962-fdfc-4242-95ab-0f30e3a2447b" alt="" data-size="original">

Enable this switch, then a section as shown below will open up.

<img src="https://55912965-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxUW02x9klXneNc1Bxtt6%2Fuploads%2FHNE4umvgsFmrlaUeH7Gp%2FScreenshot%20from%202024-01-15%2013-03-46.png?alt=media&#x26;token=3797b456-282a-4d66-9028-35ff2f79b1c1" alt="" data-size="original">

You see 3 segments here

* Preview
* Text Section
* T\&C URL

As the name suggests, the "**Preview**" section *gives you a preview of what your T\&C Banner will look like*

In the text section, you *can* *edit the text of your T\&C Banner* .

Next, in the T\&C URL section you *can paste the any URL that links your T\&C disclosure*.

<img src="https://55912965-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxUW02x9klXneNc1Bxtt6%2Fuploads%2FM06EIQhCYk7z1m0HI3D6%2FScreenshot%20from%202024-01-15%2013-05-04.png?alt=media&#x26;token=bee24eb8-cc0d-4fc1-9ad5-b74e965ddb41" alt="" data-size="original">

</details>

That's it! You have successfully set up the lead form for your bot's chat. Now, when users interact with your bot, they will have the option to fill out the lead form with the information you specified. You can access the collected information through the Leads section in the Dashboard.
