How do I stop the chatbot sidebar from creating âNew chatâ when thereâs been no conversation? I want it to be like on ChatGPT how you canât keep clicking âNew chatâ and have more empty conversation pages appear.
You could set a conditional, on the workflow for the button âNew conversationâ so that it will only run when the last conversation (Do a search for, find the last conversation) is not empty.
You will write RepeatingGroup Message's List of Messages:count is not 0
to that only when
expression. (IF this repeating group is keeping track of the messages of that chat).
Hey man, your solution almost worked. Itâs really close. I did what you said but the only problem is although clicking the New chat button doesnât visually create more conversation tabs, I think it still is creating them because if I spam click it and then try type in a message and press send, the question disappears. It loads though. Any idea on what I could do from here?
Hey mac, I appreciate the reply. Honestly, Iâve been using Bubble.io for 2 days. Iâm trying to create my 1st software so Iâve been watching and copying tutorials.
Iâll explain as best I can what youâve red-boxed is for, and Iâll also put the link to the video + timestamp for a better explanation.
So basically when there are no conversations in the database, the 1st âWhenâ is what initiates the first conversation.
However, if there was already a conversation done, the 2nd âWhenâ doesnât create a new conversation, but still displays the new data (my message I assume).
I re-watched the video and I donât think I made any mistakes.
Hereâs the link to the video (click to 29:30min): https://www.youtube.com/watch?v=Oqs9xgR-MBM&ab_channel=PlanetNoCode
Donât you have a Conversation
or Chat
datatype? You can check if it is really created in the Appdata even after âspam clickâ. Because what you describe might be another problem.
These are my datatypes. Iâm pretty sure this is what youâre asking whether I have or not. I just deleted my conversations and messages so I try again from fresh. Iâll let you know what happens very soon.
Hey again Huseyin, so when I spam click the âNew conversationâ button and then type in and send my message, it disappears. After this I checked to see if the question actually registered in the App data. For both âAll Conversationsâ and âAll Messagesâ, the AI replied to it.
So basically after spam clicking the âNew conversationâ button and sending a new question, the question disappeared but was still answered by the AI and recorded in App data.
Do you think you know whatâs wrong potentially?
Edit/To add on: I deleted all the conversations and messages again. Then I spam clicked before typing my first message. It still didnât show the message I typed and entered.
This means the problem is Clicking âNew conversationâ more than once causes my entered message to disappear. The message still gets replied to (as shown in App data). Even if I start fresh and spam click, the same issue happens.
I donât. The conversation might not be set up to the pageâs conversation properly after creation. The question might not be associated with the current conversation. So, canât know without other things in your app.
Check this example I have created for another forum question: Tests for Forum 9 | Bubble Editor
Okay thank you. Iâll have a fiddle around and let you know how it goes. Thanks again for your help.
Edit: I can see how in âTests for Forum 9â, when I spam click âNew Sessionâ it doesnât affect my message when I enter it. Interesting.
UPDATE
I (with the great help of @hergin) solved the problem I was having. Hereâs what I did:
Instead of having the âOnly when: RepeatingGroup Messageâs List of Messages:count is not 0â in Step 1, I simply moved it to the event/big When box and now when I spam click âNew conversationâ it doesnât affect the question or replies when I press enter.
Thanks for everyoneâs help!
You probably only want to Create a new Conversation when the first message is sent (after all, can you really have a conversation without saying anything?!)
Another way which is reasonable is to use a âtemporaryâ yes/no field on the conversation. Create a conversation, and mark it as temporary. When a message is sent (i.e the conversation is no longer empty), change temporary to no (using a trigger or just a front end workflow). In the repeating group of conversations, only display Conversations where temporary = no
.
This topic was automatically closed after 70 days. New replies are no longer allowed.