I have built a functional Whatsapp Agent. It is quite complex and as a begginer I realise it might fail in production.
But I also realise I am not sure where it might actually fail.
For example, in my opinion the use of Set Nodes would be very usefull in preventing errors and making the workflow more efficient. that being said I do not know how to use them effectively.
Additionally I bet there are more places where this flow might break, is not as efficient as possible.
If you have experience and have deployed multiple projects, could you kindly provide some sugestions to secure my workflow?
What am I missing? What am I doing wrong? Where might it break?
You’re right to think about making your workflow production-ready! It’s a good practice to use Set nodes to store and reuse values, making your workflow easier to understand and debug. Also, consider adding Error Handler nodes to catch and manage potential issues.
To improve efficiency, look for areas where you can combine steps or use expressions to calculate values directly. Reviewing your workflow’s execution history can also help you identify bottlenecks or unexpected behavior.
Could you tell me the mental framework to where to use them? How do you do it?
Also, if you could take a look at the code, where are 2-3 places where you would actually use some Set Nodes. These would be great for me to get a practical idea.
Woah! I took a look at the workflow, nice job! I can’t test it, but set notes would be good for anywhere that has a lot of information. If its sending like 20 things an item, and you only need 3, you could use a set node to only output those 3. I use it for when I want to clear data in the workflow that is unnecessary and slowing it down.
I actually built an AI powered workflow analysis tool for just this reason. It will analyze your workflow and provide recommendations. Currently in free beta as we refine scoring, analysis, and recommendation agents. Care to give it a shot? I am always looking for people actively building workflows to provide feedback and make it a useful tool for the community.