Cant create conversation through API
# 🤝help
d
Hey guys Im trying to create a conversation to get its ID after I send a message to the user through twilio, however when I get my response it get an invalid payload and a message saying "'The provided UUID is invalid'" This is a snippet I have for my code: try { const twilioResponse = await twilioClient.messages.create({ body: message, from: TWILIO_PHONE_NUMBER, to: account.doctorPhone, // Use doctor's phone number from your records }) console.log(
Message sent to ${account.doctorLastName}
); twilioMessageSid = twilioResponse.sid; } catch (error) { console.error(
Failed to send message: ${error}
); } // Reset message for the next doctor message = ''; const channelId = 'cd492fd1-bd8d-4683-97d6-9c5c3a79180b'; const tags = {}; const conversationData = await startConversationInBotpress(channelId, tags); if (conversationData) { // Now you have a conversation started in Botpress, and you could use the conversation ID as needed console.log(
Botpress conversation started with ID: ${conversationData.id}
); } } Appreciate any help 🙏
g
How did you get channel id?