I am using n8n on docker and i have a workflow activated but need it keep running any idea ?
Thank you
I am using n8n on docker and i have a workflow activated but need it keep running any idea ?
Thank you
That would depend exactly what the workflow does and what you mean by keep it running. I would say either schedule it to run every minute (or longer if it takes longer to run), or loop the end of the workflow to the start.
If you’re looping it though, you’ll need to think carefully about error handling. Can you safely set all the nodes to continue on failure, or will that just cascade a problem through the loop?
Running it in a loop is very likely to cause memory issues I would think. Scheduling it to run frequently is likely to be much safer.
If you give more info about what you’re trying to achieve you’ll probably get a more accurate answer.
Take example with whatsapp trigger, you create an AI agent as an assistant for Doctor and need to create an event (meeting), so this workflow should be running every time not for x minutes.
I think you’d want a trigger of incoming WhatsApp message in that case, not running continuously. I don’t use WhatsApp though, so don’t know what’s available there.
If there’s no incoming trigger from WhatsApp directly then you’ll have to poll with a loop or schedule and I’d strongly recommend not looping.
Just checked quickly - there’s WhatsApp triggers for messages, so that’s going to be what you want
.
yes there is already a trigger whatsapp but after active the workflow and after sense 30 minutes when i send msg nothing happened and no errors on the logs execution !!!
I think that’s where you want to concentrate your debugging then - why is the WhatsApp trigger not firing?
There’s many more steps to take, but not using WhatsApp they aren’t something I can pitch in on.
Have you read this n8n guide to a whatsApp bot? Create WhatsApp Bot: A Low-Code Guide (+ Free Template) – n8n Blog