Sheet & Exit Actions

Actions for writing data back to your spreadsheet and controlling how the run ends. These connect your automation to your tracking system — every status update, timestamp, and result gets recorded in the sheet row that was claimed for this profile.

sheet_status

type: sheet_status

Writes a value to the STATUS column of the current row. When the value is "success", the engine marks the script as having declared success — this affects how the finalizer treats the run. Duplicate success writes are automatically skipped.

ParamTypeDescription
valuerequiredstringStatus value to write — typically "success" or "failure", but any string is accepted.
JSON
{ "type": "sheet_status", "value": "success" }
{ "type": "sheet_status", "value": "failure" }
{ "type": "sheet_status", "value": "skipped_duplicate" }

sheet_runner

type: sheet_runner

Writes a value to the RUNNER_ID column. Tracks which machine or instance processed this row — useful when multiple machines share a sheet.

ParamTypeDescription
valuerequiredstringRunner identifier string.
JSON
{ "type": "sheet_runner", "value": "Machine-A" }

sheet_time

type: sheet_time

Writes the current timestamp to the UsedTs column. No parameters needed — the engine writes the current date/time automatically.

JSON
{ "type": "sheet_time" }

sheet_comment

type: sheet_comment

Writes a value to the COMMENT column. Use for extra context — error messages, confirmation numbers, or notes about what happened during the run. Empty/whitespace values are silently skipped.

ParamTypeDescription
valuerequiredstringComment text. Supports {{TOKEN}} placeholders.
JSON
{ "type": "sheet_comment", "value": "Task completed successfully" }
{ "type": "sheet_comment", "value": "Confirmation #{{CONF_NUM}}" }

exit_script

type: exit_script
type: exit

Immediately stops the entire script for the current profile. The engine moves on to the next profile in the queue. Both exit_scriptand exit are identical — no parameters.

JSON
{ "type": "exit_script" }

27
{ "type": "exit" }

Billing / VCC (Virtual Credit Card) Actions

These actions write to Sheet 2 (the Virtual Credit Card billing sheet) or the inline VCC columns on Sheet 1. They track card charges, upsells, declines, and thank-you confirmations for VCC-based billing workflows.

vcc_sheet_status

type: vcc_sheet_status

Writes the charge result to the Virtual Credit Card (VCC) billing sheet. If the value is "success", calls the success handler. Any other value is treated as a decline reason.

ParamTypeDescription
valueoptionalstring"success" (default) or a decline reason string.
JSON
// Card charged successfully
{ "type": "vcc_sheet_status", "value": "success" }

81
{ "type": "vcc_sheet_status", "value": "insufficient_funds" }

upsell_detected

type: upsell_detected

Records an upsell event on the Virtual Credit Card (VCC) billing sheet. For the first upsell (upsellNum: 1), the engine also marks the card as successfully charged and emits a telemetry conversion event. The email from the lead row is written to the VCC row automatically.

ParamTypeDescription
upsellNumrequirednumberUpsell sequence number (1 = first upsell, 2 = second, etc.).
JSON
// First upsell — also marks card success
{ "type": "upsell_detected", "upsellNum": 1 }

89
{ "type": "upsell_detected", "upsellNum": 2 }

thankyou

type: thankyou

Marks the thank-you / confirmation page on the VCC (Virtual Credit Card) billing sheet — records successful delivery. Optionally reads a charged amount from the page by providing an amount selector — the engine extracts the text content from that element and writes it to the AMOUNT column. Supports CSS selectors, XPath, and id= shorthand.

ParamTypeDescription
amountoptionalstringCSS selector, XPath, or id=elementId for the element showing the charged amount. If provided, the amount is extracted and saved.
JSON
// Simple thank-you marker
{ "type": "thankyou" }

51
{ "type": "thankyou", "amount": "#total-charged" }

149
{ "type": "thankyou", "amount": "id=order-total" }

224
{ "type": "thankyou", "amount": "xpath=//span[@class='amount']" }

decline

type: decline

Records a Virtual Credit Card (VCC) decline on the billing sheet. Reads the decline reason from a page element (via reason selector) and writes VCC_STATUS = decline plus the extracted reason text. If the reason text indicates insufficient funds, the engine automatically triggers a package retry. Supports both Sheet 2 (legacy) and inline Sheet 1 billing.

ParamTypeDescription
reasonoptionalstring | string[]CSS selector, XPath, or id= for the element containing the decline reason text. If an array, uses the first entry.
JSON
// Extract decline reason from an element
{ "type": "decline", "reason": "#error-message" }

93
{ "type": "decline", "reason": "xpath=//div[@class='decline-reason']" }

181
{ "type": "decline", "reason": "id=card-error" }

Complete Flow Example

JSON
[
  { "type": "type", "selector": "#email", "value": "{{EMAIL}}" },
  { "type": "type", "selector": "#name", "value": "{{FULL_NAME}}" },
  { "type": "click", "selector": "#submit" },
  { "type": "wait_until", "detect": { "text": ["Thank you"] }, "timeout": 30000 },
  { "type": "sheet_status", "value": "success" },
  { "type": "sheet_comment", "value": "Task completed" },
  { "type": "sheet_time" },
  { "type": "exit_script" }
]