https://discord.gg/botpress logo
#🤝help
Help with Zapier Integrations
# 🤝help
c

careful-tomato-5454

07/12/2023, 1:02 PM
Hey guys, im trying to follow along on a tutorial for making a chatbot send lead data to the business but i can't get the zapier integration to work. I'm pretty sure i followed his code exactly (mine is the first image) but i keep getting errors. anyone know what's up?
f

freezing-printer-49373

07/12/2023, 2:25 PM
Hey @careful-tomato-5454 i dont believe we have a zapier tutorial. what tutorial are you following?
t

thousands-ram-71481

07/12/2023, 3:10 PM
@freezing-printer-49373 can you guys do a tutorial on this on youtube?
f

freezing-printer-49373

07/12/2023, 3:58 PM
added it to the to-do list
i think a documentation will probably be published first
keep in mind this channel is in beta
s

swift-traffic-27456

07/12/2023, 4:25 PM
Hey, the problem is that you missed "," after every object inside the leadData add it and it should work
also you need to close it with {
Just copy and paste that: workflow.zapierSuccess = false const leadData = { name: workflow.name, field: workflow.field, gwllevel: workflow.gwllevel, phone: workflow.phone, email: workflow.email, specific1: workflow.specific1 } try { const response = await axios.post('PUT WEBHOOK HERE', leadData) console.log(response.data) workflow.zapierSuccess = true } catch (error) { console.error(error) }
c

careful-tomato-5454

07/12/2023, 9:43 PM
thank you ever so much! it's always the littlest things that mess me up haha
9 Views