GoHighLevel (GHL) Integration
Already using GoHighLevel (GHL) to manage your business? This integration lets you add DM Champ's AI-powered messaging on top of your existing GHL setup. Messages that come into GHL are forwarded to DM Champ for AI-powered handling, and replies from DM Champ are sent back through GHL to the customer on the original channel.
Using a different CRM? It does not need a dedicated screen to work with DM Champ: see Connecting a Tool We Do Not List for custom functions, the API and webhooks.
This means you can keep using GHL as your main hub while letting the AI handle the AI-driven conversations.
What this setup does not do: it is a two-way message relay you build with GHL workflows and webhooks, not a one-click connection. It does not sync leads or contacts from the GHL CRM (a contact is created here when their first message is forwarded), and you cannot broadcast to GHL lists or smart lists from DM Champ.
Note: This is a more technical integration that involves setting up automated workflows and connecting systems using webhooks (automatic notifications between apps) and API calls. If you’re not comfortable with this, you may want to hand this page to a developer or tech-savvy team member.
Prerequisites
- An active DM Champ account with your API key (found at Settings → Integrations → API Key). An API key is a unique code that lets GHL securely communicate with your account.
- A GoHighLevel account with permission to create workflows and manage webhooks (automated notifications between systems).
How It Works
| Direction | What Happens |
|---|---|
| GHL to DM Champ | A customer messages you on SMS, email, Messenger, Instagram, or live chat in GHL. A workflow automatically forwards that message to DM Champ. DM Champ processes it (AI response, tagging, etc.). |
| DM Champ to GHL | When DM Champ sends a reply (manually or via AI), it automatically notifies GHL. A workflow in GHL finds the contact and sends the reply through the correct channel. |
Workflow 1: GHL to DM Champ
This workflow forwards incoming messages from GHL to DM Champ.
Step 1: Create the Workflow
- In GHL, click Automation in the sidebar and open the Workflows tab.
- Click Create workflow, then Start from Scratch.
- Click the pencil next to the title and name it something descriptive, such as “Send Message to DM Champ.”
Step 2: Add Triggers
GHL has one Customer replied trigger. You add it once per channel and use its Reply channel filter to pick the channel:
- Click Add new trigger, search for “Customer replied” and select it.
- Click Add filters, choose Reply channel and pick one channel (the filter takes one channel per trigger).
- Give the trigger a clear name, for example “Customer replied SMS”, and click Save trigger.
- Repeat for every channel you want to forward.
| Trigger name | Reply channel |
|---|---|
| Customer replied SMS | SMS |
| Customer replied Email | |
| Customer replied Facebook messenger | Facebook messenger |
| Customer replied Instagram DM | Instagram DM |
| Customer replied Live chat | Live chat |
| Customer replied Chat widget | Chat widget |
Website chat can arrive as either Live chat or Chat widget, so add a trigger for both if you use GHL’s website chat. You can add all of these or only the channels relevant to your setup.
Step 3: Add Tag Filter (Optional)
If you only want to forward messages from specific contacts:
- On each trigger, click Add filters.
- Set the condition to “Contact has tag.”
- Choose your tag(s).
- Select whether the contact should have any or all of the selected tags.
Step 4: Create a Channel Split
Add an If / else action (choose Build your own) to route each channel to its own webhook. Each branch checks which trigger started the workflow: set the field to Workflow trigger, the operator to Is, and the value to the trigger name from Step 2.
| Branch | Condition |
|---|---|
Workflow trigger is Customer replied Email |
|
| SMS | Workflow trigger is Customer replied SMS |
| Messenger | Workflow trigger is Customer replied Facebook messenger |
Workflow trigger is Customer replied Instagram DM |
|
| Live Chat | Workflow trigger is Customer replied Live chat OR Customer replied Chat widget (two conditions joined with OR) |
GHL adds a None branch by itself; leave it empty.
Step 5: Configure Webhooks
For each branch, add a Webhook action (under Send data; you do not need the premium Custom webhook):
-
Method:
POST -
URL:
https://api.dmchamp.com/v1/incoming_custom_channel_message?apiKey=YOUR_API_KEY -
Custom Data fields (click Add item for each one):
| Field | Value | Notes |
|---|---|---|
messageSid |
{{right_now.second}}{{contact.id}} |
Unique message identifier |
fromId |
{{contact.id}} |
GHL contact ID |
toId |
{{user.id}} |
Your GHL user ID (it may arrive empty, for example on a live chat nobody is assigned to; that is fine) |
body |
{{message.body}} |
The message content |
channel |
See table below | Must match the branch |
Add only these fields. DM Champ rejects any field it does not recognise, so the whole message fails if the webhook carries an extra one such as messageType or status (GHL’s execution log then shows Unknown field: ...). The only other fields it accepts are optional: firstName, lastName and email for the contact, and mediaUrl with mediaContentType for an attachment.
Tip: typing a value such as {{contact.id}} into a value box turns it into a merge field chip. You can also pick merge fields with the tag icon at the end of the box.
Channel values per branch:
| Branch | channel value |
|---|---|
email |
|
| SMS | sms |
| Messenger | messenger |
ig |
|
| Live Chat | livechat |
Important: Make sure the channel value matches exactly. These values are case-sensitive.
Other GHL channels (TikTok, WhatsApp and so on): the five above are examples, not a fixed list. DM Champ sends back exactly the
channelvalue it received, so the relay works for a channel only when GHL itself has both a “Customer replied” trigger for it (a value in the trigger’s Reply channel filter) and a workflow action that sends on it. Where GHL has both: add a “Customer replied” trigger for it and a branch here with your own value (for exampletiktok), then a matching branch in Workflow 2 that uses GHL’s send action for that channel. The value is stored when a contact first reaches DM Champ, so a contact who first wrote on Instagram keeps getting replies taggedigeven if they later message you on TikTok. A channel GHL cannot trigger on or send through in a workflow cannot be relayed.
Step 6: Enable Re-Entry
On the workflow’s Settings tab, make sure Allow re-entry is on. New GHL workflows have it on by default, but check it: without it, only the first message from each contact is forwarded.
Then switch the workflow from Draft to Publish. If you edit a published workflow later, click Save at the top right, because auto save only applies to drafts.
Workflow 2: DM Champ to GHL
This workflow receives replies from DM Champ and sends them to the customer through the correct GHL channel.
Step 1: Create the Workflow and Its Inbound Webhook Trigger
In GHL the inbound webhook is a workflow trigger, not a page under Settings. It is a premium trigger, so GHL may charge per execution on your plan.
- In GHL, click Automation in the sidebar, open Workflows, click Create workflow and then Start from Scratch.
- Name the workflow “Send Message to Contact.”
- Click Add new trigger, search for “webhook” and select Inbound webhook. Name the trigger, for example “Messages from DM Champ.”
- Copy the URL shown in the URL (POST/GET/PUT) field. You need it in Step 2.
- The trigger will not save until GHL has seen a sample request. Complete Step 2 first, then click Fetch sample requests (or Check for new requests), pick the request under Mapping reference and click Save trigger.
The URL changes if you reselect the trigger. GHL generates a new URL every time Inbound webhook is picked again. If that happens, copy the new URL and paste it into the Custom channel card again (Step 2), or replies stop reaching GHL.
Step 2: Configure DM Champ
- In DM Champ, click Settings in the sidebar.
- Under Channels, click Channels.
- Scroll to the Custom channel card at the very bottom of the page.
- Paste the GHL inbound webhook URL you just copied into Webhook URL (it must be a public HTTPS address) and click Save.
- Give GHL its sample request: post the sample JSON shown below to the GHL URL once, with any HTTP tool (for example
curl -X POST -H "Content-Type: application/json" -d '<the JSON>' <the GHL URL>). If you already have a contact on the custom channel, sending that contact a message from DM Champ works too. Then go back to the trigger and finish Step 1, point 5.
This is not the Settings → Integrations → Webhooks page. That page is for event notifications and sends a different payload. The GHL outbound relay is set on the Custom channel card under Settings → Channels.
DM Champ will now automatically send a notification to GHL every time a message is sent to a contact. The data sent looks like this:
{
"contactId": "NtL97bwnhITrfIq8lWFi",
"messageId": "s28dtg13qNuhXLoKpcLs",
"userId": "wpDZRvaw4Hgh4whUBpwlKPRftOi2",
"body": "Message content here",
"toId": "qtpBsc6fiqkXTnSOeze3",
"channel": "email"
}
Nav note: the API Key you use for Workflow 1 and the Custom channel card you use here live in different places: Settings → Integrations → API Key for the key, and the Custom channel card at the bottom of Settings → Channels for this relay. The separate Settings → Integrations → Webhooks page is for event notifications and sends a different payload; see Webhooks if that is what you want instead.
Step 3: Check the Trigger Saved
Back in the “Send Message to Contact” workflow, confirm the Inbound webhook trigger now shows a mapping reference and is saved. The fields DM Champ sends (body, toId, channel and the rest) are now available as merge fields under Inbound webhook trigger.
Step 4: Add a Find Contact Action
- Add a Find contact action (in the Contact category, not an app action of the same name further down the list).
- Click Add field, choose Contact ID.
- Use the value:
{{inboundWebhookRequest.toId}}. This is the GHL contact ID that Workflow 1 sent asfromId, so it matches the contact in GHL.
Find contact adds two branches, Contact found and Contact not found. Build the next steps under Contact found.
Step 5: Add an Optional Tag Check
If you want to limit which contacts receive messages from DM Champ:
- Add an If / else action.
- Check if the contact has a specific tag.
- If the tag is missing, end the workflow (add a “Stop” action on the false branch).
Step 6: Add a Channel Split
Add an If / else action that routes the message on the channel field (category Inbound webhook trigger) with the operator Is:
| Branch | Condition | Action |
|---|---|---|
channel is email |
Send email (it also needs a Subject) | |
| SMS | channel is sms |
Send SMS |
| Messenger | channel is messenger |
Messenger |
channel is ig |
Instagram DM | |
| Live Chat | channel is livechat |
Send live chat message |
Messenger and Instagram need a connected account in GHL. GHL will not publish a workflow that contains the Messenger or Instagram DM action unless a Facebook Page or Instagram account is connected to that GHL sub-account. If you do not use those channels, leave those branches out.
Step 7: Configure Each Send Action
In each send action, set the message body to:
{{inboundWebhookRequest.body}}
Step 8: Enable Re-Entry
As with Workflow 1, make sure Allow re-entry is on in the workflow’s Settings tab, then publish the workflow.
Testing the Integration
Test GHL to DM Champ (Workflow 1)
- Send a message to your GHL number or connected channel (for example, send yourself an SMS).
- Open DM Champ and verify the message appears in Chats.
- Check that the channel label is correct (SMS, email, etc.).
- Repeat for each channel you configured.
Test DM Champ to GHL (Workflow 2)
- In DM Champ, send a reply to a contact (manually or let the AI respond).
- Open GHL and verify the contact received the message.
- Confirm it was sent through the correct channel.
- Check that the message content matches.
Troubleshooting
| Problem | What to Check |
|---|---|
| Messages not reaching DM Champ | Open the workflow’s Execution logs in GHL. Unknown field: ... means the webhook carries a field DM Champ does not accept: remove it (only the fields in Workflow 1, Step 5 are needed). Otherwise verify your API key is correct in the webhook URL, that the triggers are firing, and that Allow re-entry is on. |
| Messages not reaching GHL | Verify the GHL inbound webhook URL is correctly pasted into Webhook URL on the Custom channel card at the bottom of Settings → Channels (not on the Settings → Integrations → Webhooks page, which is a different feature). If you reselected the Inbound webhook trigger, its URL changed: paste the new one into the card. Review the GHL workflow execution logs. |
| Contact not found in GHL | The toId in the webhook data must match an existing GHL contact ID. Make sure contacts exist in both systems with matching IDs. |
| Wrong channel used for reply | Double-check the channel values in your condition branches. They must match exactly: email, sms, messenger, ig, livechat. |
| Only first message is forwarded | Turn on Allow re-entry in both workflows’ settings. |
| Workflow 2 will not publish | Remove the Messenger or Instagram DM action, or connect that Facebook or Instagram account in GHL first. |
| Inbound webhook trigger will not save | GHL needs a sample request as the mapping reference. Send one message (or a sample JSON) to the URL, fetch it, select it, then save. |
Next Steps
- Webhooks: set up webhooks for other DM Champ events.
- API Access: use the API for custom integrations beyond GHL.
- Custom Channels: learn more about custom channel messaging.