https://discord.gg/botpress logo
hello, im working on creating a
# 🌎general
b
hello, im working on creating a conversation embedding whatsapp channel in it so here is my code : const { messages } = await client.createConversation({ channel: 'whatsapp', tags: userInfo, integrationName: 'whatsapp', }) ; but i get this log Integration Definition \"intver_01JZTQH453N747KHZ3N3YSWQCE\" doesn't have the channel \"whatsapp\"","time":"2025-07-30T08:37:21.105Z","src":{},"v":0}. Do someone know what to put in 'channel' and 'integrationName' field??
c
integrationName
is optional, you only need that if you want the response to only be sent to the whatapps integration (In the context where you have multiple integrations that the bot can respond in, e.g. "WhatApp", "Slack" & "Teams" all installed at the same time)
As for channel, is in studio or using a bot as code? I'll need a bit more context here
The channel should be an identifier of some sort Edit: Disregard the above I was actually thinking of conversationId here
I'm still somewhat new to Botpress, so I don't quite know everything yet
b
i want to send all the data I got from my app (email, phone number) to Botpress and that botpress can link to whastapp and initiate the conversation with the user.
c
I'm checking the code for how we implement this in our integrations, I'll get back to you in a bit
Are you trying to create a direct message
b
no im just sending the data i want ot send in botpress then i create a card 'send Whatsapp' to create the message
c
For channel try
channel
For integrationName try:
whatsapp
b
ok thank you with '', or "" ?
c
I don't think single quote or double quote should matter
b
that's the logs {"name":"integration.qaft","hostname":"IWEPC028","pid":73194,"transaction":{"requestId":"0edea0d1a6ac1ab86f558a5f9f2bf66a","iwedomain":"e1979562382e"},"cas":"sendWhatsappMessage","level":50,"msg":"Erreur lors de la création de la conversation Botpress: Bot \"d343faf4-9e32-4b3f-b046-6973a3633d24\" cannot create conversations for channel \"channel\" of integration \"intver_01JZTQH453N747KHZ3N3YSWQCE\"","time":"2025-07-30T14:53:49.883Z","src":{},"v":0}
c
This is a bit outside my current knowledge then. Normally Leanne handles questions like these, but she's currently doing a stream at the moment. I think you should be able to drop into the https://discord.com/channels/1108396290624213082/1114236246118637701 channel and ask her, she might be able to help you faster than I can
b
curl --request POST \ --url https://api.botpress.cloud/v1/chat/conversations/ \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer ' \ --header 'x-workspace-id: ' \ --header 'x-bot-id: ' \ --data '{ "integrationName": "whatsapp", "channel": "channel", "tags": { "whatsapp:userPhone": "", "whatsapp:botPhoneNumberId": "" } }' "id":"1934419b1e359c","code":403,"type":"Forbidden","message":"Bot \"d343faf4-9e333d24\" cannot create conversations for channel \"channel\" of integration \"intver_01SWQCE\""} can someone please explain what should I do in order to create a whatsapp conversation. I mean i can getConversation and deleteConversation but impossible to create one.
actually now it's better i get a 403 error which means that it's only a authentification issue, so i guess it's the token which have restrictions.
3 Views