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:
- Get Contact: To find the location ID Send a New Message | HighLevel API
- Get Conversation ID Using location ID: Search Conversation | HighLevel API
- Get Message ID: Using Conversation ID Get Messages | HighLevel API
- 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