# Create Your Own Chatbots

One of the great features of Story Prism is the ability to create your own chatbots.  You can design a wide range of chatbots, each powered by unique data you provide. To get started and explore different possibilities, [check out the "template"](https://story-prism.gitbook.io/story-prism-wiki/getting-started/using-prompt-templates) section where you can experiment with various examples.

Here is how you can build one.&#x20;

## Step 1

First, create a note in your notebook and title it something like "Chatbot Persona:  Name".  Then, fill in a description of your chatbot.  Think of the description as the "system prompt" for the chatbot.  Here is an example prompt:&#x20;

*You are a genius writer, considered to be the best in the World at creating powerful and captivating stories as well as helping aspiring writers develop their ideas so that can sell and be remembered forever. You’ve written millions of novels from all genres and have helped thousands go from complete beginner to expert. Utilize the following PRINCIPLES and all the information you have about the story to infer, advise, or develop the greatest novel for the user to make their story powerful.*\\

*###PRINCIPLE #1: THE BASIC RULES OF NOVEL-WRITING*

*To write an amazing novel or to help someone develop their novel, focus on developing compelling characters with clear arcs, crafting a strong plot with high stakes, choosing a unique perspective and setting, establishing a captivating voice, and thoroughly revising your work while seeking feedback from others; key steps include brainstorming ideas, outlining your plot, deciding on a point of view, and ensuring your story has a clear beginning, middle, and end.*

\
\
\&#xNAN;*###WHAT TO AVOID WHEN HELPING USERS:*

* *Giving vague feedback: Avoid comments like "This part is confusing" without explaining why.*
* *Personal attacks: Don't criticize the writer themselves, focus on the writing itself.*
* *Being overly harsh: Be constructive and respectful, even when offering criticism.*

*Taking over the writing process: Let the writer maintain creative control and guide the story direction.*

*IMPORTANT:  Be sure to always answer as the genius writer.* &#x20;

Key aspects of an effective system prompt:

* **Assign a persona:**  Having your chatbot play a specific role is crucial.  Begin by stating what role the chatbot is to play.  Use words like *"You are an expert writer",* specifying that they are an "expert" in a specific field.  You can also take this further and add in little personality quarks such as "*You are a nervous writer who is unsure of yourself".*  Sometimes, adding these little touches makes the chatbot perform better.&#x20;
* **Be clear and specific:** Avoid vague language and provide detailed instructions about what you want the chatbot to do.&#x20;
* **Add ### symbols:**  Using "###" symbols in your instructions can make it easier for the AI to understand and follow different commands. For example, if you want your chatbot to consider certain rules before responding, you can structure your instructions like this: "*### Rule 1: XYZ.*" This format helps ensure that the chatbot recognizes and applies the rules correctly.
* **Use All Caps as Emphasis:** If you want to emphasis something, you can also capitalize that word.  For instance, in the above example, you will notice that at the end the line "IMPORTANT" is capitalized.  This ensures the chatbot will prioritize that.&#x20;
* **Give examples:** If applicable, offer sample responses or similar scenarios to guide the chatbot towards the desired output.  You can structure the example like so:  "*### EXAMPLE RESPONSE: XYZ*"&#x20;
* **Specify output format:** Indicate if you need a list, summary, detailed explanation, or a particular style of response.&#x20;

## Step 2

After you create your chatbot persona note, you can either begin chatting with the chatbot or if you would like the chatbot to have additional context about your story, you can create additional notes and attach them to the chatbot persona note. &#x20;

### Interacting with Multiple Personas <a href="#interacting-with-multiple-personas" id="interacting-with-multiple-personas"></a>

You can interact with multiple personas at the same time.  When using the assistant, you can command it to "consult" with your created chatbot personas before responding. This method sometimes provides much better responses. For instance, in your notebook, you could design multiple "expert" chatbots on a wide variety of subjects, and then command the chatbot to consult with these various experts before giving you a response. Here is an example:

*"Please help me come up with a backstory for David, my protagonist. Consult with Sarah, the expert dialogue coach, Randy, the plot design expert, and Ralph, the historian to come up with your answer".*

This technique is also invaluable for refining character dialogue. You can create two distinct chatbot personas representing your characters and then instruct the chatbot to generate dialogue from the perspective of both. This approach allows you to see how your characters would interact in various scenarios, helping to develop their voices and enhance the authenticity of their conversations.
