1386 Limit Code Automation Scheduled

1386 Limit Code Automation Scheduled

Scheduled
High
23
Nodes
Scheduled
Trigger
High
Complexity
7/22/2025
Added

Workflow Overview

Total Nodes
23
Node Types
10

Node Types

sticky Note
Sticky Note, Sticky Note2, Sticky Note1, Sticky Note4, Sticky Note5, Sticky Note7, Sticky Note8, Sticky Note9, Sticky Note10, Sticky Note11
10 nodes
code
Convert raw to base64
1 node
http Request
Add email draft to thread
1 node
gmail
Remove AI label from email, Get threads with specific labels, Get thread messages, Get single message content
4 nodes
schedule Trigger
Schedule trigger (1 min)
1 node
set
Map fields for further processing, Build email raw
2 nodes
markdown
Convert response to HTML
1 node
open Ai
Ask OpenAI Assistant
1 node
split In Batches
Loop over threads
1 node
limit
Return last message in thread
1 node

Workflow JSON

15.29 KB
{
  "name": "1386 Limit Code Automation Scheduled",
  "nodes": [
    {
      "id": "a99b3164-fe36-4dde-9525-110c1ae08afb",
      "name": "Convert raw to base64",
      "type": "n8n-nodes-base.code",
      "position": [
        3320,
        580
      ],
      "parameters": {
        "mode": "runOnceForEachItem",
        "jsCode": "const encoded = Buffer.from($json.raw).toString('base64');\n\nreturn { encoded };"
      },
      "typeVersion": 2
    },
    {
      "id": "f0f731bd-7b2f-4c39-bc06-42fd57bc4ae8",
      "name": "Add email draft to thread",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        3580,
        580
      ],
      "parameters": {
        "url": "https://www.googleapis.com/gmail/v1/users/me/drafts",
        "method": "POST",
        "options": {},
        "jsonBody": "={\"message\":{\"raw\":\"{{ $json.encoded }}\", \"threadId\": \"{{ $('Map fields for further processing').item.json[\"threadId\"] }}\"}}",
        "sendBody": true,
        "specifyBo...

Showing first 1000 characters. Click "Expand" to view the full JSON.