Hi, As the subject stated, Any suggestion or workflow on how to switch a bot session from Bot (Assistant API) to human agents. Do anyone here implemented any such solution?
This sounds like you may be seeking Human-in-the-loop
I canāt provide more information because I donāt use it currently, but at least you now have a keyword to assist you in future searches.
Please also note that RLHF may be considered related.
Thank you for the inputs. I will look into this and the keywords helps me to research furtherā¦
I actually just implemented this (if I understand correctly). You have an Assistant that acts as a public-facing chatbot and then have the option for staff to ātake overā.
Yeah, it doesnāt play well.
I basically had to make a shadow copy of the conversation, completely defeating the purpose of having stateful threads.
I also cannot return the user to an Assistant (in my case the Assistant can interact with the page but the user may want to contact us for human support) so I treat it as 2 separate conversations, but still need to have the assistant conversation for context.
TL;dr it sucks, is messy & the assistants framework was clearly not built with this in mind.
We are planning to do it in the same way. To store the copy locally and pass it to human agents for context. As of now only way is to keep a option for the end user to switch to human agents if they are available. But my thought was if there is a way to switch to human, when assistant cannot answer from the knowledge base, without end user input.
How can GPT know if GPT doesnāt know.
You can prompt it to not lie and make up stuff.
But i guess I can use unction calling and write a logic for ending up bot and taking over to Human, we are working on this mode.
I added this to my Chatbot a while back.
The system automatically responds to a requests to escalate and sets up a PM with Customer Services:
It will also do this if the User appears to be getting angry.
(Itās been refined since that PR)
Your commit was more helpful to me for understanding how function calls should be structured than any documentation Iāve come across so far. Thank you so much for sharing this.
![]()