How to use send custom event?
# 🤝help
f
Please make an Youtube video or explain to me what send custom event means and how to use it.
a
Hey @flat-dog-89962 custom events are triggers sent from the webpage to the bot. They can be sent based on any event from the webpage- a button being clicked, a form submitted, etc. They can also pass extra information from the website to the bot. For example:
Copy code
js
  window.botpressWebChat.sendPayload({ type: 'trigger', payload:{myField:'myValue', myOtherField:'myOtherValue' })
m
@acceptable-kangaroo-64719 is this the same as event data on this page? \

https://cdn.discordapp.com/attachments/1148219812112240711/1148262513239142430/Screenshot_from_2023-09-04_15-24-15.png

I'm trying to trigger the bot when i receive a new email in my gmail account
5 Views