Write each contact's personal line
argorant_set_lead_custom_fieldsUse it to save the personal lines you wrote for a campaign's contacts, or when the user says "tag these contacts as priority". It saves up to 5,000 contacts per call and adds or removes contact tags. Get the next contacts from argorant_campaign_personalization_status; a finished file of up to 200,000 rows goes through the API or the command line instead, followed with argorant_personalization_import_status. Only the campaign's own variables are accepted. Write each line only from facts you looked up for that contact and never invent a detail, number, customer or claim; when the facts do not tell you, send keep_fallback: true. Before the first save, show the user 5 example lines inside their sentences and wait for a yes. A saved line is never replaced unless overwrite is true; without it the contact keeps its line and is listed in kept_existing. Tags let the other campaign people tools select by tag. More in the docs at https://docs.argorant.com/docs/agents/tools#campaigns
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": {
"campaign_id": "<campaign_id>",
"leads": "<leads>"
},
"name": "argorant_set_lead_custom_fields"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| leads | Yes | 1 to 5,000 contacts, as [{lead_id or email, values?, keep_fallback?, basis?, tags?, untag?}]. values maps each custom_ variable to its line, or to null with overwrite true to clear it. keep_fallback true keeps the fallback for a contact with no usable facts and takes them off the list; false puts them back on it. basis says in a few words where the fact came from, up to 200 characters. tags (a list, or tag as one text) and untag add and remove contact tags, saved in lower case; an entry with only tags needs no values. | |
| overwrite | No | true replaces or clears lines the contacts already have. Leave it false (default) so saved lines are never replaced by accident. | |
| campaign_id | Yes | The campaign's id, from argorant_list_campaigns. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |