Creating New Prompts

Prompts are the backbone of PromptShiro. Using the workshops feature, users can create test cases to test variations on prompts. Users can create multiple prompts using different prompt instructions, parameter values like temperature or language model, and provider (ie OpenAI gpt-4-32k vs gpt-3.5-turbo).

Users can then run your test cases and compare the results, tweak your prompts, and continue iterating until you have found an optimized prompt setup.

Users can then deploy a prompt so it can be accessed via the API. A deployed prompt can not be deleted unless the deployment is deleted by an Admin user.

All prompts are version-controlled, so anytime you make an edit to a prompt the version history gets tracked along with the user who made the edit and then the newly edited prompt becomes the current version. You can continue to edit a deployed prompt, but the deployment will not change unless you redeploy the current version.

Users can view all version history, share links to each version, and revert any version to make it the current version.

You can watch this short tutorial video to learn more about creating new prompts or read the text version below.



To create a new prompt, click the "Prompts" tab at the top of your screen when logged into your account.

Click the Prompts tab


You'll now be on the Prompts index page which will show you all the Prompts for your team account. To create a new prompt click the "New Prompt" button.

Click a New Prompt


Add a name for your prompt then add the prompt text in the body field. Prompts can contain variables, we use the Liquid template engine to enable this. For example, if you'd like to include a variable for first_name in your prompt text the text might look like this:
Write a welcome letter to {{ first_name }}.
Create a Prompt


You will also need to manually add each of the variables used in your body in the Prompt Variables section, click the "+ Add a Variable" button to add more variables. This will allow you to enter values for the variables later and also run tests to ensure that the variables are included in the prompt body.
 
Click the "Create Prompt" button to save the prompt. 

All users you invite to your team account will have access to the same prompts in the account.

Subscribe to our newsletter

The latest prompt engineering best practices and resources, sent to your inbox weekly.