# Matching HubSpot Tokens to Storylane Tokens

***

## **Example: Storylane URL with HubSpot Tokens**

Formatted URL:

{% code overflow="wrap" %}

```
?email={{contact.email}}&token[first_name]={{contact.firstname}}&token[company_name]={{contact.companyname}}
```

{% endcode %}

Populated URL:

{% code overflow="wrap" %}

```
?email=example@storylane.io&token[first_name]=Matt&token[company_name]=Storylane
```

{% endcode %}

***

## **Understanding Tokens**

**Example Breakdown:**

* **Orange:** HubSpot tokens (e.g., `{{contact.email}}`)
* **Pink:** Storylane tokens (e.g., `token[first_name]`)

> <mark style="background-color:orange;">?email={{contact.email}}</mark><mark style="background-color:red;">\&token\[first\_name]=</mark><mark style="background-color:orange;">{{contact.firstname}}</mark><mark style="background-color:red;">\&token\[company\_name]=</mark><mark style="background-color:orange;">{{contact.companyname}}</mark>

* The query string starts with `?email={{contact.email}}`.
* Each token is separated by `&`.
* Use the word **token** in the parameter name to map Storylane tokens to HubSpot tokens.

***

## Step-by-Step Instructions

### 1. Set Up Tokens in HubSpot

1. Log in to your HubSpot account.
2. Navigate to **Settings** > **Properties**.
3. Tokens should be setup by default, however identify or create the tokens you need, such as:
   * `{{contact.email}}`
   * `{{contact.firstname}}`
   * `{{contact.companyname}}`

### 2. Map Tokens in Storylane

1. Open your Storylane dashboard.
2. Go to the demo you want to personalize.
3. Add Storylane tokens where you see fit - example:

<figure><img src="https://2431356420-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FN8hWd9k2Pbb6YSWO4pUQ%2Fuploads%2F4B6nASSLZRui5dnAx42o%2FScreenshot%202025-01-14%20at%209.56.30%E2%80%AFAM.png?alt=media&#x26;token=cccc98d6-90f4-464b-87c4-77a794972993" alt=""><figcaption></figcaption></figure>

4. In the URL builder, use the following format to map tokens:

{% code overflow="wrap" %}

```
?email={{contact.email}}&token[first_name]={{contact.firstname}}&token[company_name]={{contact.companyname}}
```

{% endcode %}

### 3. Test the URL

1. Before sharing, test the URL by replacing the HubSpot tokens with *sample values:*

<pre data-overflow="wrap"><code><strong>?email=test@example.com&#x26;token[first_name]=John&#x26;token[company_name]=ExampleCorp
</strong></code></pre>

2. Paste the URL into a browser to ensure it populates correctly.

### 4. Share the URL

Once tested, you can use the URL in your HubSpot workflows, email templates, or sales outreach.

## Use Case

The primary use case is for creating personalized sales leave-behinds. For example, you can generate a Storylane demo URL that dynamically fills in a contact’s details, making it more engaging and relevant.

By following these steps, you can effectively link HubSpot tokens to Storylane tokens and create personalized, impactful sales leave-behinds.


---

# 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://docs.storylane.io/integrations/integrations/hubspot/matching-hubspot-tokens-to-storylane-tokens.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.
