AutomationFlowsSocial Media › AI Linkedin Poster - Error Handler

AI Linkedin Poster - Error Handler

AI LinkedIn Poster - Error Handler. Uses errorTrigger. Event-driven trigger; 4 nodes.

Event trigger★★★★☆ complexity4 nodesError Trigger
Social Media Trigger: Event Nodes: 4 Complexity: ★★★★☆ Added:

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "name": "AI LinkedIn Poster - Error Handler",
  "nodes": [
    {
      "parameters": {},
      "id": "error-trigger",
      "name": "Error Trigger",
      "type": "n8n-nodes-base.errorTrigger",
      "typeVersion": 1,
      "position": [
        240,
        300
      ]
    },
    {
      "parameters": {
        "content": "## Optional Error Handler\n\nLink this workflow in the main workflow:\n**Settings \u2192 Error Workflow \u2192 AI LinkedIn Poster - Error Handler**\n\nLogs failed executions. Extend with Slack/email nodes.\n\nNote: Webhook callers still get JSON errors from the main workflow's **Respond Error** node. This handler is for monitoring only.",
        "height": 220,
        "width": 380,
        "color": 3
      },
      "id": "error-sticky",
      "name": "Error Handler Notes",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        40,
        80
      ]
    },
    {
      "parameters": {
        "mode": "runOnceForAllItems",
        "language": "javaScript",
        "jsCode": "const err = $input.first().json;\nconst execution = err.execution || {};\nconst workflow = err.workflow || {};\nreturn [{\n  json: {\n    loggedAt: new Date().toISOString(),\n    workflowName: workflow.name || 'AI LinkedIn Poster',\n    workflowId: workflow.id,\n    executionId: execution.id,\n    executionUrl: execution.url,\n    lastNodeExecuted: execution.lastNodeExecuted,\n    errorMessage: execution.error?.message || err.trigger?.error?.message || 'Unknown error',\n    mode: execution.mode,\n    hint: 'Check main workflow execution in n8n UI for full stack trace.'\n  }\n}];"
      },
      "id": "format-error-log",
      "name": "Format Error Log",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        460,
        300
      ]
    },
    {
      "parameters": {},
      "id": "error-done",
      "name": "Logged",
      "type": "n8n-nodes-base.noOp",
      "typeVersion": 1,
      "position": [
        680,
        300
      ],
      "notesInFlow": true,
      "notes": "Add Slack/Email node here to get alerts on failed publishes."
    }
  ],
  "connections": {
    "Error Trigger": {
      "main": [
        [
          {
            "node": "Format Error Log",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format Error Log": {
      "main": [
        [
          {
            "node": "Logged",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  },
  "active": false,
  "versionId": "1.0.0",
  "tags": [
    {
      "name": "linkedin"
    },
    {
      "name": "error-handler"
    }
  ]
}
Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

AI LinkedIn Poster - Error Handler. Uses errorTrigger. Event-driven trigger; 4 nodes.

Source: https://github.com/Ai-assistant-KIRA/n8n-ai-linkedin-poster/blob/main/workflows/linkedin-ai-poster-errors.json — original creator credit. Request a take-down →

More Social Media workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

Social Media

This n8n workflow automatically shares content from a Telegram Channel to multiple platforms like WordPress, Facebook, X/Twitter, and LinkedIn. It uses a Switch node to detect the type of content—text

Telegram Trigger, Telegram, WordPress +5
Social Media

Hacker News to Video Template - AlexK1919. Uses hackerNews, s3, httpRequest, dropbox. Event-driven trigger; 48 nodes.

Hacker News, S3, HTTP Request +6
Social Media

Disclaimer: this workflow only works on self-hosted instances due to the file system usage.

Execute Workflow Trigger, HTTP Request, Form Trigger +3
Social Media

More workflow: https://aitool.wiki/

Google Sheets, Google Drive, Read Write File +3
Social Media

⚠️ Important — Start Here Before importing this template, make a personal copy of the provided Google Sheets template. This workflow is designed to work out of the box with that sheet.

Google Sheets, N8N Nodes Browserflow