Thanks. The botpress code editor wrote working code to send a webhook from botpress, but when I tried it the other way around it returned 502.
This is the json it wrote:
[
{
"channel": "make",
"userId": "user-2",
"botId": "c7d427dd-e584-460d-a660-4c3781933c35",
"payload": {
"type": "text",
"text": "Hello, this is a message from the bot."
},
"preview": "Hello, this is a message from the bot."
}
]