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