## Overview

An agreement can be closed through three doors: a person, with **Close a deal with the copilot** or the **Generate charges for the accepted agreement** button; the Maestro robot, through the commitment on the accepted proposal; and the API, with a person's token. All of them use the same closing. The **closing policy** decides what that closing does with the deal, the payer, the dates and the charges, the same way for the person and for the robot.

It also decides the limits and the pace of the charges: how many charges an agreement may have, into how many installments a card may be split, whether boleto and Pix installments become a gateway installment book, when each charge is created and whether the platform sends it to the customer as soon as it is created. And it keeps the **Proposal closing sentence**, the same for proposals sent by a person and by the robot.

With nothing configured, each door keeps working as today. Every alternative is an option, with "where it comes from" and **Restore default** at each level.

## Prerequisites

- Proposals (versioned offers) or the integrated closing turned on for the account.
- For the account and the plan template: administrator or Sales management permission.
- For the pipeline: permission to edit the pipeline. For the product: edit the product **and** be a Sales manager.
- For the **Gateway installment book**: a connection that issues installment books on that method (on Asaas, boleto and Pix), installment plans enabled on the account and the required financial evidence.

## Step by step

1. Account: open **Sales → Settings → Proposals** and use the **Agreement closing** section. Save with the page button. With the Sales module off, the same section appears in **CRM → Settings**, under **Agreement closing — whole account**, and saves at once.
2. Pipeline: open **CRM → Pipeline settings**; the **Agreement closing** section saves at once.
3. Product: open the product in the **Catalog**, under **Sales terms**; it also saves at once.
4. Plan template: in the template editor, use the **Agreement closing** block and save the template.
5. Closing sentence: in **Sales → Settings → Proposals** (or in **CRM → Settings**, with the Sales module off and proposals on), open **Proposal closing sentence**, choose the **Portuguese**, **English** or **Spanish** tab and write the sentence. Check it in **How the proposal ends**; **Use the platform sentence** goes back to the default.
6. Check where each field's value comes from. On the limits, the field says who decided the number: gateway, platform, account, pipeline, product or template limit. **Restore default** goes back to inheriting from the level below.

## Settings & options

| Option | Values | Default (as today) | Levels |
|---|---|---|---|
| When the deal is won | At the closing (right away) · At the first payment · At the full payment · When the contract is signed · Manually (the closing does not win it) | At the closing, at every door | all |
| Accepted proposal without a deal | Do not create · Create the deal | Do not create | account and template |
| Where to open the created deal | An active pipeline and an open stage | The account's default pipeline and its first open stage | account and template |
| Customer wrote after accepting | Continue · Ask a person | Copilot: ask a person. Proposal (person and robot): continue | all |
| Who pays | The contact · The contact's company · Choose on the proposal | The contact | all |
| Accepted date already past | Refuse and ask for a new proposal · Move to today | Refuse | all |
| Charges the robot already created separately | Block the commitment · Adopt only an identical one | Block | account only |
| Maximum charges per agreement | From 1 to 100, or blank | Blank: the gateway and platform maximum (100) | all |
| Maximum card installments | From 1 to 36, or blank | Blank: the connection gateway's maximum (21 on Asaas, 36 on Mercado Pago) | all |
| Boleto and Pix installments | Separate charges · Gateway installment book | Separate charges | all |
| When charges are created | All at the commitment · Rolling, before each due date | All at the commitment | all |
| Days before the due date (rolling issue) | From 1 to 365 | 30 days | all |
| Send charges to the customer | Manual · On issue | Copilot: Manual. Person: Manual (box unchecked). Robot: On issue | all |
| Proposal closing sentence | One sentence per language, up to 300 characters, no HTML | The platform's sentence | account only |

The most specific level that configures a key wins: **account → pipeline → product → plan template**. Products of the same deal that disagree are ignored, with a notice. Each agreement keeps the policy of the moment it was prepared (copilot) or proposed (proposal); changing the setting later only applies to new agreements. The closing sentence is not kept on the agreement: the sentence of the moment the proposal is sent applies.

- **Won at the first payment**: counts a deposit the closing already registered, or the first charge of the agreement that is paid.
- **Won at the full payment**: when every charge and order of the deal is paid.
- **Won when the contract is signed**: applies to closings with a contract. The commitment on the accepted proposal does not create a contract yet; with this option it is refused before any charge.
- **Create the deal**: uses the accepted total and the contact's owner, in the pipeline and stage of **Where to open the created deal** (or the default pipeline). It exists only on the account and the plan template: a proposal without a deal has no pipeline or product. A pipeline or stage that no longer exists refuses the commitment before any charge.
- **Ask a person**: on the copilot, while charges remain to be issued, the closing stops with the notice "The customer wrote after accepting" and shows the latest message. On the commitment on the accepted proposal (person and robot), before a later charge is created — after a payment, the contract or on its rolling day —, the agreement stops with "Confirmation missing: the customer wrote after the acceptance...". In both cases, whoever read it clicks **I read the message — continue anyway**; if the customer writes again meanwhile, the platform asks to read the newest message. What the commitment issues right away never stops for this: the acceptance was checked an instant ago.
- **Who pays**: applies to proposals built from a template. **The contact's company** uses the contact's primary company. **Choose on the proposal** shows the **Who pays** field when proposing; the robot always uses the contact. The data the gateway requires from whoever pays — the contact or the company (document; on Mercado Pago, for Pix and boleto, also e-mail and address) — is checked on the proposal, before the acceptance. A contact without a CPF is refused there, and not at the gateway after the customer accepted.
- **Move to today**: dates already past — fixed, or counted from an event such as "5 days after the deposit" — move to today, in the account time zone, at the moment the charge is created. The agreement keeps the agreed date and the charge message tells the customer: "Due date moved to today". Applies to the copilot and to the proposal. Outside the WhatsApp 24-hour window, the charge goes out through the approved charge template, which has no room for that line: the customer sees the new date in the template itself, when it carries the due date.
- **A past date on a later charge**: the rule applies at every issue, not only at the commitment — also to the charge created after a payment, the contract, on its rolling day, or when a person continues the agreement days later. A past due date never reaches the gateway. With **Refuse**, nothing is sent: the agreement stops with **Due date already passed** and a person chooses **Issue it due today** (the charge message tells the customer) or makes a new proposal. On the copilot, the closing stops and the person chooses **Issue it due today** on the copilot panel (the customer is told in the charge message).
- **Adopt only an identical one**: the commitment uses the charge the robot already created for that part when amount, due date, method, payer, connection and deal are exactly the same. Any difference blocks, and the refusal names the field. There is never a double charge.
- **Maximum charges per agreement** and **Maximum card installments**: they only lower the limit. An agreement never goes over 100 charges (platform limit), and each installment of a gateway installment book counts as one charge. On a card, the ceiling is the gateway's. Left blank, the maximum always applies. A value above the limit is refused with the maximum and who decided it, for example "the maximum is 100 (platform limit)".
- **Gateway installment book**: boleto or Pix installments become a single monthly installment plan at the gateway (on Asaas, up to 99 boleto and 30 Pix installments, measured live), and the proposal shows a single line: "installment book of N monthly installments". It only applies where the connection issues installment books on that method (Mercado Pago does not on boleto or Pix), with installment plans enabled on the account, a monthly due date and the required financial evidence: in production, a real gateway needs live evidence; an Asaas sandbox connection may. Where it is not possible, the installments go out as separate charges and the preview says why: "installment books only on boleto and Pix", "gateway installment books only with a monthly due date", "the connection does not issue installment books on this method", "installment plans are not enabled on this account" or "installment books have no financial evidence for this connection yet".
- **Rolling, before each due date**: each charge is created a few days before its due date, as set in **Days before the due date (rolling issue)**, instead of all at once at the commitment. It avoids issuing 100 boletos on the same day. The agreement timeline shows **Created on** with the date of each charge and "The next charges are created N days before each due date".
- **On issue**: the platform sends each charge to the conversation as soon as it is created, including the ones created later — after the deposit is paid, the contract is signed or on their rolling day. Each one goes out once, with the robot's own send key: two cards are never sent. For a person, the option sets how the **Send each issued charge to the customer** box of the dialog starts, and they can change it before confirming; the robot follows the option. **Manual**: nobody sends automatically; the charges appear on the agreement timeline and go out with **Send to the customer now** or from the charge itself.
- **Outside the WhatsApp 24-hour window**: an automatic send only goes out through the account's approved charge template. Without one, the charge stays **Waiting to be sent**, with the reason "outside the WhatsApp 24-hour window and without an approved charge template", and goes out when the customer writes again or when a person clicks **Send to the customer now**.
- **Proposal closing sentence**: the last sentence of the proposal message, one per language, up to 300 characters and no HTML. The platform writes the message of both the person's and the robot's proposals, so the same sentence closes both. Empty keeps the platform's sentence: "To accept, reply to this message confirming."

### Agreement contract

Four options say whether the closing creates the contract, when and from what. They apply on every level (account,
pipeline, product and plan template) and are frozen on the proposal.

| Option | Choices | Default |
|---|---|---|
| **When the contract is created** | No contract · Before the first payment · After the deposit is paid · After full payment | Copilot: before the first payment (as always). Proposal: no contract (as always) |
| **What happens to the created contract** | Stays as a draft · Send for signature | Proposal and robot: draft. The copilot keeps asking in its own dialog |
| **Contract template** | an active template with "Use integrated closing financial agreement" on | none |
| **Issuing company** | a company that may issue contracts | none |

- The contract carries the agreement appendix (total, each charge, due date and conditions), as in the copilot closing.
- The contact signs. When the contact's company pays, the company is the contracting party and the contact signs as its
  member. When the company has a **Legal representative** (Contacts → Companies → **Contacts** tab), the representative
  signs instead — in the commitment on the proposal and in the copilot closing. The dialog's preview says who signs.
- A part waiting for the signed contract, or a deal won at the signature, needs the contract **before the first
  payment**. Otherwise the proposal is refused before it reaches the customer.
- The robot sends for signature only when the account lets the AI send contracts and every signer is in the
  conversation. If it cannot, the contract stays as a draft with the reason on the agreement panel, someone on the team
  sends it in **Contracts**, and the platform leaves a note (once) in the conversation for the team: the customer does
  not see it.

### The robot after the agreement

Once an agreement is committed — by the robot, a person, the API or the copilot — these three options say what the robot may still do with money for that customer. They apply at every level (account, pipeline, product and plan template), show where each value comes from and have **Restore default**. They are frozen on the proposal: changing them later only reaches new agreements.

- **Until when the agreement holds the robot**:
  - **Until paid in full or cancelled** (default): while the agreement is open, the robot creates no standalone charge, installment book or subscription for the customer — in any of their conversations — and makes no new proposal. Once everything was paid (each charge paid, each installment book completed, each subscription of the agreement ended) or a person cancelled the commitment, the robot charges and proposes normally again.
  - **While the agreement exists**: only a person's cancellation of the commitment releases the robot.
- **New agreement by the robot while it holds**: with **Allow**, the robot may propose a new, separate agreement in the same conversation. The previous agreement keeps its commitment and keeps blocking standalone charges.
- **Upsell by the robot while it holds**: with **Allow**, the robot may charge products that are **not** in the agreement — the charge must name the product, and the agreement must have a deal with products for the platform to compare. A product already in the agreement, a charge without a product, an installment book and a subscription are still refused.
- **Fixed rule, not a setting**: the robot never charges again for a part of the agreement (deposit, installment, balance or the agreement's subscription). If it asks for a part that already has its charge, it gets the agreement's own charge; if the part was not issued yet, the platform refuses — the commitment issues it.
- **Fixed rule, not a setting — cancellation in progress**: until a person completes the cancellation of the commitment of an agreement of the customer, the robot creates no charge, installment book, subscription, upsell, proposal or new commitment for them, even with **New agreement** or **Upsell** set to **Allow**. The refusal carries the code `commitment_cancellation_in_progress` and says a person must complete the cancellation. People are not affected.
- **Fixed rule, not a setting — upsell price**: with **Upsell** set to **Allow**, the robot's charge uses the current price of the catalog item it names (quantity × the variant's price, in the charge currency), never a free amount. A different amount, discount or currency, an item with no price in that currency or a charge at a deal's value is refused with `upsell_price_mismatch`. The customer pays exactly that price: the interest of a card installment plan is always absorbed by the merchant (the installments are the same total split in N parts), whatever the connection default or the robot asked, and a fine, interest or early-payment discount the robot asked for is dropped — the gateway panel's own defaults apply, as on any charge. For the one-click upsell offer, an offer a **person** configured (a promotion) is charged at its own price, in the charge currency; an offer the robot created or changed passes only at the catalog price; an offer from before this version (until a person saves it) is charged at the **lower** of its own price and the catalog price — a promotion below the catalog keeps its price, an offer above the catalog is charged at the catalog. The customer never pays more than the offer they saw nor more than the catalog.
- The robot reads each agreement's mode in the agreement status and tells the customer only what is allowed now. It never changes these options: they belong to the person who manages the account.

## Use cases

- **Returning customer**: with the default, the robot sells again on its own to whoever paid off the previous agreement, without anyone releasing it.
- Sell with a deposit and only count the sale when the customer pays: **At the first payment**.
- Commission only on money fully received: **At the full payment**.
- Sales to companies: **The contact's company** pays, with its registered tax id.
- Old proposals accepted after the deposit due date: **Move to today**, with the notice to the customer.
- Proposals in the conversation without an open deal: **Create the deal** in the sales pipeline, at the accepted-proposal stage.
- A sale in 24 boleto installments without 24 boletos on the first day: **Rolling, before each due date**, with 30 days, and **On issue** so each boleto reaches the customer on the day it is created.
- A single installment book on Asaas instead of dozens of loose charges: **Gateway installment book**.
- Card in at most 10 installments across the account: **Maximum card installments** set to 10.
- Ask for a specific reply at the end of the proposal: write the **Proposal closing sentence** in the three languages.

## Tips, limits & best practices

- The deal is won once, with the accepted total. Below the commercial floor, it goes to the approval queue.
- A win made by the robot counts as an automation close: points and commission follow the **Credit automation closes** option (off by default). Automation rules keep reacting to the win.
- With a closing that owns the deal, signing the contract does not win the deal by itself: the agreement's policy decides.
- The robot sends on its own; the person chooses in the dialog. That is why the default of **Send charges to the customer** is **On issue** for the robot and **Manual** for people.
- A robot's agreement also follows the robot's **After a person takes over the conversation** option, in **Settings → Robots**.
- The robot never loosens the policy: it does not choose a payer and does not change any level.
- No robot changes this policy: the write routes stay out of the MCP, and every level — account, pipeline, product and plan template — refuses any robot request — through the Maestro, one of its own tools or the MCP — with the code `robot_guard_native_only`. In the pipeline settings, the robot can still change the rest, as long as it sends the closing policy back as it is. Only a person changes the policy.
- In a negotiated agreement, card installments are always created with your business absorbing the interest, even when the payment connection is set to *The customer pays it*: the customer pays exactly the total they accepted.

## Troubleshooting

- **The robot says it cannot charge this customer**: the committed agreement still holds the robot. See the **Robot** line on the **Commercial agreement** panel: it says until when and what is allowed. To release it earlier, a person cancels the commitment, or the manager adjusts **The robot after the agreement** for the next agreements.
- **The robot says a cancellation of this customer is in progress** (`commitment_cancellation_in_progress`): a person started cancelling the commitment of an agreement of the customer and it did not finish (for example, the gateway refused a charge). Handle the charge and click **Complete cancellation** on the agreement; this rule does not depend on the policy.
- **The robot says the upsell price does not match** (`upsell_price_mismatch`): the refusal carries the catalog price. Fix the price on the product if needed; to sell at another amount, a person creates the charge.
- **The deal was not won**: check the trigger frozen on the agreement (agreement timeline) and whether the payment or the signature is already recorded.
- **"The customer wrote after accepting"** or **"Confirmation missing"**: read the message. If it does not change the agreement, continue; if it does, renegotiate.
- **Refusal "the policy wins the deal when the contract is signed"**: choose another moment for the win or mark the deal manually.
- **"Whoever pays (the contact or the company) lacks what the gateway requires..."**: complete the contact record (for example, the CPF) or the company in Contacts → Companies and make the proposal again.
- **"The configured pipeline or stage no longer exists"**: choose another destination in **Where to open the created deal**.
- **"The value goes over the maximum of N"**: use a smaller number or leave the field blank so the maximum applies.
- **The preview says the installments go out as separate charges**: read the reason beside it and adjust the method, the due date or the connection, or ask for installment plans to be enabled on the account.
- **Charge "Waiting to be sent"**: the customer is outside the WhatsApp 24-hour window and the account has no approved charge template. It goes out when the customer writes; to send it earlier, click **Send to the customer now**.
- **An option does not appear on the pipeline or product**: **Charges the robot already created separately** and the **Proposal closing sentence** are decided by the account only; **Accepted proposal without a deal** and **Where to open the created deal**, by the account and the template.
- **"The account's closing policy is changed only by a person"** (`robot_guard_native_only`): an automation tried to change the account layer. This is on purpose: an administrator or a Sales manager changes it in **Sales → Settings → Proposals**. With the same code, the refusal on a pipeline points to **CRM → Pipeline settings**, on a product to **Catalog → product → Sales terms** and on a plan template to **Sales → Settings → Proposals**.
- **"Due date already passed"**: the next charge was about to be created with an accepted date already past and the policy is set to **Refuse**. Nothing was sent to the gateway. Click **Issue it due today** (the customer is told in the message) or make a new proposal with current dates.

## See also

- [Plan templates and proposals on the deal](/hc/ajuda/articles/sales-gamification-modelos-de-plano-e-propostas-en)
- [Complete an agreement with the copilot as a Seller](/hc/ajuda/articles/maestro-brain-fechamento-integrado-vendedor-en)
- [Generate the charges of the accepted agreement (robot, person and API)](/hc/ajuda/articles/maestro-brain-compromisso-do-robo-na-oferta-aceita-en)
- [When the robot may create and send charges and contracts](/hc/ajuda/articles/maestro-brain-robo-dinheiro-e-aceite-en)
- [Payment terms and installment simulation](/hc/ajuda/articles/payments-condicoes-de-pagamento-en)