Get SunCo webhook payload data
# 🤝help
m
How can I access the webhook payload inside my bot when the message comes from SunCo?
a
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
Thank you, I will try that.
@acceptable-kangaroo-64719 I'm getting this error trying to access this variable
a
ah, my bad. It's
event.tags.conversation
. You can see the exact schema in the "JSON" part of the bottom panel
m
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 😁
18 Views