Atribuir responsável
assign_prospectsSet who sends the WhatsApp tasks of people in ONE campaign: their owner ("Responsável"), a member of the workspace. With owner, the people in prospectIds go to that member (owner null takes it off: nobody). With distributeAmong, the people in prospectIds, or without prospectIds everyone in the campaign with no owner yet, are dealt in turn among those members (round-robin, oldest first). Members are named by first name, full name, e-mail or user id; a name that matches nobody, or more than one member, answers with the workspace's members and changes nothing. Only the WhatsApp tasks follow the owner: e-mail and LinkedIn keep going from the campaign's sender. Free, and nothing is sent.
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>"
},
"name": "assign_prospects"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| owner | No | The member who gets them (name, e-mail or user id), or null for nobody. | |
| campaignId | Yes | Exact campaign UUID. | |
| prospectIds | No | The people to change. Required with owner; with distributeAmong, omit to deal everyone in the campaign without an owner. | |
| distributeAmong | No | Members to deal the people among, in turn (names, e-mails or user ids). |