Templates · Published 2026-09-28 · AgentiSend team
Receipt
Confirm a payment that has gone through, with the amount and a link to the full receipt.
Confirm a payment that has gone through, with the amount and a link to the full receipt.
Variables
Every placeholder is required. A send that omits one is refused with that name, rather than going out with a blank.
first_name(string, required). The payer’s first name.product_name(string, required). Your product, as the person knows it.receipt_number(string, required). Your receipt or transaction reference.paid_on(string, required). The payment date, formatted for the reader.item_description(string, required). What was paid for, in one line.amount_paid(string, required). The amount with its currency, formatted for the reader.receipt_url(string, required). An https link to the receipt in your product.
Rendered with the example values
These values are samples. They are not an account on AgentiSend.
Subject: Receipt R-10442 from Acme
<p>Thanks for your payment, Ada.</p>
<p><strong>Receipt R-10442</strong><br>
Paid on: 28 September 2026<br>
Item: Acme Team plan, one month<br>
Amount paid: $49.00</p>
<p><a href="https://app.example.com/receipts/R-10442">View or download the receipt</a></p>
<p>Keep this email for your records.</p>Thanks for your payment, Ada.
Receipt R-10442
Paid on: 28 September 2026
Item: Acme Team plan, one month
Amount paid: $49.00
View or download the receipt (https://app.example.com/receipts/R-10442)
Keep this email for your records.Create the draft
POST /templates and the create_template tool take this body. The draft does not send until it is published.
{
"name": "Receipt",
"subject": "Receipt {{receipt_number}} from {{product_name}}",
"content": {
"mode": "markdown",
"source": "Thanks for your payment, {{first_name}}.\n\n**Receipt {{receipt_number}}**\nPaid on: {{paid_on}}\nItem: {{item_description}}\nAmount paid: {{amount_paid}}\n\n[View or download the receipt]({{receipt_url}})\n\nKeep this email for your records."
},
"variables": [
{
"name": "first_name",
"type": "string",
"required": true
},
{
"name": "product_name",
"type": "string",
"required": true
},
{
"name": "receipt_number",
"type": "string",
"required": true
},
{
"name": "paid_on",
"type": "string",
"required": true
},
{
"name": "item_description",
"type": "string",
"required": true
},
{
"name": "amount_paid",
"type": "string",
"required": true
},
{
"name": "receipt_url",
"type": "string",
"required": true
}
]
}Publish it
Call publish_template with the id POST /templates returned. Publishing again makes the next version. A version that already went out does not change.
{
"name": "publish_template",
"arguments": {
"template_id": "<the id POST /templates returned>"
}
}Send it
Create the draft with the body above, publish it, then send with template_id and template_values. The rules are in Templates. The three calls, including a render that does not send, are in How do I send an email from a template. The next starter is Invoice.