> For the complete documentation index, see [llms.txt](https://docs-vnext.kiflo.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs-vnext.kiflo.com/integrations/hubspot/connect-hubspot-form-leads.md).

# How to connect a HubSpot form to get leads from your website?

Kiflo offers native integration with HubSpot Forms, allowing you to connect the contact/demo form on your website and get leads directly into Kiflo. No code required, no third-party solution.

This works great when working with affiliates or referral partners who share referral links to drive traffic to your website. Leads coming via Kiflo's referral links are automatically attributed to the right partners.

{% hint style="info" %}
**Prerequisite**

You must first follow these instructions: [How to connect HubSpot Forms?](/integrations/hubspot/how-to-connect-hubspot-forms.md)
{% endhint %}

## Connect your form

On Kiflo:

* Go to the **Manage** > **Integrations > HubSpot** page
* Click on the **Forms** tab
* Click on the button **Connect HubSpot form**

It opens the Connect HubSpot form window:

![](https://3041514930-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKkJn82Qo5a0Y4fOsoQzo%2Fuploads%2Fgit-blob-3b749f7e6a54ddf7bc26843c6b7033245d293b59%2F6932b997a3e4545412ea5861.png?alt=media)

### Configure the form

Fill in the form as follows:

* **Select HubSpot form**: It lists all forms created in HubSpot. Choose the one you want to get submissions from.
* **Form type**: Lead
* **Partner attribution:**
  * Dynamic = Use this option if the form is a generic form, and partners use referral links to drive traffic to your website
  * Static = Use this option if the form you connect is on a partner-specific landing page
* **Attribute all leads to partner:** In case you choose "Static" for the previous option, select the partner to whom all leads are attributed.

### Map fields

In the second section of the form, you must map fields with lead properties. This defines how new leads are created in Kiflo.

![](https://3041514930-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKkJn82Qo5a0Y4fOsoQzo%2Fuploads%2Fgit-blob-f4fcb9d47400fa175ee73045b6535ace5b8b19be%2F688cb74c2606c96a32c3f0a2.png?alt=media)

The following rules apply:

* You can leave some fields unmapped if they must not end up in Kiflo. Just map the fields that correspond to lead properties.
* The types of fields must be compatible: a text field must be mapped with a text field, a date field with a date field, etc.

When you're done, click the **Connect** button. That's it!


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs-vnext.kiflo.com/integrations/hubspot/connect-hubspot-form-leads.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
