https://discord.gg/botpress logo
Need help with HITL
# 🤝help
c
Hey, can someone help me with this error, when im in the human handoff dashboard and i press the chat the website keeps crashing. Thanks in advance!! https://cdn.discordapp.com/attachments/1431189848320118885/1431189848600871045/Screenshot_2025-10-24_at_9.54.04_AM.png?ex=68fc82ea&is=68fb316a&hm=2dc6a9f2cac185bc7946166987b40eb2f709db9cff6b54c2ece544f9c3b123b0&
w
can you send a screenshot of your "start HITL" node
it might be missing the userId fied, which should be filled with {{event.userId}}
c
w
yes, that is correct!! do you only have that one start HITL card?
if so, i think a good next step would be to try recreating it
c
@wide-umbrella-5226 yes that’s the only card, it comes in the human handoff. But it crashes when I have assigned it back to the bot. And when the user needs the human again it comes not back as open. When I want to manually go back to the closed chat and presses it it crash. Does that make sense? Hope I’m clear in the explanation
Delete and create again?
w
yes, i think i get the gist of it!! can you check your conversations, please?
conversations involved in HITL normally have "upstream" and "downstream" tags to correlate them between the different channels e.g. webchat and HITL
maybe a third conversation or user is being created in the integration switch process, which could be the cause of this bug
w
so those 6 are the SAME conversation right?
can you check the "users" tab and check if they're multiplied as well?
@wide-umbrella-5226 Is there a possiblillity that you can look in my account?
w
i can't, no. sorry!! but you can export your bot and send it to me so i can try replicating your issue
it isn't very clear because the timestamps aren't very specific. what i would look for is 2-3 users that have "last messages" extremely close apart
and form the same whole conversation
what happens is that one user and conversation can only belong to one channel at a time. let's use HITL and Telegram as an example:
1. user is talking on telegram. they ask for a human, and HITL triggers 2. another user and conversation are created, for that same person but now for the HITL integration 3. HITL is ended, then the user and conversation return to the previous Telegram one
what seems to be happening in your case is a mismatch between the first and third step, where it tries to return from HITL and has the wrong variables
c
Hi Shen, sorry for my delayed response.. What do you reccomend me to do next?
w
i think a good first step would to create another bot and install HITL there to see if the behaviour is repeated
in my experience HITL works very differently from one bot to another
c
Hi shen, i duplicated the bot and installed HITL correctly (i think). Now get this message, any thoughts? thanks for your help so far... hope we manage to fix it https://cdn.discordapp.com/attachments/1431189848320118885/1432393804710805654/Screenshot_2025-10-27_at_4.40.41_PM.png?ex=6900e42f&is=68ff92af&hm=1abe45e90c822255021805c0a6a6e8e44003cd9ef9b34599e60e5fd62377fea8&
w
this message is normal - HITL is not supported in the browser means that HITL is not supported in the emulator
because the conversations and users are just tests and don't actually exist
instead you can press "publish" on the top right and grab the link below "your bot is live" to test it in the webchat
c
Ah make sense, let me try!
I have the same issue, the first time autonomous node sends it to the human. When i press Resume to chatbot it works correctly. But when the user needs the Human again it gives a error "can not connect you with the human due to technical issues" (standard response) ---- Then when i go in the dashboard and click on the conversation it crashes again (like with the last bot) https://cdn.discordapp.com/attachments/1431189848320118885/1432397141371912292/Screenshot_2025-10-27_at_4.51.51_PM.png?ex=6900e74b&is=68ff95cb&hm=472fcc08e922bb4a0741c1789a4217e6a550ad9ff75afd3be39cd651d280ea89&
Let me know when i need to record my screen
w
that's very weird... seems more like an internal error
@loud-crowd-60573 can you please take a look when you have the time? it's about the third issue with HITL i've seen in a few days and this one seems pretty serious
l
Yeah taking a look now!
Hey @wide-umbrella-5226 @careful-optician-28902 I just tested it on my end and the HITL works fine.
Can you try on a different browser? @careful-optician-28902
c
Its looks like its not assigning back to the human correctly, it still appears in solved instead of open. When I try to open the website, it stops working, and I can't go back or click anything. https://screen.studio/share/8psC3csW?state=uploading
i tried a different browser
l
Just to clarify @careful-optician-28902 The main issue is when you click conversation nothing happens?
Also can you show a quick screenshot of your workflow + where you call HITL
Works fine on my end
c
Yes in both noting happens and chrome gives the timeout error and safri does nothing. Will share screenshot now
w
do any errors appear in the console?
l
your main workflow too @careful-optician-28902
w
oh sorry i mean the devtools console
when you click the conversation and it crashes
do we need to send a variable from autonomus node
?
can you delete this
This is just a description for the ticket
and no all you need to do is call the workflow with the HITL and then use the Start HITL card in the 2nd workflow!
Your setup looks good
c
I put in "test" as the name of the ticket description, but now I can't click on my message. It's not crashing, but I can't click on the conversation itself. I created a new Telegram bot, so we have an all-new user. Still the same. It crashes. It does not respond to anything in both browsers..
its working !
Did not publish the change
Thanks a lot @wide-umbrella-5226 for your investigation and @loud-crowd-60573 Also thanks a lot. We can close this ticket. Hope this is the fix
l
What fixed it in the end?
c
Conversation as the ticket name
Overloaded I guess
2 Views