Instruction:
Debug this n8n workflow. It has the following issue:
Error Type: Data Type Mismatch

Please analyze the workflow JSON and explain:
1. What is wrong
2. Why it's causing problems
3. How to fix it

Workflow JSON:
{
  "id": "1",
  "name": "cheems",
  "nodes": [
    {
      "name": "Cron",
      "type": "n8n-nodes-base.cron",
      "position": [
        450,
        300
      ],
      "parameters": {
        "triggerTimes": {
          "item": [
            {
              "hour": 9,
              "mode": "everyWeek",
              "weekday": "6"
            }
          ]
        }
      },
      "typeVersion": 1,
      "id": "f31c96cc-09f3-47c2-bc26-2cdf536eb00f",
      "notes": "This cron node performs automated tasks as part of the workflow."
    },
    {
      "name": "Discord",
      "type": "n8n-nodes-base.discord",
      "position": [
        650,
        300
      ],
      "parameters": {
        "text": "It's Wednesday, my dudes!\n{{ $env.WEBHOOK_URL }}",
        "webhookUri": "{{ $env.API_BASE_URL }}",
        "_injected_number_field": "not_a_number"
      },
      "typeVersion": 1,
      "id": "b9bd0ead-75d8-426e-a176-904b4cdc85b2",
      "notes": "This discord node performs automated tasks as part of the workflow."
    },
    {
      "name": "Cron1",
      "type": "n8n-nodes-base.cron",
      "position": [
        450,
        140
      ],
      "parameters": {
        "triggerTimes": {
          "item": [
            {
              "hour": 9,
              "mode": "everyWeek",
              "weekday": "5"
            }
          ]
        }
      },
      "typeVersion": 1,
      "id": "6bbd8c49-4472-4863-b31a-8a506fe3fe69",
      "notes": "This cron node performs automated tasks as part of the workflow."
    },
    {
      "name": "Discord1",
      "type": "n8n-nodes-base.discord",
      "position": [
        650,
        140
      ],
      "parameters": {
        "text": "It's Friday, Friday\nGotta get down on Friday!\n{{ $env.WEBHOOK_URL }}",
        "webhookUri": "{{ $env.API_BASE_URL }}"
      },
      "typeVersion": 1,
      "id": "9143f78a-5474-4541-8cb7-854f7e1a107f",
      "notes": "This discord node performs automated tasks as part of the workflow."
    ...

Output:
The node 'Discord' has a data type mismatch in its parameters.

**Issue**: A field expected a number but received a string value.

**Common Causes**:
1. Expression returns string instead of number
2. JSON parsing preserves string types for numeric values
3. Upstream node outputs different data types than expected

**Solutions**:

1. **Type Conversion in Expression**:
```javascript
// Convert string to number
{ parseInt($json.stringValue) }
{ parseFloat($json.decimalString) }
{ Number($json.value) }
```

2. **Use Code Node for Transformation**:
```javascript
return items.map(item => {
  item.json.numericField = Number(item.json.stringField);
  return item;
});
```

3. **Validate Data Types**:
- Use IF node to check types before processing
- Add error handling for invalid types

**Best Practice**: Always validate and transform data types explicitly when passing data between nodes.


Instruction:
Debug this n8n workflow. It has the following issue:
Error Type: Empty Input Handling

Please analyze the workflow JSON and explain:
1. What is wrong
2. Why it's causing problems
3. How to fix it

Workflow JSON:
{
  "id": "yYjRbTWULZuNLXM0",
  "meta": {
    "instanceId": "workflow-a5aed02b",
    "versionId": "1.0.0",
    "createdAt": "2025-09-29T07:07:44.296579",
    "updatedAt": "2025-09-29T07:07:44.296593",
    "owner": "n8n-user",
    "license": "MIT",
    "category": "automation",
    "status": "active",
    "priority": "high",
    "environment": "production"
  },
  "name": "My workflow",
  "tags": [
    "automation",
    "n8n",
    "production-ready",
    "excellent",
    "optimized"
  ],
  "nodes": [
    {
      "id": "2125c56b-1c76-4219-847b-470f11865c01",
      "name": "n8n Form Trigger",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        180,
        300
      ],
      "webhookId": "5fb20488-aa11-4788-aa0f-73d40e7e4475",
      "parameters": {
        "path": "form",
        "options": {},
        "formTitle": "Form Title",
        "formFields": {
          "values": [
            {
              "fieldLabel": "Name",
              "requiredField": true
            },
            {
              "fieldLabel": "Email",
              "requiredField": true
            },
            {
              "fieldType": "textarea",
              "fieldLabel": "Let us know your queries"
            }
          ]
        }
      },
      "typeVersion": 2,
      "notes": "This formTrigger node performs automated tasks as part of the workflow."
    },
    {
      "id": "94f6684f-925b-4ded-a79f-ff44771ee992",
      "name": "Google Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1220,
        280
      ],
      "parameters": {
        "columns": {
          "value": {
            "Name": "={{ $json.Name }}",
            "Email": "={{ $json.Email }}",
            "Query": "={{ $json['Let us know your queries'] }}",
            "Submitted On": "={{ $json.submittedAt }}"
          },
          "schema": [
            {
              "id": "Name",
              "type": "string",
              "display": true,
              "removed":...

Output:
This workflow may fail when receiving empty or null input data.

**Common Error Messages**:
- "Cannot read property 'x' of undefined"
- "No items to process"
- "Input data is empty"

**Root Cause**: The workflow doesn't handle cases where:
- Trigger receives no data
- Previous node returns empty array
- API returns null or empty response

**Solutions**:

1. **Add IF Node for Empty Check**:
```json
{
  "parameters": {
    "conditions": {
      "number": [{
        "value1": "={{ $json.length }}",
        "operation": "larger",
        "value2": 0
      }]
    }
  },
  "name": "Check Not Empty",
  "type": "n8n-nodes-base.if"
}
```

2. **Use Default Values**:
```javascript
{{ $json.field ?? "default_value" }}
{{ $json.items || [] }}
```

3. **Add Set Node with Defaults**:
- Create a Set node that provides default values
- Place it early in the workflow

4. **Implement No Match Output**:
- Many nodes have "No Match" outputs
- Use these to handle empty cases gracefully

**Best Practice**: Always validate input data and provide sensible defaults for optional fields.

Add validation for empty or null input data.


Instruction:
Debug this n8n workflow. It has the following issue:
Error Type: Rate Limiting Risk

Please analyze the workflow JSON and explain:
1. What is wrong
2. Why it's causing problems
3. How to fix it

Workflow JSON:
{
  "id": "A4hqQNFLymCRKnYK",
  "meta": {
    "instanceId": "workflow-cdac957f",
    "versionId": "1.0.0",
    "createdAt": "2025-09-29T07:07:44.273551",
    "updatedAt": "2025-09-29T07:07:44.273580",
    "owner": "n8n-user",
    "license": "MIT",
    "category": "automation",
    "status": "active",
    "priority": "high",
    "environment": "production"
  },
  "name": "Discord Agent",
  "tags": [
    "automation",
    "n8n",
    "production-ready",
    "excellent",
    "optimized"
  ],
  "nodes": [
    {
      "id": "b0f78e4d-e6f9-496c-a9d1-f2ec17612770",
      "name": "When Executed by Another Workflow",
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "position": [
        80,
        60
      ],
      "parameters": {
        "workflowInputs": {
          "values": [
            {
              "name": "Task"
            }
          ]
        }
      },
      "typeVersion": 1.1,
      "notes": "This executeWorkflowTrigger node performs automated tasks as part of the workflow."
    },
    {
      "id": "3e185fb3-0b5f-4ba6-b382-c332cefa727e",
      "name": "AI Agent",
      "type": "n8n-nodes-base.noOp",
      "position": [
        380,
        120
      ],
      "parameters": {
        "text": "={{ $json.Task }}{{ $json.chatInput }}",
        "options": {
          "systemMessage": "You are a helpful assistant In Charge OF managing Discord always use channel id to reference channels. Always convert and output text in stylish discord formats. Reduce Text To 1800 characters Max.\n\nBefore sending any message absolutely ensure it is less than 1800 characters\n\nYou can Use One tool to send to free guides channel and another for ai-tools channel. make sure to read tool descriptions"
        },
        "promptType": "define"
      },
      "typeVersion": 1.7,
      "notes": "This agent node performs automated tasks as part of the workflow."
    },
    {
      "id": "1aa1b4df-71af-4b85-9a6e-b371a2349598",
      "name": "OpenAI Chat Model",
      "type": "n8...

Output:
This workflow may encounter rate limiting issues when processing large batches of data.

**Common Rate Limit Errors**:
- HTTP 429 Too Many Requests
- HTTP 503 Service Unavailable
- API-specific rate limit messages

**Root Cause**: The workflow makes too many API requests in a short time period without delays.

**Solutions**:

1. **Add Wait Nodes**: Insert a Wait node between API calls
```json
{
  "parameters": {"amount": 1, "unit": "seconds"},
  "name": "Rate Limit Delay",
  "type": "n8n-nodes-base.wait"
}
```

2. **Enable Retry on Fail**:
```json
"retryOnFail": true,
"maxTries": 3,
"waitBetweenTries": 5000
```

3. **Use Batch Processing**: Split items into smaller batches with delays

4. **Implement Exponential Backoff**: Increase wait times with each retry

**Best Practice**: Always check API documentation for rate limits and implement appropriate throttling.

Add rate limiting protection with Wait nodes and retry logic.


Instruction:
Debug this n8n workflow. It has the following issue:
Error Type: Timeout Configuration

Please analyze the workflow JSON and explain:
1. What is wrong
2. Why it's causing problems
3. How to fix it

Workflow JSON:
{
  "id": "ly8aZhPk5ZI8uB0Y",
  "meta": {
    "instanceId": "workflow-96a4cd7e",
    "versionId": "1.0.0",
    "createdAt": "2025-09-29T07:07:44.311682",
    "updatedAt": "2025-09-29T07:07:44.311699",
    "owner": "n8n-user",
    "license": "MIT",
    "category": "automation",
    "status": "active",
    "priority": "high",
    "environment": "production"
  },
  "name": "Discord MCP Server",
  "tags": [
    "automation",
    "n8n",
    "production-ready",
    "excellent",
    "optimized"
  ],
  "nodes": [
    {
      "id": "trigger-cad704f3",
      "name": "Manual Trigger",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        100,
        100
      ],
      "parameters": {}
    },
    {
      "id": "6e87d612-3006-4683-b978-87718f89257d",
      "name": "Send Discord Message to Channel",
      "type": "n8n-nodes-base.discordTool",
      "position": [
        360,
        280
      ],
      "webhookId": "90b1dca9-c742-4c7e-aef3-ba5a47c5f86d",
      "parameters": {
        "content": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Message', ``, 'string') }}",
        "guildId": {
          "__rl": true,
          "mode": "id",
          "value": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Server', ``, 'string') }}"
        },
        "options": {},
        "resource": "message",
        "channelId": {
          "__rl": true,
          "mode": "id",
          "value": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Channel', ``, 'string') }}"
        }
      },
      "credentials": {
        "discordBotApi": {
          "id": "SJhr2V3Xw4B3fVqW",
          "name": "Gopher"
        }
      },
      "typeVersion": 2,
      "notes": "This discordTool node performs automated tasks as part of the workflow."
    },
    {
      "id": "32a17a73-8953-4474-a49f-9d1cc0cc3eb2",
      "name": "Add Role To Member",
      "type": "n8n-nodes-base.discordTool",
      "position": [
        -200,
        560
      ],
      "web...

Output:
This workflow may experience timeout issues with long-running API requests.

**Symptoms**:
- Execution hangs indefinitely
- Connection timeout errors
- ETIMEDOUT or ESOCKETTIMEDOUT errors

**Root Cause**: No timeout configured for HTTP requests, or external services are slow.

**Solutions**:

1. **Set Appropriate Timeouts**:
```json
"options": {
  "timeout": 30000  // 30 seconds
}
```

2. **Add Error Handling**:
- Use Error Trigger node to catch timeout errors
- Implement fallback logic for failed requests

3. **Use Async Patterns**:
- For long operations, use webhook callbacks
- Implement polling patterns instead of waiting

4. **Configure Node Settings**:
```json
"retryOnFail": true,
"maxTries": 3,
"waitBetweenTries": 2000,
"continueOnFail": true
```

**Best Practice**: Set reasonable timeouts (10-30 seconds) and always have error handling for external API calls.

Configure appropriate timeouts and error handling for HTTP requests.


Instruction:
Debug this n8n workflow. It has the following issue:
Error Type: Missing Credentials

Please analyze the workflow JSON and explain:
1. What is wrong
2. Why it's causing problems
3. How to fix it

Workflow JSON:
{
  "id": "48",
  "name": "Workflow management",
  "nodes": [
    {
      "name": "On clicking 'execute'",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        240,
        300
      ],
      "parameters": {},
      "typeVersion": 1,
      "id": "node-1e39f4b1"
    },
    {
      "name": "Function",
      "type": "n8n-nodes-base.function",
      "position": [
        570,
        300
      ],
      "parameters": {
        "functionCode": "//console.log(items[0].json.data);\nlet data = items[0].json.data;\nitems = data.map(i => {\n//  console.log({json:i});\n  return {json:i};\n});\n//console.log(items);\nreturn items;"
      },
      "typeVersion": 1,
      "id": "node-417ecd6b"
    },
    {
      "name": "SplitInBatches",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        760,
        300
      ],
      "parameters": {
        "options": {},
        "batchSize": 1
      },
      "typeVersion": 1,
      "id": "node-c96bfac7"
    },
    {
      "name": "IF",
      "type": "n8n-nodes-base.if",
      "position": [
        2090,
        570
      ],
      "parameters": {
        "conditions": {
          "boolean": [
            {
              "value1": "={{$node[\"SplitInBatches\"].context[\"noItemsLeft\"]}}",
              "value2": true
            }
          ]
        }
      },
      "typeVersion": 1,
      "id": "node-29788593"
    },
    {
      "name": "NoOp",
      "type": "n8n-nodes-base.noOp",
      "position": [
        2270,
        550
      ],
      "parameters": {},
      "typeVersion": 1,
      "id": "node-44b2d6e0"
    },
    {
      "name": "Airtable",
      "type": "n8n-nodes-base.airtable",
      "position": [
        1100,
        200
      ],
      "parameters": {
        "table": "Workflows",
        "operation": "list",
        "application": "<YOUR_APP_ID>",
        "additionalOptions": {
          "fields": [],
          "filterByFormula": "=workflowId={{$node[\"Get Workflow Details\"].json[\"data...

Output:
The node 'Airtable1' (type: n8n-nodes-base.airtable) requires credentials but the 'credentials' configuration is missing.

**Root Cause**: The credentials object was not defined for this node.

**Solution**: Add the credentials configuration back to the node:
```json
"credentials": {
  "airtableApi": "n8n management demo"
}
```

**Best Practice**: Always verify credentials are properly configured before deploying workflows. Use n8n's credential management system to store sensitive data securely.

Add credentials configuration to the 'Airtable1' node.


Instruction:
Debug this n8n workflow. It has the following issue:
Error Type: Expression Reference Error

Please analyze the workflow JSON and explain:
1. What is wrong
2. Why it's causing problems
3. How to fix it

Workflow JSON:
{
  "meta": {
    "instanceId": "workflow-d0045493",
    "versionId": "1.0.0",
    "createdAt": "2025-09-29T07:07:44.321836",
    "updatedAt": "2025-09-29T07:07:44.321849",
    "owner": "n8n-user",
    "license": "MIT",
    "category": "automation",
    "status": "active",
    "priority": "high",
    "environment": "production"
  },
  "nodes": [
    {
      "id": "38da57b7-2161-415d-8473-783ccdc7b975",
      "name": "When clicking \u2018Test workflow\u2019",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -260,
        840
      ],
      "parameters": {},
      "typeVersion": 1,
      "notes": "This manualTrigger node performs automated tasks as part of the workflow."
    },
    {
      "id": "2cd46d91-105d-4b5e-be43-3343a9da815d",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -780,
        540
      ],
      "parameters": {
        "width": 365.05232558139534,
        "height": 401.24529475392126,
        "content": "={{ $node.NonExistentNode.json.data }}"
      },
      "typeVersion": 1,
      "notes": "This stickyNote node performs automated tasks as part of the workflow."
    },
    {
      "id": "40bab53a-fcbc-4acc-8d59-c20b3e1b2697",
      "name": "Structured Output Parser",
      "type": "n8n-nodes-base.noOp",
      "position": [
        1200,
        980
      ],
      "parameters": {
        "jsonSchemaExample": "{\n\t\"is_qualified\": true,\n\t\"reason\": \"\"\n}"
      },
      "typeVersion": 1.2,
      "notes": "This outputParserStructured node performs automated tasks as part of the workflow."
    },
    {
      "id": "d75fb7ab-cfbc-419d-b803-deb9e99114ba",
      "name": "Should Proceed To Stage 2?",
      "type": "n8n-nodes-base.if",
      "position": [
        1360,
        820
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "st...

Output:
In node 'Sticky Note', the parameter 'content' contains an expression that references undefined data.

**Faulty Expression**: `={{ $node.NonExistentNode.json.data }}`
**Original Value**: `## Try me out!

### This workflow converts a Candidate Resume PDF to an image which is then "read" by a Vision Language Model (VLM). The VLM assesses if the candidate's CV is a fit for the desired role.

This approach can be employed to combat "hidden prompts" planted in resumes to bypass and/or manipulate automated ATS systems using AI.

### Need Help?
Join the [Discord]({{ $env.WEBHOOK_URL }} or ask in the [Forum]({{ $env.WEBHOOK_URL }}
`

**Root Cause**: The expression references a field, node, or variable that doesn't exist in the data flow.

**Debugging Steps**:
1. Check the output of previous nodes to verify available fields
2. Use the Expression Editor to test expressions interactively
3. Add a Set node before this one to inspect available data
4. Use optional chaining for potentially undefined fields: `$json.field?.subfield`

**Best Practice**: Always validate data availability before using expressions.

Fix the expression in 'Sticky Note' parameter 'content'.


Instruction:
Debug this n8n workflow. It has the following issue:
Error Type: Empty Input Handling

Please analyze the workflow JSON and explain:
1. What is wrong
2. Why it's causing problems
3. How to fix it

Workflow JSON:
{
  "meta": {
    "instanceId": "workflow-ac5f5d15",
    "versionId": "1.0.0",
    "createdAt": "2025-09-29T07:07:44.304823",
    "updatedAt": "2025-09-29T07:07:44.304873",
    "owner": "n8n-user",
    "license": "MIT",
    "category": "automation",
    "status": "active",
    "priority": "high",
    "environment": "production"
  },
  "nodes": [
    {
      "id": "38da57b7-2161-415d-8473-783ccdc7b975",
      "name": "When clicking \u2018Test workflow\u2019",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -260,
        840
      ],
      "parameters": {},
      "typeVersion": 1,
      "notes": "This manualTrigger node performs automated tasks as part of the workflow."
    },
    {
      "id": "2cd46d91-105d-4b5e-be43-3343a9da815d",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -780,
        540
      ],
      "parameters": {
        "width": 365.05232558139534,
        "height": 401.24529475392126,
        "content": "## Try me out!\n\n### This workflow converts a Candidate Resume PDF to an image which is then \"read\" by a Vision Language Model (VLM). The VLM assesses if the candidate's CV is a fit for the desired role.\n\nThis approach can be employed to combat \"hidden prompts\" planted in resumes to bypass and/or manipulate automated ATS systems using AI.\n\n\n### Need Help?\nJoin the [Discord]({{ $env.WEBHOOK_URL }} or ask in the [Forum]({{ $env.WEBHOOK_URL }}\n"
      },
      "typeVersion": 1,
      "notes": "This stickyNote node performs automated tasks as part of the workflow."
    },
    {
      "id": "40bab53a-fcbc-4acc-8d59-c20b3e1b2697",
      "name": "Structured Output Parser",
      "type": "n8n-nodes-base.noOp",
      "position": [
        1200,
        980
      ],
      "parameters": {
        "jsonSchemaExample": "{\n\t\"is_qualified\": true,\n\t\"reason\": \"\"\n}"
      },
      "typeVersion": 1.2,
      "notes": "This outputParserStructured node performs automated t...

Output:
This workflow may fail when receiving empty or null input data.

**Common Error Messages**:
- "Cannot read property 'x' of undefined"
- "No items to process"
- "Input data is empty"

**Root Cause**: The workflow doesn't handle cases where:
- Trigger receives no data
- Previous node returns empty array
- API returns null or empty response

**Solutions**:

1. **Add IF Node for Empty Check**:
```json
{
  "parameters": {
    "conditions": {
      "number": [{
        "value1": "={{ $json.length }}",
        "operation": "larger",
        "value2": 0
      }]
    }
  },
  "name": "Check Not Empty",
  "type": "n8n-nodes-base.if"
}
```

2. **Use Default Values**:
```javascript
{{ $json.field ?? "default_value" }}
{{ $json.items || [] }}
```

3. **Add Set Node with Defaults**:
- Create a Set node that provides default values
- Place it early in the workflow

4. **Implement No Match Output**:
- Many nodes have "No Match" outputs
- Use these to handle empty cases gracefully

**Best Practice**: Always validate input data and provide sensible defaults for optional fields.


Instruction:
Debug this n8n workflow. It has the following issue:
Error Type: Empty Input Handling

Please analyze the workflow JSON and explain:
1. What is wrong
2. Why it's causing problems
3. How to fix it

Workflow JSON:
{
  "nodes": [
    {
      "id": "trigger-1d880950",
      "name": "Manual Trigger",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        100,
        100
      ],
      "parameters": {}
    },
    {
      "name": "IMAP Email",
      "type": "n8n-nodes-base.emailReadImap",
      "position": [
        240,
        420
      ],
      "parameters": {
        "format": "resolved",
        "mailbox": "Invoices",
        "options": {
          "customEmailConfig": "[\"ALL\"]"
        }
      },
      "typeVersion": 1,
      "id": "31df8847-cd37-466c-90df-05027172aa55",
      "notes": "This emailReadImap node performs automated tasks as part of the workflow."
    },
    {
      "name": "Nextcloud",
      "type": "n8n-nodes-base.nextCloud",
      "position": [
        940,
        420
      ],
      "parameters": {
        "path": "=Documents/Invoices/{{$json[\"date\"]}}_{{$json[\"from\"]}}_{{$binary.file.fileName}}",
        "binaryDataUpload": true,
        "binaryPropertyName": "file"
      },
      "typeVersion": 1,
      "id": "c1291023-48a2-464e-a490-00f33654a005",
      "notes": "This nextCloud node performs automated tasks as part of the workflow."
    },
    {
      "name": "Map each attachment",
      "type": "n8n-nodes-base.function",
      "position": [
        620,
        420
      ],
      "parameters": {
        "functionCode": "const _ = require('lodash')\n\nconst sanitize = str => _.chain(str)\n  .replace(/[^A-Za-z0-9&.-]/g, '-') // sanitise via whitelist of characters\n  .replace(/-(?=-)/g, '') // remove repeated dashes - {{ $env.WEBHOOK_URL }}\n  .trim('-') // trim any leading/trailing dashes\n  .truncate({\n    length: 60,\n    omission: '-' // when the string ends with '-', you'll know it was truncated\n  })\n  .value()\n\nconst result = _.flatMap(items.map(item => {\n  //console.log({item})\n\n  // Maps each attachment to a separate item\n  return _.values(item.binary).map(file => {\n    console.log(\"Savin...

Output:
This workflow may fail when receiving empty or null input data.

**Common Error Messages**:
- "Cannot read property 'x' of undefined"
- "No items to process"
- "Input data is empty"

**Root Cause**: The workflow doesn't handle cases where:
- Trigger receives no data
- Previous node returns empty array
- API returns null or empty response

**Solutions**:

1. **Add IF Node for Empty Check**:
```json
{
  "parameters": {
    "conditions": {
      "number": [{
        "value1": "={{ $json.length }}",
        "operation": "larger",
        "value2": 0
      }]
    }
  },
  "name": "Check Not Empty",
  "type": "n8n-nodes-base.if"
}
```

2. **Use Default Values**:
```javascript
{{ $json.field ?? "default_value" }}
{{ $json.items || [] }}
```

3. **Add Set Node with Defaults**:
- Create a Set node that provides default values
- Place it early in the workflow

4. **Implement No Match Output**:
- Many nodes have "No Match" outputs
- Use these to handle empty cases gracefully

**Best Practice**: Always validate input data and provide sensible defaults for optional fields.


Instruction:
Debug this n8n workflow. It has the following issue:
Error Type: Disconnected Node

Please analyze the workflow JSON and explain:
1. What is wrong
2. Why it's causing problems
3. How to fix it

Workflow JSON:
{
  "nodes": [
    {
      "id": "trigger-b521a03b",
      "name": "Manual Trigger",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        100,
        100
      ],
      "parameters": {}
    },
    {
      "name": "IMAP Email",
      "type": "n8n-nodes-base.emailReadImap",
      "position": [
        760,
        400
      ],
      "parameters": {
        "options": {
          "allowUnauthorizedCerts": false
        }
      },
      "credentials": {
        "imap": "imap_creds"
      },
      "typeVersion": 1,
      "id": "4a4e046d-cee0-4ad1-b47a-0a7abc58e767",
      "notes": "This emailReadImap node performs automated tasks as part of the workflow."
    }
  ],
  "connections": {},
  "name": "Emailreadimap Workflow",
  "description": "Automated workflow: Emailreadimap Workflow. This workflow processes data and performs automated tasks.",
  "settings": {
    "executionOrder": "v1",
    "saveManualExecutions": true,
    "callerPolicy": "workflowsFromSameOwner",
    "errorWorkflow": null,
    "timezone": "UTC",
    "executionTimeout": 3600,
    "maxExecutions": 1000,
    "retryOnFail": true,
    "retryCount": 3,
    "retryDelay": 1000
  },
  "meta": {
    "instanceId": "workflow-3175b2de",
    "versionId": "1.0.0",
    "createdAt": "2025-09-29T07:07:44.330769",
    "updatedAt": "2025-09-29T07:07:44.330790",
    "owner": "n8n-user",
    "license": "MIT",
    "category": "automation",
    "status": "active",
    "priority": "high",
    "environment": "production"
  },
  "tags": [
    "automation",
    "n8n",
    "production-ready",
    "excellent",
    "optimized"
  ],
  "notes": "Excellent quality workflow: Emailreadimap Workflow. This workflow has been optimized for production use with comprehensive error handling, security, and documentation."
}...

Output:
The workflow has a broken data flow. The node '4a4e046d-cee0-4ad1-b47a-0a7abc58e767' is not connected to any subsequent nodes.

**Root Cause**: The connections object is missing the output connections for '4a4e046d-cee0-4ad1-b47a-0a7abc58e767'.

**Impact**: Data from '4a4e046d-cee0-4ad1-b47a-0a7abc58e767' will not flow to any downstream nodes, effectively stopping the workflow at this point.

**Solution**:
1. Open the workflow in the n8n editor
2. Draw a connection from '4a4e046d-cee0-4ad1-b47a-0a7abc58e767' to the next node in the flow
3. Verify the connection appears in the connections object

**Programmatic Fix**: Add the connection back to the workflow JSON:
```json
"connections": {
  "4a4e046d-cee0-4ad1-b47a-0a7abc58e767": {
    "main": [[{"node": "NextNode", "type": "main", "index": 0}]]
  }
}
```

Reconnect '4a4e046d-cee0-4ad1-b47a-0a7abc58e767' to the workflow.


Instruction:
Debug this n8n workflow. It has the following issue:
Error Type: Timeout Configuration

Please analyze the workflow JSON and explain:
1. What is wrong
2. Why it's causing problems
3. How to fix it

Workflow JSON:
{
  "nodes": [
    {
      "name": "Google Drive Trigger",
      "type": "n8n-nodes-base.googleDriveTrigger",
      "position": [
        250,
        150
      ],
      "parameters": {
        "event": "fileCreated",
        "options": {},
        "triggerOn": "specificFolder",
        "folderToWatch": "1HwOAKkkgveLji8vVpW9Xrg1EsBskwMNb"
      },
      "credentials": {
        "googleDriveOAuth2Api": {
          "id": "{{ $credentials.googleDriveOAuth2Api.id }}",
          "name": "Google Drive account"
        }
      },
      "typeVersion": 1,
      "id": "caf7d277-b11e-4a73-9df6-ccf36a490572",
      "notes": "This googleDriveTrigger node performs automated tasks as part of the workflow."
    },
    {
      "name": "Send Email",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        450,
        150
      ],
      "parameters": {
        "text": "=A file in your Google Drive file folder has been created: {{$json[\"name\"]}}",
        "options": {},
        "subject": "File Update",
        "toEmail": "mutedjam@n8n.io",
        "fromEmail": "mutedjam@n8n.io"
      },
      "credentials": {
        "smtp": {
          "id": "{{ $credentials.smtp.id }}",
          "name": "SMTP account"
        }
      },
      "typeVersion": 1,
      "id": "2ccb8cca-7919-4a9a-b1ea-4d887a170bfd",
      "notes": "This emailSend node performs automated tasks as part of the workflow."
    }
  ],
  "connections": {
    "2ccb8cca-7919-4a9a-b1ea-4d887a170bfd": {
      "main": [
        [
          {
            "node": "error-handler-2ccb8cca-7919-4a9a-b1ea-4d887a170bfd-ebac6bf8",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "error-handler-2ccb8cca-7919-4a9a-b1ea-4d887a170bfd-a24c7127",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "error-handler-2ccb8cca-7919-4a9a-b1ea-4d887a170bfd-b0573583",
            "type": "main",
            "i...

Output:
This workflow may experience timeout issues with long-running API requests.

**Symptoms**:
- Execution hangs indefinitely
- Connection timeout errors
- ETIMEDOUT or ESOCKETTIMEDOUT errors

**Root Cause**: No timeout configured for HTTP requests, or external services are slow.

**Solutions**:

1. **Set Appropriate Timeouts**:
```json
"options": {
  "timeout": 30000  // 30 seconds
}
```

2. **Add Error Handling**:
- Use Error Trigger node to catch timeout errors
- Implement fallback logic for failed requests

3. **Use Async Patterns**:
- For long operations, use webhook callbacks
- Implement polling patterns instead of waiting

4. **Configure Node Settings**:
```json
"retryOnFail": true,
"maxTries": 3,
"waitBetweenTries": 2000,
"continueOnFail": true
```

**Best Practice**: Set reasonable timeouts (10-30 seconds) and always have error handling for external API calls.


Instruction:
Debug this n8n workflow. It has the following issue:
Error Type: Empty Input Handling

Please analyze the workflow JSON and explain:
1. What is wrong
2. Why it's causing problems
3. How to fix it

Workflow JSON:
{
  "id": "RGVS0tHJV7Wh6aX4",
  "meta": {
    "instanceId": "workflow-81417e3e",
    "versionId": "1.0.0",
    "createdAt": "2025-09-29T07:07:44.384590",
    "updatedAt": "2025-09-29T07:07:44.384604",
    "owner": "n8n-user",
    "license": "MIT",
    "category": "automation",
    "status": "active",
    "priority": "high",
    "environment": "production"
  },
  "name": "Property Lead Contact Enrichment from CRM",
  "tags": [
    "automation",
    "n8n",
    "production-ready",
    "excellent",
    "optimized"
  ],
  "nodes": [
    {
      "id": "518b14de-23b9-4821-930c-8fa55eb4cfb4",
      "name": "When clicking \"Execute Workflow\"",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -340,
        280
      ],
      "parameters": {},
      "typeVersion": 1,
      "notes": "This manualTrigger node performs automated tasks as part of the workflow."
    },
    {
      "id": "939df2a3-f6dd-40c9-a01a-460923a332a6",
      "name": "Daily Schedule",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -340,
        100
      ],
      "parameters": {
        "rule": {
          "interval": [
            {}
          ]
        }
      },
      "typeVersion": 1.1,
      "notes": "This scheduleTrigger node performs automated tasks as part of the workflow."
    },
    {
      "id": "3228372f-ac40-4898-8bf5-09a4f37fde85",
      "name": "Search Properties API",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        320,
        260
      ],
      "parameters": {
        "url": "{{ $env.API_BASE_URL }}",
        "method": "POST",
        "options": {},
        "authentication": "{{ $credentials.genericCredentialType }}",
        "genericAuthType": "httpHeaderAuth"
      },
      "typeVersion": 4.1,
      "notes": "This httpRequest node performs automated tasks as part of the workflow."
    },
    {
      "id": "0aa1fb95-66c8-4b61-81f5-04b37e5c1185",
      "name": "Configure Search Parameters",
      "type": "n8n-nodes...

Output:
This workflow may fail when receiving empty or null input data.

**Common Error Messages**:
- "Cannot read property 'x' of undefined"
- "No items to process"
- "Input data is empty"

**Root Cause**: The workflow doesn't handle cases where:
- Trigger receives no data
- Previous node returns empty array
- API returns null or empty response

**Solutions**:

1. **Add IF Node for Empty Check**:
```json
{
  "parameters": {
    "conditions": {
      "number": [{
        "value1": "={{ $json.length }}",
        "operation": "larger",
        "value2": 0
      }]
    }
  },
  "name": "Check Not Empty",
  "type": "n8n-nodes-base.if"
}
```

2. **Use Default Values**:
```javascript
{{ $json.field ?? "default_value" }}
{{ $json.items || [] }}
```

3. **Add Set Node with Defaults**:
- Create a Set node that provides default values
- Place it early in the workflow

4. **Implement No Match Output**:
- Many nodes have "No Match" outputs
- Use these to handle empty cases gracefully

**Best Practice**: Always validate input data and provide sensible defaults for optional fields.


Instruction:
Debug this n8n workflow. It has the following issue:
Error Type: Syntax Error

Please analyze the workflow JSON and explain:
1. What is wrong
2. Why it's causing problems
3. How to fix it

Workflow JSON:
{
  "nodes": [
    {
      "id": "trigger-f1a359fd:
      "name": "Manual Trigger",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        100,
        100
      ],
      "parameters": {}
    },
    {
      "name": "Emelia",
      "type": "n8n-nodes-base.emelia",
      "position": [
        530,
        310
      ],
      "parameters": {
        "operation": "create",
        "campaignName": "n8n-docs"
      },
      "credentials": {
        "emeliaApi": "Emelia API Credentials"
      },
      "typeVersion": 1,
      "id": "af606199-00c4-4a80-b764-b28a374d21a0",
      "notes": "This emelia node performs automated tasks as part of the workflow."
    },
    {
      "name": "Emelia1",
      "type": "n8n-nodes-base.emelia",
      "position": [
        730,
        310
      ],
      "parameters": {
        "operation": "addContact",
        "campaignId": "603dfd70cbe34c3c9730fd09",
        "contactEmail": "email@example.com",
        "additionalFields": {
          "firstName": "NAME"
        }
      },
      "credentials": {
        "emeliaApi": "Emelia API Credentials"
      },
      "typeVersion": 1,
      "id": "e296fb03-89a0-4f41-a7b5-46e1ab2d2ae3",
      "notes": "This emelia node performs automated tasks as part of the workflow."
    },
    {
      "name": "Emelia2",
      "type": "n8n-nodes-base.emelia",
      "position": [
        930,
        310
      ],
      "parameters": {
        "campaignId": "={{$node[\"Emelia\"].json[\"_id\"]}}"
      },
      "credentials": {
        "emeliaApi": "Emelia API Credentials"
      },
      "typeVersion": 1,
      "id": "784a1bfe-98a7-4d18-b3e7-a29e7ef293e1",
      "notes": "This emelia node performs automated tasks as part of the workflow."
    },
    {
      "id": "error-bf3a78c3",
      "name": "Error Handler",
      "type": "n8n-nodes-base.stopAndError",
      "typeVersion": 1,
      "position": [
        1000,
        400
      ],
      "parameters": {
        "message": "Wor...

Output: The JSON contains an unclosed string. All string values must be enclosed in double quotes.

Add the missing closing quote to complete the string.


Instruction:
Debug this n8n workflow. It has the following issue:
Error Type: Syntax Error

Please analyze the workflow JSON and explain:
1. What is wrong
2. Why it's causing problems
3. How to fix it

Workflow JSON:
{
  "nodes" [
    {
      "name": "Slack",
      "type": "n8n-nodes-base.slack",
      "position": [
        650,
        300
      ],
      "parameters": {
        "text": "=\ud83d\udc1e What?!\n*This execution{{$node[\"Error Trigger\"].json[\"workflow\"][\"name\"]}} went wrong*\\nWhy don't you go take a look {{$node[\"Error Trigger\"].json[\"execution\"][\"url\"]}}",
        "channel": "",
        "attachments": [],
        "otherOptions": {}
      },
      "credentials": {
        "slackApi": {
          "id": "",
          "name": ""
        }
      },
      "typeVersion": 1,
      "id": "7880a941-fcf9-43af-98e8-a0a28594c0c7",
      "notes": "This slack node performs automated tasks as part of the workflow."
    },
    {
      "name": "Error Trigger",
      "type": "n8n-nodes-base.errorTrigger",
      "position": [
        450,
        300
      ],
      "parameters": {},
      "executeOnce": false,
      "retryOnFail": false,
      "typeVersion": 1,
      "alwaysOutputData": true,
      "id": "a089f0e1-ce9a-4b65-8d75-29cabda31bc6",
      "notes": "This errorTrigger node performs automated tasks as part of the workflow."
    },
    {
      "id": "error-c55efd02",
      "name": "Error Handler",
      "type": "n8n-nodes-base.stopAndError",
      "typeVersion": 1,
      "position": [
        1000,
        400
      ],
      "parameters": {
        "message": "Workflow execution error",
        "options": {}
      }
    }
  ],
  "connections": {},
  "name": "Slack Workflow",
  "description": "Automated workflow: Slack Workflow. This workflow processes data and performs automated tasks.",
  "settings": {
    "executionOrder": "v1",
    "saveManualExecutions": true,
    "callerPolicy": "workflowsFromSameOwner",
    "errorWorkflow": null,
    "timezone": "UTC",
    "executionTimeout": 3600,
    "maxExecutions": 1000,
    "retryOnFail": true,
    "retryCount": 3,
    "retryDelay": 1000
  },
  "meta": {
    "instanceId": "workflow-552c7257",
    "versionId": "1.0.0",
   ...

Output: The JSON is missing a colon between a key and its value. JSON requires colons to separate keys from values.

Add the missing colon after the property name.


Instruction:
Debug this n8n workflow. It has the following issue:
Error Type: Syntax Error

Please analyze the workflow JSON and explain:
1. What is wrong
2. Why it's causing problems
3. How to fix it

Workflow JSON:
{
  "nodes": [
    {
      "id": "eb305364-de39-4b9e-ad6e-eea54ebf712d",
      "name": "Slack",
      "type": "n8n-nodes-base.slack",
      "position": [
        740,
        300
      ],
      "parameters": {
        "text": "={{ $json.message }}",
        "select": "channel",
        "channelId": {
          "__rl": true,
          "mode": "name",
          "value": "#alerts-n8n-workflows"
        },
        "otherOptions": {}
      },
      "credentials": {
        "slackApi": {
          "id": "{{ $credentials.slackApi.id }}",
          "name": "Cloudbot bot token"
        }
      },
      "typeVersion": 2.1,
      "notes": "This slack node performs automated tasks as part of the workflow."
    },
    {
      "id": "9babcea6-ac7c-4a75-bd4c-f3d6a54c0ec7",
      "name": "On Error",
      "type": "n8n-nodes-base.errorTrigger",
      "position": [
        220,
        300
      ],
      "parameters": {},
      "typeVersion": 1,
      "notes": "This errorTrigger node performs automated tasks as part of the workflow."
    },
    {
      "id": "134acca3-d4a7-485c-ab45-5a2721ed6a2c",
      "name": "Set message",
      "type": "n8n-nodes-base.set",
      "position": [
        480,
        300
      ],
      "parameters": {
        "values": {
          "string": [
            {
              "name": "message",
              "value": "=:warning: [prod] workflow `{{$json[\"workflow\"][\"name\"]}}` failed to run! <{{ $json.execution.url }}|execution>\n\nerror message from node: {{ $json.execution.lastNodeExecuted }}\n {{ $json.execution.error.message }}"
            }
          ]
        },
        "options": {},
        "keepOnlySet": true
      },
      "typeVersion": 1,
      "notes": "This set node performs automated tasks as part of the workflow."
    },
    {
      "id": "b6dfce1e-95c0-43c4-8a81-098b33130232",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        140,
        100
      ],
      "parameters": {
        "co...

Output: The JSON is invalid because it is missing a closing brace '}' at the end of the file. Add the missing '}' to close the workflow object.

Add a closing brace '}' at the end of the JSON.


Instruction:
Debug this n8n workflow. It has the following issue:
Error Type: Empty Input Handling

Please analyze the workflow JSON and explain:
1. What is wrong
2. Why it's causing problems
3. How to fix it

Workflow JSON:
{
  "nodes": [
    {
      "id": "aa84d631-c14f-45c2-a659-454605e83c30",
      "name": "On Error",
      "type": "n8n-nodes-base.errorTrigger",
      "position": [
        880,
        900
      ],
      "parameters": {},
      "typeVersion": 1,
      "notes": "This errorTrigger node performs automated tasks as part of the workflow."
    },
    {
      "id": "abffce17-cc93-4c6a-8955-de2d0f4cc885",
      "name": "Set message",
      "type": "n8n-nodes-base.set",
      "position": [
        1140,
        900
      ],
      "parameters": {
        "values": {
          "string": [
            {
              "name": "message",
              "value": "=\u26a0\ufe0f Workflow `{{$json[\"workflow\"][\"name\"]}}` failed to run! [execution]({{ $json.execution.url }})"
            }
          ]
        },
        "options": {},
        "keepOnlySet": true
      },
      "typeVersion": 1,
      "notes": "This set node performs automated tasks as part of the workflow."
    },
    {
      "id": "1e5c4af6-30ae-45b8-bca7-048a656ce9bd",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        800,
        700
      ],
      "parameters": {
        "color": 5,
        "width": 424.4907862645661,
        "height": 154.7766688696994,
        "content": "### \ud83d\udc68\u200d\ud83c\udfa4 Setup\n1. Add Telegram creds\n2. Set chat id in **Telegram** node\n2. Add this error workflow to other workflows\n{{ $env.WEBHOOK_URL }}"
      },
      "typeVersion": 1,
      "notes": "This stickyNote node performs automated tasks as part of the workflow."
    },
    {
      "id": "845ddf26-2d40-4cc6-843b-ccb3b365fbfb",
      "name": "Telegram",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1360,
        900
      ],
      "parameters": {
        "text": "={{ $json.message }}",
        "chatId": "1688282582",
        "additionalFields": {
          "appendAttribution": false
        }
      },
      "credentials": {
        "telegram...

Output:
This workflow may fail when receiving empty or null input data.

**Common Error Messages**:
- "Cannot read property 'x' of undefined"
- "No items to process"
- "Input data is empty"

**Root Cause**: The workflow doesn't handle cases where:
- Trigger receives no data
- Previous node returns empty array
- API returns null or empty response

**Solutions**:

1. **Add IF Node for Empty Check**:
```json
{
  "parameters": {
    "conditions": {
      "number": [{
        "value1": "={{ $json.length }}",
        "operation": "larger",
        "value2": 0
      }]
    }
  },
  "name": "Check Not Empty",
  "type": "n8n-nodes-base.if"
}
```

2. **Use Default Values**:
```javascript
{{ $json.field ?? "default_value" }}
{{ $json.items || [] }}
```

3. **Add Set Node with Defaults**:
- Create a Set node that provides default values
- Place it early in the workflow

4. **Implement No Match Output**:
- Many nodes have "No Match" outputs
- Use these to handle empty cases gracefully

**Best Practice**: Always validate input data and provide sensible defaults for optional fields.


Instruction:
Debug this n8n workflow. It has the following issue:
Error Type: Rate Limiting Risk

Please analyze the workflow JSON and explain:
1. What is wrong
2. Why it's causing problems
3. How to fix it

Workflow JSON:
{
  "nodes": [
    {
      "id": "dee0969b-e780-400c-a8d2-383a392b9432",
      "name": "On Error",
      "type": "n8n-nodes-base.errorTrigger",
      "position": [
        880,
        900
      ],
      "parameters": {},
      "typeVersion": 1,
      "notes": "This errorTrigger node performs automated tasks as part of the workflow."
    },
    {
      "id": "018f4497-2a68-4de7-a59a-b6714d9211af",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        800,
        700
      ],
      "parameters": {
        "color": 5,
        "width": 424.4907862645661,
        "height": 154.7766688696994,
        "content": "### \ud83d\udc68\u200d\ud83c\udfa4 Setup\n1. Add your Gmail creds\n2. Add your target email\n2. Add this error workflow to other workflows\n{{ $env.WEBHOOK_URL }}"
      },
      "typeVersion": 1,
      "notes": "This stickyNote node performs automated tasks as part of the workflow."
    },
    {
      "id": "b5d560c0-1de1-4e6c-be4d-0fef1dd42e9e",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1140,
        1080
      ],
      "parameters": {
        "width": 241,
        "height": 80,
        "content": "### \ud83d\udc46\ud83c\udffd Set target email here"
      },
      "typeVersion": 1,
      "notes": "This stickyNote node performs automated tasks as part of the workflow."
    },
    {
      "id": "f1a73854-5b24-407e-9584-0448ae66f7a0",
      "name": "Gmail",
      "type": "n8n-nodes-base.gmail",
      "position": [
        1120,
        900
      ],
      "parameters": {
        "sendTo": "SET YOUR EMAIL HERE",
        "message": "=\u26a0\ufe0f Workflow `{{$json[\"workflow\"][\"name\"]}}` failed to run!\nYou can find the execution here: {{ $json.execution.url }}\n\nerror message from node {{ $json.execution.lastNodeExecuted }}: {{ $json.execution.error.message }}\n\n {{ $json.execution.error.stack }}",
        "options": {},
        "subject": "=\ud83d\udea8 Er...

Output:
This workflow may encounter rate limiting issues when processing large batches of data.

**Common Rate Limit Errors**:
- HTTP 429 Too Many Requests
- HTTP 503 Service Unavailable
- API-specific rate limit messages

**Root Cause**: The workflow makes too many API requests in a short time period without delays.

**Solutions**:

1. **Add Wait Nodes**: Insert a Wait node between API calls
```json
{
  "parameters": {"amount": 1, "unit": "seconds"},
  "name": "Rate Limit Delay",
  "type": "n8n-nodes-base.wait"
}
```

2. **Enable Retry on Fail**:
```json
"retryOnFail": true,
"maxTries": 3,
"waitBetweenTries": 5000
```

3. **Use Batch Processing**: Split items into smaller batches with delays

4. **Implement Exponential Backoff**: Increase wait times with each retry

**Best Practice**: Always check API documentation for rate limits and implement appropriate throttling.


Instruction:
Debug this n8n workflow. It has the following issue:
Error Type: Syntax Error

Please analyze the workflow JSON and explain:
1. What is wrong
2. Why it's causing problems
3. How to fix it

Workflow JSON:
{
  "meta": {
    "instanceId": "workflow-36db54fe:
    "versionId": "1.0.0",
    "createdAt": "2025-09-29T07:07:44.452954",
    "updatedAt": "2025-09-29T07:07:44.452995",
    "owner": "n8n-user",
    "license": "MIT",
    "category": "automation",
    "status": "active",
    "priority": "high",
    "environment": "production"
  },
  "nodes": [
    {
      "id": "d9c81685-d16e-45c0-a1ab-3927ef619568",
      "name": "Error Trigger",
      "type": "n8n-nodes-base.errorTrigger",
      "position": [
        380,
        240
      ],
      "parameters": {},
      "typeVersion": 1,
      "notes": "This errorTrigger node performs automated tasks as part of the workflow."
    },
    {
      "id": "22089e9b-73ae-4d03-a11b-5f67f9b47fb4",
      "name": "Extract webhook data",
      "type": "n8n-nodes-base.code",
      "position": [
        820,
        240
      ],
      "parameters": {
        "mode": "runOnceForEachItem",
        "jsCode": "const webhook_node_names = $json.workflowData.nodes.filter(x => x.type == 'n8n-nodes-base.webhook').map(x => x.name)\n\nconst webhook_data_array = webhook_node_names.map(n => $json.data.resultData.runData[n] ? $json.data.resultData.runData[n][0].data.main[0][0].json : null).filter(x => x != null)\n\nlet webhook_data = null;\nif (webhook_data_array.length > 0) {\n  webhook_data = webhook_data_array[0]\n}\n\nreturn {\n  'webhook_node_names': webhook_node_names,\n  'webook_node_payload': webhook_data\n}"
      },
      "typeVersion": 2,
      "notes": "This code node performs automated tasks as part of the workflow."
    },
    {
      "id": "b7fb5443-3faf-4e59-b464-4d3ca131a84f",
      "name": "Get execution data",
      "type": "n8n-nodes-base.n8n",
      "position": [
        600,
        240
      ],
      "parameters": {
        "options": {
          "activeWorkflows": true
        },
        "resource": "execution",
        "operation": "get",
        "executionId": "={{ $json.execution.id }}",
        "requestOptions": {}
      },
  ...

Output: The JSON contains an unclosed string. All string values must be enclosed in double quotes.


Instruction:
Debug this n8n workflow. It has the following issue:
Error Type: Empty Input Handling

Please analyze the workflow JSON and explain:
1. What is wrong
2. Why it's causing problems
3. How to fix it

Workflow JSON:
{
  "id": "3b1q6ZJTxeONrpUV",
  "meta": {
    "instanceId": "workflow-e15edccb",
    "versionId": "1.0.0",
    "createdAt": "2025-09-29T07:07:44.449496",
    "updatedAt": "2025-09-29T07:07:44.449529",
    "owner": "n8n-user",
    "license": "MIT",
    "category": "automation",
    "status": "active",
    "priority": "high",
    "environment": "production"
  },
  "name": "Error Alert and Summarizer",
  "tags": [
    "automation",
    "n8n",
    "production-ready",
    "excellent",
    "optimized"
  ],
  "nodes": [
    {
      "id": "d29a5b06-1609-416f-bc74-0274d3321019",
      "name": "Error Trigger",
      "type": "n8n-nodes-base.errorTrigger",
      "position": [
        -600,
        -40
      ],
      "parameters": {},
      "typeVersion": 1,
      "notes": "This errorTrigger node performs automated tasks as part of the workflow."
    },
    {
      "id": "a71d3052-a89b-4e8e-baee-7fe245575f42",
      "name": "OpenAI Chat Model",
      "type": "n8n-nodes-base.noOp",
      "position": [
        528,
        180
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4o",
          "cachedResultName": "gpt-4o"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "{{ $credentials.openAiApi.id }}",
          "name": "OpenAi account"
        }
      },
      "typeVersion": 1.2,
      "notes": "This lmChatOpenAi node performs automated tasks as part of the workflow."
    },
    {
      "id": "e71dee7b-4dfd-49ab-8939-f3808ee112d7",
      "name": "Structured Output Parser",
      "type": "n8n-nodes-base.noOp",
      "position": [
        648,
        180
      ],
      "parameters": {
        "jsonSchemaExample": "{\n\"diagnosis\":\"\",\n\"cause\":\"\",\n\"resolution\":\"\"\n}"
      },
      "typeVersion": 1.2,
      "notes": "This outputParserStructured node performs automated tasks as part of the workflow."
    },
    {
      "id": "3611e9e8-f677-49c4-...

Output:
This workflow may fail when receiving empty or null input data.

**Common Error Messages**:
- "Cannot read property 'x' of undefined"
- "No items to process"
- "Input data is empty"

**Root Cause**: The workflow doesn't handle cases where:
- Trigger receives no data
- Previous node returns empty array
- API returns null or empty response

**Solutions**:

1. **Add IF Node for Empty Check**:
```json
{
  "parameters": {
    "conditions": {
      "number": [{
        "value1": "={{ $json.length }}",
        "operation": "larger",
        "value2": 0
      }]
    }
  },
  "name": "Check Not Empty",
  "type": "n8n-nodes-base.if"
}
```

2. **Use Default Values**:
```javascript
{{ $json.field ?? "default_value" }}
{{ $json.items || [] }}
```

3. **Add Set Node with Defaults**:
- Create a Set node that provides default values
- Place it early in the workflow

4. **Implement No Match Output**:
- Many nodes have "No Match" outputs
- Use these to handle empty cases gracefully

**Best Practice**: Always validate input data and provide sensible defaults for optional fields.


Instruction:
Debug this n8n workflow. It has the following issue:
Error Type: Expression Reference Error

Please analyze the workflow JSON and explain:
1. What is wrong
2. Why it's causing problems
3. How to fix it

Workflow JSON:
{
  "nodes": [
    {
      "name": "Error Trigger",
      "type": "n8n-nodes-base.errorTrigger",
      "position": [
        450,
        300
      ],
      "parameters": {},
      "typeVersion": 1,
      "id": "79b4f0a6-5192-4c0e-a04f-fe9cb6c2d35c",
      "notes": "This errorTrigger node performs automated tasks as part of the workflow."
    },
    {
      "name": "Gmail",
      "type": "n8n-nodes-base.gmail",
      "position": [
        650,
        300
      ],
      "parameters": {
        "toList": [
          "recipient@email.com"
        ],
        "message": "={{ $json[\"non_existent_field\"] }}",
        "subject": "=n8n Workflow Failure:  {{$json[\"workflow\"][\"name\"]}}",
        "resource": "message",
        "additionalFields": {}
      },
      "credentials": {
        "gmailOAuth2": "TBD"
      },
      "typeVersion": 1,
      "id": "1297d66f-f77d-4411-9d6e-dd204e5baff2",
      "notes": "This gmail node performs automated tasks as part of the workflow."
    },
    {
      "id": "error-b3470995",
      "name": "Error Handler",
      "type": "n8n-nodes-base.stopAndError",
      "typeVersion": 1,
      "position": [
        1000,
        400
      ],
      "parameters": {
        "message": "Workflow execution error",
        "options": {}
      }
    }
  ],
  "connections": {},
  "name": "Errortrigger Workflow",
  "description": "Automated workflow: Errortrigger Workflow. This workflow processes data and performs automated tasks.",
  "settings": {
    "executionOrder": "v1",
    "saveManualExecutions": true,
    "callerPolicy": "workflowsFromSameOwner",
    "errorWorkflow": null,
    "timezone": "UTC",
    "executionTimeout": 3600,
    "maxExecutions": 1000,
    "retryOnFail": true,
    "retryCount": 3,
    "retryDelay": 1000
  },
  "meta": {
    "instanceId": "workflow-343b9a27",
    "versionId": "1.0.0",
    "createdAt": "2025-09-29T07:07:44.464864",
    "updatedAt": "2025-09-29T07:07:44.464929",
    "owner": "n8n-user",
    "license": "MIT",
    "ca...

Output:
In node 'Gmail', the parameter 'message' contains an expression that references undefined data.

**Faulty Expression**: `={{ $json["non_existent_field"] }}`
**Original Value**: `=Workflow: {{$json["workflow"]["name"]}}
Error: {{$json["execution"]["error"]["message"]}}
Last node executed: {{$json["execution"]["lastNodeExecuted"]}}
Execution URL: {{$json["execution"]["url"]}}
Stacktrace:
{{$json["execution"]["error"]["stack"]}}`

**Root Cause**: The expression references a field, node, or variable that doesn't exist in the data flow.

**Debugging Steps**:
1. Check the output of previous nodes to verify available fields
2. Use the Expression Editor to test expressions interactively
3. Add a Set node before this one to inspect available data
4. Use optional chaining for potentially undefined fields: `$json.field?.subfield`

**Best Practice**: Always validate data availability before using expressions.

Fix the expression in 'Gmail' parameter 'message'.


Instruction:
Debug this n8n workflow. It has the following issue:
Error Type: Data Type Mismatch

Please analyze the workflow JSON and explain:
1. What is wrong
2. Why it's causing problems
3. How to fix it

Workflow JSON:
{
  "nodes": [
    {
      "name": "Error Trigger",
      "type": "n8n-nodes-base.errorTrigger",
      "position": [
        250,
        500
      ],
      "parameters": {},
      "typeVersion": 1,
      "id": "981d62bb-eb3b-46df-9114-b25d46301a28",
      "notes": "This errorTrigger node performs automated tasks as part of the workflow."
    },
    {
      "name": "Mailgun",
      "type": "n8n-nodes-base.mailgun",
      "position": [
        450,
        500
      ],
      "parameters": {
        "text": "=Error: {{$node[\"Error Trigger\"].data[\"execution\"][\"error\"][\"message\"]}}\n\nStack Trace:\n{{$node[\"Error Trigger\"].data[\"execution\"][\"error\"][\"stack\"]}}",
        "subject": "=Workflow Error:  {{$node[\"Error Trigger\"].data[\"workflow\"][\"name\"]}}",
        "toEmail": "",
        "fromEmail": "",
        "_injected_number_field": "not_a_number"
      },
      "credentials": {
        "mailgunApi": ""
      },
      "typeVersion": 1,
      "id": "6d6d39c6-7b23-4bee-aa40-776d39391ab5",
      "notes": "This mailgun node performs automated tasks as part of the workflow."
    },
    {
      "id": "error-11418145",
      "name": "Error Handler",
      "type": "n8n-nodes-base.stopAndError",
      "typeVersion": 1,
      "position": [
        1000,
        400
      ],
      "parameters": {
        "message": "Workflow execution error",
        "options": {}
      }
    }
  ],
  "connections": {},
  "name": "Errortrigger Workflow",
  "description": "Automated workflow: Errortrigger Workflow. This workflow processes data and performs automated tasks.",
  "settings": {
    "executionOrder": "v1",
    "saveManualExecutions": true,
    "callerPolicy": "workflowsFromSameOwner",
    "errorWorkflow": null,
    "timezone": "UTC",
    "executionTimeout": 3600,
    "maxExecutions": 1000,
    "retryOnFail": true,
    "retryCount": 3,
    "retryDelay": 1000
  },
  "meta": {
    "instanceId": "workflow-23f531dc",
    "versionId": "1.0.0",
    "createdAt": "2025-09-2...

Output:
The node 'Mailgun' has a data type mismatch in its parameters.

**Issue**: A field expected a number but received a string value.

**Common Causes**:
1. Expression returns string instead of number
2. JSON parsing preserves string types for numeric values
3. Upstream node outputs different data types than expected

**Solutions**:

1. **Type Conversion in Expression**:
```javascript
// Convert string to number
{ parseInt($json.stringValue) }
{ parseFloat($json.decimalString) }
{ Number($json.value) }
```

2. **Use Code Node for Transformation**:
```javascript
return items.map(item => {
  item.json.numericField = Number(item.json.stringField);
  return item;
});
```

3. **Validate Data Types**:
- Use IF node to check types before processing
- Add error handling for invalid types

**Best Practice**: Always validate and transform data types explicitly when passing data between nodes.


Instruction:
Debug this n8n workflow. It has the following issue:
Error Type: Expression Reference Error

Please analyze the workflow JSON and explain:
1. What is wrong
2. Why it's causing problems
3. How to fix it

Workflow JSON:
{
  "id": "9nBQ1BfwxLhuzTcK",
  "meta": {
    "instanceId": "workflow-c7cf0154",
    "versionId": "1.0.0",
    "createdAt": "2025-09-29T07:07:44.468758",
    "updatedAt": "2025-09-29T07:07:44.468775",
    "owner": "n8n-user",
    "license": "MIT",
    "category": "automation",
    "status": "active",
    "priority": "high",
    "environment": "production"
  },
  "name": "google drive to instagram, tiktok and youtube",
  "tags": [
    "automation",
    "n8n",
    "production-ready",
    "excellent",
    "optimized"
  ],
  "nodes": [
    {
      "id": "b6c1d2f5-a8de-42dc-a164-3b1e80b2f19d",
      "name": "Google Drive Trigger",
      "type": "n8n-nodes-base.googleDriveTrigger",
      "position": [
        220,
        320
      ],
      "parameters": {
        "event": "fileCreated",
        "options": {},
        "pollTimes": {
          "item": [
            {
              "mode": "everyMinute"
            }
          ]
        },
        "triggerOn": "specificFolder",
        "folderToWatch": {
          "__rl": true,
          "mode": "list",
          "value": "18m0i341QLQuyWuHv_FBdz8-r-QDtofYm",
          "cachedResultUrl": "{{ $env.WEBHOOK_URL }}",
          "cachedResultName": "Influencersde"
        }
      },
      "credentials": {
        "googleDriveOAuth2Api": {
          "id": "2TbhWtnbRfSloGxX",
          "name": "Google Drive account"
        }
      },
      "typeVersion": 1,
      "notes": "This googleDriveTrigger node performs automated tasks as part of the workflow."
    },
    {
      "id": "1dda484a-f6f5-4677-85a3-09b2a47e69c4",
      "name": "Google Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        400,
        320
      ],
      "parameters": {
        "fileId": {
          "__rl": true,
          "mode": "",
          "value": "={{ $json.id || $json.data[0].id }}"
        },
        "options": {},
        "operation": "download",
        "authentication": "{{ $credentials.oAuth2 }}"
      },
      "credentials": ...

Output:
In node 'Upload Video and Description to Instagram', the parameter 'url' contains an expression that references undefined data.

**Faulty Expression**: `={{ $node.NonExistentNode.json.data }}`
**Original Value**: `{{ $env.API_BASE_URL }}`

**Root Cause**: The expression references a field, node, or variable that doesn't exist in the data flow.

**Debugging Steps**:
1. Check the output of previous nodes to verify available fields
2. Use the Expression Editor to test expressions interactively
3. Add a Set node before this one to inspect available data
4. Use optional chaining for potentially undefined fields: `$json.field?.subfield`

**Best Practice**: Always validate data availability before using expressions.

Fix the expression in 'Upload Video and Description to Instagram' parameter 'url'.


Instruction:
Debug this n8n workflow. It has the following issue:
Error Type: Disconnected Node

Please analyze the workflow JSON and explain:
1. What is wrong
2. Why it's causing problems
3. How to fix it

Workflow JSON:
{
  "id": "YybYYc430rmZWJPJ",
  "meta": {
    "instanceId": "workflow-6c423fd8",
    "versionId": "1.0.0",
    "createdAt": "2025-09-29T07:07:44.486625",
    "updatedAt": "2025-09-29T07:07:44.486696",
    "owner": "n8n-user",
    "license": "MIT",
    "category": "automation",
    "status": "active",
    "priority": "high",
    "environment": "production"
  },
  "name": "Log errors and avoid sending too many emails",
  "tags": [
    "automation",
    "n8n",
    "production-ready",
    "excellent",
    "optimized"
  ],
  "nodes": [
    {
      "id": "0e44df4c-00d2-4545-89ae-844a590de369",
      "name": "Error Trigger",
      "type": "n8n-nodes-base.errorTrigger",
      "position": [
        -1200,
        90
      ],
      "parameters": {},
      "typeVersion": 1,
      "notes": "This errorTrigger node performs automated tasks as part of the workflow."
    },
    {
      "id": "7101542a-5146-4917-a1f2-13686cad197e",
      "name": "Insert Log",
      "type": "n8n-nodes-base.postgres",
      "position": [
        -980,
        40
      ],
      "parameters": {
        "table": {
          "__rl": true,
          "mode": "list",
          "value": "N8Err",
          "cachedResultName": "N8Err"
        },
        "schema": {
          "__rl": true,
          "mode": "name",
          "value": "p1gq6ljdsam3x1m"
        },
        "columns": {
          "value": {
            "URL": "{{ $env.BASE_URL }}",
            "json": "={{ JSON.stringify($json) }}",
            "Stack": "={{ $json.execution.error.stack }}",
            "title": "={{ $json.workflow.name }}",
            "Message": "={{ $json.execution.error.message }}",
            "LastNode": "={{ $json.execution.lastNodeExecuted }}",
            "created_at": "={{ $now }}"
          },
          "schema": [
            {
              "id": "id",
              "type": "number",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "id",
         ...

Output:
The workflow has a broken data flow. The node '979d0e82-42e8-450a-95b1-3c204ad61a50' is not connected to any subsequent nodes.

**Root Cause**: The connections object is missing the output connections for '979d0e82-42e8-450a-95b1-3c204ad61a50'.

**Impact**: Data from '979d0e82-42e8-450a-95b1-3c204ad61a50' will not flow to any downstream nodes, effectively stopping the workflow at this point.

**Solution**:
1. Open the workflow in the n8n editor
2. Draw a connection from '979d0e82-42e8-450a-95b1-3c204ad61a50' to the next node in the flow
3. Verify the connection appears in the connections object

**Programmatic Fix**: Add the connection back to the workflow JSON:
```json
"connections": {
  "979d0e82-42e8-450a-95b1-3c204ad61a50": {
    "main": [[{"node": "NextNode", "type": "main", "index": 0}]]
  }
}
```

Reconnect '979d0e82-42e8-450a-95b1-3c204ad61a50' to the workflow.


Instruction:
Debug this n8n workflow. It has the following issue:
Error Type: Syntax Error

Please analyze the workflow JSON and explain:
1. What is wrong
2. Why it's causing problems
3. How to fix it

Workflow JSON:
{
  "id" "ePnGZtZ8zLcf1UZZ",
  "meta": {
    "instanceId": "workflow-d9472219",
    "versionId": "1.0.0",
    "createdAt": "2025-09-29T07:07:44.477988",
    "updatedAt": "2025-09-29T07:07:44.478004",
    "owner": "n8n-user",
    "license": "MIT",
    "category": "automation",
    "status": "active",
    "priority": "high",
    "environment": "production"
  },
  "name": "n8n Error Report to Line",
  "tags": [
    "automation",
    "n8n",
    "production-ready",
    "excellent",
    "optimized"
  ],
  "nodes": [
    {
      "id": "c45a01a5-289b-4927-8bba-4bb1029a7129",
      "name": "Error Trigger",
      "type": "n8n-nodes-base.errorTrigger",
      "position": [
        -240,
        -80
      ],
      "parameters": {},
      "typeVersion": 1,
      "notes": "This errorTrigger node performs automated tasks as part of the workflow."
    },
    {
      "id": "1e3f7a7e-8be4-4fec-973f-befb477e6957",
      "name": "HTTP Request",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        40,
        -80
      ],
      "parameters": {
        "url": "{{ $env.API_BASE_URL }}",
        "method": "POST",
        "options": {},
        "jsonBody": "={\n    \"to\": \"<UID HERE>\",\n    \"messages\":[\n        {\n            \"type\":\"text\",\n            \"text\":\"\ud83d\udea8Your n8n flow is dead.\ud83d\udea8\\n\\nName: {{ $json.workflow.name }} \\nURL: {{ $json.execution.url }}\"\n        }\n    ]\n}",
        "sendBody": true,
        "specifyBody": "json",
        "authentication": "{{ $credentials.genericCredentialType }}",
        "genericAuthType": "httpHeaderAuth"
      },
      "credentials": {
        "httpHeaderAuth": {
          "id": "lKd3b2nc8uNJ148Z",
          "name": "Line @271dudsw MiniBear"
        }
      },
      "typeVersion": 4.2,
      "notes": "This httpRequest node performs automated tasks as part of the workflow."
    },
    {
      "id": "5bcf04cc-2c3e-4e37-a134-fcc42326afc3",
      "name": "Sticky Note",
      "type": "n8n-nodes-base....

Output: The JSON is missing a colon between a key and its value. JSON requires colons to separate keys from values.


Instruction:
Debug this n8n workflow. It has the following issue:
Error Type: Disconnected Node

Please analyze the workflow JSON and explain:
1. What is wrong
2. Why it's causing problems
3. How to fix it

Workflow JSON:
{
  "id": "ozo5jlbwPHgaMnVt",
  "meta": {
    "instanceId": "workflow-b6932a69",
    "versionId": "1.0.0",
    "createdAt": "2025-09-29T07:07:44.496132",
    "updatedAt": "2025-09-29T07:07:44.496147",
    "owner": "n8n-user",
    "license": "MIT",
    "category": "automation",
    "status": "active",
    "priority": "high",
    "environment": "production"
  },
  "name": "Error Handler send Telegram",
  "tags": [
    "automation",
    "n8n",
    "production-ready",
    "excellent",
    "optimized"
  ],
  "nodes": [
    {
      "id": "3968e71e-d9fb-4810-81bb-18ecf073b3ee",
      "name": "Telegram",
      "type": "n8n-nodes-base.telegram",
      "position": [
        520,
        -200
      ],
      "webhookId": "b3f6e388-8313-4bc1-8077-d81471b2f95d",
      "parameters": {
        "text": "=Workflow: {{ $('Error Trigger').first().json.workflow.name }}\nData & Time: {{ $now }}\nURL: {{ $('Error Trigger').first().json.execution.url }}\nLast Node: {{ $('Error Trigger').first().json.execution.lastNodeExecuted }}\nError Detal: {{ $('Error Trigger').first().json.execution.error.message }}\n",
        "chatId": "={{ $('Config').item.json.telegramChatId }}",
        "additionalFields": {
          "parse_mode": "HTML",
          "appendAttribution": false
        }
      },
      "credentials": {
        "telegramApi": {
          "id": "BCYwPAl9pdnRqKeR",
          "name": "Telegram n8n Log Test"
        }
      },
      "retryOnFail": true,
      "typeVersion": 1.2,
      "waitBetweenTries": 3000,
      "notes": "This telegram node performs automated tasks as part of the workflow."
    },
    {
      "id": "bbb54150-b749-49e2-9c49-720341691151",
      "name": "Error Trigger",
      "type": "n8n-nodes-base.errorTrigger",
      "position": [
        60,
        -200
      ],
      "parameters": {},
      "typeVersion": 1,
      "notes": "This errorTrigger node performs automated tasks as part of the workflow."
    },
    {
      "id": "68bc359d-4c7f-4027-8e76-c2bc6b612ede",
  ...

Output:
The workflow has a broken data flow. The node '3968e71e-d9fb-4810-81bb-18ecf073b3ee' is not connected to any subsequent nodes.

**Root Cause**: The connections object is missing the output connections for '3968e71e-d9fb-4810-81bb-18ecf073b3ee'.

**Impact**: Data from '3968e71e-d9fb-4810-81bb-18ecf073b3ee' will not flow to any downstream nodes, effectively stopping the workflow at this point.

**Solution**:
1. Open the workflow in the n8n editor
2. Draw a connection from '3968e71e-d9fb-4810-81bb-18ecf073b3ee' to the next node in the flow
3. Verify the connection appears in the connections object

**Programmatic Fix**: Add the connection back to the workflow JSON:
```json
"connections": {
  "3968e71e-d9fb-4810-81bb-18ecf073b3ee": {
    "main": [[{"node": "NextNode", "type": "main", "index": 0}]]
  }
}
```

Reconnect '3968e71e-d9fb-4810-81bb-18ecf073b3ee' to the workflow.


Instruction:
Debug this n8n workflow. It has the following issue:
Error Type: Rate Limiting Risk

Please analyze the workflow JSON and explain:
1. What is wrong
2. Why it's causing problems
3. How to fix it

Workflow JSON:
{
  "id": "vnhhf9aNsw0kzdBV",
  "meta": {
    "instanceId": "workflow-95df9752",
    "versionId": "1.0.0",
    "createdAt": "2025-09-29T07:07:44.497345",
    "updatedAt": "2025-09-29T07:07:44.497487",
    "owner": "n8n-user",
    "license": "MIT",
    "category": "automation",
    "status": "active",
    "priority": "high",
    "environment": "production"
  },
  "name": "CV Evaluation - Error Handling",
  "tags": [
    "automation",
    "n8n",
    "production-ready",
    "excellent",
    "optimized"
  ],
  "nodes": [
    {
      "id": "e2fd6e88-ae06-48ea-a73f-8e523b747a33",
      "name": "Error Trigger",
      "type": "n8n-nodes-base.errorTrigger",
      "position": [
        -40,
        180
      ],
      "parameters": {},
      "typeVersion": 1,
      "notes": "This errorTrigger node performs automated tasks as part of the workflow."
    },
    {
      "id": "6b75ee9b-4540-4199-a393-c3e2583fd6bb",
      "name": "Gmail",
      "type": "n8n-nodes-base.gmail",
      "position": [
        1360,
        160
      ],
      "webhookId": "d9c9328c-5be7-4ebe-a20a-c025e52cdf46",
      "parameters": {
        "sendTo": "={{ $json.config.emailing.sendTo }}",
        "message": "=
Workflow {{ $json.workflow.id }} ({{ $json.workflow.name }})
\nhas triggered the error handling workflow {{ $json.errorHandlingWorkflow.id }} ({{ $json.errorHandlingWorkflow.name }})
\nwith the error details below.
\n{{ $json.html }}\n
Error handling JSON (complete error handling data)
\n
\n{{ JSON.stringify({\n  execution: $json.execution,\n  trigger: $json.trigger,\n  workflow: $json.workflow,\n  errorHandlingWorkflow: $json.errorHandlingWorkflow,\n}, null, 2) }}\n
",
        "options": {
          "senderName": "={{ $json.config.emailing.senderName }}"
        },
        "subject": "=Workflow {{ $json.workflow.id }} ({{ $json.workflow.name }}) {{ $json.workflow.isExecutionEr...

Output:
This workflow may encounter rate limiting issues when processing large batches of data.

**Common Rate Limit Errors**:
- HTTP 429 Too Many Requests
- HTTP 503 Service Unavailable
- API-specific rate limit messages

**Root Cause**: The workflow makes too many API requests in a short time period without delays.

**Solutions**:

1. **Add Wait Nodes**: Insert a Wait node between API calls
```json
{
  "parameters": {"amount": 1, "unit": "seconds"},
  "name": "Rate Limit Delay",
  "type": "n8n-nodes-base.wait"
}
```

2. **Enable Retry on Fail**:
```json
"retryOnFail": true,
"maxTries": 3,
"waitBetweenTries": 5000
```

3. **Use Batch Processing**: Split items into smaller batches with delays

4. **Implement Exponential Backoff**: Increase wait times with each retry

**Best Practice**: Always check API documentation for rate limits and implement appropriate throttling.


Instruction:
Debug this n8n workflow. It has the following issue:
Error Type: Timeout Configuration

Please analyze the workflow JSON and explain:
1. What is wrong
2. Why it's causing problems
3. How to fix it

Workflow JSON:
{
  "meta": {
    "instanceId": "workflow-b6fa07b6",
    "versionId": "1.0.0",
    "createdAt": "2025-09-29T07:07:44.502695",
    "updatedAt": "2025-09-29T07:07:44.502706",
    "owner": "n8n-user",
    "license": "MIT",
    "category": "automation",
    "status": "active",
    "priority": "high",
    "environment": "production"
  },
  "nodes": [
    {
      "id": "c92e3d01-4385-4e99-a9a7-77279b3d9cb3",
      "name": "Local File Trigger",
      "type": "n8n-nodes-base.localFileTrigger",
      "position": [
        720,
        120
      ],
      "parameters": {
        "path": "/home/node/host_mount/shared_drive",
        "events": [
          "add"
        ],
        "options": {
          "awaitWriteFinish": true
        },
        "triggerOn": "folder"
      },
      "typeVersion": 1,
      "notes": "This localFileTrigger node performs automated tasks as part of the workflow."
    },
    {
      "id": "a08f5acc-ee46-49e7-be4d-99edc95ab41f",
      "name": "Get Files and Folders",
      "type": "n8n-nodes-base.executeCommand",
      "position": [
        1200,
        120
      ],
      "parameters": {
        "command": "=ls -p {{ $json.directory }} | grep -v / || true; \\\necho \"===\"; \\\nls -p {{ $json.directory }} | grep / || true;"
      },
      "typeVersion": 1,
      "notes": "This executeCommand node performs automated tasks as part of the workflow."
    },
    {
      "id": "f3ab100a-986d-49bc-aeb5-979f16b2fd46",
      "name": "Files and Folders to Array",
      "type": "n8n-nodes-base.set",
      "position": [
        1380,
        120
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "ad893795-cae8-4418-99e0-2c68126337d3",
              "name": "files",
              "type": "array",
              "value": "={{ $json.stdout.split('===')[0].split('\\n').filter(item => !item.endsWith('Zone.Identifier')).compact() }}"
            },
            {
              "id": ...

Output:
This workflow may experience timeout issues with long-running API requests.

**Symptoms**:
- Execution hangs indefinitely
- Connection timeout errors
- ETIMEDOUT or ESOCKETTIMEDOUT errors

**Root Cause**: No timeout configured for HTTP requests, or external services are slow.

**Solutions**:

1. **Set Appropriate Timeouts**:
```json
"options": {
  "timeout": 30000  // 30 seconds
}
```

2. **Add Error Handling**:
- Use Error Trigger node to catch timeout errors
- Implement fallback logic for failed requests

3. **Use Async Patterns**:
- For long operations, use webhook callbacks
- Implement polling patterns instead of waiting

4. **Configure Node Settings**:
```json
"retryOnFail": true,
"maxTries": 3,
"waitBetweenTries": 2000,
"continueOnFail": true
```

**Best Practice**: Set reasonable timeouts (10-30 seconds) and always have error handling for external API calls.


Instruction:
Debug this n8n workflow. It has the following issue:
Error Type: Syntax Error

Please analyze the workflow JSON and explain:
1. What is wrong
2. Why it's causing problems
3. How to fix it

Workflow JSON:
{
  "nodes": [
    {
      "name": "On clicking 'execute':
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        250,
        300
      ],
      "parameters": {},
      "typeVersion": 1,
      "id": "f9654981-b6c5-42ef-82ea-e00d40c66b10",
      "notes": "This manualTrigger node performs automated tasks as part of the workflow."
    },
    {
      "name": "Read Binary File",
      "type": "n8n-nodes-base.readBinaryFile",
      "position": [
        440,
        300
      ],
      "parameters": {
        "filePath": "/home/n8n/filelist.txt"
      },
      "typeVersion": 1,
      "id": "20b573de-0ef4-46d9-aad2-ec4cf32d5b7b",
      "notes": "This readBinaryFile node performs automated tasks as part of the workflow."
    },
    {
      "name": "Move Binary Data",
      "type": "n8n-nodes-base.moveBinaryData",
      "position": [
        610,
        300
      ],
      "parameters": {
        "options": {},
        "setAllData": false
      },
      "typeVersion": 1,
      "id": "15b82f20-40dd-4724-98b4-cfa7dd587259",
      "notes": "This moveBinaryData node performs automated tasks as part of the workflow."
    },
    {
      "name": "Function",
      "type": "n8n-nodes-base.function",
      "position": [
        810,
        300
      ],
      "parameters": {
        "functionCode": "items[0].json.arrData = items[0].json.data.split(\"\\n\");\nitems[0].json.data = {};\nitems[0].json.dataSize = items[0].json.arrData.length-2;\nreturn items;"
      },
      "typeVersion": 1,
      "id": "88082ca8-7bb1-44be-befc-3cac5e519a3d",
      "notes": "This function node performs automated tasks as part of the workflow."
    },
    {
      "name": "Execute Command",
      "type": "n8n-nodes-base.executeCommand",
      "position": [
        1040,
        300
      ],
      "parameters": {
        "command": "=echo \"The file name is {{$node[\"Function\"].json[\"arrData\"][$runIndex]}}\" >> /home/n8n/n8n-output.txt"
      },
      "typeVersion": 1,
      "id": "3296...

Output: The JSON contains an unclosed string. All string values must be enclosed in double quotes.


Instruction:
Debug this n8n workflow. It has the following issue:
Error Type: Disconnected Node

Please analyze the workflow JSON and explain:
1. What is wrong
2. Why it's causing problems
3. How to fix it

Workflow JSON:
{
  "meta": {
    "instanceId": "workflow-f033f506",
    "versionId": "1.0.0",
    "createdAt": "2025-09-29T07:07:44.521421",
    "updatedAt": "2025-09-29T07:07:44.521500",
    "owner": "n8n-user",
    "license": "MIT",
    "category": "automation",
    "status": "active",
    "priority": "high",
    "environment": "production"
  },
  "nodes": [
    {
      "id": "c92e3d01-4385-4e99-a9a7-77279b3d9cb3",
      "name": "Local File Trigger",
      "type": "n8n-nodes-base.localFileTrigger",
      "position": [
        720,
        120
      ],
      "parameters": {
        "path": "/home/node/host_mount/shared_drive",
        "events": [
          "add"
        ],
        "options": {
          "awaitWriteFinish": true
        },
        "triggerOn": "folder"
      },
      "typeVersion": 1,
      "notes": "This localFileTrigger node performs automated tasks as part of the workflow."
    },
    {
      "id": "a08f5acc-ee46-49e7-be4d-99edc95ab41f",
      "name": "Get Files and Folders",
      "type": "n8n-nodes-base.executeCommand",
      "position": [
        1200,
        120
      ],
      "parameters": {
        "command": "=ls -p {{ $json.directory }} | grep -v / || true; \\\necho \"===\"; \\\nls -p {{ $json.directory }} | grep / || true;"
      },
      "typeVersion": 1,
      "notes": "This executeCommand node performs automated tasks as part of the workflow."
    },
    {
      "id": "f3ab100a-986d-49bc-aeb5-979f16b2fd46",
      "name": "Files and Folders to Array",
      "type": "n8n-nodes-base.set",
      "position": [
        1380,
        120
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "ad893795-cae8-4418-99e0-2c68126337d3",
              "name": "files",
              "type": "array",
              "value": "={{ $json.stdout.split('===')[0].split('\\n').filter(item => !item.endsWith('Zone.Identifier')).compact() }}"
            },
            {
              "id": ...

Output:
The workflow has a broken data flow. The node 'c92e3d01-4385-4e99-a9a7-77279b3d9cb3' is not connected to any subsequent nodes.

**Root Cause**: The connections object is missing the output connections for 'c92e3d01-4385-4e99-a9a7-77279b3d9cb3'.

**Impact**: Data from 'c92e3d01-4385-4e99-a9a7-77279b3d9cb3' will not flow to any downstream nodes, effectively stopping the workflow at this point.

**Solution**:
1. Open the workflow in the n8n editor
2. Draw a connection from 'c92e3d01-4385-4e99-a9a7-77279b3d9cb3' to the next node in the flow
3. Verify the connection appears in the connections object

**Programmatic Fix**: Add the connection back to the workflow JSON:
```json
"connections": {
  "c92e3d01-4385-4e99-a9a7-77279b3d9cb3": {
    "main": [[{"node": "NextNode", "type": "main", "index": 0}]]
  }
}
```

Reconnect 'c92e3d01-4385-4e99-a9a7-77279b3d9cb3' to the workflow.


Instruction:
Debug this n8n workflow. It has the following issue:
Error Type: Timeout Configuration

Please analyze the workflow JSON and explain:
1. What is wrong
2. Why it's causing problems
3. How to fix it

Workflow JSON:
{
  "meta": {
    "instanceId": "workflow-19d3dd5c",
    "versionId": "1.0.0",
    "createdAt": "2025-09-29T07:07:44.525225",
    "updatedAt": "2025-09-29T07:07:44.525237",
    "owner": "n8n-user",
    "license": "MIT",
    "category": "automation",
    "status": "active",
    "priority": "high",
    "environment": "production"
  },
  "nodes": [
    {
      "id": "79573e58-f33f-445a-ad9a-0a92fde845c2",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -280,
        480
      ],
      "parameters": {
        "width": 1174.6162657502882,
        "height": 578.9520146851776,
        "content": "## Sub-workflow: Return the capitals of fictional countries\nIt can either list the countries it knows about or return the capital of a specific country"
      },
      "typeVersion": 1,
      "notes": "This stickyNote node performs automated tasks as part of the workflow."
    },
    {
      "id": "5eddcce9-7ee5-4ec7-a0a1-525a9b806994",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -280,
        -80
      ],
      "parameters": {
        "width": 1168,
        "height": 528,
        "content": "## Main workflow: Chat with OpenAI Assistant\nClick the 'Chat' button at the bottom of the screen to try"
      },
      "typeVersion": 1,
      "notes": "This stickyNote node performs automated tasks as part of the workflow."
    },
    {
      "id": "a6c38394-1be1-4002-a9b7-c4672823aaa5",
      "name": "When chat message received",
      "type": "n8n-nodes-base.noOp",
      "position": [
        -180,
        40
      ],
      "webhookId": "91f22813-2f7b-4ff9-a3e6-9d53fc86fbd9",
      "parameters": {
        "options": {}
      },
      "typeVersion": 1.1,
      "notes": "This chatTrigger node performs automated tasks as part of the workflow."
    },
    {
      "id": "de0398ea-c2ad-49b9-860b-695149b94590",
      "name": "OpenAI",
      "type": "n8n-nodes-base.noOp",
      "position...

Output:
This workflow may experience timeout issues with long-running API requests.

**Symptoms**:
- Execution hangs indefinitely
- Connection timeout errors
- ETIMEDOUT or ESOCKETTIMEDOUT errors

**Root Cause**: No timeout configured for HTTP requests, or external services are slow.

**Solutions**:

1. **Set Appropriate Timeouts**:
```json
"options": {
  "timeout": 30000  // 30 seconds
}
```

2. **Add Error Handling**:
- Use Error Trigger node to catch timeout errors
- Implement fallback logic for failed requests

3. **Use Async Patterns**:
- For long operations, use webhook callbacks
- Implement polling patterns instead of waiting

4. **Configure Node Settings**:
```json
"retryOnFail": true,
"maxTries": 3,
"waitBetweenTries": 2000,
"continueOnFail": true
```

**Best Practice**: Set reasonable timeouts (10-30 seconds) and always have error handling for external API calls.


Instruction:
Debug this n8n workflow. It has the following issue:
Error Type: Syntax Error

Please analyze the workflow JSON and explain:
1. What is wrong
2. Why it's causing problems
3. How to fix it

Workflow JSON:
{
  "meta": {
    "instanceId": "workflow-c197ecc0",
    "versionId": "1.0.0",
    "createdAt": "2025-09-29T07:07:44.525824",
    "updatedAt": "2025-09-29T07:07:44.525838",
    "owner": "n8n-user",
    "license": "MIT",
    "category": "automation",
    "status": "active",
    "priority": "high",
    "environment": "production"
  },
  "nodes": [
    {
      "id": "b6836974-0d4b-482b-8a8a-c00f229f1136",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        100,
        500
      ],
      "parameters": {
        "color": 7,
        "width": 150,
        "height": 293,
        "content": "### Replace me\nwith any other service, e.g. fetching your own data"
      },
      "typeVersion": 1,
      "notes": "This stickyNote node performs automated tasks as part of the workflow."
    },
    {
      "id": "c0b8b657-24b8-4c0b-bfe9-d4fe2075dbe5",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -180,
        420
      ],
      "parameters": {
        "color": 7,
        "width": 927.5,
        "height": 406.875,
        "content": "### Sub-workflow: Custom tool\nThis can be called by the agent above. This example fetches the top 50 posts ever on Hacker News"
      },
      "typeVersion": 1,
      "notes": "This stickyNote node performs automated tasks as part of the workflow."
    },
    {
      "id": "a1dab7b1-b028-44a2-ab55-d8edee62e261",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -180,
        -120
      ],
      "parameters": {
        "color": 7,
        "width": 927.5,
        "height": 486.5625,
        "content": "### Main workflow: AI agent using custom tool\nTry it out by clicking 'Chat' and entering 'What is the 5th most popular post ever on Hacker News?'"
      },
      "typeVersion": 1,
      "notes": "This stickyNote node performs automated tasks as part of the workflow."
    },
    {
      "id": "84d91346-6b1...

Output: The JSON is invalid because there is a trailing comma before a closing brace. Remove the extra comma.

Remove the trailing comma before the closing brace.


Instruction:
Debug this n8n workflow. It has the following issue:
Error Type: Expression Reference Error

Please analyze the workflow JSON and explain:
1. What is wrong
2. Why it's causing problems
3. How to fix it

Workflow JSON:
{
  "meta": {
    "instanceId": "workflow-5e5f9cf5",
    "versionId": "1.0.0",
    "createdAt": "2025-09-29T07:07:44.541473",
    "updatedAt": "2025-09-29T07:07:44.541485",
    "owner": "n8n-user",
    "license": "MIT",
    "category": "automation",
    "status": "active",
    "priority": "high",
    "environment": "production"
  },
  "nodes": [
    {
      "id": "e12611f4-37d2-48f9-8a60-ddcf4ff34cfc",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -480,
        380
      ],
      "parameters": {
        "color": 7,
        "width": 1118.3459011229047,
        "height": 775.3931210698682,
        "content": "### Sub-workflow: Custom tool\nThe agent above can call this workflow. It checks if the user has supplied an email address. If they haven't it prompts them to provide one. If they have, it messages a customer support channel for help."
      },
      "typeVersion": 1,
      "notes": "This stickyNote node performs automated tasks as part of the workflow."
    },
    {
      "id": "72dbee3e-fe3b-4354-9b02-2fe52af23035",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -480,
        -180
      ],
      "parameters": {
        "color": 7,
        "width": 927.5,
        "height": 486.5625,
        "content": "### Main workflow: AI agent using custom tool"
      },
      "typeVersion": 1,
      "notes": "This stickyNote node performs automated tasks as part of the workflow."
    },
    {
      "id": "a1c9660d-84b1-418a-bbb3-88d79cdd79d3",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        80,
        60
      ],
      "parameters": {
        "color": 5,
        "width": 197.45572294791873,
        "height": 179.21380662202682,
        "content": "**This tool calls the sub-workflow below**"
      },
      "typeVersion": 1,
      "notes": "This stickyNote node performs automated tasks as part of the workflow."
    },...

Output:
In node 'Message Slack for help', the parameter 'select' contains an expression that references undefined data.

**Faulty Expression**: `={{ $node.NonExistentNode.json.data }}`
**Original Value**: `channel`

**Root Cause**: The expression references a field, node, or variable that doesn't exist in the data flow.

**Debugging Steps**:
1. Check the output of previous nodes to verify available fields
2. Use the Expression Editor to test expressions interactively
3. Add a Set node before this one to inspect available data
4. Use optional chaining for potentially undefined fields: `$json.field?.subfield`

**Best Practice**: Always validate data availability before using expressions.

Fix the expression in 'Message Slack for help' parameter 'select'.


Instruction:
Debug this n8n workflow. It has the following issue:
Error Type: Timeout Configuration

Please analyze the workflow JSON and explain:
1. What is wrong
2. Why it's causing problems
3. How to fix it

Workflow JSON:
{
  "meta": {
    "instanceId": "workflow-821fcbc4",
    "versionId": "1.0.0",
    "createdAt": "2025-09-29T07:07:44.531845",
    "updatedAt": "2025-09-29T07:07:44.531984",
    "owner": "n8n-user",
    "license": "MIT",
    "category": "automation",
    "status": "active",
    "priority": "high",
    "environment": "production"
  },
  "nodes": [
    {
      "id": "5d9cf2ce-4808-4d44-9f0d-2c15d8dcea91",
      "name": "Trigger",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        -400,
        340
      ],
      "webhookId": "96a20e88-ba8f-4827-b874-b0a9867c59e9",
      "parameters": {
        "updates": [
          "*"
        ],
        "additionalFields": {}
      },
      "credentials": {
        "telegramApi": {
          "id": "BsrAeDsPMOnQOFa7",
          "name": "n8n template"
        }
      },
      "typeVersion": 1.1,
      "notes": "This telegramTrigger node performs automated tasks as part of the workflow."
    },
    {
      "id": "22fc0669-96f2-4767-9bc2-03644c7ced21",
      "name": "Global data",
      "type": "n8n-nodes-base.set",
      "position": [
        -200,
        340
      ],
      "parameters": {
        "options": {}
      },
      "typeVersion": 3.4,
      "notes": "This set node performs automated tasks as part of the workflow."
    },
    {
      "id": "d5925fd8-abde-45bf-ac3d-22649ecb1f4e",
      "name": "Telegram1",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1700,
        -360
      ],
      "parameters": {
        "text": "Photo",
        "chatId": "={{ $('Trigger').item.json.message.from.id }}",
        "additionalFields": {
          "appendAttribution": false
        }
      },
      "credentials": {
        "telegramApi": {
          "id": "BsrAeDsPMOnQOFa7",
          "name": "n8n template"
        }
      },
      "typeVersion": 1.2,
      "notes": "This telegram node performs automated tasks as part of the workflow."
    },
    {
      "id": "5dc06f04-26b4-45af-99d6-a06b7c1b936d...

Output:
This workflow may experience timeout issues with long-running API requests.

**Symptoms**:
- Execution hangs indefinitely
- Connection timeout errors
- ETIMEDOUT or ESOCKETTIMEDOUT errors

**Root Cause**: No timeout configured for HTTP requests, or external services are slow.

**Solutions**:

1. **Set Appropriate Timeouts**:
```json
"options": {
  "timeout": 30000  // 30 seconds
}
```

2. **Add Error Handling**:
- Use Error Trigger node to catch timeout errors
- Implement fallback logic for failed requests

3. **Use Async Patterns**:
- For long operations, use webhook callbacks
- Implement polling patterns instead of waiting

4. **Configure Node Settings**:
```json
"retryOnFail": true,
"maxTries": 3,
"waitBetweenTries": 2000,
"continueOnFail": true
```

**Best Practice**: Set reasonable timeouts (10-30 seconds) and always have error handling for external API calls.


Instruction:
Debug this n8n workflow. It has the following issue:
Error Type: Timeout Configuration

Please analyze the workflow JSON and explain:
1. What is wrong
2. Why it's causing problems
3. How to fix it

Workflow JSON:
{
  "meta": {
    "instanceId": "workflow-54530f4b",
    "versionId": "1.0.0",
    "createdAt": "2025-09-29T07:07:44.540231",
    "updatedAt": "2025-09-29T07:07:44.540243",
    "owner": "n8n-user",
    "license": "MIT",
    "category": "automation",
    "status": "active",
    "priority": "high",
    "environment": "production"
  },
  "nodes": [
    {
      "id": "24be8907-684e-4b57-9642-6f4a45ca7af3",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -380,
        -280
      ],
      "parameters": {
        "color": 7,
        "width": 680,
        "height": 660,
        "content": "## 1. Set up an MCP Server Trigger\n[Read more about the MCP Server Trigger]({{ $env.WEBHOOK_URL }}"
      },
      "typeVersion": 1,
      "notes": "This stickyNote node performs automated tasks as part of the workflow."
    },
    {
      "id": "d5845d0a-648f-4bc1-b087-bc0d17506ed3",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -380,
        -400
      ],
      "parameters": {
        "color": 5,
        "width": 380,
        "height": 100,
        "content": "### Always Authenticate Your Server!\nBefore going to production, it's always advised to enable authentication on your MCP server trigger."
      },
      "typeVersion": 1,
      "notes": "This stickyNote node performs automated tasks as part of the workflow."
    },
    {
      "id": "fe9f1c8e-8334-4732-be3a-5ee49036e11e",
      "name": "FileSystem MCP Server",
      "type": "n8n-nodes-base.noOp",
      "position": [
        -180,
        -140
      ],
      "webhookId": "0d93cfd5-2fbf-457e-9535-5bfc9a73ba9e",
      "parameters": {
        "path": "0d93cfd5-2fbf-457e-9535-5bfc9a73ba9e"
      },
      "typeVersion": 1,
      "notes": "This mcpTrigger node performs automated tasks as part of the workflow."
    },
    {
      "id": "fb49782f-d8de-480b-a470-e37adb2e3036",
      "name": "ListDirectory",
      "type": "n8n-nodes-...

Output:
This workflow may experience timeout issues with long-running API requests.

**Symptoms**:
- Execution hangs indefinitely
- Connection timeout errors
- ETIMEDOUT or ESOCKETTIMEDOUT errors

**Root Cause**: No timeout configured for HTTP requests, or external services are slow.

**Solutions**:

1. **Set Appropriate Timeouts**:
```json
"options": {
  "timeout": 30000  // 30 seconds
}
```

2. **Add Error Handling**:
- Use Error Trigger node to catch timeout errors
- Implement fallback logic for failed requests

3. **Use Async Patterns**:
- For long operations, use webhook callbacks
- Implement polling patterns instead of waiting

4. **Configure Node Settings**:
```json
"retryOnFail": true,
"maxTries": 3,
"waitBetweenTries": 2000,
"continueOnFail": true
```

**Best Practice**: Set reasonable timeouts (10-30 seconds) and always have error handling for external API calls.