Additional Information:
I also tried generating a conversation via the API. However, I ran into parallel issue, as I received the following error message:
const url = 'https://api.botpress.cloud/v1/chat/conversations';
const options = {
method: 'POST',
headers: {
accept: 'application/json',
'x-integration-id': 'whatsapp',
'x-bot-id': 'myBotId',
'content-type': 'application/json',
authorization: 'Bearer myToken'
},
body: JSON.stringify({
tags: {
'whatsapp:phoneNumberId': 'XXXXXXXXXX',
'whatsapp:userPhone': '+XXXXXXXXXX'
},
channel: 'whatsapp'
})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));
The response I got:
{
"id": "err_20250120205227x948FEA36",
"code": 409,
"type": "RelationConflict",
"message": "Integration \"whatsapp\" is not associated with the bot \"myBotId\""
}
Thanks in advance for your help.