Create New Prompts
Last updated
Last updated
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!
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:
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
To test your prompt, follow these steps:
Choose an LLM. In this example, we used "mistral-7b" as our LLM model.
Key in the desired input for each of the inputs you have created.
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!
Type "Character 1" at the navigation bar and press the "Save" button. To go back to the main dashboard, press the home button.
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.
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:
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!