https://discord.gg/botpress logo
How to create a conversationId without talk for th...
# 🤝help
h
Hi, Guys! We are working in a webhook for a client. They recieve the user message in their API and send the user information and the message to the bot's webhook. There are not interaction with the Botpress webchat to create a conversation id, is there some other way to create a conversation id before triggered the webhook? We appreciate any help!
p
Hey! To appropriately answer your question, I would need to know where is the initial message being created? Are you trying to create a conversation in Botpress programmatically? What exactly are you trying to achieve?
h
The client (bot owner) receives the initial message through Twilio. They send a payload to our webhook with the user information and want to bind a conversation ID to each user. Note that the client and the user don't interact with the webchat to say hi to the bot and with the Twilio integration either. We try to create a conversation with the endpoints, but we find several errors. Do you know another way to have a conversation ID before the webhook is triggered without a channel integration?
p
Have you tried our twilio integration? Here's the documentation on it: https://botpress.com/integrations/twilio
h
I can't use the Twilio integration because the process is a must for the bot owner.
l
What is the use case of creating a conversationId? Will the user interact with the bot in future and somehow the payload sent should be associated with the user?
h
Hi! Thanks for the answer. We found a solution using the chatAPI, we created a user and passed the user key to the conversation endpoint with a void body and that gave us a conversationId. Then we passed that conversationId through the endpoint createEvent and Eureka!, it works in perfect way 🤗 . Thanks so much!