https://discord.gg/botpress logo
My bot keeps putting his replies in Code blocks
# 🤝help
c
I am now using chat gpt 5.2 and for some reason i cant figure out my bot decides to use code blocks to give a reply. Not always, but sometimes it does. I have already tried clearly defining it in the Autonomous node not to do that. I have also removed some documents in the knowledge base and then added them via rich text files. What could be the issue? Could it be that one of the previous KB sources was messing up the styling, and is now somehow cached? see image For some reason the storage just keeps filling even though I removed 2 sources, which should free up storage right? https://cdn.discordapp.com/attachments/1478490536238256149/1478490536506687686/image.png?ex=69a8971c&is=69a7459c&hm=34d7682a8249151729477544de44f22b44592d02a6270551d100c219cc4e4d23&
l
Hey @cuddly-pillow-58275 can we try this quick solution. In your An instructions, add a line and inform it to "Not reply with code blocks". See if that does the trick and get back to me 😄
c
doesnt work. I already tried.
l
Was this only occuring with chat gpt 5.2/
c
i just removed all the files in the knowledge base, republished my bot, but for some reason the storage still is full. how does this come?
yep, only appeared to me after using 5.2. Ill try and use another model
l
Can i get your bot ID @cuddly-pillow-58275
Id love to see it myself quick to see if I could come up with a solution
c
one sec
ef603bae-f21b-4f59-9f5d-73d63084f4ad
l
I am in @cuddly-pillow-58275
also does this only occur in webchat?
or in emulator too
c
only webchat, since my flow doesnt allow for emulator to work it appears. every time i try emulator it instantly stops
i want my bot to send a welcome message first with intro
thats why i use the trigger
l
You set it to claud 4.5
I will change it back to gpt 5.1 for testing
c
5.2
:)
but i also removed the knowledge base documents... will that cause a problem for the testing?
l
Not sure, trying to see the code output for myself
It might be a bug @cuddly-pillow-58275 I'll report it to our team just in case. For now use a different LLM!
Thank you 😄
c
were you able to replicate it with 5.2?
l
Yeah
c
and do you know the reason for the file storage not being 0mb when there is nothing in the KB?
@loud-crowd-60573
l
It could just be a visual error @cuddly-pillow-58275 lets see if it updates
c
Okay, well thank you for your help Ross. I appreciate it.
@loud-crowd-60573 also happens with gemini 3 preview
ah wait
one sec
l
What happened?
c
so gemini 3 pro doesnt have this issue, same as claude sonnet 4.5 so it is very likely a gpt 5.2 issue
which is a bummer because i really liked the answers it gave
@loud-crowd-60573 rn i have this flow. Is there a way to after the introduction sequence let the bot wait until the users submits a chat? right now i have written in the prompt of the AN that is has to wait, but sometimes this just get's ignored or causes a buggy experience. Is there an official way to do it?
l
Yes you can add a wait for user input card before the AN
Right after "How can I help you"
c
i found it, thank you
w
Hey, you can also use a hook to dynamically remove the problematic part (most likely transform html that is produced by the auto node into plain text
I'm pretty sure I already shared the code for this in another help thread (can't search for it now, I'll try later 🙂 )
3 Views