Hey everyone! I bet you've already tried out tons of different Bots in MyShell's Workshop, right? And maybe you're thinking of creating your very own Bot! Well, besides offering "definitions" to control your character's personality, MyShell's Bot creation system also provides a wide range of voice options. Currently, it supports nine languages (English, Chinese, Japanese, French, Russian, Portuguese, Arabic, Spanish, and German)! If your native language isn't available yet, just be patient for future updates or feel free to reply in this thread with the language you'd like. MyShell will do its best to help you all out!
#Basic Tutorial | How to set the default language of your bot!
1 messages · Page 1 of 1 (latest)
Having solved the voice issue, you might have noticed that sometimes the Bot's response language doesn't match the voice you chose while creating the bot. For example, you set it to Japanese, but the Bot replies in English. This is largely related to your prompt — generally, for the best performance of GPT, we recommend using English as the prompt language. However, this brings another problem, as GPT may misunderstand that you're communicating in English and generate responses in English as well.
So, how do you solve the Bot's output language issue? Typically, you can achieve this in three places, namely the "Definition" and "Advanced Definition" sections on the Bot settings page, as shown in the image below.
Quick Start
- Emphasize the Bot's language in the prompt, like this:
Add the following content at the end of the prompt:
```
Remember:
ALWAYS reply in Japanese. - Emphasize the Bot's language in the prefix, like this:
Always reply in Japanese. Here is my message: - Emphasize the Bot's language in the suffix, like this:
Above is my message, now you need to reply in Japanese:
A Brief Introduction
Understanding how to write prompts is relatively easy, and you'll get the hang of it as you create some Bots~ However, using prefixes and suffixes might be a bit confusing, so let me explain:
Prefixes and suffixes will be added before and after each of your messages, respectively. The final message received by GPT will look like this:
<prefix>Your Message<suffix>
Understand How It works
Now that you know this principle, you can confidently use prefixes and suffixes as tools to enhance your Bot's performance! But one thing to keep in mind is that when your prefixes and suffixes are too long, they might affect the Bot's understanding of what you really want to say. For the Bot, the received information might look like this:
<very long prefix>Your Message<very long suffix>
This isn't ideal for the Bot, so the examples "Here is my message:" and "Above is my message" are used to avoid this issue. Using only the prefix as an example, the actual message sent would look like this:
<part of prefix><Here is my message:>Your Message<Above is my message><part of suffix>
Further Optimization
Of course, there are further optimization solutions, because currently, the prefixes and suffixes still use plain text to prompt user information. If the prefixes and suffixes are particularly long, the results might still be unsatisfactory. We can use tags as separators, such as "<msg></msg>":
prefix:
Always reply in Japanese.
My message are inside the <msg></msg> tag, you need to generate a reply based on that.<msg>
suffix:
</msg>Now you need to generate a Japanese message on behalf of the character
The message sent would look like this:
<prefix><msg>Your Message</msg><suffix>
For GPT, it's much easier to understand the information you want to send, and it will follow your instructions more effectively~