Define per-contact lines for a campaign
argorant_set_campaign_personalizationUse it when the user wants each email to carry a line written for that contact, such as "mention something specific about each company". It sets up 1 to 5 {{custom_...}} variables, each with one instruction for writing the line and one fallback that reads well for anyone. It replaces the earlier setup, and every contact without their own line gets the fallback at once, so the campaign can launch at any time. To save written lines use argorant_set_lead_custom_fields, and for progress argorant_campaign_personalization_status. The result is plain data with the saved variables, how many contacts have the fallback, and playbook, the written method for writing the lines, as plain data. Next, look up facts for each contact and never invent anything, show the user 5 example lines first, and after their yes write the rest. Instructions take up to 4,000 characters, lines 20 to 300 and the template 10,000. 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>",
"variables": "<variables>"
},
"name": "argorant_set_campaign_personalization"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| template | No | Optional email text the line goes into, up to 10,000 characters. | |
| variables | Yes | 1 to 5 variables, as [{name, instruction, fallback, max_length?, case?}]. name starts with custom_, such as custom_lead_types. instruction says what the line says, its length and style, with 2 or 3 examples. fallback is a line that reads well for anyone. case auto (the default) lowercases the first letter of a line used in the middle of a sentence and keeps a line that starts a sentence as written; sentence_middle always lowercases it and as_is keeps every line exactly as written. Acronyms, names, brands and places always stay as written. | |
| allow_links | No | false (the default, recommended) keeps links out of the lines. | |
| campaign_id | Yes | The campaign's id, from argorant_list_campaigns. | |
| extra_columns | No | Contact or company fields worth reading for the lines, such as industry, city or title. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |