Contact Synchronization
This pattern demonstrates how to synchronize contacts between your CRM and HealthSherpa's system. The flow ensures that each contact in your CRM has a corresponding record in HealthSherpa, and stays up-to-date.
Overview
Initial Setup
Create an API client with your HealthSherpa API key
Store the API key securely in your system
Configure your agents' email addresses - must match their HealthSherpa account
Agent Authentication
Provide a "Login to HealthSherpa" button in your CRM
When clicked, opens HealthSherpa login page in a new tab
Agent logs in to HealthSherpa separately
Contact Synchronization Flow
When a user clicks the "Sync to HealthSherpa" button in your CRM:
Check if the contact has a HealthSherpa ID stored in your CRM
If no HealthSherpa ID exists:
Create a new contact in HealthSherpa
Store the returned HealthSherpa ID in your CRM
If HealthSherpa ID exists:
Update the existing contact in HealthSherpa
Redirect the user to the quote page in HealthSherpa (the redirect URL will be returned from both the create and update contact endpoints).
If a zip code was provided, it will be pre-populated. If not, the agent will be prompted to provide one. In either case, the agent has to confirm the county in order to access the quote.
Data Mapping
Map your CRM fields to HealthSherpa fields
Required fields:
external_id
,first_name
,last_name
Optional fields: email, phone, address, Medicare information
Error Handling
Handle API errors and show user-friendly error messages
Last updated