https://discord.gg/botpress logo
Whatsapp integration: How to reset Conversation ID...
# šŸ¤help
m
As the subject says, I’m currently using the WhatsApp integration to communicate with BotPress. However, I’ve noticed that when a chat ends and the user starts a new conversation, the conversation ID always remains the same. This is an issue because I store all interactions in a database table using the conversation ID as the reference. I assumed each new conversation would generate a unique ID, but if a user has previously interacted, the same conversation ID is reused—resulting in duplicate records in my table. Thank you in advance šŸ˜„
p
The conversation Id for each user on whatsapp is meant to be persistent and that cannot be changed. However, what you could do is adjust your table. I can help you do so if you provide more information.
m
Okay, but it seems as it's not restarting conversation. I can see messages from previous conversation even tho I explicitly ended conversation. How can I give it a fresh start if its previously ended ?
p
I'm not sure I understand your question?
The conversation end as seen in the studio matches to a session's end not necessarily the entire conversation as for whatsapp there is only one per phone number.
m
Chatwoot integration is working really well while Whatsapp is problematic
It seems as it won't make transition to another node.
f
Hey @prehistoric-airplane-85682 , if we can’t create new conversations with the same WhatsApp user, is there a way to reset the conversation so the bot doesn’t use any information from the previous one (anything collected before the ā€œconversation endā€)? I want to prevent the bot from using previous information in the new conversation.