> For the complete documentation index, see [llms.txt](https://developer.kizen.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.kizen.com/docs/apps-and-integrations/integrations/healthsherpa/connect-healthsherpa-to-agentcrm.md).

# Connect HealthSherpa to AgentCRM

Configure the connection between HealthSherpa and AgentCRM to start HealthSherpa Medicare quotes and receive HealthSherpa enrollment submission updates for AgentCRM Contacts.

{% hint style="success" %}
**Audience:** Admins, Developers, Solution Architects

**Purpose:** Explains the procedures for authorizing agent accounts and setting up the HealthSherpa webhook
{% endhint %}

## Overview

Connecting HealthSherpa to AgentCRM involves two separate procedures:

* Authorizing agent accounts. Every agent in your agency must complete this procedure individually.
* Setting up the webhook. The Primary Admin for your HealthSherpa agency account completes this procedure for the entire agency.

***

## Before You Begin

To connect HealthSherpa to AgentCRM, you need:

* A HealthSherpa agency account with Primary Admin access
* A HealthSherpa for Medicare agent account for every agent who initiates Medicare quotes through the integration
* An AgentCRM account with Admin access

***

## Connect HealthSherpa to AgentCRM

To connect HealthSherpa to AgentCRM:

{% stepper %}
{% step %}

#### Authorize your agent account

Authorizing your agent account is necessary to start a Medicare quote in HealthSherpa from a <code class="expression">space.vars.contact</code> <code class="expression">space.vars.entity</code> in AgentCRM. Every agent in your agency must complete this authorization.

For step-by-step instructions, see [Authorize Your HealthSherpa for Medicare Agent Account](#authorize-your-healthsherpa-for-medicare-agent-account) below.
{% endstep %}

{% step %}

#### Set up the webhook

Setting up the HealthSherpa webhook is necessary to receive enrollment data from HealthSherpa. Your HealthSherpa Primary Admin completes this setup one time only. All authorized agents then receive HealthSherpa enrollment data in AgentCRM.

For step-by-step instructions, see [Set Up the HealthSherpa Webhook](#set-up-the-healthsherpa-webhook) below.
{% endstep %}
{% endstepper %}

***

## Authorize Your HealthSherpa for Medicare Agent Account

To authorize your HealthSherpa for Medicare agent account:

{% stepper %}
{% step %}

#### Go to the App Marketplace

In AgentCRM, select **App Marketplace** from the global navigation.
{% endstep %}

{% step %}

#### Turn on the HealthSherpa integration

Find the HealthSherpa card, and turn on the integration.

<div data-with-frame="true"><figure><img src="https://3898351136-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQd8ufpN7wkdnx7JtgoeZ%2Fuploads%2FKfr2gFu3VVoIaHPehUYY%2Fhealthsherpa_appon.png?alt=media&amp;token=46308496-4070-4235-8a2b-33818757be0c" alt="The HealthSherpa integration card in the App Marketplace" width="563"><figcaption></figcaption></figure></div>
{% endstep %}

{% step %}

#### Authorize your account

From the HealthSherpa card, select **Edit Configuration** to open the configuation settings for the HealthSherpa integration. Then select **Authorization** to switch to the authorization settings. From these settings, select the **Authorize App** button.

<div data-with-frame="true"><figure><img src="https://3898351136-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQd8ufpN7wkdnx7JtgoeZ%2Fuploads%2Fpg4scij3DuXnnSNDOGmM%2Fhealthsherpa_authorization.png?alt=media&amp;token=ce36ef6a-51c7-486b-9934-2de2efefedf7" alt="The Authorization settings of the HealthSherpa integration" width="563"><figcaption></figcaption></figure></div>

To return to the App Marketplace, select **Back**.
{% endstep %}

{% step %}

#### Add a button to launch HealthSherpa from Contact Records &#x20;

Create a custom <code class="expression">space.vars.contact</code> <code class="expression">space.vars.entity</code> layout in AgentCRM that includes a new content element of the `Button` type in the Action Links section of the layout. Then do the following:

* Set the action of the button to `Execute Approved JavaScript`.
* Set the JavaScript to execute to `Start Quoting in HealthSherpa`.
* Set the button text to `Launch HealthSherpa`.

<div data-with-frame="true"><figure><img src="https://3898351136-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQd8ufpN7wkdnx7JtgoeZ%2Fuploads%2FIzyg5ElNEwXWp0U6d9Zy%2Fhealthsherpa_button.png?alt=media&amp;token=b893e215-6b8a-4aea-99d0-1d7f6695b174" alt="A new Launch HealthSherpa button and its properties in the Action Links section of a custom layout for Contact Records in AgentCRM" width="563"><figcaption></figcaption></figure></div>

{% hint style="info" %}
**Note:** To learn how to create custom <code class="expression">space.vars.contact</code> <code class="expression">space.vars.entity</code> layouts in AgentCRM, see our [Knowledge Base](https://support.kizen.com/support/solutions/articles/154000244910-agent-crm-how-to-customize-your-contacts-record-layout).
{% endhint %}

To save your layout and return to AgentCRM, select **Save**
{% endstep %}
{% endstepper %}

***

## Set Up the HealthSherpa Webhook

To set up the HealthSherpa Webhook:

{% stepper %}
{% step %}

#### Turn on the integration in the App Marketplace

If you haven't done so yet, find the HealthSherpa app in the App Marketplace in AgentCRM, and turn it on.

<div data-with-frame="true"><figure><img src="https://3898351136-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQd8ufpN7wkdnx7JtgoeZ%2Fuploads%2FKfr2gFu3VVoIaHPehUYY%2Fhealthsherpa_appon.png?alt=media&amp;token=46308496-4070-4235-8a2b-33818757be0c" alt="The HealthSherpa integration card in the App Marketplace" width="563"><figcaption></figcaption></figure></div>
{% endstep %}

{% step %}

#### Open the configuration page

In the HealthSherpa card, select **Edit Configuration**.
{% endstep %}

{% step %}

#### Import the schema

Switch to the App Settings tab of the configuation page, and select **Import Schema**.

<div data-with-frame="true"><figure><img src="https://3898351136-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQd8ufpN7wkdnx7JtgoeZ%2Fuploads%2FW6kMOpXX9AHy2ezI4THq%2Fhealthsherpa_schema.png?alt=media&amp;token=e4b0718b-2aad-458c-a4ef-7a17973aa117" alt="" width="563"><figcaption></figcaption></figure></div>
{% endstep %}

{% step %}

#### Check the schema

Ensure that the Contacts object is linked to start quoting in HealthSherpa, and click **Save**.

<div data-with-frame="true"><figure><img src="https://3898351136-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQd8ufpN7wkdnx7JtgoeZ%2Fuploads%2Fw3T1OrYr4rWTRSmzJd9r%2Fhealthsherpa_startquoting.png?alt=media&amp;token=77a2e5a3-390f-4809-b618-45b4c8fe16d6" alt="" width="563"><figcaption></figcaption></figure></div>
{% endstep %}

{% step %}

#### Copy the webhook URL

To get the webhook URL for HealthSherpa enrollments:

1. In AgentCRM, choose **Data** > **SmartConnectors** from the global navigation to open the list of SmartConnectors.
2. Find the `HealthSherpa - Enrollments` SmartConnector in the list, and select **Edit SmartConnector** from its Actions menu to open the SmartConnector in the SmartConnector builder.

<div data-with-frame="true"><figure><img src="https://3898351136-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQd8ufpN7wkdnx7JtgoeZ%2Fuploads%2FrPWfWid3KFDKX93jY9sb%2Fhealthsherpa_smartconnectorbuilder.png?alt=media&amp;token=cc157bd5-d20c-4f86-8ea6-bc0a3729b944" alt="The SmartConnector for HealthSherpa enrollments in the SmartConnector builder" width="563"><figcaption></figcaption></figure></div>

3. Select **Edit** from the ellipsis menu of the connection trigger to open the SmartConnector in the editing interface.

<div data-with-frame="true"><figure><img src="https://3898351136-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQd8ufpN7wkdnx7JtgoeZ%2Fuploads%2FLkBpzv78rZMq4GeqwkEy%2Fhealthsherpa_smartconnector_connectiontrigger.png?alt=media&amp;token=054551a9-32e5-4f02-b7e0-64c281cd534e" alt="The ellipsis menu for the connection trigger in the SmartConnector builder" width="563"><figcaption></figcaption></figure></div>

4. Switch to the General Settings tab of the editing interface, find the **Webhook URL** field, and copy the webhook URL.

<div data-with-frame="true"><figure><img src="https://3898351136-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQd8ufpN7wkdnx7JtgoeZ%2Fuploads%2FIaHqwBSovxs3Va3K4CaM%2Fhealthsherpa_webhookurl.png?alt=media&amp;token=bc85cfbc-57f9-452a-80db-9f2fc61a3781" alt="The Webhook URL field for the HealthSherpa SmartConnector" width="563"><figcaption></figcaption></figure></div>

5. Select **Back to Builder** to return to the SmartConnector builder.
   {% endstep %}

{% step %}

#### Go to the HealthSherpa integrations page

In a separate tab or a new browser window, log into HealthSherpa if necessary, and go to the Integrations page.&#x20;
{% endstep %}

{% step %}

#### Configure the webhook

To configure the webhook:

1. Find the Webhook integration card, and select the option to add a webhook.
2. Paste the webhook URL that you copied in [Step 5](#copy-the-webhook-url) as the destination URL.
3. Choose an API key as the authentication method.
4. Generate a string of alphanumeric characters, preferaby randomly, or create one that would be difficult to guess, and add this string as the API key.
5. Save the webhook.
6. Test the webhook to send a sample payload. AgentCRM should receive a sample enrollment within a minute. If you don't receive this sample data, recheck your configuration.
   {% endstep %}
   {% endstepper %}

***

## What's Next

Continue to [Start a Medicare Quote in HealthSherpa from AgentCRM](https://developer.kizen.com/docs/apps-and-integrations/integrations/healthsherpa/start-a-medicare-quote-in-healthsherpa-from-agentcrm.md) to learn how to initiate a quote.

<details>

<summary><strong>Related Topics</strong></summary>

* [HealthSherpa](https://developer.kizen.com/docs/apps-and-integrations/integrations/healthsherpa.md)
* [Start a Medicare Quote in HealthSherpa from AgentCRM](https://developer.kizen.com/docs/apps-and-integrations/integrations/healthsherpa/start-a-medicare-quote-in-healthsherpa-from-agentcrm.md)
* [Synchronize Medicare Enrollments from HealthSherpa to AgentCRM](https://developer.kizen.com/docs/apps-and-integrations/integrations/healthsherpa/synchronize-medicare-enrollments-from-healthsherpa-to-agentcrm.md)
* [Troubleshoot HealthSherpa](https://developer.kizen.com/docs/apps-and-integrations/integrations/healthsherpa/troubleshoot-healthsherpa.md)

</details>

***

*HealthSherpa's name, logo, and all related names, logos, product and service names, designs and slogans are trademarks of HealthSherpa. Kizen's HealthSherpa integration is not affiliated with, sponsored by, or endorsed by HealthSherpa.*


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://developer.kizen.com/docs/apps-and-integrations/integrations/healthsherpa/connect-healthsherpa-to-agentcrm.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
