I need the the code to send the variables from bot...
# 🤝help
b
i want to send variables from botpress to zapier and i need the code to do that
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) }
@bitter-tailor-1067
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.
b
ok thank youuuuu man