# Constant Contact

# Overview

This chapter documents the integration between **HighLevel**, **Constant Contact**, and **n8n** used by Fort Adams.

The integration is designed around one central principle:

**HighLevel is the primary CRM and source of truth for contact records.**

Constant Contact remains responsible for email marketing, subscription state, confirmed opt-in, unsubscribe handling, and email-delivery information.

n8n connects the two systems and handles synchronization.

The integration has three major functions:

1. Import the existing Constant Contact database into HighLevel.
2. Send eligible new HighLevel contacts into Constant Contact.
3. Keep Constant Contact subscription and delivery information synchronized back to HighLevel.

This architecture allows staff to work primarily from HighLevel while continuing to use Constant Contact for newsletters and email marketing.

# Integration Architecture

## Purpose

The integration prevents HighLevel and Constant Contact from becoming two independent contact databases that must be maintained manually.

Instead, each system has a clearly defined role.

## System Responsibilities

### HighLevel

HighLevel is the master CRM.

HighLevel stores:

- Contact name
- Email address
- Phone number
- Mailing address
- Membership information
- FareHarbor information
- Donations and other CRM activity
- Internal tags
- Communication history
- Constant Contact synchronization metadata

Staff should make ordinary contact-record changes in HighLevel.

### Constant Contact

Constant Contact is primarily responsible for:

- Newsletter delivery
- Email marketing lists
- Confirmed opt-in
- Subscription status
- Unsubscribe processing
- Delivery status
- Bounce information
- Email campaign reporting

Constant Contact should not be treated as the primary CRM.

### n8n

n8n acts as the integration layer.

It is responsible for:

- Calling the Constant Contact API
- Calling the HighLevel API
- Receiving HighLevel webhook events
- Processing Constant Contact changes
- Updating HighLevel custom fields
- Applying email DND status
- Processing contacts in manageable batches
- Preventing the two systems from creating synchronization loops

## Data Flow

The overall architecture is:

```
                     CONTACT / CRM DATA

HighLevel ------------------------------------> Constant Contact
 Source of Truth                                  Email Platform

     ^                                                |
     |                                                |
     |                                                |
     +------------- n8n Integration -----------------+
                      Consent,
                      subscription,
                      delivery state
```

Profile information generally flows:

```
HighLevel → Constant Contact
```

Subscription and delivery information generally flows:

```
Constant Contact → HighLevel
```

# Initial Constant Contact Migration

## Purpose

Before the ongoing synchronization was enabled, the existing Constant Contact database needed to be reconciled with HighLevel.

The initial migration workflow imports or updates Constant Contact contacts in HighLevel without creating unnecessary duplicates.

## Workflow Name

The migration workflow was built as:

```
Constant Contact → HighLevel - Initial Reconciliation
```

A later revision added:

```
Batch size: 25 contacts
```

## Migration Process

The workflow:

1. Connects to Constant Contact using OAuth2.
2. Retrieves Constant Contact contacts through the v3 API.
3. Uses cursor-based pagination.
4. Flattens the Constant Contact API results into individual records.
5. Classifies each contact according to its Constant Contact email-permission status.
6. Sends contacts to HighLevel.
7. Uses the HighLevel contact upsert API.
8. Updates an existing contact when a matching contact already exists.
9. Creates the contact when no matching contact exists.
10. Writes Constant Contact metadata into HighLevel custom fields.

## Why Upsert Is Used

The HighLevel endpoint used is:

```
POST /contacts/upsert
```

Upsert is important because the migration includes contacts that may already exist in HighLevel.

Instead of blindly creating another record, HighLevel can update the matching CRM contact.

This makes the migration safer to rerun if an execution is interrupted.

## Batch Processing

The HighLevel portion of the workflow processes records in batches of:

```
25 contacts
```

Batching was added because the Constant Contact database contains more than 14,000 records.

Processing the entire collection as one HTTP Request node made it difficult to:

- observe progress,
- identify failures,
- resume work,
- and determine whether HighLevel was still processing requests.

Batching reduces the size of each processing cycle.

# Constant Contact Database Size

During the initial migration, Constant Contact contained approximately:

```
Subscribed:   11,705
Unsubscribed:  2,368
```

This represented approximately:

```
14,073
```

contacts visible through the Constant Contact interface.

The API returned approximately:

```
14,076
```

records during reconciliation.

The slight difference is expected because Constant Contact may also contain contacts in states such as:

- pending confirmation,
- temporary hold,
- not set,
- or another non-standard subscription status.

These records are preserved for review rather than assumed to be subscribed.

<div contenteditable="false" id="bkmrk-">---

</div>

# HighLevel Custom Fields for Constant Contact

#   


## Purpose

HighLevel stores a copy of important Constant Contact metadata.

These fields allow staff and n8n to determine:

- whether the contact exists in Constant Contact,
- the contact's Constant Contact ID,
- subscription status,
- opt-in information,
- opt-out information,
- list membership,
- and synchronization dates.

## Custom Field Folder

The Constant Contact fields are grouped under:

```
ConstantContact
```

in HighLevel.

## Required Fields

### Constant Contact Contact ID

HighLevel Field ID:

```
gm2Ly9W6xLDru1LSlicD
```

HighLevel Field Key:

```
contact.constant_contact_contact_id
```

Purpose:

Stores the permanent Constant Contact contact UUID.

This is the most important integration identifier.

<div contenteditable="false" id="bkmrk--1">---

</div>### Constant Contact Permission

Field ID:

```
nTrcIwgRVFnb9HGV9iwZ
```

Field Key:

```
contact.constant_contact_permission
```

Purpose:

Stores Constant Contact's current email permission state.

Examples may include:

```
explicit
implicit
unsubscribed
pending_confirmation
temp_hold
not_set
```

<div contenteditable="false" id="bkmrk--2">---

</div>### Constant Contact Confirm Status

Field ID:

```
a6B5TKDUqJbS8Qakomdq
```

Field Key:

```
contact.constant_contact_confirm_status
```

Purpose:

Stores the Constant Contact confirmation state.

<div contenteditable="false" id="bkmrk--3">---

</div>### Constant Contact Opt-In Source

Field ID:

```
giaA1ZrkNAzdQeagRsXI
```

Field Key:

```
contact.constant_contact_optin_source
```

Purpose:

Records the source associated with the Constant Contact opt-in.

<div contenteditable="false" id="bkmrk--4">---

</div>### Constant Contact Opt-In Date

Field ID:

```
pPfeN2PW7cGCvZ2m8Niy
```

Field Key:

```
contact.constant_contact_optin_date
```

Purpose:

Stores the Constant Contact opt-in timestamp.

<div contenteditable="false" id="bkmrk--5">---

</div>### Constant Contact Opt-Out Source

Field ID:

```
XMLc2K5kXkOqhkmMIFVY
```

Field Key:

```
contact.constant_contact_optout_source
```

Purpose:

Stores the source of an unsubscribe or opt-out event.

<div contenteditable="false" id="bkmrk--6">---

</div>### Constant Contact Opt-Out Date

Field ID:

```
OrUpspdqU3QJeOkpq0zL
```

Field Key:

```
contact.constant_contact_optout_date
```

Purpose:

Stores the timestamp of the Constant Contact opt-out.

<div contenteditable="false" id="bkmrk--7">---

</div>### Constant Contact List IDs

Field ID:

```
BAWPByYVSF4dW08fsMzX
```

Field Key:

```
contact.constant_contact_list_ids
```

Purpose:

Stores the Constant Contact list IDs associated with the contact.

Multiple list IDs may be stored as a comma-separated value.

<div contenteditable="false" id="bkmrk--8">---

</div>### Constant Contact Created At

Field ID:

```
3ze7a09mVWXpwhGFwcMS
```

Field Key:

```
contact.constant_contact_created_at
```

Purpose:

Stores the original Constant Contact creation timestamp.

<div contenteditable="false" id="bkmrk--9">---

</div>### Constant Contact Updated At

Field ID:

```
QPzcVm3AWqNC2u1OG2Ly
```

Field Key:

```
contact.constant_contact_updated_at
```

Purpose:

Stores the most recent Constant Contact update timestamp known to the integration.

# HighLevel Location Configuration

#   


The HighLevel Location ID used by this integration is:

```
ypU79EA2RMRuf9LWcjQu
```

The HighLevel API is authenticated through a Private Integration token.

The token should be stored securely in n8n.

It should not be:

- placed in documentation,
- committed to Git,
- shared in screenshots,
- or stored in a public workflow export.

If the token is changed or revoked, all n8n nodes calling the HighLevel API must be updated.

<div contenteditable="false" id="bkmrk--1">---

</div>

# Constant Contact API Authentication

#   


## Authentication Method

Constant Contact is connected to n8n through:

```
OAuth2 Authorization Code
```

The Constant Contact application is created through the Constant Contact Developer Portal.

The application provides:

- Client ID / API Key
- Client Secret
- Redirect URI configuration

## n8n OAuth Configuration

The Constant Contact OAuth credential in n8n uses the application created in Constant Contact.

The n8n callback URL must be entered exactly in the Constant Contact application's Redirect URI configuration.

A mismatch will cause errors similar to:

```
The 'redirect_uri' parameter must be a Login redirect URI
```

The protocol, hostname, path, and trailing slash must match exactly.

## Access Tokens

Constant Contact access tokens should not be manually stored in workflow nodes.

n8n manages:

- the OAuth access token,
- token refresh,
- and ongoing authorization.

The old workflow configuration variable:

```
CC_ACCESS_TOKEN
```

is therefore no longer required.

Constant Contact HTTP Request nodes should use the stored n8n OAuth2 credential.

<div contenteditable="false" id="bkmrk--1">---

</div>

# Ongoing HighLevel to Constant Contact Sync

#   


## Purpose

After the initial migration, new CRM contacts must be considered for Constant Contact automatically.

Staff should not need to manually copy new contacts into Constant Contact.

## Trigger

The workflow receives a webhook from HighLevel when a new contact is created.

HighLevel sends the contact information to an n8n webhook.

The n8n webhook path is:

```
ghl-contact-created-constant-contact
```

The production webhook URL depends on the n8n installation.

## Suggested Webhook Payload

HighLevel should send information similar to:

```
{
  "contactId": "{{contact.id}}",
  "firstName": "{{contact.first_name}}",
  "lastName": "{{contact.last_name}}",
  "email": "{{contact.email}}",
  "phone": "{{contact.phone}}",
  "emailConsent": true
}
```

Additional profile fields may also be sent.

## Processing

n8n:

1. Receives the HighLevel contact.
2. Normalizes the field names.
3. Checks whether an email address exists.
4. Checks whether the integration is allowed to initiate the Constant Contact opt-in process.
5. Sends the contact to Constant Contact.
6. Retrieves the resulting Constant Contact record.
7. Writes the Constant Contact ID and subscription metadata back into HighLevel.

<div contenteditable="false" id="bkmrk--1">---

</div>

# Confirmed Opt-In

#   


## Purpose

Confirmed opt-in is used as part of the email-quality and permission process.

When configured appropriately in Constant Contact, a new subscriber receives a confirmation request.

The contact must respond before becoming a confirmed marketing subscriber.

## Integration Behavior

The n8n workflow sends eligible contacts to:

```
POST /v3/contacts/sign_up_form
```

The workflow includes:

- email address,
- first name,
- last name,
- company when available,
- phone when available,
- Constant Contact list membership.

## Consent Safeguard

The workflow currently requires:

```
emailConsent = true
```

before calling the Constant Contact signup endpoint.

Contacts that do not meet this condition are routed to:

```
Skipped - No Consent/Email
```

This safeguard exists because the Constant Contact signup endpoint is intended for contacts entering an email signup or permission flow.

# Email Validation and Bounce-Control Strategy

#   


## Goal

One of the reasons for connecting Constant Contact to HighLevel is to improve handling of poor-quality email addresses.

Examples include visitor-center customers entering:

```
greg@gmail.com
```

or another unrelated address because an email address is required during checkout.

The integration should prevent obviously undeliverable addresses from remaining indefinitely as trusted CRM email addresses.

## Important Distinction

An email address that does not confirm is not automatically invalid.

Someone may:

- ignore the message,
- delete the message,
- overlook the message,
- or intentionally decline email marketing.

A bounce is stronger evidence of an invalid delivery address.

## Bounce Categories

Constant Contact can report different delivery failures.

The integration should treat permanent failures differently from temporary failures.

### Strong Invalid-Address Candidates

Examples include:

```
B — Non-existent address
D — Undeliverable
S — Suspended
```

These are strong candidates for automated remediation.

### Temporary or Ambiguous Failures

Examples include:

```
Mailbox full
Blocked
Vacation / auto-response
Other temporary failures
```

These should not automatically result in contact deletion.

## Recommended HighLevel Handling

For a strong bounce:

```
Constant Contact detects bounce
        ↓
n8n reconciliation
        ↓
HighLevel email DND enabled
        ↓
Contact flagged for review
        ↓
Retain record temporarily
```

The CRM contact should not be immediately deleted solely because of one delivery event.

The historical CRM record may still contain:

- bookings,
- donations,
- membership history,
- conversations,
- notes,
- or other important information.

Email invalidation and CRM-contact deletion are separate decisions.

# Constant Contact to HighLevel Synchronization

#   


## Purpose

Constant Contact remains authoritative for Constant Contact-specific email state.

The workflow therefore checks Constant Contact periodically and synchronizes important changes back into HighLevel.

## Schedule

The workflow runs approximately:

```
Every 15 minutes
```

## Delta Synchronization

The workflow does not download all 14,000+ contacts every 15 minutes.

Instead it tracks the last successful poll and uses:

```
updated_after
```

to retrieve recently changed Constant Contact records.

The process is:

```
Previous successful sync time
        ↓
Constant Contact updated_after query
        ↓
Changed contacts only
        ↓
Batch into groups of 25
        ↓
Update HighLevel
```

## Stored Poll State

n8n workflow static data stores:

```
ccLastSuccessfulPoll
```

The timestamp is advanced after a successful reconciliation cycle.

A small overlap window may be used to reduce the chance of missing records around synchronization boundaries.

# What Constant Contact Is Allowed to Update in HighLevel

#   


Constant Contact should not overwrite general CRM profile information during the scheduled reconciliation.

For example, Constant Contact should not become authoritative for:

- first name,
- last name,
- phone,
- mailing address,
- membership information,
- FareHarbor information.

Those belong to HighLevel.

The Constant Contact reconciliation primarily updates:

```
Constant Contact Contact ID
Constant Contact Permission
Constant Contact Confirm Status
Constant Contact Opt-In Source
Constant Contact Opt-In Date
Constant Contact Opt-Out Source
Constant Contact Opt-Out Date
Constant Contact List IDs
Constant Contact Created At
Constant Contact Updated At
```

It may also update HighLevel's email DND state.

<div contenteditable="false" id="bkmrk--1">---

</div># Page: Email DND Synchronization

## Purpose

HighLevel must honor Constant Contact unsubscribe state.

The workflow maps Constant Contact email permission to HighLevel email DND.

## Marketable States

The integration currently treats:

```
explicit
implicit
```

as marketable states.

HighLevel email DND is set to:

```
inactive
```

## Non-Marketable States

States such as:

```
unsubscribed
pending_confirmation
temp_hold
not_set
```

result in email DND being set to:

```
active
```

This prevents HighLevel from sending marketing email to contacts that Constant Contact indicates should not currently receive it.

# Unsubscribe Handling

#   


## Constant Contact Unsubscribe

If someone unsubscribes in Constant Contact:

```
Constant Contact
        ↓
15-minute reconciliation
        ↓
n8n detects permission change
        ↓
HighLevel custom fields updated
        ↓
HighLevel email DND enabled
```

No staff action should normally be required.

## HighLevel Unsubscribe

If an unsubscribe originates in HighLevel, the integration should eventually send that unsubscribe to Constant Contact as well.

The intended rule is:

```
An unsubscribe in either system should result in the contact being non-marketable in both systems.
```

## Resubscription

Resubscription should not occur merely because someone edits a CRM field or removes a tag.

An unsubscribed Constant Contact contact must go through the appropriate permission/resubscription process before marketing email resumes.

# Preventing Synchronization Loops

#   


## Problem

Bidirectional integrations can accidentally create loops.

Example:

```
Constant Contact updates GHL
        ↓
GHL sees contact updated
        ↓
GHL sends update to Constant Contact
        ↓
Constant Contact changes updated timestamp
        ↓
n8n syncs it back
        ↓
repeat
```

## Integration Rule

Constant Contact metadata changes should not trigger the normal HighLevel → Constant Contact profile synchronization.

The HighLevel workflow should only react to relevant profile or lifecycle events.

Examples:

```
Contact Created
Email changed
Name changed
Phone changed
Explicit unsubscribe
```

The following Constant Contact metadata fields should not themselves trigger another outbound sync:

```
Constant Contact Permission
Constant Contact Confirm Status
Constant Contact Opt-In Source
Constant Contact Opt-In Date
Constant Contact Opt-Out Source
Constant Contact Opt-Out Date
Constant Contact List IDs
Constant Contact Updated At
```

# Constant Contact Lists

#   


## List Membership

Constant Contact contacts may belong to one or more email lists.

The integration stores list IDs in:

```
Constant Contact List IDs
```

The outgoing workflow requires a configured Constant Contact list ID:

```
CC_LIST_ID
```

This determines which Constant Contact list receives new confirmed-opt-in contacts.

## Changing the Destination List

If the destination list changes:

1. Locate `Config - GHL to CC` in n8n.
2. Find:

```
CC_LIST_ID
```

3. Replace it with the appropriate Constant Contact list UUID.
4. Save the workflow.
5. Test with a controlled contact before production use.

Do not use the visible list name where the API expects the list ID.

# Automation via N8N

# n8n Workflow Configuration

#   


## Workflow Name

The ongoing synchronization workflow is:

```
HighLevel ↔ Constant Contact Ongoing Sync
```

## Main Nodes

### HighLevel → Constant Contact Path

```
GHL Contact Created Webhook
        ↓
Config - GHL to CC
        ↓
Normalize New GHL Contact
        ↓
Has Email + Explicit Consent?
        ↓
CC Confirmed Opt-In Signup
        ↓
Get CC Contact After Signup
        ↓
Update GHL with CC Status
```

Contacts that do not qualify go to:

```
Skipped - No Consent/Email
```

### Constant Contact → HighLevel Path

```
Every 15 Minutes
        ↓
Config - CC to GHL
        ↓
Get Poll Window
        ↓
Fetch Recently Updated CC Contacts
        ↓
Flatten Updated CC Contacts
        ↓
Loop CC Updates - 25
        ↓
Sync CC Status to GHL
        ↓
Return to CC Update Loop
```

After processing completes:

```
Mark Poll Successful
```

# Safe Testing Procedure

#   


Changes to the integration should be tested with controlled contacts before affecting the entire database.

## Recommended Test

Create a dedicated test contact in HighLevel.

Example:

```
First Name: Integration
Last Name: Test
Email: controlled test mailbox
```

Then verify:

1. HighLevel creates the contact.
2. The webhook reaches n8n.
3. n8n recognizes the email.
4. Constant Contact receives the contact.
5. The opt-in process behaves as expected.
6. The Constant Contact Contact ID appears in HighLevel.
7. Constant Contact Permission is populated.
8. Opt-in metadata is populated.
9. HighLevel DND behaves correctly.
10. Updating Constant Contact is reflected back in HighLevel.

## Unsubscribe Test

Using a controlled test account:

1. Unsubscribe the test contact in Constant Contact.
2. Wait for the reconciliation workflow.
3. Confirm HighLevel receives:

```
Constant Contact Permission = unsubscribed
```

4. Confirm HighLevel email DND becomes active.

# Security and Credential Management

#   


The integration depends on credentials for:

- HighLevel
- Constant Contact

These credentials must be treated as secrets.

## Never Store Secrets In

- BookStack
- screenshots
- Git repositories
- exported public workflow files
- support tickets
- chat messages
- documentation examples

## Recommended Storage

Constant Contact should use an n8n OAuth2 credential.

HighLevel should preferably also use a dedicated n8n credential or securely stored integration token.

If a credential is suspected of being exposed:

1. Revoke it.
2. Generate a replacement.
3. Update n8n.
4. Test the integration.
5. Review recent executions.

# Operating Rules

#   


The following rules define how this integration should be managed.

## Rule 1

HighLevel is the source of truth for ordinary CRM data.

## Rule 2

Constant Contact controls its email subscription state.

## Rule 3

Unsubscribed contacts must remain non-marketable unless they complete the appropriate resubscription process.

## Rule 4

A bounce should not automatically delete the entire CRM contact.

## Rule 5

Permanent email failures may result in HighLevel email DND and review.

## Rule 6

Temporary delivery failures should not automatically remove a contact.

## Rule 7

Constant Contact synchronization fields should not create update loops.

## Rule 8

Large imports should use batching.

Current batch size:

```
25
```

## Rule 9

Production changes should first be tested with a controlled contact.

## Rule 10

API credentials must never be included in BookStack documentation.

# Administrative Quick Reference

#   


## HighLevel Location ID

```
ypU79EA2RMRuf9LWcjQu
```

## Constant Contact API Base

```
https://api.cc.email/v3/
```

## HighLevel API Base

```
https://services.leadconnectorhq.com/
```

## Ongoing Reconciliation Schedule

```
Every 15 minutes
```

## API Processing Batch Size

```
25 contacts
```

## n8n Webhook Path

```
ghl-contact-created-constant-contact
```

## Primary Identifier

```
Constant Contact Contact ID
```

## Recommended HighLevel Smart List

Filter:

```
Constant Contact Contact ID
is not empty
```

Name:

```
Constant Contact Synced
```

## Source-of-Truth Summary

```
CRM/Profile Data:
HighLevel

Email Marketing:
Constant Contact

Subscription/Delivery State:
Constant Contact

Integration/Automation:
n8n
```

# Future Improvements

#   


The current integration provides the foundation for deeper Constant Contact reporting inside HighLevel.

Potential future improvements include:

### Campaign Engagement

Synchronize selected Constant Contact engagement information such as:

- most recent campaign sent,
- last email opened,
- last link clicked,
- recent engagement date.

This should be selective rather than importing every campaign event into the CRM.

### Bounce Review Automation

Create dedicated HighLevel fields or tags such as:

```
email-invalid
email-delivery-review
email-bounced
```

n8n could automatically classify Constant Contact bounce results.

### Automated 30-Day Review

For confirmed permanent failures:

```
Permanent bounce
        ↓
HighLevel DND
        ↓
Tag for review
        ↓
Wait 30 days
        ↓
Recheck status
        ↓
Administrative cleanup
```

### HighLevel Credential Management

Move the HighLevel private integration token out of Set/Config nodes and into an n8n credential or secret mechanism.

### Integration Alerts

Send an administrative alert when:

- Constant Contact OAuth fails,
- HighLevel returns repeated API errors,
- a scheduled reconciliation fails,
- API rate limits are encountered,
- or synchronization has not completed for an extended period.

### Synchronization Dashboard

Create an n8n or HighLevel dashboard showing:

```
Contacts linked to CC
Subscribed
Unsubscribed
Pending confirmation
Temp hold
Invalid/bounced addresses
Last successful sync
Sync errors
```

This would allow staff or administrators to verify integration health without opening n8n execution logs.