# Mail Merge Letters

SQL ActiveH Mail Merge tasks can be raised by building an Mail Merge template and then associating the template in a script. Keyfax [Databoxes](/product-suite/admin/entities/databoxes.md) will be used as the merge fields in the letter body.

To set up an MIS Email Task, select Advanced/Base Task Templates from the menu and select the base template type '**MIS Letter**':&#x20;

<figure><img src="/files/PTVajybKLEO6UzhtTwAC" alt=""><figcaption></figcaption></figure>

The Mail Merge template screen will be presented. You will see two drop down lists, populated from the SQL ActiveH database, for selection of the **CRM Merge Type** and **Merge Letter**. Defaults may be pre-selected; however, you may change these.

{% hint style="info" %}
**NOTE** Only existing CRM Merge Types and Letters can be selected. For more information regarding the Merge Types and Merge Letters, please refer to the MIS-AMS CRM documentation and the CRM documents.
{% endhint %}

<figure><img src="/files/qRj6pbqjiD3tPBrsnJpE" alt=""><figcaption></figcaption></figure>

Complete as appropriate; dragging/dropping databoxes as required. For future reference, you may want to add descriptive text next to each Databox, detailing the information being picked up in each Databox. Any text within the letter will not appear in the letter in MIS.

The final step is to add the Letter template to the Keyfax task. Select the Letter created above from the list of templates.

<figure><img src="/files/wjQ6LgFud81ijv5AulTL" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: 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:

```
GET https://docs.keyfax.biz/product-suite/admin/host-operations/activeh-operations/mail-merge-letters.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
