
GoldAnnie's Guide to Janitor: Tips to Improve Roleplay and Fix Issues
LorebookAbout this script
・・
GoldAnnie's Guide to Janitor:
Tips to Improve Roleplay and Fix Issues
(not only) for Beginners
・・
Date of creation: 27. 11. 2026.
Table of Contents:
1. The bot keeps speaking for me!
2. Understanding Reply Generation and Optimizing Tokens
3. AI Behavioral Quirks
4. Common Issues and How to Fix Them
5. Additional Tips to Improve Roleplay Experience
6. Resources / Links
・・
Starting right off the bat with the most common issue:
1.) The bot keeps speaking for me! / The bot is controlling my character!
This can happen sometimes (just AI being AI) and is NOT the creator's fault (unless the first message the creator made also speaks for you).
First of all, do not respond to such messages. If you do, the bot is more likely to keep speaking for you.
Solution — Treating Symptomps:
Simply reroll the message.
Edit the message and delete the part that speaks for you.
Solution — Preventative Measures:
Write longer replies, so the AI has enough content to respond to without having to assume your character's actions.
The most effective solution: Utilize advanced prompts, which affect all of your roleplays. Positive sentences (do-s) work better than negatives (don't-s). For example, I have this bit among my advanced prompts:
"Refrain from acting for, speaking for, or describing the thoughts of {{user}}; instead begin and end each response with dialogue or actions for them to respond to."
・・
2.) Understanding Reply Generation and Optimizing Tokens
・・
Before generating each reply, the AI receives a prompt, and generates the bot's reply based on that prompt.
The size of the prompt can go up to the context limit, which is the AI's memory capacity. (Janitor's default AI (JLLM) has a context limit of 9000 tokens, which is is approx. 6500 words. Other models or Janitor+ can have higher limits than this.)
After the context limit is reached, information begins to get discarded. Discarded information no longer gets sent to the AI, and therefore cannot influence the bot's replies. However, if enough room is cleared from the memory (as in, if enough tokens are deleted), then previously discarded information will fit back inside the context again and influence replies once more.
Certain parts of the prompt are set to be temporary, these are discarded first. That's perfectly fine.
Other parts of the prompt are set to be permanent. If everything is done correctly, these should never get discarded.
If the size of the permanent information starts getting close to the context limit, there will be no room for temporary information. In this case, you will notice that the AI becomes much more forgetful, or, in extreme cases, its replies will become nonsensical.
If the size of the permanent information exceeds the context limit, then information that should be permanent will start getting discarded alongside all the temporary information. At this point, the bot is unusable.
Good news is, deleting enough tokens from the permanent information will instantly eliminate these issues.
・・
Let's see the entire prompt the AI recieves (in order; as of my last testing on 04. 06. 2026):
Advanced Prompt / System Prompt —— your input; permanent tokens
Bot Personality ——————————— fixed input; permanent tokens
Bot Scenario ———————————— fixed input; permanent tokens
User Persona ——————————— your input; permanent tokens
Bot Example Dialogs ———————— fixed input; temporary tokens; lowest priority
Memory: Summary of your chat ———— your input; permanent tokens
Bot Initial Message / First Message —— fixed input; temporary tokens; low priority
All Chat Messages ————————— your input; temporary tokens; priority increases from oldest to newest
The very last chat message ————— your input; permanent tokens; highest priority
SYSTEM NOTE: Forbidden phrases — your input; permanent tokens
fixed input — only the bot's creator can change these
your input — you can add or remove tokens from these any time
If I'm not mistaken, while using JLLM, there is also an additional built-in system prompt which you cannot change. It's probably placed at the very beginning.
Also, lorebook entries are also treated as permanent information, but are only active for the duration of the message depth, which is determined by the lorebook creator. The default placement of lorebook entries is right after the Memory, but the creator may decide to insert them elsewhere.
So, the AI forms its reply based on all the elements listed above, with the beginning and the end of the prompt having larger impact on the generated reply.
Priority indicates the discarding order when the prompt has reached the context limit:
Example dialogs are discarded first, then the intitial message, then the chat messages between you and the bot, with the most recent messages being preserved for longer. This is where the discarding should stop, because afterwards come the permanent tokens... I'm not sure in what order, but at that point the bot is already "broken" anyway and should be fixed. However, the very last chat message being the highest priority means that it will virtually never get discarded.
・・
So that explains why bots with large token sizes aren't necessarily better.
Bots that find the right middle ground between enough detail and too many tokens tend to work the best. However, the acceptable token size also changes depending on whether you're using the default JLLM or a different AI model.
Also, different creators will consider different token sizes "optimal".
My recommendation for the best roleplay experience:
If you want to roleplay for longer than 10 messages, then don't let the permanent token count take up more than half of the context limit. Let your ongoing roleplay (the chat messages) consume the majority of those tokens.
What token size I consider optimal for bots:
Most of my bots have 1400-2500 permanent tokens by default (bot scenario + personality), and I aim to never exceed 3000 permanent tokens. This gives the user enough room for their advanced prompts, persona description, chat memory, and the chat messages as well, even while using JLLM with its 9000 token context limit.
And if you happen upon a bot that has close to, or more than 9000 permanent tokens by default, then you can be sure that bot is fully unusable with JLLM. In this case you cannot fix the issue, only the bot's creator can.
・・
3.) AI Behavioral Quirks
・・
🧠 Knowledge vs Hallucination
All AIs have their own "in-built" knowledge: information they are constantly aware of even if it is not included in the prompt. Some models are more knowledgable than others, and you can only find out through testing what exactly a given model knows by default. This in-built knowledge is useful, because you don't have to explain to the AI what it already knows. For example, that snow is white.
And with your prompts, you can overwrite the AI's default knowledge. Put into the permanent prompts that snow is purple in this world, and from now on, the AI will always describe snow as purple. When describing more elaborate things, wording is very important, because the AI can easily misundrstand you. If you're making a bot, it is worthwhile to test in chat whether it actually works as you intended.
If the AI doesn't know something by default, it will start "hallucinating": assuming what is most likely, or, making up something at random. For example, if there was a model that wasn't aware that snow is white, it would randomly assign a different color to it every time you reroll the reply. And once this randomized result is part of the prompt, the AI will consider it a fact as long as it remains part of the prompt.
It's worth remembering that sometimes the AI can still get get confused about or misremember things it is supposed to know, whether that information is there in the prompt or not. Some AI models are more prone to this than others. You can reduce the likelyhood of such mistakes by shrinking the prompt or shrinking the context limit itself. (Just don't shrink it so much that important information falls outside the context window.)
・・
♻ The AI repeats patterns
The AI tends to generate replies that are similar to previous messages, especially if you rated those messages high. As a result, different patterns can emerge during the chat. Therefore, if there's anything you don't like about a message, it can be a good idea to reroll or edit that part out before you reply. Of course, if you open a new chat, the behavior will not carry over.
・・
🎯 How to prompt effectively
When you want to influence AI behavior, it is much more effective to use positive statements (do-s). (This applies when you're making a bot, as well as when you're roleplaying with one.)
While negative statements (don't-s) can work too, they are much less effective, and can sometimes even have the opposite effect of what you wanted to achieve. It's like talking to a toddler: You tell them not to jump on the bed, they WILL jump on the bed. You gotta tell them what they SHOULD do instead, and be specific. (Like, jump on the trampoline.)
Examples:
ineffective: "{{char}} isn't polite and doesn't help people."
effective: "{{char}} is rude and ignores people who need his help."
ineffective: "OOC: Don't make {{char}} talk so much!"
effective: "OOC: {{char}} must speak 5 sentences maximum, then must wait for {{user}} to respond."
・・
4.) Common Issues and How to Fix Them
・・
You don't like the bot's messages? Are they too long or too short? Are they out of character, boring, too poetic or straight-up nonsensical? Does the character keep on talking and talking without letting you respond?
Do the bot's messages keep cutting off mid-sentence?
Does the AI keep misunderstanding you? Does it keep making mistakes? Does it keep forgetting stuff from your roleplay?
Let's see what tools you have in your arsenal and how you can use them to fix or prevent these issues:
・・
🔄 Reroll the Bot's Message
If you didn't like the previous message or are looking for something more interesting or better fitting, this is always the easiest solution.
・・
📝 Edit Messages
You can edit both yours and the bot's messages.
You can edit out the stuff you don't like, correct mistakes, delete just a few sentences or several paragraphs, or combine the best bits of other messages you've rolled.
If the bot's message is too long and you want to intervene with your character in the middle of it, just delete the rest of the bot's message and write your reply from there.
If you notice the AI keeps misunderstanding something, it is useful to edit your own message and clarify the necessary information.
・・
⭐ Rating the Bot's Messages
5-starring a particularly good message can help encourage the AI to generate similar messages in the future. Just make sure you edit out the parts you don't like first.
As for the messages you don't like, I recommend simply ignoring them.
However, if you do use low ratings, make sure you first edit out all the good bits you actually liked.
I can't confirm for sure currently, but I think a 1-star rating is actually considered a higher rating than not rating at all. So if you do use low ratings, make sure to also use high ratings on the messages you like, so the AI has an idea what you prefer.
・・
🛠 Adjust Generation Settings
Temperature
In general, lower temperatures provide more logical, more in-character replies, while highter temperatures provide more creative or unexpected replies (or, occasionally, complete nonsense).
There's no perfect setting. You have to experiment what works the best for you. Also, your "optimal" temperature setting might be different across different bots you chat with.
Also, keep in mind that different temperature settings work differently on different AI models. And whenever an AI model is updated or changed, you might need to experiment with temperature all over again.
Max Tokens
You can limit the length of the bot's reply with this. For reference, 1 word ≈ 1.4 tokens on janitor.
I recommend setting this to 0, so the AI can choose the length it deems appropriate, and this way the replies will never be cut off.
Context Size
This is basically the AI's memory, and determines how much of your roleplay it can remember.
The default context size on janitorAI is 9000 tokens and you cannot change this (as of 27.11.2026.).
Using extarnal models or Janitor+ will give you access to more more memory, and the ability to adjust context size.
Increasing context size is one way to prevent the AI fom forgetting stuff. But going too high isn't advisable either.
Some proxies allow you to raise context limit up into oblivion (~100k). My personal recommendation, (as of 27.11.2026.), is to keep it under 20k tokens while making smart use of chat memory. This generally produces better roleplay quality and less mistakes because the AI can focus on relevant information instead of processing excessive minor details from dozens of older messages.
・・
💾 Use Memory (summarizing the chat)
This is your best tool to prevent the AI from forgetting things (eg. current circumstances, past conversations, side characters, or the plot itself). Make sure you keep it concise though, and only include the most important stuff from your roleplay. The more memory space you take up here, the less there will be left for your chat messages, which include the most recent information and events.
・・
⚙️ Use Advanced Prompts / Custom Prompts / System Prompts
(These terms generally refer to the same thing.)
Establish rules that apply to the AI's behavior across all bots you chat with. You can basically control everything this way. Writing style, mood, vocabulary, message length, story progression, scene crafting principles, formatting, inserting meta analysis into messages... And probably a lot more things I never thought of.
The correct wording is very very important for these, so I do recommend starting with advanced prompts made by other people, and only making your own if you are knowledgeable about how AIs interpret prompts.
(I will include links to ready-to-use advanced prompts soon.)
・・
📢 Use OOC Messages
As in, Out of Character messages that are exchanged "outside" the roleplay: you step out of your character's perspective and address the AI directly as a fellow observer of the story.
Some AIs respond very well to OOC messages, others may barely react to them.
If it works with the model you're using, this can be a quick and easy way to fix virtually any issue.
You can use them in a similar way as the advanced prompts. For example, reminding the AI not to speak for you.
But, since these are stored only in the temporary memory, they are best used for giving more specialized intructions that are NOT meant to be applied to a entire roleplay, just to momentary circumstances.
For example:
[OOC: {{char}} is hot-headed by nature. Make sure {{char}} responds to provocation with anger rather than humor.]
[OOC: {{user}} currently poses a considerable threat to {{char}}'s safety. Make sure {{char}} behaves accordingly and displays signs of fear consistent with their personality and circumstances.]
You don't always need OOC to fix things though, it's often enough to remind the AI of circumstances within the narration itself.
For example:
{{user}} is still wearing pajamas.
{{char}} and {{user}} are outside now, on the street.
💬 Start a New Chat
Sometimes, during longer roleplays, bots may start to take up behavior patterns that weren't there when you started the chat. This is when you notice that the bot feels off, or even outright "broken" sometimes.
If this behavior is beyond fixing with the tools mentioned above, then there is one more thing you can do: Start with a blank slate by transferring your current roleplay into a brand new chat with the same bot.
First summarize your old roleplay in the chat's memory, then copy-paste that summary into the new chat's memory. Also send this summary as your very first reply in chat. You can give the AI some additional pointers in chat about the current setting to better reconstruct the last scene. And then you can just pick up from where you left off.
・・
5.) Additional Tips to Improve Roleplay Experience
・・
🎬 Pick from multiple Intro Messages
Many bots have multiple intro messages made by the creator. Hit the little arrow at the bottom of the chat to scroll through them.
・・
📚 Add side-characters, background lore, or any other information to your roleplay
If you find the bot lacks certain information that's necessary for your roleplay, or if you want the AI to control additional characters, you can feed it the necessary details yourself. Yes, you need to work for this a little, because you have to think about what information should be included to get the result you want.
The chat's Memory is the perfect place for this, since the AI will always remember it.
・・
🤝 Pre-set backstory or relationship dynamics before you start roleplaying
The less information the creator specified about {{user}} in the bot's definition, the more freedom and flexibility you have regarding your persona. (I create most of my own bots with maximum freedom.)
If given enough freedom, the chat's Memory can be used to describe a shared backstory between {{char}} and {{user}}, and set any kind of dynamic between them. You can go as detailed as you want, or just make it as simple as "{{char}} and {{user}} are in a romantic relationship".
If the bot doesn't have a pre-specified setting in its definition, then that is also flexible at your discretion. Create any setting or AU you want, take {{char}} anywhere you want.
・・
But how do you know what the creator has specified about {{user}} or the setting?
Most creators tell you the necessarry information on the bot's page. The first message might sometimes give you pointers, too.
Still, if available, reading the bot's definition is the safest bet, since this way you can be sure no details were omitted.
・・
Important!
Yes, the chat's Memory can be utilized for lots of things other than a simple roleplay summary, since it's treated as permanent information... But remember that every word you put there consumes tokens! The more you bloat the chat's Memory, the more of your context it will eat up. So keep things as concise as you can, and delete the stuff you don't need anymore.
・・
🧩 Use OOC messages for various purposes
You can do a lot with them and change your roleplay dramatically.
However, like described above, not every model responds to OOC messages with the same effectiveness.
Let's see some examples:
・・
Timeskips
You can do timeskips. Fast forward 2 hours, 2 years, whatever. If you're getting bored with the current events, this can be useful. You can tell the AI what events happened during the skip or let it cook something up on its own.
[OOC: Skip to evening. {{char}} is in a café now.]
[OOC: Skip ahead 5 months. {{char}} and {{user}} have gotten married and have moved to Italy.]
・・
Setting up a New Scene
You can ask the AI to set up a new scene anytime. You can go as vague or as detailed as you want. (If the scene contradicts your previous roleplay story, I suggest starting a new chat for this.)
[OOC: Create an exciting adventure for {{char}} and {{user}}.]
[OOC: Set up a funny scene where {{char}} is trying to learn rollerskating at the park, but the skates are one size too big.]
In case you need a clean slate for your new scene, add this sentence to the beginning of the OOC message:
Disregard the previous scenario.
・・
Rewriting the Intro Message / First Message
This is useful if you don't like something about the creator's original version. For example, you can fix mistakes, change formatting, change the style or tense of the narration, change how the AI refers to your persona, elminate the message speaking on your behalf, or change any other details you don't like.
[OOC: Please rewrite the previous message without changing the setting. Fix all grammatical mistakes. Write all narration in present tense. Always refer to {{user}} in the third person, using she/her pronouns. Focus on portraying {{char}} and refrain from assuming {{user}}'s appearance and actions.]
・・
Including Inner Thoughts for the Character
This can be interesting to roleplay with. Optionally, you can also tell the AI what format to use.
[OOC: Include inner thoughts for {{char}} in every message, using *this format*.]
And if you want this feature in all of your chats, you should put the appropriate instruction into the advanced prompts instead.
・・
Important!
Yes, OOC messages can give you a lot of freedom and flexibility. BUT.
When writing your OOC instructions, try not to contradict the bot's permanent definition! Altough it's plausible that the AI can adapt to a degree if you do, if you start changing fundamental elements, that will only confuse the AI. For example, if the creator described {{char}} as an elven mage, don't try to make them a dwarven warrior. If the creator described a toxic past-relationship between {{char}} and {{user}}, don't try to erase or alter that backstory.
・・
🚀 Use an External Model or Janitor+
The free version of JLLM is all right.
But there are AI models out there with far more memory space, noticably wider general knowledge, much more engaging roleplay behavior, and better ability to follow prompts and keep bots in-character. This last one particularly stands out with high-token bots, multicharacter bots, and bots that have complicated storylines.
So, all in all, other models will likely give you a significantly better roleplay expeience.
External models can be used via API or proxy. You have to set this up first.
Some models you can use for free, others are ridiculously cheap, but there are more expensive ones too.
Some models have filter and don't allow NSFW, so get informed before buying.
・・
I personally have been using DeepSeek for a while now. It's unfiltered and a cheap one, it costs me about 1.5$ a month, and it works much better than JLLM.
(Keep in mind that cost scales with how much you use the model. So someone who interacts with bots twice as much as I do, will also pay twice as much as I do while using DeepSeek.)
I personally haven't tried other models, nor Janitor+, so I can't advise on those.
・・
Note: If a creator hasn't allowed proxy usage with their bot, you will not be able to use external models with that bot. This will be indicated at the top of the screen if you open a new chat. In my experience, most creators allow proxy usage.
You should find proxy guides here.
If you can't find a guide that explains how to set up external models through direct API, my DeepSeek guide might help. (If any of the links in this guide do not withstand the test of time, I'm sorry in advance.)
・・
6.) Links & Resources
Again... if any of the links below do not withstand the test of time, I'm sorry.
This section is a work in progress!
need to include links for:
advanced prompts
Janitor's official user guides:
https://help.janitorai.com/en/category/user-guides-vtspde/
Bot Bio guide:
Lorebook source
Code is private
The creator has not made this script source visible.