> For the complete documentation index, see [llms.txt](https://help.workdigital.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.workdigital.io/custom-database-apps/notification-settings/adding-a-new-email-template.md).

# Adding a new Email Template

1. Select a Site
2. Click App Name on site menu
3. Click “Settings” button located on top right corner page
4. Click “Notification Settings” link in left hand menu
5. Click “New Notification” button located on top right corner of page
6. Following is the details of each field:
   1. Title
   2. From: From address to be used in the notification
   3. To
   4. CC
   5. Email Subject: Subject line of the notification
   6. Live Updates Subject: Subject line to be used in Recent Updates
   7. Notify When: Select the event for which the the email notification will be used
   8. Status: Determines whether the email notification is active/inactive
   9. Body: Email body
7. You can insert following macros Body, Subject, and Live Updates Subject. Note that macros should be surrounded by curly brackets. The macros will be replaced with appropriate values by system at run time.<br>

   | **Portal Name**      | **{PortalName}** |
   | -------------------- | ---------------- |
   | Portal Owner         | {PortalOwner}    |
   | Portal Location      | {PortalLoc}      |
   | Site Name            | {SiteName}       |
   | Site Owner           | {SiteOwner}      |
   | Site Location        | {SiteLoc}        |
   | Application Name     | {AppName}        |
   | Application Owner    | {AppOwner}       |
   | Application Path     | {AppPath}        |
   | Application Location | {AppLoc}         |
   | Record Title         | {RecTitle}       |
   | Record Owner         | {RecOwner}       |
   | Record Details       | {RecDetail}      |
   | Record Location      | {RecLoc}         |
   | Action               | {Action}         |
   | Action User          | {ActionUser}     |
   | Update Field         | {UpdField}       |
   | Logged In User       | {LoggedInUser}   |
   | Last Comment         | {LastComment}    |
   | To-Do                | {CheckListItem}  |
   | Attachment           | {AttachmentLink} |
8. Click “Save” button


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.workdigital.io/custom-database-apps/notification-settings/adding-a-new-email-template.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
