https://discord.gg/botpress logo
#🤝help
Get SunCo webhook payload data
# 🤝help
m

mysterious-sugar-22504

06/05/2023, 11:06 PM
How can I access the webhook payload inside my bot when the message comes from SunCo?
a

acceptable-kangaroo-64719

06/06/2023, 10:43 AM
Hey @mysterious-sugar-22504, typically these things are kept in
event.state.conversation.tags
. You can use the Raw JSON tab int he bottom panel to explore all the data available
m

mysterious-sugar-22504

06/06/2023, 1:31 PM
Thank you, I will try that.
@acceptable-kangaroo-64719 I'm getting this error trying to access this variable
a

acceptable-kangaroo-64719

06/06/2023, 4:16 PM
ah, my bad. It's
event.tags.conversation
. You can see the exact schema in the "JSON" part of the bottom panel
m

mysterious-sugar-22504

06/07/2023, 1:37 AM
the only data in event.tags are
Copy code
{
  "message": {
    "sunco:id": "123"
  },
  "conversation": {
    "sunco:id": "456"
  },
  "user": {
    "sunco:id": "789"
  }
}
It's not exctaly what I needed but will solve my problem, thanks 😁
16 Views