# Customize notification email subjects with email templates

> Create your own subject lines for the emails after calls, use placeholders such as caller number or agent and pick the template per recipient list.

Source: https://docs.qutee.ai/en/einstellungen/e-mail-vorlagen/

After a call, qutee sends a notification email. With **Email templates** you decide what its subject looks like, for example with the agent's name or a short title for the caller's request. That way your team sees what it's about right in the inbox and can sort emails with rules.

Templates only change the subject. You can't customize the content of the emails.

## Before you start

- You need the **Company Admin** role. With the **User** role you don't see **Email templates**.
- Recipients for notifications are already entered. How to do that is described in [Set up notification emails after calls](https://docs.qutee.ai/en/anrufe/benachrichtigungs-e-mails/).

## The three types of templates

Each type of email has its own templates. You switch between the types at the top of the page.

| Type | For which email |
| --- | --- |
| **Action summary** | The email to the recipients of an **Information capture** |
| **General call notification** | The email after all other calls |
| **Grouped call notification** | The combined email when the same number calls several times and **Notification grouping** is on |

For each type, the page shows the **System default** at the top. qutee uses this subject whenever no custom template is selected.

## Create a custom template

1. In the sidebar, click your name and choose **Email templates** under **Manage account**.
2. Choose the type at the top: **Action summary**, **General call notification** or **Grouped call notification**.
3. Under **Custom templates**, click **Add template**.
4. Under **Name**, enter a name you will recognize the template by in the selection later, for example "Sales callback". Callers and recipients don't see the name. Each name can only be used once in your company.
5. Under **Subject**, enter the subject line. Placeholders such as `{caller_number}` are replaced when the email is sent (see below).
6. Click **Save**. The app shows **Template created.**

Name and subject are required. If one is missing, **Name and subject are required.** appears.

## Use a template

A new template only applies once you select it where the recipients are entered. The field is called **Subject template** in each place:

- in an **Information capture** in the agent's **Action** tab, for the **Action summary**,
- for the agent in the **Availability** tab under **Notifications**, for the general and the grouped call notification of this agent,
- under **Customer settings** > **General call notifications**, for all agents without their own selection.

For grouped notifications there is a separate **Grouped notification subject template** field in each place. Select the template and click **Save**. The selection only lists templates of the matching type.

## Placeholders in the subject

You can use these placeholders in the **Subject**. Write them exactly like this, with curly braces. The app doesn't check the placeholders when you save, so check new templates with a test call.

| Placeholder | Replaced by |
| --- | --- |
| `{caller_number}` | The caller's number, "anonym" (anonymous) if the number is withheld, or "Unbekannt" (unknown) if no number is available |
| `{call.caller_number}` | Same as `{caller_number}` |
| `{timestamp_local}` | Date and time of the call |
| `{agent_name}` | Name of the agent |
| `{organization_name}` | Name of your organization, as set for the agent under **Organization** |
| `{call.id}` | Unique ID of the call |
| `{llm_title}` | A short title that qutee generates from the conversation |
| `{forward_prefix}` | "Weitergeleitet - " (forwarded) for forwarded calls, otherwise empty. Useful in the general call notification |
| `{call_count}` | Number of calls in the group. Useful in the grouped call notification |

Examples:

- General call notification: `{forward_prefix}{agent_name}: Call from {caller_number} at {timestamp_local}`
- Action summary: `Callback: {llm_title} ({caller_number})`
- Grouped call notification: `{call_count} calls from {caller_number}`

> **Note:** If qutee can't generate a title for `{llm_title}`, the email gets the subject of the **System default**.

## Change or delete a template

- **Change**: Next to the template, click the pencil icon (**Edit**), adjust **Name** or **Subject** and click **Save**. The change applies everywhere the template is selected.
- **Delete**: Click the trash icon (**Delete**) and confirm the prompt. A template that is still selected somewhere as a **Subject template** can't be deleted. First select a different template or the default there.

## Check that it works

1. Call your agent and have a short conversation.
2. Check the subject of the email that arrives afterwards.
3. If the subject of the system default arrives, the template isn't selected or wasn't saved for these recipients. If no email arrives at all, also check how the placeholders are spelled: an unknown placeholder can prevent the email from being sent.

## Common problems

**The new template doesn't appear in the selection**: The template belongs to a different type. A template for the **Action summary**, for example, isn't offered for general notifications.

**The template can't be saved**: Often a template with this name already exists, possibly for a different type. Choose a different name.

**The template can't be deleted**: It is still selected in an information capture, an agent or in **Customer settings**. Change the **Subject template** there first.

**No email arrives at all**: First check how the placeholders in the template are spelled, because an unknown placeholder can prevent the email from being sent. If that's not it, see [No emails arrive after calls](https://docs.qutee.ai/en/fehlerbehebung/keine-e-mails-nach-anrufen/).

## Next steps

- [Set up notification emails after calls](https://docs.qutee.ai/en/anrufe/benachrichtigungs-e-mails/)
- [Capture information from callers](https://docs.qutee.ai/en/agenten/informationen-erfassen/)
