## Overview

A **plan template** describes how a customer pays for a sale, with no fixed amount of any company in the system: each part (down payment, balance, installments, setup fee or recurring payment) has an amount rule, the accepted payment methods, a due date and, optionally, a condition. When you propose, VL2A Chat calculates amounts and dates from the template and the sale total.

What the calculation guarantees:

- the parts always add up to the total;
- amounts are rounded to cents the same way every time, and the cents left over go to the part the template names;
- no date falls in the past; monthly installments follow the day of the first one (in a shorter month, its last day);
- dates on a Saturday or Sunday are kept, as the gateway keeps them;
- an agreement never goes over 100 charges (platform limit) nor, on a card, over the gateway limit;
- every part is checked against the payment connection before it is offered.

## Prerequisites

- The **Sales Agreement Offers** feature enabled for the account.
- To create and edit templates: an administrator or a role with the Sales management permission.
- An active payment connection, so the plan is checked against the gateway (without one, the preview says it was not checked).

## Step by step

1. Open **Sales → Settings → Proposals** and click **New template**.
2. Name it and add the parts. For each part, choose the type, how to calculate the amount (fixed amount, percentage of the total or the rest), the payment methods, the due date and, if needed, the condition to release the charge.
3. If you want, add **Discounts** (by payment method or by term) and, on a part, the **Gateway's early-payment discount**.
4. Type an **example total** and click **Preview** to check the amounts, discounts and dates.
5. Click **Save template**. A template that allows more installments than any proposal accepts is not saved: the refusal names the maximum and who decided it. Use **Duplicate** to create variations and **Archive** to take a template out of use.
6. Choose the account's **default plan template** and, if you want, the **proposal validity** on the same tab; for a pipeline, in **CRM → Pipeline settings**; for a product, in **Catalog → product → Default proposal**.
7. If you want, write the account's **Proposal closing sentence** on the same tab, in the three languages.
8. On the deal (or in the conversation panel), click **New proposal**, check the suggested template, adjust the total and whatever the template allows, click **Preview** and then **Send to the contact**.
9. When the contact replies accepting, click **Record acceptance** and pick their message.

If you open **New proposal** before your account has any templates, choose **New template**. Saving returns you to the same proposal with the template selected. If your role cannot create templates, ask a sales manager or administrator and choose **Refresh templates** after they save. Sending the proposal is a separate action after preview.

## Settings & options

| Option | What it does |
|---|---|
| Fixed amount | The part is worth the amount entered. With **Can be adjusted on the proposal**, the person may change it within the minimum and maximum |
| Percentage of the total | The part is worth that percentage of the total, rounded down |
| The rest of the total | The part takes whatever is left; only one part per template |
| Installments | Splits the part into equal installments; the last one takes the leftover cent. With a minimum and maximum, the count can be chosen on the proposal. The editor shows the ceiling: up to 100 charges per agreement (platform limit); on a card, the connection gateway's limit (21 on Asaas, 36 on Mercado Pago) |
| Due date | On the day of acceptance, some days later, on a fixed date, after another part is paid or after the contract is signed |
| Condition | Only releases the charge when the contract is signed or another part is paid |
| Recurring payment | A fixed amount per cycle (week, month, quarter...) that starts after another part; it shows on the proposal and is not part of the total |
| Currency | Optional; when set, the template is only used in that currency. An agreement always uses one currency: the connection's |
| Discounts | By payment method (e.g. Pix paid in full −5%) and by term (e.g. charges due within 7 days), as a percentage of the charge or a fixed amount per charge, on every part or on chosen ones. Each charge takes the first discount that applies; they never add up |
| Gateway's early-payment discount | The discount the gateway gives to whoever pays up to N days before the due date. It is used only when the connection offers it; otherwise the preview says so and no proposal is created with that template |
| Proposal validity | In days, per account, pipeline or product (the most specific wins). After that period the proposal can no longer be accepted. Empty, the proposal never expires, as before |

**Where the default comes from.** The suggested template follows the order account → pipeline → product: the most specific level that has a template wins. Every screen shows where the value comes from and offers **Restore default**. With no template configured, nothing is suggested, as before.

**Agreement closing on the template.** The editor has the **Agreement closing** block, the most specific level of the [closing policy](/hc/ajuda/articles/sales-gamification-politica-de-fechamento-en); left blank, each field inherits from the account, pipeline or product. The proposal keeps the policy of the moment it was made. The block gathers:

- when the deal is won, who pays, an accepted date already past and what happens when the customer writes after accepting;
- **Accepted proposal without a deal** and **Where to open the created deal** — only here and on the account, because a proposal without a deal has no pipeline or product;
- **Maximum charges per agreement** and **Maximum card installments**, which only lower the platform and gateway ceiling. Each field says who decided the limit: gateway, platform, account, pipeline, product or template limit;
- **Boleto and Pix installments**: **Separate charges** (default) or **Gateway installment book**, a single monthly installment plan at the gateway where the connection allows it;
- **When charges are created**: **All at the commitment** (default) or **Rolling, before each due date**, with the **Days before the due date (rolling issue)**;
- **Send charges to the customer**: **Manual** or **On issue**.

**Proposal closing sentence.** The proposal message ends with the account's sentence, set in **Sales → Settings → Proposals**, one per language (up to 300 characters, no HTML), with the **How the proposal ends** preview. Empty, the platform's sentence applies: "To accept, reply to this message confirming." It is the same sentence on proposals sent by a person and by the robot, and it is not on the template: it belongs to the account only.

### Recurring payment and contract in the template

- **Recurring payment**: the preview says, for each recurring payment, whether the subscription is **created
  automatically** when its condition happens (by default, the setup fee paid; the recurrence's due days count from the
  payment) or whether **a person creates the subscription** — when the connection does not subscribe that payment method or
  the gateway has no proven subscription notifications yet (Mercado Pago). In the second case, the proposal sent to the
  customer ends the recurring payment with "The recurring payment above will be set up by our team after confirmation."
- **Contract**: the template's **Agreement closing** block also accepts **When the contract is created**, **What happens to
  the created contract**, **Contract template** and **Issuing company**. A template with a part waiting for the signed
  contract can only set **Before the first payment**; another choice is refused on save.

## Use cases

- **Paid in full with a minimum down payment**: a fixed down payment with a minimum (the customer may pay more) on acceptance and the rest 30 days later.
- **Down payment, complement and installments**: a down payment on acceptance, a fixed complement 30 days later and the rest in installments, the first 30 days after the complement is paid and the others every month.
- **No down payment**: the total in three monthly installments from acceptance, with a choice from two to six.
- **Subscription with a setup fee**: a setup fee on acceptance and a monthly fee that starts when the setup fee is paid.

## Tips, limits & best practices

- By default, each boleto or Pix installment is a one-off charge. With **Gateway installment book** in the policy, they become a single monthly installment book at the gateway (on Asaas, up to 99 boleto and 30 Pix installments); where that is not possible, they go out separately and the preview says why. Card installments become a single card charge in installments, within the gateway limit.
- An agreement has at most 100 charges (platform limit), and each installment of an installment book counts. The account, pipeline, product or template can lower that number, never raise it.
- The message sent to the contact is written by the platform from the preview and ends with the **Proposal closing sentence**; the person may add a greeting but cannot edit amounts. A gateway installment book shows as a single line: "installment book of N monthly installments".
- Editing or archiving a template does not change proposals already created: each proposal keeps the calculated plan and the template version it used.
- The recurring payment shows on the proposal; charging it comes in a later step.
- The discount calculated in the preview is the one the charge applies: both use the same charge discount rule.
- A term discount only applies to charges with a known date; an installment that waits for another part to be paid does not get it.
- Discount coupons are not part of plan templates.
- A permitted account connection can create, edit, archive, restore or duplicate a template. A service user receives `robot_guard_native_only` when it tries to change the library directly.

## Troubleshooting

- **"The template's parts do not add up to the total"**: use a part that takes the rest of the total or adjust the fixed amounts and percentages.
- **"The part would be below the minimum"**: raise the total or the adjusted amount.
- **"The payment connection does not charge by..."**: choose another payment method for the part or use another connection.
- **"This connection's card accepts at most N installments"**: reduce the number of card installments.
- **"Part ... allows more installments than any proposal accepts: the maximum is N"** (when saving the template): lower the part's maximum installments; in parentheses, the refusal says who decided the limit.
- **"This plan would put more charges in front of the customer than allowed"**: reduce the number of installments or ask the manager to review the **Maximum charges per agreement**.
- **"Whoever pays (the contact or the company) lacks what the gateway requires..."**: complete the payer's record (for example, the contact's CPF) and make the proposal again.
- **"The payment connection offers no early-payment discount"**: use a connection that offers it or remove that discount from the template.
- **"With the discount, the charge would have no amount"**: reduce the fixed discount.
- **The template shows "needs a review"**: open and save it again; the reason shows on the part with the problem.
- When a connection receives `robot_guard_native_only`, keep the current robot guard values, or ask a sales manager to change them in **Sales → Settings → Proposals**.

To edit through a connection, send a request UUID and the name, description or complete plan definition. The preview lists the changed fields and the fingerprints of the current and proposed terms. Inspect the proposed amounts, payment methods and due dates with the plan preview. Submit the same fields, UUID and returned revision within 15 minutes. PATCH and PUT share the same receipt. Repeating the confirmation returns the original result. A change to the source template or the submitted fields requires a fresh preview and UUID. Existing offers keep their agreed terms.

To create through a connection, send an available name, the complete definition, an optional description and a request UUID. The preview shows the proposed name and the definition fingerprint. Confirm with the same UUID, revision and fields. Two confirmations return the same template ID. If someone else takes the name first, choose another name and request a fresh preview. New templates inherit the existing financial guards for the robot.

## See also

- [Versioned offers and acceptance evidence](/hc/ajuda/articles/maestro-brain-ofertas-versionadas-e-aceite-en)
- [Agreement closing policy](/hc/ajuda/articles/sales-gamification-politica-de-fechamento-en)
- [When the robot may create and send charges and contracts](/hc/ajuda/articles/maestro-brain-robo-dinheiro-e-aceite-en)

An authorized account connection can archive, restore or duplicate a template with sales management access. Read the template terms and request a preview to see the original, the proposed name and whether the result will be active. Confirm the returned revision with the same request UUID. A retry returns the original result ID, including the ID of the first copy. If the template or the available name changed, request a fresh preview.