ERROR code when i get to the execute code. Trying ...
# 🤝help
c
I have tried different codes, i watched all the vids on youtube and they all do the same thing. I have integrated zapier.

https://cdn.discordapp.com/attachments/1147118996332740639/1147120870263898202/93CE3DD2-31E9-4B33-83E9-C4CB9D919354_1_201_a.jpeg

https://cdn.discordapp.com/attachments/1147118996332740639/1147120870519734313/FC622961-D7D0-45B8-80BF-EBFBE8FDAE72_1_201_a.jpeg

a
Hey @crooked-lion-69117 what is the error? You can open the logs in the bottom panel to check. You might also want to put quotes around the URL in your
axios.post()

https://cdn.discordapp.com/attachments/1147118996332740639/1147121748790218772/image.png

c
hello, nothing is in the logs panel. Furthermore, when it does go to the End, zapier doesnt pick anything up. The picture above shows what it picks up. No email, name etc

https://cdn.discordapp.com/attachments/1147118996332740639/1147164542632198194/E1ABE981-F1BF-4AE1-ABC0-E56791CF7FD8_1_201_a.jpeg

https://cdn.discordapp.com/attachments/1147118996332740639/1147164542917423226/FA731B06-DA44-4D60-A9A0-A10AB09AE897_1_201_a.jpeg

a
Could you hit this button and give me the number? That way I can take a look at your bot directly

https://cdn.discordapp.com/attachments/1147118996332740639/1147218661136924746/image.png

c
d040c141-39fc-4678-b439-1d2bbed9b4ed
a
So the data was sent to the webhook successfully. Can you make sure your Zapier zap is working? From the screenshot you sent, do you need to turn it on?

https://cdn.discordapp.com/attachments/1147118996332740639/1147221387975598281/image.png

Your post to the webhook was successful from the Botpress side, so the issue is likely from zapier

https://cdn.discordapp.com/attachments/1147118996332740639/1147221534981759087/image.png

c
i have turned it on multiple times. I also tried to do it on make.com. As you can see in the image, it is empty...

https://cdn.discordapp.com/attachments/1147118996332740639/1147223531562733598/B5FBA97D-CD2C-4D83-88ED-13D1B1BC7291_1_201_a.jpeg

furthermore, do you know of any other services that collect data like what i need. Preferably free
a
If all you want to do is save the user's name, email, etc you can use a table. They're built-in on Botpress cloud

https://cdn.discordapp.com/attachments/1147118996332740639/1147224360797618307/image.png

and you can download a table as a CSV and then bring it into your CRM or google sheet

https://cdn.discordapp.com/attachments/1147118996332740639/1147224468083720192/image.png

c
just to be clear... I want to build a chatbot. This chatbot will generate sign ups for a gym. The bot asks name, email, number etc. I need to gather that information the same way people in the youtube videos do when they do it on zapier and make.com. Are you saying that if an external user who visits this chatbot and signs up using their contact info, their data will get stored on a table in the botpress cloud?
ive been following these two videos mainly...

https://www.youtube.com/watch?v=2VZT-Z8QsdY

https://www.youtube.com/watch?v=B0xIoBwkKbA

basically trying to gather the info they do in their video
im sure you have seen the last video as i have seen it posted by one of your helpers
a
@refined-television-22789 recorded the first video, maybe he's around to help?
r
Use a custom code card & export it to a zapier webhook :)) have that zapier webhook automatically export the lead information to a spreadsheet or a CRM. This is the custom code:
Copy code
workflow.zapierSuccess = false

const leadData = {
  name: workflow.name,
  email: workflow.email,
  phone: workflow.phone,
  budget: workflow.budget,
  metals: workflow.metals,
  colors: workflow.colors,
  brand: workflow.brand,
  size: workflow.bandsize,
  additionalnotes: workflow.addlnotes
}

// Replace YOUR_ZAPIER_URL_HERE with your zapier webhook url
try {
  const response = await axios.post('INSERT ZAPIER WEBHOOK HERE', leadData)
  console.log(response.data)
  workflow.zapierSuccess = true
} catch (error) {
  console.error(error)
}
replace the workflows with the workflows in your bot. With Zapier, set up a webhook for your initial trigger
2 Views