f
so i made this chatbot using botpress+zapier and its supposed to ask the user how many emails would you like to send and then the chatbot is supposed to send that to one of my zaps which is connected to a google sheet with emails, so it can then send an email to however many leads the user put in but i just keep getting an error might be the code since im shit at writing code i just asked chat gpt to write it for me and since im shit at coding i dont know if the code i got is shit help me out here please
p
I know nothing about zapier, so take this advice with a grain of salt. If you haven't already, I would try to write
console.log(yourVariableNameHere)
throughout the code, to see if your variables are what you expect them to be. Just based on this code, I'm not sure if
event.payload.text
or
state
exist. Chatgpt might be making some assumptions here.
f
Arlight thanks imma try that
d
Here's a video I found on how to send variables to make, I know its not zapier but in the description he lists the code he uses. Maybe it will work for you? Just send to a zapier web hook rather than a make webhook.

https://youtu.be/W2RR2mM_ZQY

2 Views