## Overview

When a robot creates or sends a charge, an installment book or a contract, VL2A Chat checks on the server that the customer still agrees. The robot states the customer's last message it considered. If the customer wrote after it — a question, an objection, anything — the action is refused and the robot must clarify and ask for a new confirmation. Nothing is created or sent in that case.

The check happens at two moments: before creating and before sending. When sending, it runs at the end of the send itself; if the customer wrote in the meantime, none of the charge messages reaches them.

An agreement the robot closed may keep creating charges later — after the deposit is paid, the contract is signed or on the rolling-issue day. The **After a person takes over the conversation** option decides what happens to those next charges when someone on the team enters the conversation.

A person on the team is never affected by these rules. A closing made by the seller works as before, and a commitment generated by a person never stops because of this option.

## Prerequisites

- A robot set up in **Settings → Robots**.
- Administrator permission to change the robot's rules.

## Step by step

1. Open **Settings → Robots** and edit the robot.
2. In the **Channels** area, find **Money and customer acceptance**.
3. Choose the **Acceptance check**, turn **Stop replying when an agent takes over** and **Stop charges and contracts when an agent takes over** on or off, choose the **Payer check** and, under **After a person takes over the conversation**, what happens to the next charges of a robot's agreement.
4. Click **Save money rules**. Each value shows whether it is the platform default or set on this robot; use **Restore default** to go back to the default.

## Settings & options

| Option | Values | Default |
|---|---|---|
| Acceptance check | Default, Strict, Off | Default |
| Stop replying when an agent takes over | On or off | On for the Maestro robot; off for external robots |
| Stop charges and contracts when an agent takes over | On or off | Off for every robot |
| Payer check | Conversation customer or their organization; do not check | Conversation customer or their organization |
| After a person takes over the conversation | Keep issuing and sending; Issue and wait for the person to send; Stop issuing | Keep issuing and sending |

- **Default**: the message the robot states is checked when creating and when sending. If the robot states none when sending, the message recorded when it created the same charge, book or contract applies.
- **Strict**: the robot must also send the acceptance message and an idempotency key on every creation.
- **Off**: the robot creates and sends without checking the acceptance. The other rules still apply.
- **Stop replying** and **Stop charges and contracts** are separate options. With the second one off (the default), the robot keeps creating and sending charges, installment books, contracts and links even with an agent assigned, as it always did; the acceptance check still applies. Turn it on to have the robot refused while an agent is assigned.
- **After a person takes over the conversation** applies to the charges an agreement closed by the robot will still create. "A person took over" means a hand-off to human service, an assigned agent or the Maestro paused in the conversation.
  - **Keep issuing and sending** (default): the charges keep being created and sent to the customer, as today.
  - **Issue and wait for the person to send**: the charges are created but do not go to the customer. The agreement shows **Waiting for the person** with the **Send to the customer now** button, and the conversation gets a private note once.
  - **Stop issuing**: no new charge is created until the robot answers again or a person clicks **Continue** on the agreement.

### When the robot is back in control of the conversation

Complements "After a person takes over the conversation". It says what happens to what waited for the person (charges
held with **Issue and wait for the person to send** and charges stopped with **Stop issuing**) when the conversation is
back with the robot — agent removed, hand-off ended or Maestro resumed:

- **Wait for the next payment or the button** (default, as today): it goes on at the next payment, on the issue day, at the
  customer's next message or when someone clicks **Send** or **Continue** on the agreement.
- **Resume right away**: as soon as the robot is back in control, held charges are sent and stopped ones are issued again.

## Use cases

- The customer says "deal" and right away asks about the due date: the robot answers, presents the offer again and only creates the charge after the new confirmation.
- The charge was created and the customer asked to pay in installments before it was sent: the send is refused; the old charge, which never reached the customer, is cancelled automatically once the new version is confirmed.
- An agent is assigned between creation and sending: by default the robot still sends the charge, as long as the acceptance is still current; with **Stop charges and contracts when an agent takes over** on, the send is refused and the team decides.
- The robot closed an agreement in installments and an agent took over to answer questions: with **Issue and wait for the person to send**, the installments are created on time and the agent sends them when it is the right moment; with **Stop issuing**, nothing is created until they click **Continue**.

## Tips, limits & best practices

- The same part of an agreement never creates two charges: repeating the request with the same version returns the charge already created.
- If the creation got no answer from the gateway, the outcome stays **unknown** until it is checked; a new attempt reuses the same key and never creates a second charge.
- If the robot's send of a charge, an installment book or a contract is recorded in the conversation but its publication is pending (a step after the send failed), the robot gets a success with `publication_pending` — never an error — and the conversation gets one note for the team. The charge, installment book or signature request exists (the contract goes out for signature) and the delivery of the messages was attempted once: check the delivery before repeating and keep the same attempt key.
- If the delivery of those messages could not even be **queued** (the queue failed right after the send), the result says `dispatch_failed` and the team note says the link **was not sent yet** to the customer. The platform queues exactly those messages again by itself within a few minutes (it keeps trying for up to a day); a repeat with the same key queues them right away, without creating another message or another charge. The agreement shows **Not queued yet — retrying automatically** instead of "Sent to the customer". Do not tell the customer the link was sent and do not send it again with another key.
- A charge that already reached the customer or was paid is never replaced automatically.
- **Stop charges and contracts when an agent takes over** refuses the robot's own actions while an agent is assigned; **After a person takes over the conversation** decides what happens to the next charges of an agreement the robot already closed. Both can be used together.
- Custom tools that call other systems do not get this guarantee from the server.
- While a person cancels the commitment of an agreement, the robot does not re-send into the conversation a charge or an installment book of that agreement: the request is refused with `commitment_cancellation_in_progress` and nothing is sent. A person completes the cancellation (or re-sends it themselves); a person's re-send works as before.
- Each robot has its own contract options (Contracts > Settings > AI agent): the inbox robot follows the **Inbox robot** group and the Maestro, when it acts with its own service user, follows the **Maestro** group. A contract only goes out with **Can send contracts for signature** on in that robot's group, and the company only signs in the same step with **Can sign for the company automatically** on in the same group. Turning on one robot's options never allows the other. Without the second, the result says the company signature is pending and a person of the company signs.
- The same applies to **Sign for the company** called directly by the Maestro: without **The Maestro can sign for the company automatically** on, it is refused with `contract_ai_sign_disabled` and nothing is signed. The inbox robot's options do not count. A person can still sign for the company as before. No robot turns these options on: only a person, on the screen.

## Troubleshooting

- **Refusal "The customer sent a message after accepting"**: the customer wrote after the message the robot considered. Clarify and ask for a new confirmation.
- **Refusal "An agent is assigned to the conversation"**: the robot has **Stop charges and contracts when an agent takes over** on. Remove the assignment or turn that option off on the robot.
- **Refusal "The charge belongs neither to this conversation's customer"**: check the contact or organization of the charge.
- **Note "The charge the robot sent is recorded in this conversation, but its publication is pending"** (or the installment book's or the signature request's): check whether the messages reached the customer. If they did not, send it again from the charge, installment book or contract itself, or ask the robot to repeat with the same key; nothing is charged or sent for signature twice.
- **Note "… but its messages could not be queued for delivery: the payment link was NOT sent to the customer yet"** (or the installment book's or the signature request's): do not send it again. The platform retries by itself and the agreement shows the normal delivery once it goes out. If it still has not gone out after a day, the note "… the automatic retries stopped" arrives: then a person sends the charge, installment book or contract again.
- **The agreement shows "Waiting for the person"**: a person took over the conversation of a robot's agreement. Send the charges with **Send to the customer now** or, if the robot stopped issuing, click **Continue** on the agreement.
- **Refusal `commitment_cancellation_in_progress` when re-sending a charge or an installment book**: the agreement of that charge is being cancelled. A person completes the cancellation with **Complete cancellation**, in the conversation's sales agreement; hand the conversation to them.
- **The Maestro says the company signature is pending**: the account does not let that robot sign for the company (the **Maestro** group or the **Inbox robot** group, depending on how it sent). A person of the company opens the contract and clicks **Sign for the company**.
- **"The Maestro is not allowed to sign for the company in this account"** (`contract_ai_sign_disabled`): the Maestro tried to sign a contract that was already sent for the company. Turn on **The Maestro can sign for the company automatically** in the Maestro group, in Contracts > Settings > AI agent, if the account wants that, or a person of the company clicks **Sign for the company**.

## See also

- [Generate the charges of the accepted agreement (robot, person and API)](/hc/ajuda/articles/maestro-brain-compromisso-do-robo-na-oferta-aceita-en)
- [Complete an agreement with the copilot as a Seller](/hc/ajuda/articles/maestro-brain-fechamento-integrado-vendedor-en)
- [Robot action safety: reach, money limits and who pays](/hc/ajuda/articles/maestro-brain-seguranca-das-acoes-do-robo-en)