how can i capture the user's email and save it in ...
# 🤝help
b
how
f
Hello mate, I went ower this yt video yesterday. Belive it will explain and solve your problem.

https://www.youtube.com/watch?v=g2TzKkpfbQs

b
thanks man
@few-lock-62077 how did you copy the code he wrote ?
b
c
2 great solutions!
Thanks @bitter-tailor-1067 & @brainy-summer-1041 !
b
It’s a pleasure!
b
I need the the code to send the data from botpress to zapier
b
workflow.zapierSuccess = false const leadData = { email: workflow.Email, problem: workflow.Problem } //Replace YOUR_URL_HERE with your actual Zap URL try { const response = await axios.post('YOUR_URL_HERE', leadData) console.log(response.data) workflow.zapierSuccess = true } catch (error) { console.error(error) }
Make sure you replaced YOUR_URL_HERE with the URL of your zap. If you want different variables, replace "email: workflow.Email" and "problem: workflow.Problem" with your actual variables. Use the same format to make sure it works.
@bitter-tailor-1067