Prompt Templates are designed to streamline the process of using the same prompt or sharing a prompt with slight differences. A prompt template is a prompt with placeholders. You can select a prompt template, fill in the placeholders and run the prompt with the model of your choice. This is a great tool if you create a detailed prompt that you plan to use to complete a similar task more than once that may be focused on different content.
Creating Prompt Template
1. Click the “+ Prompt Template” button in the top of the right-hand sidebar. This will allow you to start the process of creating a new Prompt Template.
![Screenshot of the prompt template button.](https://cdn.vanderbilt.edu/vu-URL/wp-content/uploads/sites/439/2024/05/24213232/Prompt1.1-1-1.png)
2. Once you click the + prompt template, a new window will appear requesting information about your prompt.
![Screenshot of prompt template information request.](https://cdn.vanderbilt.edu/vu-URL/wp-content/uploads/sites/439/2024/05/24213233/Prompt1.2.png)
3. Next, you will fill out each of the following fields:
- Name
- Provide the name of the prompt template that you want to be displayed in the right-hand sidebar.
- Description
- Provide a brief description of your prompt template.
- Custom Instructions
- From the dropdown bar, select either the default instructions or a specific set of Custom Instructions.
![Screenshot showing to select either the default instructions or a specific set of Custom Instructions.](https://cdn.vanderbilt.edu/vu-URL/wp-content/uploads/sites/439/2024/05/24213224/Prompt-1.3-2.png)
- Custom instructions create rules structuring Amplify’s response that will be used and reinforced throughout the entire conversation.
- In contrast, information that you include in the prompt section will be used only once (unless you reuse the prompt within a conversation).
- Prompt
- Provide the prompt that you want to reuse, denoting variables with {{variable}}.
- For example, “You are an expert in {{Subject of expertise}}.”
- Another example is the variable {{Source file:file}}, which allows you to include a file upload as part of your prompt.
- Provide the prompt that you want to reuse, denoting variables with {{variable}}.
![Screenshot of an example of a prompt.](https://cdn.vanderbilt.edu/vu-URL/wp-content/uploads/sites/439/2024/05/24213223/Promp1.4.png)
- Once your prompt template is created, any variables you define will appear as places to input information or upload files.
![Screenshot showing any variables you define will appear as places to input information or upload files.](https://cdn.vanderbilt.edu/vu-URL/wp-content/uploads/sites/439/2024/05/24213224/Prompt-1.5-2.png)
- Template Type
- Prompt template will automatically be selected. To create a prompt template, you do not need to change the template type.
![Screenshot showing template types](https://cdn.vanderbilt.edu/vu-URL/wp-content/uploads/sites/439/2024/05/24213225/Prompt-1.6-1.png)
- Note: To learn more about the difference between prompt templates and custom instructions, please visit our FAQ.
- To learn more about creating custom instructions, view our custom instructions guide.
5. Once you have everything entered, review your Prompt Template, then click Save.
![Screenshot showing a prompt to review.](https://cdn.vanderbilt.edu/vu-URL/wp-content/uploads/sites/439/2024/05/24213226/Prompt-1.7.png)
![Screenshot showing the save button.](https://cdn.vanderbilt.edu/vu-URL/wp-content/uploads/sites/439/2024/05/24213226/Prompt-1.8.png)
Selecting and Using Prompt Templates
Once you have either created Prompt Templates or want to use one of the pre-existing prompt templates, you can do so by following the steps below.
1. Find the Prompt Template you want to use in the right-hand sidebar and click on it.
![Screenshot showing where to find your prompt template.](https://cdn.vanderbilt.edu/vu-URL/wp-content/uploads/sites/439/2024/05/24213229/prompt-2.1-2.png)
2. In the popup window that appears, fill out each of the fields with the information you would like to add.
- This window will include options like what model to use and fields to define variables created when the Prompt Template was made.
- Example: Here the option to upload a file is present because that variable was added in the Prompt Template during its creation.
![Screenshot showing fields you can add.](https://cdn.vanderbilt.edu/vu-URL/wp-content/uploads/sites/439/2024/05/24213230/prompt-2.2-3.png)
3. Once you have made any selections or selected any variables, click Submit to have Amplify run the prompt as designed.
![Screenshot showing the submit button.](https://cdn.vanderbilt.edu/vu-URL/wp-content/uploads/sites/439/2024/05/24213231/prompt-2.3-1.png)
4. Amplify will then submit the prompt from the prebuilt Prompt Template (complete with any added variables) to the selected model and produce output as it would from any regular prompt.
![Screenshot showing a prompt output.](https://cdn.vanderbilt.edu/vu-URL/wp-content/uploads/sites/439/2024/05/24213226/Prompt-1.7.png)
Sharing Prompt Templates with Others
1. If you want to share Prompt Templates you have built yourself, refer to our guide on Sharing in Amplify.