https://discord.gg/botpress logo
Botpress integration on lovable
# 🤝help
w
hi everyone ! I have a problem with the integration of my bot. I made a lovable interface of chat and i want to connect my botpress bot to it. I have put the API in lovable etc. In the botpress logs i see that my bot receive an event of conversation but no message here. And i don't have any responses of the bot when i ask something in the lovable interface. If someone know where the problem is and how to fix it ? thks
f
I’ve worked on Botpress integrations before, and what you describe often happens when the message payload sent from Lovable isn’t in the format Botpress expects. I can help you trace the request/response flow and fix it so messages show properly. Can you share how you’re sending the user input to the Botpress API (maybe a snippet of the payload)? That will help narrow it down. @ben.stt
w
Ok thks I will send that. For the connexion I use the personal token, the chat webhook and bot id
1. createUser { "action": "createUser", "data": {} // or all data } URL: https://chat.botpress.cloud/{WEBHOOK_ID}/users Headers: x-user-key: anonymous (ou userKey fourni) 2. createConversation { "action": "createConversation", "data": { "userKey": "..." } } Payload sent to Botpress: {} URL: https://chat.botpress.cloud/{WEBHOOK_ID}/conversations 3. sendMessage { "action": "sendMessage", "data": { "conversationId": "conv_...", "text": "message utilisateur", "userKey": "..." } } Payload sent to Botpress: { "type": "text", "payload": { "text": "message utilisateur" } } URL: https://chat.botpress.cloud/{WEBHOOK_ID}/conversations/{conversationId}/messages 4. getMessages { "action": "getMessages", "data": { "conversationId": "conv_...", "userKey": "..." } } URL: https://chat.botpress.cloud/{WEBHOOK_ID}/conversations/{conversationId}/messages (GET request, no body)
l
@few-greece-76179
Hey @witty-sundown-57223 maybe something went wrong while you were setting up the integration! https://botpress.com/docs/api-reference/introduction#chat-api I dropped the link to some relevant docs, maybe this can help you out 🙂
w
Hey, thanks for you’re responses, I already follow the doc, I think something goes wrong. It doesn’t work