Send Zapier Data to Botpress 🙏
# 🤝help
s
Hi, i've been trying FOR DAYS, how to send data from zapier to botpress, in this case, when a user wants to check when is his meeting with our client, but there is little to no documentation on this, and the only video explaining how it works does not works for me (trigger event), could someone please help me with that method or another one such as webhooks, becasuse there is also no API GET Request, Thnak you a lot and happy bot building haha.
s
Okay, on this for data on Zapier, where is the data comin from in zap, i will be glad to help you with this.
@square-airline-72035
f
Hey there, You can use the [Webhook integration](https://app.botpress.cloud/hub/integrations/6d68151a-186e-49c6-a128-940f9a60e673) and you can read about how to use it here https://botpress.com/docs/cloud/channels/webhook/ I have a Make.com tutorial that uses it here https://discord.com/channels/1108396290624213082/1220369912539644006 maybe you can get some inspiration from that.
s
Thanks, it def helped me, now the problem is that I cant select any data that botpress has received from the trigger event lmao
I dont know if i understanded correctly, but basically the user will write their email, and a verification code will be sent to their mail, and if they write correctly that code, that code that was also saved on my airtable base will math with their mail and send back to botpress the booking info, i hope i made myself clear, and thank you!
f
s
yes! exactly there, i can see the events zapier sent (and they were sent correctly) but i cant click on them idk why
Maybe you could send me a screenshot of it
f
Perfect
So you can use
event.payload.body
to get the body
s
so it doesn´t matter if i cant select that info??
f
Then
event.payload.body.fetcha
to get the date and
event.payload.body.mail
to get the mail
What do you mean "select that info"
Nvm
I can see what you mean
s
ive seen videos that say that i have to click on them for botpress to take it as an example
f
Yea, that is a bug, you should be able to do that
s
let me try, gimme a sec
f
You can try console.log(event.etc)
this is the code im executing after the webhook: const workflow.fecha_cons = event.payload.body.fecha_cons const workflow.mail_cons = event.payload.body.mail_cons const workflow.nombre_cons =event.payload.body.nombre_cons console.log(workflow.nombre_cons)
f
what is _cons for?
Have you tried just
console.log(event.payload.body.nombre
console.log(event.payload.body.mail
console.log(event.payload.body.fetcha
s
_cons is for consult, the function when the user is trying to consult the booking he made before
yeah, the problem is that i cant run it
f
Have you tried this https://discord.com/channels/1108396290624213082/1223459340942577664/1223734209651146863 Then doing another request to your Webhook and check the console to see it
s
yes, thats what im saying, i cant even run it because it says that the node cant run until the user reaches there
f
What says that?
f
Yes. You have to make a new request to the Webhook. Then you check the logs
s
okok thanks, but now my zapier trial ended and it asks me for 80dls to work again so i have to pass it all to make now 😩, so im going to try and do that first and try it again, thank you a lor Decay! you are a real one!
f
Yea, that is a real issue. I would always recommend Make instead of Zapier! You have to use the "Make a request" module Make. I have a tutorial that uses it here https://discord.com/channels/1108396290624213082/1220369912539644006 Thank you, and let me know how it goes 🙂
s
Thank you Decay!
a
Hello guys, im quite new to it, but i want just to figure out, i am able to setup zapier and even i'm getting events to my bot, but after getting an event conversation does not continue, is here anything i missed or maybe some additional setup needed for it?
3 Views