AutomationFlowsSocial Media › n8n Loop Condition Check with Twitter (Workflow)

n8n Loop Condition Check with Twitter (Workflow)

Original n8n title: Add a Check Condition for a Loop in N8n

Add A Check Condition For A Loop In N8N. Uses manualTrigger, noOp, twitter. Event-driven trigger; 4 nodes.

Event trigger★★☆☆☆ complexity4 nodesTwitter
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
{
  "nodes": [
    {
      "name": "On clicking 'execute'",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        250,
        300
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "name": "IF",
      "type": "n8n-nodes-base.if",
      "position": [
        600,
        150
      ],
      "parameters": {
        "conditions": {
          "number": [
            {
              "value1": "={{$runIndex}}",
              "value2": 4
            }
          ]
        }
      },
      "typeVersion": 1
    },
    {
      "name": "NoOp",
      "type": "n8n-nodes-base.noOp",
      "position": [
        750,
        300
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "name": "Twitter",
      "type": "n8n-nodes-base.twitter",
      "position": [
        440,
        300
      ],
      "parameters": {
        "text": "Hello from n8n!",
        "additionalFields": {}
      },
      "credentials": {
        "twitterOAuth1Api": "<your credential>"
      },
      "typeVersion": 1
    }
  ],
  "connections": {
    "IF": {
      "main": [
        [
          {
            "node": "Twitter",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "NoOp",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Twitter": {
      "main": [
        [
          {
            "node": "IF",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "On clicking 'execute'": {
      "main": [
        [
          {
            "node": "Twitter",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}

Credentials you'll need

Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.

Pro

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

About this workflow

Add A Check Condition For A Loop In N8N. Uses manualTrigger, noOp, twitter. Event-driven trigger; 4 nodes.

Source: https://github.com/Zie619/n8n-workflows — 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

New tweets. Uses twitter, airtable, stopAndError. Event-driven trigger; 8 nodes.

Twitter, Airtable, Stop And Error
Social Media

This workflow lets you post images to X (Twitter) by uploading binary image files obtained from any source, not just Google Drive. Whether you’re fetching images stored on Google Drive or working with

Twitter, Google Drive, HTTP Request
Social Media

New WooCommerce Product to Twitter and Telegram. Uses twitter, telegram, wooCommerceTrigger. Event-driven trigger; 3 nodes.

Twitter, Telegram, Woo Commerce Trigger
Social Media

Shopify Twitter. Uses twitter, telegram, shopifyTrigger. Event-driven trigger; 3 nodes.

Twitter, Telegram, Shopify Trigger
Social Media

Promote new Shopify products on Twitter and Telegram. Uses twitter, telegram, shopifyTrigger. Event-driven trigger; 3 nodes.

Twitter, Telegram, Shopify Trigger