Faced with two problems:
-
If you don’t specify a specific THREAD in the updated OpenAI module “Message an Assistant”, each time you reply, a new dialog is started and the context of the user’s previous reply is not remembered. Each time Assistant says hello as if I hadn’t written to him before.
-
When I specify a specific THREAD and write to the bot from different accounts, then after a while the answers get confused between users + there is another disadvantage of using a specific THREAD, if you do not use it for 60 days, then this THREAD is irrevocably deleted and subsequent messages will cause errors.
In the legacy module if you didn’t specify a specific THREAD, it didn’t forget the context and continued to respond in the dialog, + I specified User name in the OpenAI module and there was no confusion in the responses. In the new module now I am facing such problems.
Help to solve this problem @vendy @Michaela
You’ll need to store the thread ID for each new user who messaged the bot, and fetch the thread ID for the user ID when a new message is received, so that each user has their own thread.
For more information and screenshots of setup, see one of the linked posts in Struggling with “Thread” logic for OpenAI Assistant in Telegram bot - #2 by samliew
samliew – request private consultation
Join the unofficial Make Discord server to chat with other makers!
1 Like
I didn’t find a solution in the link you provided. Read carefully, I wrote above that if I do not specify THREAD, then it is every time new for a new user message, respectively the dialog every time is reset, in the settings make it can only change the developer. If I specify a common THREAD for many users who write to me in the chat, then OpenAI gets confused in the dialogs.
I have of course instructed the prompt assistant to save the context with each user and pay attention to the user name in the message, but I don’t know if this will lead to successful testing. Today I’ll be testing it en masse in our company from different accounts. We’ll see what comes out of it.
- Data store: fetch thread Id for user
- Use Thread ID if exists
- Save Thread ID if did not exist yet
This link was literally there
samliew – request private consultation
Join the unofficial Make Discord server to chat with other makers!
1 Like