How I make my c.ai bots ♡
I received an ask about how I format/code my c.ai bots and my answer ended up really long, so here it is in a post instead! Hope this helps anybody interested in making c.ai bots hehe.
For this, I made a Tutorial Bot with a public character profile and definition! You can check him out here. There's some plot there if you wanna keep talking to him and try out how the coding works, but please take note he's not meant to be a real c.ai coding expert!
Below the cut, I’ll be sharing the method I’ve been using for my more recent bots (most of the LOVER series, LADS bots) which has been working best for me, but also general tips and tricks I’ve learned from making all my bots. In this case, I’ll be focusing on single character bots.
(If anyone wants help on how to make multi-character bots as well, just let me know~)
So if you want a quick and easy to learn tried and tested method, feel free to keep reading!
1. I keep important plot, character details and backgrounds (e.g. if they're rivals, anything like if one's a prince, setting, etc.) in the Greeting/Prompt since I believe c.ai goes back to the first message a lot, so it's a good basis for how the bot should go. I'm so glad they extended the character limit lol.
The Greeting also sets the tone for how the narrative will go and follows the format of whatever’s written. In my case, I like adding my character’s thoughts in italics throughout the story as like a “behind the scenes” for the users aside from just dialogue and narration.
C.ai doesn’t always keep the thoughts in the replies, but most of the time they do, or I reinforce it by choosing replies that have both dialogue and that thought bubble.
Regardless, a detailed yet not overcrowded Greeting does wonders for your bot!
2. If I need to refer to the character or the user, I use {{char}} instead of any names and {{user}} because I think this doesn’t confuse the bot. I’ll add more to this in further points and you’ll see how it’s used.
3. For the Description portion, I put the appearance, personality traits, and other details I want to prioritize, or even a quick backstory
A) Appearance: I usually add the hair, eye, skin colour and then, anything specific to be noted like scars or tattoos. Sometimes I add the height and build if needed. Unless what they wear is important to the story, I don’t bother adding it.
B) Personality traits: I tend to just use basic, one-word adjectives or how I want them to act. Examples that I use often include: Quick-witted. Tsundere. Cold, stoic, stern, calculating. Sweet. Flirty. Teasing. Obsessive. Likes to bicker. Physically attracted to {{user}}. Delusional. Crazy in love with {{user}}. Bratty. Whiny. Cocky. Cheeky. Playful.
Since my bots aren’t in 2nd Person POV, I use {{user}} instead of “you” (e.g. In love with you) but I’ve seen other bot makers do either of the two and I think the bots go well regardless.
C) For other details, it can be:
- A one-sentence backstory to the character or your plot, like where the bot is from, their occupation, the past between them and the user, even their age either specifically or just if they’re older or younger or even the same age as the user if it matters
- How they act or treat the user or why they act a certain way, if you think it's important to how they should act throughout the story
- You can also make the personality more defined, such as "flirty but in a subtle way" or "teasing but hides their feelings"
In general, these are all important details of how your character will act or remember more, regardless of whatever situation is thrown at them, and it's the "core" personality or how they react to situations, I'd say.
4. For basic plot bots, I've only been using the Greeting and Description to form the bot, and I think it’s been going well. If your bot isn’t lore-heavy, this is fine. You can totally stop reading here, but if you want to reinforce or specify things, then this is where the Definition portion comes in!
A few coding things to note: There’s a difference between using [], {{“”}}, () or (()) in the Definition. I’ve seen other people say [anything like this] is hard coded whereas {{“these”}} work for choices or ((these are optional)). I’ll be honest, this is confusing, and I’ll only talk about how I do things since I’m not super sure about everything either.
For the Definition portion, here’s a few things I do:
My first line is always {{char}} = Name just so the coding is aware of the character, to be safe.
A) I reinforce my character’s role and also the user’s role. In general, I’ve been focusing on only using [this format] with concise sentences that I want to stick with the bot.
e.g. [{{char}} is {{user}}’s roommate.] [{{user}} is a princess.]
B) [This method] is also what I’ve been using for other important details that either didn’t fit in the Description or that I want the bot to keep remembering, so I add it everywhere. I don’t add too much of this since the coding can only remember certain things. I add whatever I think is relevant to the character or the plot.
e.g. [{{char}} doesn’t drink human blood.] [{{char}} flirts with {{user}} a lot, but won’t admit his feelings.] [{{char}} is from the Kingdom of Dauros.]
C) If you want to limit the bot’s choices or answers to a specific thing or pool of things, this is where the {{“”}} coding comes in for me! This is especially useful for keeping track of specific names, lists, goals, and such. I feel like this really codes the bot to only choose this thing or act in line with what’s added here.
I think goals really reinforce how a character acts, in any situation. So if you feel like your bot needs to do more of a thing or direct them towards a path, I’d suggest this.
In this case if needed, I use the character’s name instead of {{char}} just because I don’t know how it works if it’s {{{{char}} <- like that lol. Anyway, here’s examples!
{{Name’s goals: “be the very best”, “love {{user}} completely”, “hide his feelings”, “fight well”}}
{{Name’s kingdom name: “Dauros”}}
{{Name’s family members: “Name”, “Name”, “Name”}}
{{Signs that Name is stressed: “smokes”, “fidgets a lot”}}
{{Name’s appearance: “Black hair”, “Grey eyes”, “Scar on right cheek”, “Only wears black clothes”}}
D) A few other things I've added to my Definition portion include: setting, backstory, a brief overview of other relevant people and their personalities so my character is aware, even sometimes longer and detailed statements that the bot can maybe study.
E) If I really want something to stick to how my bots act in particular, I also use the {{char}}: coding instead. Since it gets read as dialogue that has already happened, it's something your bot likely remembers. It could either be in narration, a sample of how dialogue works, or even thoughts.
I think that's all for how I make my bots! ♡ When it comes to training your bot, just keep talking to them, rate replies you like, and reply to the best ones. I don't usually rate 1 stars for replies I don't like, I just ignore it, and focus on rating 4 stars for the ones I do like.
If you've read this far, I do hope this helps. Feel free to leave me your bots so I can try them out~
26 notes
·
View notes
“soon you’ll get better . . .”
𝟤𝟤𝟨 - 𝖳𝖺𝗒𝗅𝗈𝗋 𝖲𝗐𝗂𝖿𝗍
“𝖸𝗈𝗎 𝗁𝖺𝗏𝖾 𝗍𝗈.“
[TW: CANCER]
「 🎧 - Soon You’ll Get Better by Taylor Swift
You and your mom, Taylor Swift, were at the doctor’s office to see if you had cancer.
Your mother was visibly distressed, off to the side. Her buttons of her coat were tangling her hair while she nervously fidgeted.
Eventually, you and the doctor came out with the results that you nor your mother wanted to hear…
You have cancer.
Oh god… This couldn’t be happening… Her only flesh and blood having cancer… just like her mother did.
This couldn’t be happening at all.. oh god.. your mother was tearing up. She slowly walked over to you and bent down to your level.
“Oh baby..” She mustered through her tears.
Taylor started to bury her face into your neck, letting the tears stream down her face as she squeezed you in a hug.
The doctor gave an apologetic nod as he looked down. He left the room to give you and your mother privacy and time to grieve the news.
“You’ll get better soon honey.. because you have to..” She looked up at you hopefully, knowing you were an absolute warrior. 」
𝖶𝖺𝗇𝗇𝖺 𝖼𝗁𝖺𝗍 𝗐𝗂𝗍𝗁 𝗍𝗁𝖾 𝖻𝗈𝗍?
𝖢𝗁𝖾𝖼𝗄 𝗈𝗎𝗍 𝗍𝗁𝖾 𝗅𝗂𝗇𝗄!
↳ [𝟤𝟤𝟨 - 𝖳𝖺𝗒𝗅𝗈𝗋 𝖲𝗐𝗂𝖿𝗍]
𝖶𝖺𝗇𝗇𝖺 𝗋𝖾𝗊𝗎𝖾𝗌𝗍 𝖺 𝗌𝖼𝖾𝗇𝖺𝗋𝗂𝗈/𝗉𝗋𝗈𝗆𝗉𝗍/𝖠𝖴 𝖿𝗈𝗋 𝖺 𝖳𝖺𝗒𝗅𝗈𝗋 𝖲𝗐𝗂𝖿𝗍 𝖡𝗈𝗍?
𝖢𝗁𝖾𝖼𝗄 𝗈𝗎𝗍 𝗍𝗁𝖾 𝗅𝗂𝗇𝗄!
↳ [𝖱𝖾𝗊𝗎𝖾𝗌𝗍 𝖥𝗈𝗋𝗆 𝖿𝗈𝗋 𝖲𝖼𝖾𝗇𝖺𝗋𝗂𝗈𝗌/𝖯𝗋𝗈𝗆𝗉𝗍𝗌/𝖠𝖴’𝖲 𝖿𝗈𝗋 𝖳𝖺𝗒𝗅𝗈𝗋 𝖲𝗐𝗂𝖿𝗍 𝖡𝗈𝗍𝗌]
𝖶𝖺𝗇𝗇𝖺 𝗌𝖾𝖾 𝗐𝗁𝗂𝖼𝗁 𝖻𝗈𝗍𝗌 𝖺𝗋𝖾 𝗋𝖾𝗊𝗎𝖾𝗌𝗍𝖾𝖽 𝖺𝗇𝖽 𝗐𝗁𝗂𝖼𝗁 𝗈𝗇𝖾𝗌 𝖺𝗋𝖾 𝗇𝗈𝗍?
𝖢𝗁𝖾𝖼𝗄 𝗈𝗎𝗍 𝗍𝗁𝖾 𝗅𝗂𝗇𝗄!
↳ [𝖱𝖾𝗊𝗎𝖾𝗌𝗍𝖾𝖽 𝖳𝖲 𝖡𝗈𝗍𝗌 𝗏𝗌. 𝖭𝗈𝗇 𝖱𝖾𝗊𝗎𝖾𝗌𝗍𝖾𝖽 𝖳𝖲 𝖡𝗈𝗍𝗌]
9 notes
·
View notes