# Turn a Prompt into a Template

Here is a sample prompt that we will turn into a [template](https://docs.entrypointai.com/key-concepts/templates) for [evaluation](https://docs.entrypointai.com/key-concepts/evaluation):

{% code overflow="wrap" %}

```
You are a professional email marketer. Review the following email description and write a creative email subject line idea for it that is likely to grab attention. Do not return anything except the subject line.
```

{% endcode %}

### Create a New Project

Go to the home screen and press + to create a new Project.

For the Project description, you can put the following:

> Write email subject lines from email descriptions.

<figure><img src="https://3106255375-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F03h3SC78wyaaTZz7oUet%2Fuploads%2FZvI4R4EmN8VlqGRNTqoo%2Fpage_2.jpeg?alt=media&#x26;token=5e01213f-bcf5-494a-8b54-3f8f50a3ff5e" alt=""><figcaption><p>Create a new project</p></figcaption></figure>

Press "Create" and you will land in a new Project called "Subject Line Writer" or similar.

### Create a Chat Template

Navigate to templates in the sidebar, then press + to create a new template.

Leave the type as `Chat` by default.

In the `system` prompt box, enter our instructions.

{% code overflow="wrap" %}

```
You are a professional email marketer. Review the following article and write a creative email subject line idea for it that is likely to grab attention. Do not return anything except the subject line.
```

{% endcode %}

With the `user` prompt text box selected, press the "New field" button.

<figure><img src="https://3106255375-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F03h3SC78wyaaTZz7oUet%2Fuploads%2FfpeMUjKhqEhQDRBrgAjd%2Fpage_4.jpeg?alt=media&#x26;token=71664f2f-0acd-48d4-bad5-bc16a35c6a29" alt=""><figcaption><p>Create a new field while editing the template</p></figcaption></figure>

For the name, enter "Content Description".  The reference will be populated automatically and the helper text can be left blank.&#x20;

<figure><img src="https://3106255375-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F03h3SC78wyaaTZz7oUet%2Fuploads%2FaSj4YVLNR5UWUrWjn1WF%2Fpage_5.jpeg?alt=media&#x26;token=83bc1cb9-65dd-45c2-9ebb-6f53db7c137a" alt=""><figcaption><p>All you need to do is name the field</p></figcaption></figure>

Press "Save & close".

Now press the button to insert the new Content Description field into your `user` prompt.

<figure><img src="https://3106255375-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F03h3SC78wyaaTZz7oUet%2Fuploads%2FXiblokZcOuorVGudtxNn%2Fannotely_image%20(5).jpeg?alt=media&#x26;token=41813903-a724-4a6b-a129-c64bce5cac63" alt=""><figcaption></figcaption></figure>

The entire prompt section should look like this:

<figure><img src="https://3106255375-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F03h3SC78wyaaTZz7oUet%2Fuploads%2FKuW7x0jSklSSZhmMgCjc%2Fpage_6.jpeg?alt=media&#x26;token=f5f2f267-d2dd-4805-bee0-6642318367f9" alt=""><figcaption></figcaption></figure>

Repeat the same process to create and insert a field into the `assistant` output box called "Subject Line."

This should be what you have at the end:

<figure><img src="https://3106255375-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F03h3SC78wyaaTZz7oUet%2Fuploads%2FYJTTJO92mOCEX0UkYMxs%2Fpage_7.jpeg?alt=media&#x26;token=614249b2-ffa7-4953-ae5b-599dd4083a06" alt=""><figcaption><p>Save the new template</p></figcaption></figure>

Press "Save."

We now have a Template based on our prompt that can handle different pairs of data for the `article` and the `subject_line` that we need the model to generate.
