Débogage n8n
Ceci est unEngineeringworkflow d'automatisation du domainecontenant 9 nœuds.Utilise principalement des nœuds comme If, Slack, DebugHelper, ManualTrigger, SplitInBatches. Créer des points d'arrêt et des journaux de débogage avec des messages interactifs Slack
- •Token Bot Slack ou URL Webhook
Nœuds utilisés (9)
Catégorie
{
"id": "hLfk0dRqKZU6LPUA",
"meta": {
"instanceId": "87021cc08fe86f3c88c615ac7015b93e398b6bf953b85302471896e86cc798ef",
"templateCredsSetupCompleted": true
},
"name": "n8n_debug",
"tags": [],
"nodes": [
{
"id": "eee9f55d-ab30-43b8-978b-865cc119f36e",
"name": "Lors du clic sur 'Exécuter le workflow'",
"type": "n8n-nodes-base.manualTrigger",
"position": [
-1180,
-380
],
"parameters": {},
"typeVersion": 1
},
{
"id": "ab85c1d8-19d2-4b27-8de7-98cf44b2515f",
"name": "Point d'arrêt",
"type": "n8n-nodes-base.slack",
"position": [
-260,
-300
],
"webhookId": "b2cedf16-3a75-454a-9730-4cbd4a50d2cd",
"parameters": {
"select": "channel",
"message": "Execution halted.. Continue?",
"options": {
"limitWaitTime": {
"values": {
"resumeUnit": "minutes",
"resumeAmount": 3
}
}
},
"channelId": {
"__rl": true,
"mode": "list",
"value": "C08ALJ7JM1S",
"cachedResultName": "n8n_errors"
},
"operation": "sendAndWait",
"authentication": "oAuth2",
"approvalOptions": {
"values": {
"approveLabel": "Continue?"
}
}
},
"credentials": {
"slackOAuth2Api": {
"id": "NnMpMgQY1wArhZjI",
"name": "WyethSlack"
}
},
"typeVersion": 2.3
},
{
"id": "669dbd64-bb46-4c14-a32d-98addb8e855b",
"name": "Aucune opération, ne rien faire",
"type": "n8n-nodes-base.noOp",
"position": [
0,
-80
],
"parameters": {},
"typeVersion": 1
},
{
"id": "a612f161-5c67-4472-beca-c28656be5253",
"name": "Aucune opération, ne rien faire1",
"type": "n8n-nodes-base.noOp",
"position": [
60,
-400
],
"parameters": {},
"typeVersion": 1
},
{
"id": "f20ab72a-1514-42e9-9433-128f199a62fe",
"name": "Boucle sur les éléments",
"type": "n8n-nodes-base.splitInBatches",
"position": [
-700,
-380
],
"parameters": {
"options": {
"reset": false
}
},
"typeVersion": 3
},
{
"id": "ed5ad713-1e17-4ca3-a52d-da090b12fbc4",
"name": "10 éléments de données aléatoires",
"type": "n8n-nodes-base.debugHelper",
"position": [
-920,
-380
],
"parameters": {
"category": "randomData",
"randomDataType": "email"
},
"typeVersion": 1
},
{
"id": "fb5bcccd-4c88-45e4-9b8f-72418ef2f3f6",
"name": "Note autocollante",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1220,
-660
],
"parameters": {
"color": 5,
"width": 1480,
"content": "## Use Slack for Debug Breakpoints!\nIf you are frustrated with n8n's lack of effective tools for debug print and debug breakpoints, look no further than using the Slack node:\n- Log to your own personal channel in slack\n- Slack volume is free (with company slack account)\n- Slack node now supports interactive prompts, which can be used to create conditional breakpoints"
},
"typeVersion": 1
},
{
"id": "9a428e72-6132-4da0-9195-7951e8c7caa1",
"name": "Note autocollante1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-360,
-460
],
"parameters": {
"color": 7,
"width": 340,
"height": 320,
"content": "This will message a user or channel and wait to continue. For teams, I suggest you use a var set per-user and your own personal channel.\n"
},
"typeVersion": 1
},
{
"id": "38e36175-f9d9-47a6-8e94-47cba3abfd28",
"name": "Si la boucle est à 4",
"type": "n8n-nodes-base.if",
"position": [
-520,
-280
],
"parameters": {
"options": {},
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "5db6bf4f-1c31-45de-bab6-63367027889c",
"operator": {
"type": "number",
"operation": "equals"
},
"leftValue": "={{ $runIndex }}",
"rightValue": 4
}
]
}
},
"typeVersion": 2.2
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "0ce2012e-6988-4b17-903a-c9be291d2358",
"connections": {
"ab85c1d8-19d2-4b27-8de7-98cf44b2515f": {
"main": [
[
{
"node": "669dbd64-bb46-4c14-a32d-98addb8e855b",
"type": "main",
"index": 0
}
]
]
},
"38e36175-f9d9-47a6-8e94-47cba3abfd28": {
"main": [
[
{
"node": "ab85c1d8-19d2-4b27-8de7-98cf44b2515f",
"type": "main",
"index": 0
}
],
[
{
"node": "669dbd64-bb46-4c14-a32d-98addb8e855b",
"type": "main",
"index": 0
}
]
]
},
"f20ab72a-1514-42e9-9433-128f199a62fe": {
"main": [
[
{
"node": "a612f161-5c67-4472-beca-c28656be5253",
"type": "main",
"index": 0
}
],
[
{
"node": "38e36175-f9d9-47a6-8e94-47cba3abfd28",
"type": "main",
"index": 0
}
]
]
},
"ed5ad713-1e17-4ca3-a52d-da090b12fbc4": {
"main": [
[
{
"node": "f20ab72a-1514-42e9-9433-128f199a62fe",
"type": "main",
"index": 0
}
]
]
},
"669dbd64-bb46-4c14-a32d-98addb8e855b": {
"main": [
[
{
"node": "f20ab72a-1514-42e9-9433-128f199a62fe",
"type": "main",
"index": 0
}
]
]
},
"eee9f55d-ab30-43b8-978b-865cc119f36e": {
"main": [
[
{
"node": "ed5ad713-1e17-4ca3-a52d-da090b12fbc4",
"type": "main",
"index": 0
}
]
]
}
}
}Comment utiliser ce workflow ?
Copiez le code de configuration JSON ci-dessus, créez un nouveau workflow dans votre instance n8n et sélectionnez "Importer depuis le JSON", collez la configuration et modifiez les paramètres d'authentification selon vos besoins.
Dans quelles scénarios ce workflow est-il adapté ?
Intermédiaire - Ingénierie
Est-ce payant ?
Ce workflow est entièrement gratuit et peut être utilisé directement. Veuillez noter que les services tiers utilisés dans le workflow (comme l'API OpenAI) peuvent nécessiter un paiement de votre part.
Workflows recommandés
Wyeth
@wyethPartager ce workflow