Criar rotina do Nock Agent
create_routineSchedule something the Nock Agent does on its own, every week or every day ("toda segunda, ache 50 decisores novos e coloque na campanha X"), Brasília time. Actions: campaign_add_people (find count new people for a campaign from its search or signal), campaign_refill_from_signal (run the campaign's signal and add count people), campaign_status (pause or resume a campaign), sheet_enrichment (run an enrichment column on the rows that do not have it yet). Each run spends at most creditCap credits, doing fewer people or rows to fit; an empty creditCap means the full price of one run. What a run does depends on the workspace's autonomy level for that action: 1 only tells, 2 (default) suggests with a one-tap approval, 3 does it and tells after. Creating spends nothing. The campaign or sheet is the one passed; none is picked automatically. The result says what will run, when, and the cap.
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": {
"actionType": "<actionType>",
"weekday": "<weekday>",
"hour": "<hour>"
},
"name": "create_routine"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hour | Yes | Hour of the day, Brasília time (0 to 23). | |
| name | No | Short name in the user's language. Empty: one is written from the schedule. | |
| count | No | People per run (1 to 50), for campaign_add_people and campaign_refill_from_signal. | |
| status | No | For campaign_status: paused to pause, active to resume. | |
| sheetId | No | Exact sheet UUID, for sheet_enrichment. | |
| weekday | Yes | The day it runs, or every_day. | |
| columnId | No | Enrichment column id (as the sheet's rows list it), for sheet_enrichment. | |
| creditCap | No | Most credits one run may spend. Empty: the full price of one run. | |
| actionType | Yes | ||
| campaignId | No | Exact campaign UUID, for the campaign actions. |