πŸ“± Add a check condition for a loop in n8n

⚑ 11,893 views Β· πŸ“± Social Media & Email Marketing

πŸ’‘ Pro Tip β€” Twitter’s API is paid now, which makes simple data pulls expensive. ScraperNode is a community node that scrapes Twitter profiles and posts without needing API access.

View All Scrapers

Description

This workflow demonstrates the use of $runIndex expression. It demonstrates how the expression can be used to avoid an infinite loop.

The workflow will create 5 Tweets with the content β€˜Hello from n8n!’.

You can use this workflow by replacing the Twitter node with any other node(s) and updating the condition in the IF node.

πŸ”— Nodes Used

Start, X (Formerly Twitter)

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup