Dynamic Message Post! (If/else logic) Text / Imag...
# 🤝help
s
Hi everyone. I have a question - I want to send dynamically send either text, image or video response from my Bot. I can't seem to find any if / else logic option in botpress. Also, I can't seem to send msg from code as well. What's the best way to achieve this?
b
you can use "flow logic" cards from the card tray to make if/then statements
e.g., if the value of variable X is greater than or equal to Y
s
Hey @bumpy-butcher-41910 Thanks so much.
Also if you could help on this one I would like to capture the user's IP address as soon as the chatbot is opened and then store it in the workflow under the workflow.ip variable. Is it possible ??
l
Have you got the solution on it?