# HubSpot

HubSpot CRM is undoubtedly one of the most robust on the market, and we’re thrilled to announce our native integration with it. This integration allows you to record all your website/app user contact information directly in your CRM. Let’s dive in!

#### **1. Create a Lead Generation AI Agent:**

&#x20;The first step is straightforward. You can either start from one of our chatbot templates or build from scratch. For the sake of detailing the process, let’s start from scratch. Head over to the Tiledesk dashboard. If you don’t have an account yet, you can create one for free here: [Create your free Tiledesk account](https://panel.tiledesk.com/v3/dashboard/#/signup)

#### **2. Use a Form to Gather User Leads:**&#x20;

As shown in the image below, you can create a form using the form icon at the top right of each block. There are basic and advanced preset forms available, or you can create your own from scratch. For this tutorial, we’ll ask for the user’s name and email, but you can also ask for the company name, phone number, or any other information you need.

<figure><img src="/files/9pvHXKt0c3SXwxeEqRN7" alt=""><figcaption></figcaption></figure>

#### **3. HubSpot Integration:**&#x20;

The next step is to simply drag the HubSpot action from the Integrations in the left side toolbar, as shown in the image below.&#x20;

<figure><img src="/files/OQHUf75IJ2Hnv79a3ClC" alt=""><figcaption></figcaption></figure>

Then click on “Manage integration” to configure your integration. In the new page, you’ll see a placeholder for the HubSpot API Key. Paste your key here and save.

<figure><img src="/files/GxxEJPspZ7WCSL7f7jTe" alt=""><figcaption></figcaption></figure>

If you don’t have an API key yet, you can get one for free by creating an app in HubSpot. Here’s a step-by-step tutorial:&#x20;

* Visit HubSpot.com and create an account if you don’t have one.
* Click on “Settings” after logging in.
* Navigate to “Integrations” and select “Private Apps”.
* Create your private app.
* In the “Scopes” section, ensure to activate “Read” and “Write” for crm.objects.contacts

<figure><img src="/files/VLt2PoswUnh73UsKAjZw" alt=""><figcaption></figcaption></figure>

* Click on “Create App”.
* You will now have access to your HubSpot API Key.

#### **4. Send Data to Your HubSpot CRM:**&#x20;

Back in the Design Studio, click on the HubSpot block we created earlier. We need to define which attributes/parameters should be sent to HubSpot. They are:

* email: userEmail
* firstname: firstname
* lastname: lastname

Please consider that it is essential to create a property in HubSpot with the internal name the same as the key in HubSpot’s block in Tiledesk.

<figure><img src="/files/GvKdz27LgVO9R4HrZ4So" alt=""><figcaption></figcaption></figure>

Great, we’re almost done. Let’s test the bot and see how it instantly sends data to our HubSpot CRM.&#x20;

<figure><img src="/files/mduP0FqLQNRk9kNMRT9g" alt=""><figcaption></figcaption></figure>

If you head to the “Contacts” section of your HubSpot CRM, you’ll see the contact there.

<figure><img src="/files/nVQhyydblIp8HeTN3enV" alt=""><figcaption></figcaption></figure>

We hope you find this tutorial helpful.&#x20;

If you need further assistance, don’t hesitate to contact us at <info@tiledesk.com>.&#x20;

Happy bot building!


---

# Agent Instructions: 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:

```
GET https://guide.tiledesk.com/ai-chatbots-and-automation/actions-explained/hubspot.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
