Gmail Trigger Node Not Delivering Full Email Information

Hey there! When I fetch data to the gmail trigger, I don’t get the full information pulled.

##Eg: This is what I see

[
{
“id”: “198357fd1f7433dc”,
“threadId”: “198357fd1f7433dc”,
“snippet”: “You're in Ruth! Congratulations on securing your spot on the LinkedIn Creator Academy waitlist. You're now part of an exclusive group that will get first access to the complete system”,
“payload”: {
“mimeType”: “multipart/alternative”
},
“sizeEstimate”: 16145,
“historyId”: “4034030”,
“internalDate”: “1753244225000”,
“labels”: [
{
“id”: “INBOX”,
“name”: “INBOX”
},
{
“id”: “CATEGORY_PROMOTIONS”,
“name”: “CATEGORY_PROMOTIONS”
},
{
“id”: “UNREAD”,
“name”: “UNREAD”
}
],
“From”: “Tobi Oluwole [email protected]”,
“Subject”: “Write a compelling subject…”,
“To”: “Ruth [email protected]
}
]

Instead of:

[
{
“id”: “198357fd1f7433dc”,
“threadId”: “198357fd1f7433dc”,
“labelIds”: [
“CATEGORY_PROMOTIONS”,
“UNREAD”,
“INBOX”
],
“sizeEstimate”: 16145,
“headers”: {
“delivered-to”: “Delivered-To: [email protected]”,
“received”: “Received: from Mzg0Mzc3MTI (unknown)\r\n\tby geopod-ismtpd-7 (SG) with HTTP\r\n\tid rhPPh83DQ5G8SXAtPgdnKw\r\n\tWed, 23 Jul 2025 04:17:05.117 +0000 (UTC)”,
“x-google-smtp-source”: “X-Google-Smtp-Source: AGHT+IGezJ42yEqZ3q4ZSDxpUAOgHnhRhKZegh+HFkDGXcJknImZcI1y3umQ+f+EuYUQWFQH9QfW”,
“x-received”: “X-Received: by 2002:a05:622a:580e:b0:4ab:535a:8612 with SMTP id d75a77b69052e-4ae6dfd1a11mr22236131cf.45.1753244226037;\r\n Tue, 22 Jul 2025 21:17:06 -0700 (PDT)”,
“arc-seal”: “ARC-Seal: i=1; a=rsa-sha256; t=1753244226; cv=none;\r\n d=google.com; s=arc-20240605;\r\n b=gXDwVKgxfL03u4b0sDu67KXs0OdZg7v1q4/L+0BBl7V7dQbqgJxwroR3LM54KalUVa\r\n UJekScK9ZiyUxu3GHwF3No5PYmoL9gzHaZt+kyG64r5QNO5zKhZNcCjWauSUJLYMQx3j\r\n rp8FjEkcLFtaO3HzWLpakeGrsV1TeZJ4zXdn0JF89uGE3YKcGI6deiWQTx1fr5pyznfw\r\n W6zIp06g5SKONoqeMv12asIQB2yCPPXcXqUeDaLH4sBSCk2l2f2XMRIXXp/BGGtkyg6h\r\n aJVqbAyz120qiYgZiRGjGAxi4ScevrzSH3bknDZPF31VrrWDRivkN0jTGEmz2hcd8ndR\r\n xO8g==”,
“arc-message-signature”: “ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605;\r\n h=to:precedence:list-unsubscribe-post:list-unsubscribe:feedback-id\r\n :subject:message-id:mime-version:from:date:dkim-signature\r\n :dkim-signature;\r\n bh=CokG+iWlslX6AxwcETpQCRUhce2AYJ5uZsRLKVIIS4U=;\r\n fh=Kxe57YI3mUv5VYk+Sr8mCYBNji2XtVYwAesdL7ccgok=;\r\n b=NQXdMFDMmu42sXx1YlQjRUwT+ZHtG/UnsxOXyvEK0tnF0H/sdTaTb6lnJqbl4eoyPQ\r\n aBah3Qr782jXGLFx721/JeShVkkei1XoQxwDB13KkALcJROhlVbUZPsHel1dj9EzHlGB\r\n +lfJBFJ2ZekrPckABo8HEuOQLv8WJqOc0hRJ/3qfvEDQ++gK047JGp1kAMl+pDOd8KRY\r\n PmVjq8BaXXAu2p0bCdq+Rzp61lPuG7SgOBEmcQ71yXubfyKSPW7v7ou5YldGgHWL7use\r\n QKn8WQws9N8SvF7QCylZR6X0QBajq4IGpWmALFRwSyzS1jO5mhI0muYDyXamKAZ8TJ0L\r\n pz9g==;\r\n dara=google.com”,
“arc-authentication-results”: “ARC-Authentication-Results: i=1; mx.google.com;\r\n dkim=pass [email protected] header.s=s1 header.b=OE7aU9II;\r\n dkim=pass [email protected] header.s=smtpapi header.b=rqYmpMQd;\r\n spf=pass (google.com: domain of bounces+38437712-d051-ruthorekogbe=gmail.com@mail.n.convertkit.com designates 168.245.5.113 as permitted sender) smtp.mailfrom="bounces+38437712-d051-ruthorekogbe=gmail.com@mail.n.convertkit.com";\r\n dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=tobioluwole.com”,
“return-path”: “Return-Path: bounces+38437712-d051-ruthorekogbe=gmail.com@mail.n.convertkit.com”,
“received-spf”: “Received-SPF: pass (google.com: domain of bounces+38437712-d051-ruthorekogbe=gmail.com@mail.n.convertkit.com designates 168.245.5.113 as permitted sender) client-ip=168.245.5.113;”,
“authentication-results”: “Authentication-Results: mx.google.com;\r\n dkim=pass [email protected] header.s=s1 header.b=OE7aU9II;\r\n dkim=pass [email protected] header.s=smtpapi header.b=rqYmpMQd;\r\n spf=pass (google.com: domain of bounces+38437712-d051-ruthorekogbe=gmail.com@mail.n.convertkit.com designates 168.245.5.113 as permitted sender) smtp.mailfrom="bounces+38437712-d051-ruthorekogbe=gmail.com@mail.n.convertkit.com";\r\n dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=tobioluwole.com”,
“dkim-signature”: “DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sendgrid.info;\r\n\th=content-type:date:from:mime-version:subject:feedback-id:\r\n\tlist-unsubscribe:list-unsubscribe-post:to:cc:content-type:date:feedback-id:from:\r\n\tsubject:to;\r\n\ts=smtpapi; bh=CokG+iWlslX6AxwcETpQCRUhce2AYJ5uZsRLKVIIS4U=;\r\n\tb=rqYmpMQd0pDHTIoUKbSln/ZUaN9WRqZJdErgaKLZKFxfWEC9SvG2X3QpzGWhq6M8x+bm\r\n\t6OEa7SNcvR2VaNtMEvX7ayZKCPdSrR/6YmNdA2Mu+kbyr+fMVVdItEyxdFWHKwmsrXoQKW\r\n\tgweVM6X6UbMb9cz2n7j1t2JWfnZDuhoTo=”,
“content-type”: “Content-Type: multipart/alternative; boundary=3ad79eb22cdb87b1433c8e2989be5625b0b5ca3859947f5512e0e9940d00”,
“date”: “Date: Wed, 23 Jul 2025 04:17:05 +0000 (UTC)”,
“from”: “From: Tobi Oluwole [email protected]”,
“mime-version”: “Mime-Version: 1.0”,
“message-id”: “Message-ID: [email protected]”,
“subject”: “Subject: Write a compelling subject…”,
“feedback-id”: “Feedback-ID: 8691666:1559460:emailtemplate:CK”,
“list-unsubscribe”: “List-Unsubscribe: \r\n mailto:[email protected],\r\n https://unsubscribe.kit.com/wvue5z4e60b6u5kvp62h7hnv28kxxs8hlr5g0”,
“list-unsubscribe-post”: “List-Unsubscribe-Post: List-Unsubscribe=One-Click”,
“precedence”: “Precedence: bulk”,
“x-report-abuse”: “X-Report-Abuse: [email protected]”,
“x-report-spam”: “X-Report-Spam: [email protected]”,
“x-sg-eid”: “X-SG-EID: \r\n =?us-ascii?Q?u001=2EMLjqFsKNezi3ziLPG69eTd=2FgaPe4ZZlxURw8dljh8cEeEtkz4pQMTveEh?=\r\n =?us-ascii?Q?4hyhW+wvMijNahZPVjdgz7ubMsbhp7XgsOnoSQz?=\r\n =?us-ascii?Q?5YaJ8BgaQuZIPSfoNDy7=2Fbnsj2ouy6=2FCGdHpM=2Ff?=\r\n =?us-ascii?Q?z7vAOCHhMXQmBSjsdvt2pR=2FOJS3C5e5kUim4FbF?=\r\n =?us-ascii?Q?DfwBomUalUuYwD2iPGd+X2u4KmFUszxxga+6eZx?=\r\n =?us-ascii?Q?luu52BksfsstpO1sZo8bsHfqHwRiY43CJ8eoGoN?= =?us-ascii?Q?=2FxzQ?=”,
“x-sg-id”: “X-SG-ID: \r\n =?us-ascii?Q?u001=2ESdBcvi+Evd=2FbQef8eZF3BpTL9BgbK5wfSJMJGMsmprBTLquV1ImzFIrgT?=\r\n =?us-ascii?Q?SaJ3+RZHd5ZgNCStHVS1q3IAOBv=2FkP9dL3eseLZ?=\r\n =?us-ascii?Q?IGwQa2Mk6YaX7598Fg4VUqp1QgcWon3ePoUAMfx?=\r\n =?us-ascii?Q?FC=2F3aA13oA6X4qEPxr4w9XVmNo7EMH0FOpNg=2FHp?=\r\n =?us-ascii?Q?bhcagosIrLVrXnRKrHpYZk8q5+W=2FlGmxDy2dP8z?=\r\n =?us-ascii?Q?h9yEGKlIcfR3d81PVoRioJUdvMxaiuBC1DJqO35?=\r\n =?us-ascii?Q?YGabtzHt=2FTcAKsCcdBUmrXSppqolcRHiNDrvdBm?=\r\n =?us-ascii?Q?aoTLpixkI3Kd4HVznuAR1ui1VAyrflChSM=2FTlKu?=\r\n =?us-ascii?Q?FZ968Br0f9amXddV8TDoTib2wZbK3LXexkJOmpI?=\r\n =?us-ascii?Q?0hbQMCilgCUuI1k?=”,
“to”: “To: Ruth [email protected]”,
“x-entity-id”: “X-Entity-ID: u001.Nm9iKrAgMoH26XMcp3SOtw==”
},
“html”: “\n\n\n.ck-link { text-decoration: underline; }\n.ck-link { text-decoration: underline; }\n@media only screen { .email * { word-break: break-word; } }\n@media screen and (max-width: 384px) { .mail-message-content { width: 414px !important; } }\n@media only screen { .email * { word-break: break-word; } }\n@media screen and (max-width: 384px) { .mail-message-content { width: 414px !important; } }\n@media only screen and (max-width:600px) { .ck-mobile-font-size { font-size:50px !important; } }\n@media only screen and (max-width:600px) { .ck-mobile-font-size { font-size:50px !important; } }\n<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">\n\n<body style="margin:0;padding:0;-webkit-font-smoothing:antialiased;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%">\n<div class="email" style="margin-left:18px;margin-right:18px">\n<table cellpadding="0" cellspacing="0" style="border-collapse:separate;mso-table-lspace:0pt;mso-table-rspace:0pt;width:100%;margin:0 auto"><td style="vertical-align:top">\n<p class="" style="margin:1em 0;font-family:-apple-system,BlinkMacSystemFont,‘Segoe UI’,Roboto,Oxygen-Sans,Ubuntu,Cantarell,‘Helvetica Neue’,sans-serif;color:#2d2d2f;font-size:16px;line-height:1.5"><span style="font-size:18px">You’re in Ruth!

\n<p class="" style="margin:1em 0;font-family:-apple-system,BlinkMacSystemFont,‘Segoe UI’,Roboto,Oxygen-Sans,Ubuntu,Cantarell,‘Helvetica Neue’,sans-serif;color:#2d2d2f;font-size:16px;line-height:1.5"><span style="font-size:18px">Congratulations on securing your spot on the LinkedIn Creator Academy waitlist.

\n<p class="" style="margin:1em 0;font-family:-apple-system,BlinkMacSystemFont,‘Segoe UI’,Roboto,Oxygen-Sans,Ubuntu,Cantarell,‘Helvetica Neue’,sans-serif;color:#2d2d2f;font-size:16px;line-height:1.5"><span style="font-size:18px">You’re now part of an exclusive group that will get first access to the complete system that’s helped our students generate over $19 million in revenue.

\n<p class="" style="margin:1em 0;font-family:-apple-system,BlinkMacSystemFont,‘Segoe UI’,Roboto,Oxygen-Sans,Ubuntu,Cantarell,‘Helvetica Neue’,sans-serif;color:#2d2d2f;font-size:16px;line-height:1.5"><span style="font-size:18px">Here’s what happens next:

\n<p class="" style="margin:1em 0;font-family:-apple-system,BlinkMacSystemFont,‘Segoe UI’,Roboto,Oxygen-Sans,Ubuntu,Cantarell,‘Helvetica Neue’,sans-serif;color:#2d2d2f;font-size:16px;line-height:1.5"><span style="font-size:18px">This week:<span style="font-size:18px"> I’ll be sharing exclusive behind-the-scenes content showing exactly how we built the frameworks that transformed ordinary experts into client magnets.

\n<p class="" style="margin:1em 0;font-family:-apple-system,BlinkMacSystemFont,‘Segoe UI’,Roboto,Oxygen-Sans,Ubuntu,Cantarell,‘Helvetica Neue’,sans-serif;color:#2d2d2f;font-size:16px;line-height:1.5"><span style="font-size:18px">Next week:<span style="font-size:18px"> You’ll get a sneak peek at the actual system modules and see real student transformations - including the exact strategies Angela used to go from $500 to $100K.

\n<p class="" style="margin:1em 0;font-family:-apple-system,BlinkMacSystemFont,‘Segoe UI’,Roboto,Oxygen-Sans,Ubuntu,Cantarell,‘Helvetica Neue’,sans-serif;color:#2d2d2f;font-size:16px;line-height:1.5"><span style="font-size:18px">July 27th:<span style="font-size:18px"> Full reveal. You’ll see everything - the complete curriculum, bonuses, and get exclusive early access before anyone else.

\n<p class="" style="margin:1em 0;font-family:-apple-system,BlinkMacSystemFont,‘Segoe UI’,Roboto,Oxygen-Sans,Ubuntu,Cantarell,‘Helvetica Neue’,sans-serif;color:#2d2d2f;font-size:16px;line-height:1.5"><span style="font-size:18px">Between now and launch, keep an eye on your inbox. I’ll be sending you exclusive content that nobody else gets to see.

\n<p class="" style="margin:1em 0;font-family:-apple-system,BlinkMacSystemFont,‘Segoe UI’,Roboto,Oxygen-Sans,Ubuntu,Cantarell,‘Helvetica Neue’,sans-serif;color:#2d2d2f;font-size:16px;line-height:1.5"><span style="font-size:18px">This is going to change how you think about monetizing your expertise forever.

\n<p class="" style="margin:1em 0;font-family:-apple-system,BlinkMacSystemFont,‘Segoe UI’,Roboto,Oxygen-Sans,Ubuntu,Cantarell,‘Helvetica Neue’,sans-serif;color:#2d2d2f;font-size:16px;line-height:1.5"><span style="font-size:18px">Get ready.

\n<p class="" style="margin:1em 0;font-family:-apple-system,BlinkMacSystemFont,‘Segoe UI’,Roboto,Oxygen-Sans,Ubuntu,Cantarell,‘Helvetica Neue’,sans-serif;color:#2d2d2f;font-size:16px;line-height:1.5"><span style="font-size:18px">Tobi

\n<p class="" style="margin:1em 0;font-family:-apple-system,BlinkMacSystemFont,‘Segoe UI’,Roboto,Oxygen-Sans,Ubuntu,Cantarell,‘Helvetica Neue’,sans-serif;color:#2d2d2f;font-size:16px;line-height:1.5"><span style="font-size:18px">P.S. Make sure to add my email to your contacts so you don’t miss anything important.

\n<p class="" style="margin:1em 0;font-family:-apple-system,BlinkMacSystemFont,‘Segoe UI’,Roboto,Oxygen-Sans,Ubuntu,Cantarell,‘Helvetica Neue’,sans-serif;color:#2d2d2f;font-size:16px;line-height:1.5">​<a href="The Founders Blueprint Waitlist | Get Early Access” target="_blank" class="ck-link" rel="noopener noreferrer" style="color:#0875c1" url-id="1764628285"><span style="font-size:18px">And if you want more information on the Academy watch this short video<<<​

\n\n<div class="email-footer"><table cellpadding="0" cellspacing="0" style="border-collapse:separate;mso-table-lspace:0pt;mso-table-rspace:0pt;width:100%;margin:0 auto"><td style="vertical-align:top"><p style="margin:1em 0;font-family:-apple-system,BlinkMacSystemFont,‘Segoe UI’,Roboto,Oxygen-Sans,Ubuntu,Cantarell,‘Helvetica Neue’,sans-serif;color:#2d2d2f;font-size:16px;line-height:1.5;text-align:left" class="">​<a href="Unsubscribe - Kit" target="_blank" class="ck-link" rel="noopener noreferrer" style="color:#0875c1"><span style="font-size:12">Unsubscribe<span style="font-size:12"> | <a href="https://preferences.convertkit-mail2.com/wvue5z4e60b6u5kvp62h7hnv28kxxs8hlr5g0\" target="_blank" class="ck-link" rel="noopener noreferrer" style="color:#0875c1"><span style="font-size:12">Update your profile<span style="font-size:12"> | 113 Cherry St #92768, Seattle, WA 98104-2205

\n\n\n<img src="https://open.convertkit-mail2.com/wvue5z4e60b6u5kvp62h7hnv28kxxs8hlr5g0\" alt="" style="border:0 none;display:block;height:auto;line-height:100%;outline:none;-webkit-text-decoration:none;text-decoration:none;max-width:100%">\n\n\n",
“text”: “You’re in Ruth!\n\nCongratulations on securing your spot on the LinkedIn Creator\nAcademy waitlist.\n\nYou’re now part of an exclusive group that will get first access\nto the complete system that’s helped our students generate over\n$19 million in revenue.\n\nHere’s what happens next:\n\nThis week: I’ll be sharing exclusive behind-the-scenes content\nshowing exactly how we built the frameworks that transformed\nordinary experts into client magnets.\n\nNext week: You’ll get a sneak peek at the actual system modules\nand see real student transformations - including the exact\nstrategies Angela used to go from $500 to $100K.\n\nJuly 27th: Full reveal. You’ll see everything - the complete\ncurriculum, bonuses, and get exclusive early access before anyone\nelse.\n\nBetween now and launch, keep an eye on your inbox. I’ll be\nsending you exclusive content that nobody else gets to see.\n\nThis is going to change how you think about monetizing your\nexpertise forever.\n\nGet ready.\n\nTobi\n\nP.S. Make sure to add my email to your contacts so you don’t miss\nanything important.\n\n​And if you want more information on the Academy watch this short\nvideo (\nThe Founders Blueprint Waitlist | Get Early Access)​\n\n​Unsubscribe (\nUnsubscribe - Kit) | Update your profile (\nhttps://preferences.convertkit-mail2.com/wvue5z4e60b6u5kvp62h7hnv28kxxs8hlr5g0\n) | 113 Cherry St #92768, Seattle, WA 98104-2205”,
“textAsHtml”: “

You're in Ruth!

Congratulations on securing your spot on the LinkedIn Creator
Academy waitlist.

You're now part of an exclusive group that will get first access
to the complete system that's helped our students generate over
$19 million in revenue.

Here's what happens next:

This week: I'll be sharing exclusive behind-the-scenes content
showing exactly how we built the frameworks that transformed
ordinary experts into client magnets.

Next week: You'll get a sneak peek at the actual system modules
and see real student transformations - including the exact
strategies Angela used to go from $500 to $100K.

July 27th: Full reveal. You'll see everything - the complete
curriculum, bonuses, and get exclusive early access before anyone
else.

Between now and launch, keep an eye on your inbox. I'll be
sending you exclusive content that nobody else gets to see.

This is going to change how you think about monetizing your
expertise forever.

Get ready.

Tobi

P.S. Make sure to add my email to your contacts so you don't miss
anything important.

​And if you want more information on the Academy watch this short
video (
<a href="The Founders Blueprint Waitlist | Get Early Access”>The Founders Blueprint Waitlist | Get Early Access
)​

​Unsubscribe (
<a href="Unsubscribe - Kit“>Unsubscribe - Kit
) | Update your profile (
<a href="https://preferences.convertkit-mail2.com/wvue5z4e60b6u5kvp62h7hnv28kxxs8hlr5g0\”>Kit
) | 113 Cherry St #92768, Seattle, WA 98104-2205

",
“subject”: “Write a compelling subject…”,
“date”: “2025-07-23T04:17:05.000Z”,
“to”: {
“value”: [
{
“address”: “[email protected]”,
“name”: “Ruth”
}
],
“html”: “<span class="mp_address_group"><span class="mp_address_name">Ruth <<a href="mailto:[email protected]" class="mp_address_email">[email protected]>”,
“text”: “"Ruth" [email protected]
},
“from”: {
“value”: [
{
“address”: “[email protected]”,
“name”: “Tobi Oluwole”
}
],
“html”: “<span class="mp_address_group"><span class="mp_address_name">Tobi Oluwole <<a href="mailto:[email protected]" class="mp_address_email">[email protected]>”,
“text”: “"Tobi Oluwole" [email protected]
},
“messageId”: “[email protected]
}
]

Here;s my workflow:

{
“nodes”: [
{
“parameters”: {
“pollTimes”: {
“item”: [
{
“mode”: “everyMinute”
}
]
},
“filters”: {
“readStatus”: “unread”
}
},
“type”: “n8n-nodes-base.gmailTrigger”,
“typeVersion”: 1.2,
“position”: [
-2020,
280
],
“id”: “bedf9ef0-af29-4ee1-9ade-0d9fb286a417”,
“name”: “Gmail Trigger”,
“credentials”: {
“gmailOAuth2”: {
“id”: “N6psEFaHIR6T1Kxl”,
“name”: “Gmail account”
}
},
“notes”: “give the full email”
},
{
“parameters”: {
“promptType”: “define”,
“text”: “=Extract the name of the sender from the following email. Only return the full name from the send address {{ $json.From }}. If no sender name, return empty string.”,
“batching”: {}
},
“type”: “@n8n/n8n-nodes-langchain.chainLlm”,
“typeVersion”: 1.7,
“position”: [
-1800,
280
],
“id”: “ac47772a-21f9-403e-9811-64d2d3df6839”,
“name”: “Basic LLM Chain”
},
{
“parameters”: {
“model”: {
“__rl”: true,
“value”: “gpt-4o-mini”,
“mode”: “list”,
“cachedResultName”: “gpt-4o-mini”
},
“options”: {}
},
“type”: “@n8n/n8n-nodes-langchain.lmChatOpenAi”,
“typeVersion”: 1.2,
“position”: [
-1700,
500
],
“id”: “c4cef38e-c8a2-4625-893b-3364b9f28486”,
“name”: “OpenAI Chat Model”,
“credentials”: {
“openAiApi”: {
“id”: “QkHwa5FeSO1wbNfN”,
“name”: “OpenAi account”
}
}
},
{
“parameters”: {
“conditions”: {
“options”: {
“caseSensitive”: true,
“leftValue”: “”,
“typeValidation”: “strict”,
“version”: 2
},
“conditions”: [
{
“id”: “029e4caa-1bd2-4752-a112-7ca6b2e1659e”,
“leftValue”: “={{ $json.text }}”,
“rightValue”: “”,
“operator”: {
“type”: “string”,
“operation”: “notEmpty”,
“singleValue”: true
}
}
],
“combinator”: “and”
},
“options”: {}
},
“type”: “n8n-nodes-base.if”,
“typeVersion”: 2.2,
“position”: [
-1440,
280
],
“id”: “e52d1aca-8f35-4b1f-8650-713b085eb154”,
“name”: “If”
},
{
“parameters”: {
“assignments”: {
“assignments”: [
{
“id”: “1c37f5ab-2d08-4d1c-a457-a58e10209fc6”,
“name”: “introduction”,
“value”: “={{ $json.text }}”,
“type”: “string”
}
]
},
“options”: {}
},
“type”: “n8n-nodes-base.set”,
“typeVersion”: 3.4,
“position”: [
-1220,
180
],
“id”: “61c37fbb-b7e0-4574-b9cb-0cc7c2adf32f”,
“name”: “Name Found”
},
{
“parameters”: {
“assignments”: {
“assignments”: [
{
“id”: “3327a78a-92fd-4168-bbbc-efb45690361a”,
“name”: “Introduction”,
“value”: “Hey there!”,
“type”: “string”
}
]
},
“options”: {}
},
“type”: “n8n-nodes-base.set”,
“typeVersion”: 3.4,
“position”: [
-1220,
400
],
“id”: “9c85f193-66cb-4340-8a8d-6922a3e42fd4”,
“name”: “Edit Fields”
},
{
“parameters”: {},
“type”: “n8n-nodes-base.merge”,
“typeVersion”: 3.2,
“position”: [
-980,
300
],
“id”: “0abaf4f8-443c-4de8-b409-5f7db728f9f4”,
“name”: “Merge”
},
{
“parameters”: {
“inputText”: “={{ $(‘Gmail Trigger’).item.json.Subject }}{{ $(‘Gmail Trigger’).item.json.snippet }}”,
“categories”: {
“categories”: [
{
“category”: “Paid Partnership”,
“description”: “This is about paid partnerships and collaborations with brands”
}
]
},
“options”: {}
},
“type”: “@n8n/n8n-nodes-langchain.textClassifier”,
“typeVersion”: 1.1,
“position”: [
-460,
300
],
“id”: “0cb2f01b-c8c6-4867-8eb7-4396a082e43d”,
“name”: “Text Classifier”
},
{
“parameters”: {
“model”: {
“__rl”: true,
“mode”: “list”,
“value”: “gpt-4.1-mini”
},
“options”: {}
},
“type”: “@n8n/n8n-nodes-langchain.lmChatOpenAi”,
“typeVersion”: 1.2,
“position”: [
-420,
520
],
“id”: “5a2f3975-095e-4ac7-88d9-dd5f5a48539e”,
“name”: “OpenAI Chat Model1”,
“credentials”: {
“openAiApi”: {
“id”: “QkHwa5FeSO1wbNfN”,
“name”: “OpenAi account”
}
}
},
{
“parameters”: {
“assignments”: {
“assignments”: [
{
“id”: “fa0e0805-8565-4c87-8ff4-418d15150298”,
“name”: “introduction”,
“value”: “={{ $json.introduction }}”,
“type”: “string”
},
{
“id”: “141842d5-c63d-46d3-a132-08ec5b07cb70”,
“name”: “emailbody”,
“value”: “={{ $(‘Gmail Trigger’).item.json.snippet }}”,
“type”: “string”
},
{
“id”: “0c1840d9-1ea0-413e-904a-af1d76223ca2”,
“name”: “threadID”,
“value”: “={{ $(‘Gmail Trigger’).item.json.threadId }}”,
“type”: “string”
},
{
“id”: “d589f87c-ac4b-4be3-aa13-9412efeb2a04”,
“name”: “labelID”,
“value”: “={{ $(‘Gmail Trigger’).item.json.labels[0].id }}”,
“type”: “string”
}
]
},
“includeOtherFields”: true,
“options”: {}
},
“type”: “n8n-nodes-base.set”,
“typeVersion”: 3.4,
“position”: [
-760,
300
],
“id”: “1bfac67a-1f9c-4265-b301-bed99a135492”,
“name”: “Edit Fields1”
}
],
“connections”: {
“Gmail Trigger”: {
“main”: [
[
{
“node”: “Basic LLM Chain”,
“type”: “main”,
“index”: 0
}
]
]
},
“Basic LLM Chain”: {
“main”: [
[
{
“node”: “If”,
“type”: “main”,
“index”: 0
}
]
]
},
“OpenAI Chat Model”: {
“ai_languageModel”: [
[
{
“node”: “Basic LLM Chain”,
“type”: “ai_languageModel”,
“index”: 0
}
]
]
},
“If”: {
“main”: [
[
{
“node”: “Name Found”,
“type”: “main”,
“index”: 0
}
],
[
{
“node”: “Edit Fields”,
“type”: “main”,
“index”: 0
}
]
]
},
“Name Found”: {
“main”: [
[
{
“node”: “Merge”,
“type”: “main”,
“index”: 0
}
]
]
},
“Edit Fields”: {
“main”: [
[
{
“node”: “Merge”,
“type”: “main”,
“index”: 1
}
]
]
},
“Merge”: {
“main”: [
[
{
“node”: “Edit Fields1”,
“type”: “main”,
“index”: 0
}
]
]
},
“OpenAI Chat Model1”: {
“ai_languageModel”: [
[
{
“node”: “Text Classifier”,
“type”: “ai_languageModel”,
“index”: 0
}
]
]
},
“Edit Fields1”: {
“main”: [
[
{
“node”: “Text Classifier”,
“type”: “main”,
“index”: 0
}
]
]
}
},
“pinData”: {},
“meta”: {
“templateCredsSetupCompleted”: true,
“instanceId”: “cf1e9f6c8cb1f1775e7e8668beeffea63b392e226a2f48568e9d46e16a6c3f1c”
}
}

I’m working on a self-hostef n8n via docker

Hi do you set the simplify button off?

1 Like

Thank you! That worked

1 Like

Hi @daxi90!

Please I have a follow up question

The merge node is not giving an output. It mean to give my name which is the variable “introduction”. Please can your take a look at my workflow and let me know what you think could be the issue. I’d appreciate your help. The goal of this workflow is to build a email inbox assistant that sorts and labels emails that come in and respond to them.
:

HI, can you share the input data from the if node?, then it would be easier to check.

Hi David!

This is the input to the “If” node.

[
{
“text”: “Ruth Orekogbe”
}
]

this is the output of the “If” node:

[
{
“text”: “Ruth Orekogbe”
}
]

Hi, i setup your process now on my instance.
I think it should work, but iam not sure if you have the right field for the “from sender” field?

Try to add the whole sender maybe:

By the way, I don’t think you really need the AI agent node in this case. You can simply use an if node to check whether there is anything in the field or not.

If you want to use the AI agent node, you can tell it to deliver the desired output right away, then you don’t need the if node.

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