adamant-policeman-88146
07/25/2023, 8:10 PMconst res = await fetch(
"https://webhook.botpress.cloud/xxx",
{
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
conversationId,
answer,
}),
}
);
If I follow the botpress logs, I get the error:
Error sending outgoing message yt [Error]: request/body must have required property 'conversationId'
But if I open the workflow editor and inspect my trigger > discover events, I can clearly see that the conversationId
is inside the JSONrich-battery-69172
07/25/2023, 8:37 PMevent.conversationId = event.payload.conversationId
adamant-policeman-88146
07/25/2023, 8:37 PMrich-battery-69172
07/25/2023, 8:38 PMadamant-policeman-88146
07/25/2023, 8:42 PMrich-battery-69172
07/25/2023, 8:45 PMadamant-policeman-88146
07/25/2023, 8:45 PMrich-battery-69172
07/25/2023, 8:47 PMrich-battery-69172
07/25/2023, 8:47 PMrich-battery-69172
07/25/2023, 8:47 PMevent.conversationId = event.payload.body.conversationId
when coming from a POST webhookadamant-policeman-88146
07/25/2023, 8:49 PMadamant-policeman-88146
07/25/2023, 8:49 PMrich-battery-69172
07/25/2023, 8:50 PMadamant-policeman-88146
07/25/2023, 8:52 PMrich-battery-69172
07/25/2023, 8:53 PMrich-battery-69172
07/25/2023, 8:54 PMrich-battery-69172
07/25/2023, 8:54 PMadamant-policeman-88146
07/25/2023, 8:54 PMadamant-policeman-88146
07/25/2023, 8:55 PMrich-battery-69172
07/25/2023, 8:55 PMrich-battery-69172
07/25/2023, 8:56 PMadamant-policeman-88146
07/25/2023, 8:56 PM