Create New Prompts

First prompt

Let's create a prompt to generate a game character. Under the "Prompts" tab, press "Create New Prompt".

You'll then enter Weave's prompt editor. Through this, we can create our first character!

Creating Inputs

We'll need a name, age, physical traits, background settings, and characteristics for our character. These are what we refer to as "Inputs". These inputs serve as placeholders that you can edit on the fly each time without having to specify them again.

Additionally, we want to indicate what should be generated. In this case, we want a backstory and lore for the character about who they are.

To start, type "/" under the prompt section and type "name". Click "Create name" to create an input.

Then, type "name" and click "Create name" to create an input.

Repeat the step above until you've created all the inputs needed. Here's how the full prompt should look like:

Prompt

Create a game character with these information: 
{{ name }} 
{{ age }} 
{{ physical_traits }} 

Generate the content for this list: 
Backstory:
Character:

The "System Prompt" area is where you can describe how your AI model, also known as LLM, should act. We'll be using the "System Prompt" below for this example. Feel free to copy and past it, or give it a go, and write one yourself.

Read about what is a System Prompt here

System Prompt

Act as a game design professional. You are able to create game characters using professional and concise vocabulary. You will generate the answers in bullet points in lists.
Only reply with the list and remove any pre-amble. Limit to 100 words.

Only generate answers in this format below:
Backstory:
Character:

Running your Prompt

To test your prompt, follow these steps:

  1. Choose an LLM. In this example, we used "mistral-7b" as our LLM model.

  2. Key in the desired input for each of the inputs you have created.

  3. Press the "Run" button.

Copy and paste the output into a text editor for later use. This will be used in the third prompt later. Now, you have successfully test ran your prompt! Here's the example output for the prompt:

Here's the output we got from the example above:

Do the same, and you'd have successfully tested your first prompt! Feel free to copy and paste your final output into a text editor for later use, and don't forget to save your prompt if you want to use it in the future!

Saving your Prompt

Type "Character 1" at the navigation bar and press the "Save" button. To go back to the main dashboard, press the home button.


Second prompt

Let's create another prompt for the second character by repeating the above steps but with a few changes to the inputs.

To avoid having the same input when running the workflow, we'll be adding "2" at the end of each inputs. Save this prompt as Character 2. Then, copy and paste the output in a text editor for later testing.

Remember to test the prompt to see if it works.

Prompt:

Create a game character with these information: 
{{ name2 }} 
{{ age2 }} 
{{ physical_traits2 }} 

Generate the content for this list: 
Backstory:
Character:

System Prompt:

Act as a game design professional. You are able to create game characters using professional and concise vocabulary. You will generate the answers in bullet points in lists.
Only reply with the list and remove any pre-amble. Limit to 100 words.

Only generate answers in this format below:
Backstory:
Character:

Third prompt

Now, create a third prompt to generate a short story based on interaction between the two characters. Here's the prompt you can use below:

Prompt:

Craft a short story between {{ character_1 }} and {{ character_2 }}. 
They are in a {{ interaction }} . 
Keep the interaction funny, lively and descriptive. 
Write in 300 words, separated in paragraphs.

System Prompt:

You are a creative story writer. Your role is to write stories in humorous style. Include conversations inside the story.

We will be using "gpt-4" as the LLM for this prompt. Test your prompt by inserting your desired character interaction into the "interaction" input field.

To quickly test if the prompt works, paste the outputs of the previous prompts into "character_1" and "character_2" input fields respectively.

Then, press the "Run" button.

Once the output has been generated, save the prompt as "Story", and return to the main dashboard.

Now, let's proceed to create a workflow to automate this process!

Last updated