Add a check condition for a loop in n8n — Workflow n8n
Aperçu
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.
Nœuds utilisés
Aperçu du workflow
Comment ça fonctionne
- 1
Déclencheur
Le workflow démarre avec un déclencheur déclencheur.
- 2
Traitement
Les données transitent par 4 nœuds, connecting if, manualtrigger, twitter.
- 3
Sortie
Le workflow termine son automatisation et livre le résultat à la destination configurée.
Détails des nœuds (4)
X (Formerly Twitter)
Comment importer ce workflow
- 1Cliquez sur le bouton Télécharger JSON à droite pour enregistrer le fichier du workflow.
- 2Ouvrez votre instance n8n. Accédez à Workflows → Nouveau → Importer depuis un fichier.
- 3Sélectionnez le fichier
add-a-check-condition-for-a-loop-in-n8ntéléchargé et cliquez sur Importer. - 4Configurez les identifiants pour chaque nœud de service (clés API, OAuth, etc.).
- 5Cliquez sur Tester le workflow pour vérifier que tout fonctionne, puis activez-le.
Ou collez directement dans n8n → Importer depuis JSON :
Intégrations
Créé par
Harshil Agrawal
@harshil1712
Tags
Nouveau sur n8n ?
n8n est un outil d'automatisation de workflows gratuit et open-source. Hébergez-le vous-même ou utilisez la version cloud.
Obtenir n8n gratuitement →