https://discord.gg/botpress logo
Limit the number of user interactions in chatbot w...
# 🤝help
n
Hi. I'm looking for a way to limit the number of user interactions in the chatbot. I'm using a autonomous node. I've tried some code I found here, but it doesn't work with the autonomous node. The node repetition limit doesn't work either. I'm hoping anyone can come up with a way to limit this. Thanks.
p
There is a variable that holds all the messages (event.history) so you can transition out of the An based on its length. Hope this helps!