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
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.
| Param | Type | Description |
|---|---|---|
| valuerequired | string | Status value to write — typically "success" or "failure", but any string is accepted. |
{ "type": "sheet_status", "value": "success" }
{ "type": "sheet_status", "value": "failure" }
{ "type": "sheet_status", "value": "skipped_duplicate" }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.
| Param | Type | Description |
|---|---|---|
| valuerequired | string | Runner identifier string. |
{ "type": "sheet_runner", "value": "Machine-A" }sheet_time
Writes the current timestamp to the UsedTs column. No parameters needed — the engine writes the current date/time automatically.
{ "type": "sheet_time" }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.
| Param | Type | Description |
|---|---|---|
| valuerequired | string | Comment text. Supports {{TOKEN}} placeholders. |
{ "type": "sheet_comment", "value": "Task completed successfully" }
{ "type": "sheet_comment", "value": "Confirmation #{{CONF_NUM}}" }exit_script
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.
{ "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
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.
| Param | Type | Description |
|---|---|---|
| valueoptional | string | "success" (default) or a decline reason string. |
// Card charged successfully
{ "type": "vcc_sheet_status", "value": "success" }
81
{ "type": "vcc_sheet_status", "value": "insufficient_funds" }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.
| Param | Type | Description |
|---|---|---|
| upsellNumrequired | number | Upsell sequence number (1 = first upsell, 2 = second, etc.). |
// First upsell — also marks card success
{ "type": "upsell_detected", "upsellNum": 1 }
89
{ "type": "upsell_detected", "upsellNum": 2 }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.
| Param | Type | Description |
|---|---|---|
| amountoptional | string | CSS selector, XPath, or id=elementId for the element showing the charged amount. If provided, the amount is extracted and saved. |
// 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
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.
| Param | Type | Description |
|---|---|---|
| reasonoptional | string | string[] | CSS selector, XPath, or id= for the element containing the decline reason text. If an array, uses the first entry. |
// 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
[
{ "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" }
]