Change var via webhook
# 🤝help
r
I just finished building a saa's chatbot and I want to set to it password. Now I've already built a simple pin system but I want to create an automation so the password (variable) will change every 24 hours. is it possible to connect an https post request to the chatbot to change the variable?
f
hmmm... can you try setting the PIN in a bot variable?
wait
is it a PIN per user? or it is a shared PIN?
r
It's a shared pin, one for all
f
okay, then the bot variable should make it work
Bot variables are variables shared across all the users. It is shared
give it a try and let me know 🙂
r
But how can I change it every 24 hours automatically?I still need a way to connect make or something in order to change the bot variables
f
Got you
there are multiple ways. On the other hand, can you tell me more about the business that leads to the need of a PIN
How is it going?
r
It's a saas that uses Botpress as the base and the way to collect data from the customers. when people buy a certain service from the website they get a pin code, and inside the chat they use the PIN code in order to get to that service. I need to make sure customers don't use it twice, I can do it by executing a code (MIke>sheets Etc'), I just want to find a more efficient way that will save me automations and time.(like 24H PIN) Hope I explained it good enough and thanks for the follow-up