Resolve a task item waiting for review
resolve_task_itemWith reason customer_purchased (after verifying a purchase) or unsubscribed (after the customer unsubscribed), plus operationId and evidenceRef, skip an inactive pending item in a draft or pending/failed item in a paused task. It never dials, charges or changes the do-not-call list. get_task returns the immutable resolution in items[].resolution (reason is customer_purchased or unsubscribed); replay the same operation after an uncertain response, and a different resolution, including a different reason, conflicts. Otherwise decide what to do with one task item in review. retry returns it to pending; any later call that is actually placed is billed and counted under the normal maxAttempts rules. skip prevents another call. With lorela_enterprise, manual retry is rejected with validation: only scheduled automatic attempts are allowed, within four attempts, the task's retry horizon (retryMaxAgeDays, N × 24 hours from the first counted attempt, default 5) and the campaign deadline. The sole exception restores claim_expired before the first real attempt: no active worker, dispatch intent, provider call, callback, unsettled reservation or charge; the claim must be expired and every historical non-counted attempt must prove rejection before dialing. It preserves attempts and limits and only returns the contact to pending in a paused task. Coupon reminders cannot be reopened. For billing_unknown, both actions preserve providerCallId and the reserved budget until reconcile_task learns the original call's price; retry waits for that settlement before another dial, and skip may still be charged for the original call. This resolution itself never dials or charges. Works only while the task is not running: a contact in review can appear while the task still dials the others, and resolve then fails with task_not_editable until the task is needs_attention or paused. Once no item is left in review, needs_attention may move to paused or completed, unless another task-level reason remains. A skipped billing_unknown item does not block a task with work left (it moves to paused and its reservation keeps counting); a retried one waits for the price. A call that was never dialed settles at 0 right away. For a contact with reviewReason dial:destination_auto_blocked, first call unblock_destination with the item's phone number, then retry; for dial:cannot_call_own_number, dial:cannot_call_volai_number, dial:invalid_number, dial:unsupported_country and dial:blocked_destination only skip helps. Fails with task_not_editable, item_not_resolvable or revision_conflict.
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": {
"id": "<id>",
"itemId": "<itemId>",
"action": "<action>",
"revision": "<revision>"
},
"name": "resolve_task_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Id of the task, from list_tasks or get_task. Looks like task_9f3a2b7c4d1e. | |
| action | Yes | retry returns the contact to pending for billed dialing; skip prevents another call. For billing_unknown both keep the original call until reconcile_task settles its price. With dial:destination_auto_blocked run unblock_destination first; for uncallable numbers only skip helps. | |
| itemId | Yes | Id of the task item (items[].id from get_task) whose status is review. | |
| reason | No | With action skip, operationId and evidenceRef: customer_purchased after a verified purchase, unsubscribed after the customer unsubscribed. Needs a paused task, or a draft with a pending item, and no unsettled calls; keeps history, costs and DNC. Does not resolve review items. | |
| revision | Yes | Revision of the task as returned by get_task. The decision is rejected with revision_conflict when it changed since - reload with get_task. | |
| evidenceRef | No | Opaque reference to the purchase or the unsubscribe record, without customer details such as a phone number or e-mail; the caller must verify it before requesting this skip. | |
| operationId | No | Stable opaque id for this skip operation; reuse it after an uncertain response. |