GHL HTTP Request Reply to Email

I’m having issues trying to reply to an email in GoHighLevel using the HTTP request.

I am trying to use the HTTP request so the email history is in GHL for others to see vs sending through GMail node. I am able to send an email through the HTTP request but it sends as a new email not replying to the previous email.

It seems like GHL does not send the message ID in the webhook, so I have a Gmail search node to get the correct message ID/thread ID, but when I try adding it to the HTTP request I can an error.

This is what my workflow looks like:

And this is my JSON for the HTTP:

I’ve tried using the “replyMessageId” and using the “threadId” both copied directly from the API documentation: Send a new message | HighLevel API

It works when I leave out the replyMessageID and the threadID, but if I include either or both, it fails.

Is it because the Gmail treadId is different than what GHL uses? And if so how can I find the correct GHL ID’s?

Any ideas to try are appreciated. Thanks in advance.

Yes, the id’s are most likely different and not the same as in Gmail.
Are you sure that the webhook is not receiving the messageId?
According to GHL API docs it should be sent:

Can you share your workflow here with pinned test data on the webhook?
Use the </> Button and paste your JSON in your post.

Ah okay that makes sense, I do see a few different ID variables. Should I just test them all out until it works?

[
{
“headers”: {
“host”: “n8n.redacted.hstgr.cloud”,
“user-agent”: “axios/1.13.2”,
“content-length”: “4847”,
“accept”: “application/json, text/plain, /”,
“accept-encoding”: “gzip, compress, deflate, br”,
“content-type”: “application/json”,
“traceparent”: “00-983862ac1972d15cf02570e2b47868ba-e333c54c98536f34-00”,
“x-forwarded-for”: “redacted”,
“x-forwarded-host”: “n8n.redacted.hstgr.cloud”,
“x-forwarded-port”: “443”,
“x-forwarded-proto”: “https”,
“x-forwarded-server”: “af607fd4fd72”,
“x-real-ip”: “redacted”
},
“params”: {},
“query”: {},
“body”: {
“rse”: “”,
“Where are you from ?”: [
“redacted”
],
“Multi Dropdown 12z10”: “”,
“Contact method”: “Email”,
“Q4: What are the CONSEQUENCES of NOT SOLVING the problem?”: “”,
“Q4: Have you invested in sales training before?”: “”,
“Multi Dropdown 18yfp”: “”,
“Budget Range”: “”,
“Area of interest”: “”,
“Which areas are you most interested ?”: “”,
“Last Email Sent”: “”,
“Tell us about your ideal property”: "I want to be by the beach. ",
“Where are you currently based in the world?”: “”,
“jkh”: [
“Playa Del Carmen”
],
“Multi Dropdown 17hnj”: “”,
“Which area are you most interested in ?”: “”,
“Billing Address - Zip Code”: “”,
“Where are you currently based ?”: “”,
“Q5: If this helped you close premium clients fast, what would you invest?”: “”,
“Billing Address - State”: “”,
“Q3: How do those Problems affect your prospect PERSONALLY?”: “”,
“Q2: How confident do you feel on a sales call?”: “”,
“Q2: How confident do you feel on a sales calll?”: “”,
“Billing Address - Phone Number”: “”,
“Multi Dropdown 365mv”: “”,
“Q3: What are you currently charging for your offer?”: “”,
“Billing Address - City”: “”,
“Timeline”: “”,
“Multi Dropdown 3528l”: [
“Cash purchase”
],
“Q1: What’s your #1 struggle with sales or closing clients?”: “”,
“Multi Dropdown 15f6g”: “”,
“Billing Address - Full Address”: “”,
“Multi Dropdown 37nu5”: [
“No”
],
“eee”: “”,
“Use Case”: “”,
“hh”: “”,
“Multi Dropdown 16p94”: “”,
“Billing Address - Country”: “”,
"Where are you currently based? ": “”,
“Multi Dropdown 32adr”: [
“Beachfront Villa”
],
“gg”: “”,
“Q2: What is the ROOT CAUSE of that Problem?”: “”,
“Q5: What did you really appreciate about this masterclass, and the approach taken?”: “”,
“nhb”: “”,
“ff”: “”,
“Q7: What is your BIGGEST takeaway from this experience?”: “”,
“Tell us more”: “”,
“Multi Dropdown 13cqw”: “”,
“Which areas are you most interested in?”: “”,
“Multi Dropdown 33cwk”: [
“Under $300,000”
],
“ee”: “”,
“Billing Address - Full Name”: “”,
“Which areas are you most interested in Mexico?”: “”,
“Multi Dropdown 340fp”: [
“0 - 3 months (Ready now)”
],
“Multi Dropdown 14lok”: “”,
“Q8: What would you tell someone who is on the fence about joining in the future? (YOUR HONEST TESTIMONIAL)”: “”,
“Q6: Was the visual presentation helpful / engaging?”: “”,
“contact_id”: “wktbvdwDiTTo76jHW9rA”,
“first_name”: “Suroy”,
“last_name”: “Test1v2”,
“full_name”: “Suroy Test1v2”,
“email”: “redacted”,
“phone”: “redacted”,
“tags”: “paid-masterclass,founders,black-book,pillars-of-influence,framework”,
“address1”: “redacted”,
“city”: “redacted”,
“state”: “redacted”,
“country”: “redacted”,
“timezone”: “America/Toronto”,
“date_created”: “2025-05-26T23:33:56.246Z”,
“postal_code”: “redacted”,
“contact_source”: “masterclass basic form 1”,
“full_address”: “redacted”,
“contact_type”: “lead”,
“location”: {
“name”: “redacted”,
“address”: “redacted”,
“city”: “redacted”,
“state”: “redacted”,
“country”: “redacted”,
“postalCode”: “redacted”,
“fullAddress”: “redacted”,
“id”: “2361CsF3rA9AHzSTotH3”
},
“message”: {
“body”: “Hi Rob,\n\nI can definitely answer those questions.\n * This property will primarily be used as a vacation home.\n Must be close to the beach.And no other preferences.\n\n\nI think I’m ready to talk to an agent now.\n\nThanks,\nSuroy\n”
},
“workflow”: {
“id”: “7f5b4854-0458-4956-9ee0-dce67850ee43”,
“name”: “n8n - Email Responder”
},
“triggerData”: {},
“contact”: {
“attributionSource”: {
“sessionSource”: “Direct traffic”,
“url”: “redacted”,
“campaign”: null,
“utmSource”: null,
“utmMedium”: null,
“utmContent”: null,
“utmTerm”: null,
“utmKeyword”: null,
“utmMatchtype”: null,
“referrer”: null,
“gclid”: null,
“userAgent”: “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36”,
“ip”: “redacted”,
“gaClientId”: null,
“medium”: “form”,
“mediumId”: “xvcsDuRLSoAnymJVVTNr”,
“adName”: null,
“adGroupId”: null,
“adId”: null,
“gbraid”: null,
“wbraid”: null
},
“lastAttributionSource”: {
“sessionSource”: “Referral”,
“url”: “https://api.leadconnectorhq.com/widget/survey/tHryUxD9FAtZ3UGmk7W3?notrack=true”,
“utmSource”: null,
“utmMedium”: null,
“utmContent”: null,
“utmTerm”: null,
“utmKeyword”: null,
“utmMatchtype”: null,
“referrer”: “https://leadgen-apps-form-survey-builder.leadconnectorhq.com”,
“gclid”: null,
“userAgent”: “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36”,
“ip”: “redacted”,
“gaClientId”: null,
“gaSessionId”: null,
“medium”: “survey”,
“mediumId”: “tHryUxD9FAtZ3UGmk7W3”,
“adName”: null,
“adGroupId”: null,
“adId”: null,
“gbraid”: null,
“wbraid”: null
}
},
“attributionSource”: {},
“customData”: {
“id”: “wktbvdwDiTTo76jHW9rA”,
“First Name”: “redacted”,
“email”: “redacted”,
“phone”: “redacted”,
“country”: “redacted”,
“message”: “Hi Rob,\n\nI can definitely answer those questions.\n * This property will primarily be used as a vacation home.\n Must be close to the beach.And no other preferences.\n\n\nI think I’m ready to talk to an agent now.\n\nThanks,\nSuroy\n”
}
},
“webhookUrl”: “https://n8n.srv1149942.hstgr.cloud/webhook/0fc33c28-7e5b-4646-8ebd-360eb8b815bb”,
“executionMode”: “production”
}
]

This seems to be a Payload for a Form Submission. In this case, you don’t have a prior message to reply to. In this case you have to start a new conversation and can only add the contactId as reference.

That’s strange because this should be replying to the message received.

The workflow does start with a form submission, and then we send an automated initial email, but the message you see at the bottom of the JSON:

“message”: “Hi Rob,\n\nI can definitely answer those questions.\n * This property will primarily be used as a vacation home.\n Must be close to the beach.And no other preferences.\n\n\nI think I’m ready to talk to an agent now.\n\nThanks,\nSuroy\n”

Is the email message I’m trying to respond to.

I’m not sure if this is outside the scope of the forum/your expertise but if it helps this the automation in GHL that is triggering the workflow in n8n:

And this is the webhook info:

Am I supposed to add the message ID here? But I don’t see that as an option.

I’m not having access to an GHL account right now, but I would assume one of the following should work:

  • Send the auto reply on form submission from the GHL workflow before triggering the n8n webhook.
    This should make the messageId available for sending as custom data. Or find a different option function in the workflow to receive the last message before calling the webhook.

  • Maybe the ConversationId is available to send as custom data already? In this case you can search for messages via the API.

  • If none of this works, you can still search for conversations via the API and then receive messageIds in n8n. But this seems complicated and unnecessary.

1 Like

Appreciate the help, I ended up having to go option 3 because I believe GHL doesn’t automatically supply the message ID.

This is what I’ve done so far:

  1. Get Contact: To find the location ID Send a New Message | HighLevel API
  2. Get Conversation ID Using location ID: Search Conversation | HighLevel API
  3. Get Message ID: Using Conversation ID Get Messages | HighLevel API
  4. Send Message Using Message ID Send Message | HighLevel API

I was able to reply to an email I sent through n8n when testing, but I can’t seem to figure out how to reply to the inbound email.

@salmansolutions

This is my workflow with a fresh contact to test with:

Webhook:

[
{
“headers”: {
“host”: “n8n.redacted.hstgr.cloud”,
“user-agent”: “axios/1.13.2”,
“content-length”: “4622”,
“accept”: “application/json, text/plain, /”,
“accept-encoding”: “gzip, compress, deflate, br”,
“content-type”: “application/json”,
“traceparent”: “00-ec6e991e08086d0c0fe6c7d7273e6c41-e439016c4e6f7b6b-00”,
“x-forwarded-for”: “34.28.57.88”,
“x-forwarded-host”: “n8n.redacted.hstgr.cloud”,
“x-forwarded-port”: “443”,
“x-forwarded-proto”: “https”,
“x-forwarded-server”: “af607fd4fd72”,
“x-real-ip”: “redacted”
},
“params”: {},
“query”: {},
“body”: {
“rse”: “”,
“Where are you from ?”: [
“Canada”
],
“Multi Dropdown 12z10”: “”,
“Contact method”: “Email”,
“Q4: What are the CONSEQUENCES of NOT SOLVING the problem?”: “”,
“Q4: Have you invested in sales training before?”: “”,
“Multi Dropdown 18yfp”: “”,
“Budget Range”: “”,
“Area of interest”: “”,
“Which areas are you most interested ?”: “”,
“Last Email Sent”: “”,
“Tell us about your ideal property”: "Want to be within 10 minutes from the beach and 2 bedrooms, and 2 baths. ",
“Where are you currently based in the world?”: “”,
“jkh”: [
“Playa Del Carmen”
],
“Multi Dropdown 17hnj”: “”,
“Which area are you most interested in ?”: “”,
“Billing Address - Zip Code”: “”,
“Where are you currently based ?”: “”,
“Q5: If this helped you close premium clients fast, what would you invest?”: “”,
“Billing Address - State”: “”,
“Q3: How do those Problems affect your prospect PERSONALLY?”: “”,
“Q2: How confident do you feel on a sales call?”: “”,
“Q2: How confident do you feel on a sales calll?”: “”,
“Billing Address - Phone Number”: “”,
“Multi Dropdown 365mv”: “”,
“Q3: What are you currently charging for your offer?”: “”,
“Billing Address - City”: “”,
“Timeline”: “”,
“Multi Dropdown 3528l”: [
“Cash purchase”
],
“Q1: What’s your #1 struggle with sales or closing clients?”: “”,
“Multi Dropdown 15f6g”: “”,
“Billing Address - Full Address”: “”,
“Multi Dropdown 37nu5”: [
“No”
],
“eee”: “”,
“Use Case”: “”,
“hh”: “”,
“Multi Dropdown 16p94”: “”,
“Billing Address - Country”: “”,
"Where are you currently based? ": “”,
“Multi Dropdown 32adr”: [
“Beachfront Villa”
],
“gg”: “”,
“Q2: What is the ROOT CAUSE of that Problem?”: “”,
“Q5: What did you really appreciate about this masterclass, and the approach taken?”: “”,
“nhb”: “”,
“ff”: “”,
“Q7: What is your BIGGEST takeaway from this experience?”: “”,
“Tell us more”: “”,
“Multi Dropdown 13cqw”: “”,
“Which areas are you most interested in?”: “”,
“Multi Dropdown 33cwk”: [
“Under $300,000”
],
“ee”: “”,
“Billing Address - Full Name”: “”,
“Which areas are you most interested in Mexico?”: “”,
“Multi Dropdown 340fp”: [
“0 - 3 months (Ready now)”
],
“Multi Dropdown 14lok”: “”,
“Q8: What would you tell someone who is on the fence about joining in the future? (YOUR HONEST TESTIMONIAL)”: “”,
“Q6: Was the visual presentation helpful / engaging?”: “”,
“contact_id”: “aIr24yIhPjeSG7t7EJSr”,
“first_name”: “Hedge”,
“last_name”: “Test1”,
“full_name”: “Hedge Test1”,
“email”: “redacted”,
“phone”: “+18888888888”,
“tags”: “”,
“country”: “CA”,
“timezone”: “America/Toronto”,
“date_created”: “2025-12-10T08:39:14.271Z”,
“contact_source”: “éleveé legacy - intake form (2-step)”,
“full_address”: “”,
“contact_type”: “lead”,
“location”: {
“name”: “redacted”,
“address”: “redacted”,
“city”: “redacted”,
“state”: “redacted”,
“country”: “CA”,
“postalCode”: “redacted”,
“fullAddress”: “redacted”,
“id”: “2361CsF3rA9AHzSTotH3”
},
“message”: {
“body”: “Awesome,\n\n\nI would love the guidance. What are the next steps?\n\n\nThanks,\n”
},
“workflow”: {
“id”: “7f5b4854-0458-4956-9ee0-dce67850ee43”,
“name”: “redacted- Email Responder N8N Webhook”
},
“triggerData”: {},
“contact”: {
“attributionSource”: {
“sessionSource”: “Referral”,
“url”: “https://api.leadconnectorhq.com/widget/survey/tHryUxD9FAtZ3UGmk7W3?notrack=true”,
“utmSource”: null,
“utmMedium”: null,
“utmContent”: null,
“utmTerm”: null,
“utmKeyword”: null,
“utmMatchtype”: null,
“referrer”: “https://leadgen-apps-form-survey-builder.leadconnectorhq.com”,
“gclid”: null,
“userAgent”: “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36”,
“ip”: “redacted”,
“gaClientId”: “GA1.1.1338722127.1764998006”,
“gaSessionId”: null,
“medium”: “survey”,
“mediumId”: “tHryUxD9FAtZ3UGmk7W3”,
“adName”: null,
“adGroupId”: null,
“adId”: null,
“gbraid”: null,
“wbraid”: null
},
“lastAttributionSource”: {
“sessionSource”: “Referral”,
“url”: “https://api.leadconnectorhq.com/widget/survey/tHryUxD9FAtZ3UGmk7W3?notrack=true”,
“utmSource”: null,
“utmMedium”: null,
“utmContent”: null,
“utmTerm”: null,
“utmKeyword”: null,
“utmMatchtype”: null,
“referrer”: “https://leadgen-apps-form-survey-builder.leadconnectorhq.com”,
“gclid”: null,
“userAgent”: “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36”,
“ip”: “redacted”,
“gaClientId”: “GA1.1.1338722127.1764998006”,
“gaSessionId”: null,
“medium”: “survey”,
“mediumId”: “tHryUxD9FAtZ3UGmk7W3”,
“adName”: null,
“adGroupId”: null,
“adId”: null,
“gbraid”: null,
“wbraid”: null
}
},
“attributionSource”: {},
“customData”: {
“id”: “aIr24yIhPjeSG7t7EJSr”,
“First Name”: “Hedge”,
“email”: “redacted”,
“phone”: “+1 888-888-8888”,
“country”: “CA”,
“message”: “Awesome,\n\n\nI would love the guidance. What are the next steps?\n\n\nThanks,\n”
}
},
“webhookUrl”: “https://n8n.srv1149942.hstgr.cloud/webhook/0fc33c28-7e5b-4646-8ebd-360eb8b815bb”,
“executionMode”: “production”
}
]

Output:

[
{
“contact”: {
“id”: “aIr24yIhPjeSG7t7EJSr”,
“dateAdded”: “2025-12-10T08:39:14.271Z”,
“dateUpdated”: “2025-12-10T08:39:14.271Z”,
“tags”: ,
“type”: “lead”,
“locationId”: “2361CsF3rA9AHzSTotH3”,
“firstName”: “Hedge”,
“firstNameLowerCase”: “hedge”,
“fullNameLowerCase”: “hedge test1”,
“lastName”: “Test1”,
“lastNameLowerCase”: “test1”,
“email”: “redacted”,
“emailLowerCase”: “redacted”,
“phone”: “+18888888888”,
“country”: “CA”,
“source”: “redactedlegacy - intake form (2-step)”,
“timezone”: “America/Toronto”,
“attributionSource”: {
“sessionSource”: “Referral”,
“url”: “https://api.leadconnectorhq.com/widget/survey/tHryUxD9FAtZ3UGmk7W3?notrack=true”,
“utmSource”: null,
“utmMedium”: null,
“utmContent”: null,
“utmTerm”: null,
“utmKeyword”: null,
“utmMatchtype”: null,
“referrer”: “https://leadgen-apps-form-survey-builder.leadconnectorhq.com”,
“gclid”: null,
“userAgent”: “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36”,
“ip”: “redacted”,
“gaClientId”: “GA1.1.1338722127.1764998006”,
“gaSessionId”: null,
“medium”: “survey”,
“mediumId”: “tHryUxD9FAtZ3UGmk7W3”,
“adName”: null,
“adGroupId”: null,
“adId”: null,
“gbraid”: null,
“wbraid”: null
},
“lastAttributionSource”: {
“sessionSource”: “Referral”,
“url”: “https://api.leadconnectorhq.com/widget/survey/tHryUxD9FAtZ3UGmk7W3?notrack=true”,
“utmSource”: null,
“utmMedium”: null,
“utmContent”: null,
“utmTerm”: null,
“utmKeyword”: null,
“utmMatchtype”: null,
“referrer”: “https://leadgen-apps-form-survey-builder.leadconnectorhq.com”,
“gclid”: null,
“userAgent”: “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36”,
“ip”: “redacted”,
“gaClientId”: “GA1.1.1338722127.1764998006”,
“gaSessionId”: null,
“medium”: “survey”,
“mediumId”: “tHryUxD9FAtZ3UGmk7W3”,
“adName”: null,
“adGroupId”: null,
“adId”: null,
“gbraid”: null,
“wbraid”: null
},
“createdBy”: {
“source”: “SURVEY”,
“channel”: “ISTIO_MESH”,
“sourceId”: “tHryUxD9FAtZ3UGmk7W3”,
“timestamp”: “2025-12-10T08:39:14.271Z”
},
“customFields”: [
{
“id”: “24fQqYBgC4q8NopAHolR”,
“value”: [
“Canada”
]
},
{
“id”: “2WBkY9F9AmzW5DIAARer”,
“value”: “Email”
},
{
“id”: “FNljd6fyOQftDtiTJPYU”,
“value”: "Want to be within 10 minutes from the beach and 2 bedrooms, and 2 baths. "
},
{
“id”: “HWZ94d4tIaFA5neMdev5”,
“value”: [
“Playa Del Carmen”
]
},
{
“id”: “ZjT6WqMiEmcOAzxJVTcc”,
“value”: [
“Cash purchase”
]
},
{
“id”: “c4jrh0yucM4OMK7XeqaM”,
“value”: [
“No”
]
},
{
“id”: “hTeZk8tknEDa3LJNJ4Ru”,
“value”: [
“Beachfront Villa”
]
},
{
“id”: “t1TMGuu8YKcw7p8rTHGw”,
“value”: [
“Under $300,000”
]
},
{
“id”: “vlyWjXbeyN137qR5sdsB”,
“value”: [
“0 - 3 months (Ready now)”
]
}
],
“additionalEmails”: ,
“additionalPhones”:
},
“traceId”: “cf370690-ed5d-4eae-bfd9-d496cb7a38fb”
}
]

Step 2:

Step 3 :

I tried “last message”

But get this error:

Any ideas? Thanks in advance

1 Like

First of all, you’re right. I just got a trial GHL account and the workflow feature and Webhook trigger is very limited. The only payload that can be sent to a webhook is the contact details and some limited custom fields.

But to save two or three HTTP requests to get a messageId, check if this will work for you.
The webhook Payload does send contactId and an location Object including the locationId (called id). With this API request, you can get straight to messageId by just delivering locationId and contactId and further optional filters like channel > email etc.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.