How to mail merge with an AI assistant
Last checked 2026-11-26.
Short answer
An AI assistant does not need your list to set up a merge. Give it only your column names and a short description of the template. Ask it to write a merge recipe in a fixed JSON format. Check the recipe, then load it in a merge tool with your real list. The names and addresses stay with you.
Steps
- Copy row 1 of your sheet. Only the column names, for example
Name, Course, Date. - Describe the template. Its kind (PDF, Word .docx or image), and for a PDF its form field names or where text should go.
- Give the assistant the format. Paste the JSON Schema from /schema/recipe.json, or give it the link if it can read web pages.
- Ask for the recipe. For example: "Write a MergeCanvas recipe that matches this schema. Columns: Name, Course, Date. The template is a PDF certificate with no form fields, US Letter landscape. Put Name centered near the middle at size 32."
- Check it. Every
columnmust match a header exactly. Positions and sizes are guesses until you see them. - Load and adjust. Load the recipe in the editor with your template and list, look at the preview, and move what is off.
Worked example
For the request in step 4, a correct recipe looks like this. PDF positions are in points from the bottom-left corner; a US Letter landscape page is 792 by 612 points, so x 396 is the middle.
{
"version": 1,
"template": {"kind": "pdf", "name": "certificate.pdf"},
"fields": [
{"column": "Name", "target": {"type": "text", "page": 1, "x": 396, "y": 300,
"size": 32, "color": "#1a1a1a", "align": "center"}},
{"column": "Course", "target": {"type": "text", "page": 1, "x": 396, "y": 250,
"size": 14, "color": "#1a1a1a", "align": "center"}}
],
"output": {"fileName": "{{Name}} certificate", "mode": "zip"}
}
Common mistakes
- Pasting the whole list into the chat. The assistant needs only the headers. Keep personal data out of the chat.
- Trusting the positions. The assistant cannot see your PDF unless you share it. Treat x and y as a first guess.
- Column names that do not match. "First name" in the recipe and "First Name" in the sheet do not match.
- JSON that does not follow the schema. Check it against the schema before you load it.
How MergeCanvas does it
MergeCanvas uses this recipe format for every merge. You can save a recipe from the editor and load one an assistant wrote. The merge runs in your browser. MCP server and Agent Skill: see /agents. We built MergeCanvas.