https://discord.gg/botpress logo
Hi everyone, I’m working with Botpress Cloud and I...
# 💻developers
b
Hi everyone, I’m working with Botpress Cloud and I have a situation where the conversation_id changes when a Human-in-the-Loop (HITL) session starts. For example, when the bot hands over to a human, Botpress creates a new conversation_id, but I need to keep a continuous history of the user’s conversation (bot + HITL together). From the logs I can see events like hitl:hitlAssigned with payloads such as: { "conversationId": "conv_downstream", "userId": "user_01K2HYQCXHDNVR770M3BFBNJ66" } And the log also shows something like: Trying to link downstream user ... to upstream conversation conv_upstream So Botpress clearly knows the upstream (original) conversation and the downstream (HITL) conversation. My question is: how can I capture this link in Botpress Cloud and send it to my webhook? Ideally, I’d like the webhook payload to include both conversation_id_original and conversation_id_hitl, so I can store them in my database and reconstruct the full conversation history later. Is there a recommended way to configure the webhook or conversation variables so that the upstream_conversation_id is included in the event payload? Or is there another best practice to persist this relationship between bot and HITL conversations? Thanks in advance for any guidance!