Mudar a instrução de uma frase da cadência
update_cadence_ai_fieldChanges the instruction of one sentence the Agent writes for each person in ONE campaign's cadence (a field marked {{ia:key}} in the bodies, shown on screen by its label, such as 'a vaga aberta' or 'a retomada'), for everyone on the list: how that sentence should read for all people ('na abertura, começa com "vi que vocês abriram vaga de X"', 'na vaga aberta, cita o cargo da vaga', 'a retomada não pode falar de preço'), including an edit made in one person's messages that should apply to everyone. A campaign's aiFields list each field's day, key, label, instruction and example. instruction is the whole instruction the field follows from now on: the current one with the requested change worked in, keeping what it says, from which fact, and what it leads into, unless that is what changes. example, when the request changes how the sentence reads: the current example rewritten to follow it, with the same facts. The instruction changes now, without writing anyone: in steps not sent yet, a sentence written from the old instruction goes back to the field, and nobody's messages are written again until a rewrite is requested (messagesNext in the result says how); messages edited by hand and sent ones stay; people not written yet follow it when written. Free. Nothing is sent. Not for fixed text or for how the whole cadence reads, and not meant for a campaign draft still being created in the web app's chat flow, which has its own draft editor.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"campaignId": "<campaignId>",
"field": "<field>",
"instruction": "<instruction>"
},
"name": "update_cadence_ai_field"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| day | No | Only the field on this day's step, when the same field sits in more than one step and the user named one. Omit to change it in every step it is in. | |
| field | Yes | The field's key ('abertura', 'retomada') or its label as the screen shows it ('a vaga aberta'). | |
| example | No | A new example sentence that follows the new instruction; blank keeps the current one. | |
| campaignId | Yes | Exact campaign UUID. | |
| instruction | Yes | The field's whole new instruction, in the campaign's language. |