Lorebooks 101

the simple, no coding required version

I'm not a pro

Please note that I'm not a pro, I'm just sharing the knowledge I aquired while trying to put my own stuff together. I do NOT know everything.

Table of Contents

About Lorebooks

The guide that was shared mainly talked about how you can influence a character's behaviour. Frankly, I didn't understand a thing lol. I'm not saying the guide was bad, don't get me wrong, I'm just saying that I personally didn't understand, so I went and tried to figure it out by myself. I used lorebboks for my personal settings. Some of my universes are lore-heavy, and it would've been too many tokens for the AI to handle. I created entries for places, organisations, etc. That's what I can talk about.

Create New Script

Once you click on 'Create New Script', you can give a name to it (personally, for my settings I usually just go with 'XY LOREBOOK'), then you can chooce the script type. If you're new to lorebooks, like me then I recommend choosing the 'lorebook' option. This guide is specifically for that option! It's much easier to handle, and you won't have to go all Kim Possible on it.

After the script type, you can choose a theme that you either like best or feel like would suit best for your universe, then give a short description about the setting. Some parts of it will be visible below your bot if you linked the lorebook to a character.

Settings is relatively new, its purpose is that when you start chatting with a bot that is linked to a lorebook, it controls when the script will come in during chatting with them. It's on a scale of from 1 to 10, the default being 3. You can play around with that if you want, I sometimes set it to one.

Then click on 'Create Script' and voila. You have your first script.

Creating Entries

There will be an empty entry there for you on default, you can edit that one for your first one. Later on, you will have to click on 'Add Entry' to create a new one. You always have to make sure that the box next to an entry is ticked in if you want the information in the entry to be included. If the box is red with a tick in it, then it is active, the information will be included in chats. I'm not aware if there are any limitations on the number of entries that can be created currently.

Category

When choosing the category, or the type of entry/information that you will be adding to your universe, you will be faced with 9 options: Other, Character, Place, Item, Spell, Letter, Background Info, World Info, Rule.
Personally, the ones I've used was World Info (for a general description of the setting), Place (to describe a city, club, school, etc.), and Other (for everything else I felt like it doesn't necessarily fit into any categories, like gangs, other organisations like corporations, etc.).

**Basically, category allows you to categorise what sort of entries you have, and it helps you organise your lorebook according to that.

Entry Name

Pretty simple, you can name your entries to help you see what the specific entry is about. So, for example, if you have a city in your universe named Nighthollow, then I recommend you naming the entry about it 'Nighthollow' instead of 'Random Town'.

Comment

It's useful if you want to add a short blurb about the entry itself. For example, if you want Nighthollow in your setting to be the main and most important city, then you can add something like 'main city' for yourself to easily see what's up with that one.

Constant

There's an option that says 'Always Include This Entry'. I can only speak from personaly experience, I chose this option for entries that was supposed to be basic information for all of my characters that would be linked to the lorebook. It worked for me in my chats, personally.

If you don't want an info to be included at all times, then it will be triggered by specific words, which I will mention in the next section.

Keys

If my understanding is correct, keys will be the ones that will trigger the activation of entries if you didn't choose the 'Always Include This Entry' option. Which means that specific entries can only be activated if you use words in your reply to the bot that you used in the keys. Yes, in your response. Not the bots. It's not convenient, but it is what it is. Let's say, you don't want everyone to know about the old town that was buried under Nighthollow, which was named Oldburrow. What you will do is to write specific words that you want to trigger the entry about Oldburrow. You don't want it to be included at all times, so you have to use the magic words. For example, you will add Oldburrow, old town, etc to the keys. It will only activate to those.

But, again, there's two more setting you have to take into account if you didn't go with the 'always active' option:

Case Sensitive means that you have to use the words in your response to trigger the entry exactly as it is written in the keys section. Otherwise, it won't work. For example, you wrote 'oldburrow' instead of 'Oldburrow' in your keys, but in your response you use Oldburrow. Yup, it won't work.

Match Whole Words means that it will only work if the words match the complete word itself. The example set there is perfect, liking won't trigger the entry if you set king in the keys sections to trigger it. Basically, it won't accidentally get triggered if your response partly includes a word from your keys section.

Content

Content is the heart of your entry. That is where you add the lore itself. Let's go back to the Nighthollow example. If you make an entry about a town called Nighthollow, then in content you will describe everything that is to know about the place. When was it founded if it's important lore-wise, notable locations, that the university which most of your characters attend is located there, etc.

Note, that I read somewhere, no idea where, that scripts do better with relatively shorter entries. That would especially be useful if you use JLLM, because we all know that the LLM's memory is not the best currently. So as long as you're not throwing an essay in there, you should be fine. Personally, I have slightly longer contents and some are shorter. During chats they worked fine, but I also have to clarify that I use proxy to chat.

Depth

Basically the same as Settings when you were creating the script. If you want to leave it on default, then you shouldn't change the number that you already wrote in that section. However, if you left it on the default 3 in the settings, and you have an entry that you want to come into play earlier or later in a chat, feel free to change the this number either to lower or higher number, depending on your preference.

Activation Conditions

You have two settings here: Min Messages and Probability.
Both are explained under the settings, min messages control after how many messages will the entry be activated, and probability sets the possibility of activation. If your probability is 100%, then it will definitely will be activated if the conditions are set for it (either constant or key matching). If it is lowered to 50%, then there's 50% chance of being activated if the conditions are right, and 50% of it not being activated during a message.

Assign to your Characters

Again, thankfully something simple again, you can simply add that character/those characters that you want to be linked to your lorebook. Let's say, you have Jimmy, who's the mayor in Nighthollow. Then, you want to add Jimmy to the lorebook that is either about Nighthollow, or has Nighthollow in it as a setting.

Careful though. If you add Jimmy, who's an already published character, to a half-done lorebook, then that obviously wouldn't be optional. So, it's not a problem with a private bot. But I recommend you completing the lorebook first, in case you want to add it to a public character. You can always add entries later if you want to expand your lore, that shouldn't be a problem.

FAQ
  • Q: Do I have to include a short version of my setting in the Character Description if my Character is attached to a Lorebook?
    • A: In my experience no. The lorebook works perfectly when it comes to knowledge about your setting without being included in the character description. Also makes things token-friendly.
End Note

As mentioned above, I'm definitely not a pro. I just wanted to share what I managed to figure out on my own in a hopefully more understandable way. As I use the features more and try to experiment, I will learn more stuff and may expand this guy. Please don't be afraid to ask question though, I'll try to help if I can!

Much love, Demon

You can find my links HERE, on my personal Carrd.

Edit

Pub: 27 Sep 2025 12:02 UTC

Views: 114