Attempting to send a confirmation message to a user and expecting a “yes” or “no” reply. If the user responds with anything other than “yes” or “no,” I will resend the message up to three times, requesting a valid response. After three attempts, I want to close the workflow. I’m having trouble setting the value of a field in the workflow trigger node where I keep the max count and a retry counter. I want to increment the retry counter in each loop by one and check if it equals the max count, at which point I will terminate the workflow execution.
It looks like your topic is missing some important information. Could you provide the following if applicable.
- n8n version:
- Database (default: SQLite):
- n8n EXECUTIONS_PROCESS setting (default: own, main):
- Running n8n via (Docker, npm, n8n cloud, desktop app):
- Operating system:
n8n version: Version 1.47.3
- **n8n version:1.47.3
- Database (default: SQLite):
- n8n EXECUTIONS_PROCESS setting (own):
- Running n8n via (n8n cloud):
- Operating system:
Hello @Devendra_Sahu
One trigger = one execution. I can’t count it natively. You should save it somewhere (file, sheet, database, static data etc) and on the next trigger you’ll need to check how many times for that user it was called
Actually I want to do in same execution i have flow like after invalid response i am connecting again the node from whee I am sending same message again and if getting invalid response than same goes on in between i want to increment some counter and checking if that is reached to max limit of not.
In that way you can try with counting the {{ $runIndex }}
property
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.