Data Tokens

Data tokens are placeholders you write inside your script that get replaced with real data at runtime. They pull values from your spreadsheet row, split fields into parts, and format dates — all automatically. Tokens use double curly braces: {{TOKEN_NAME}}.

How Tokens Work

When a run starts, the engine picks a row from your connected spreadsheet. Every {{...}} token in that run's actions is replaced with the matching column value from that row. The match is case-insensitive — {{email}}, {{EMAIL}}, and {{Email}} all pull from the same column.

JSON
// Your script
{ "type": "type", "selector": "#email", "value": "{{EMAIL}}" }

79
137

If a token doesn't match any column in the row, it resolves to an empty string — the field gets typed as blank. No error is thrown, so double-check your column headers match your tokens.

Spreadsheet Column Tokens

Any column header in your spreadsheet becomes a usable token. The token name is the column header in uppercase. These are the most commonly used columns:

TokenSpreadsheet ColumnExample Value
{{FIRST_NAME}}FIRST_NAMEJohn
{{LAST_NAME}}LAST_NAMESmith
{{EMAIL}}EMAILjohn@example.com
{{PHONE}}PHONE5551234567
{{ADDRESS}}ADDRESS123 Main St
{{CITY}}CITYAustin
{{STATE}}STATETX
{{ZIP}}ZIP78701

These are just examples — you can name your columns anything. If your sheet has a column called COMPANY_NAME, use {{COMPANY_NAME}} in your script. The engine matches any column header.

Combining Tokens

Tokens can be mixed with static text and with each other in a single value:

JSON
// Two tokens combined
{ "type": "type", "selector": "#fullName", "value": "{{FIRST_NAME}} {{LAST_NAME}}" }

109
{ "type": "navigate", "value": "https://example.com/apply?zip={{ZIP}}&state={{STATE}}" }

217
{ "type": "type", "selector": "#greeting", "value": "Hello {{FIRST_NAME}}, welcome!" }

Auto-Generated Tokens

The engine automatically generates additional tokens from your spreadsheet data. You don't need extra columns for these — they are created from existing columns at runtime.

Full Name

TokenSourceExample
{{FULL_NAME}}FIRST_NAME + LAST_NAMEJohn Smith

Date of Birth (DOB)

Put your DOB in the spreadsheet as MM/DD/YYYY (e.g. 05/12/1990). The engine splits it into every format you might need:

TokenOutputUse For
{{DOB}}05/12/1990Original value from sheet
{{DOB_MM_DD_YYYY}}05/12/1990Combined text field with slashes
{{DOB_YYYY_MM_DD}}1990-05-12HTML input[type=date] fields
{{DOB_COMPACT_MMDDYYYY}}05121990Fields that expect no separators
{{DOB_MM}} / {{DOB_MONTH_PADDED}}05Month dropdown (zero-padded number)
{{DOB_DD}} / {{DOB_DAY_PADDED}}12Day dropdown (zero-padded number)
{{DOB_M}} / {{DOB_MONTH_NUM}}5Month without leading zero
{{DOB_D}} / {{DOB_DAY_NUM}}12Day without leading zero
{{DOB_YYYY}} / {{DOB_YEAR}}1990Year dropdown (4-digit)
{{DOB_MONTH_SHORT}}MayMonth name dropdown (3-letter)
{{DOB_MONTH_LONG}}MayMonth name dropdown (full name)

Which DOB token to use where:

JSON
// Three separate fields for month, day, year
{ "type": "select", "selector": "#dob-month", "value": "{{DOB_MM}}" },
{ "type": "select", "selector": "#dob-day", "value": "{{DOB_DD}}" },
{ "type": "select", "selector": "#dob-year", "value": "{{DOB_YYYY}}" }

258
{ "type": "select", "selector": "#dob-month", "value": "{{DOB_MONTH_LONG}}" }

409
{ "type": "select", "selector": "#dob-month", "value": "{{DOB_MONTH_SHORT}}" }

552
{ "type": "type", "selector": "#dob", "value": "{{DOB_MM_DD_YYYY}}" }

653
{ "type": "type", "selector": "input[type='date']", "value": "{{DOB_YYYY_MM_DD}}" }

779
{ "type": "type", "selector": "#dob-compact", "value": "{{DOB_COMPACT_MMDDYYYY}}" }

ID / Reference Number

Put the full 9-digit ID number in your sheet. The engine splits it into segments for forms that have separate fields:

TokenDigitsExample
{{SSN}}All 9123456789
{{SSN1}}First 3123
{{SSN2}}Middle 245
{{SSN3}}Last 46789
JSON
// Three-part ID number fields
{ "type": "type", "selector": "#id-part1", "value": "{{SSN1}}" },
{ "type": "type", "selector": "#id-part2", "value": "{{SSN2}}" },
{ "type": "type", "selector": "#id-part3", "value": "{{SSN3}}" }

229
{ "type": "type", "selector": "#id-number", "value": "{{SSN}}" }

Card Expiry (EXP)

For payment automations. Put the expiry in your sheet and use these auto-generated tokens:

TokenExampleUse For
{{EXP_MONTH}} / {{EXP_MM}}05Month field (zero-padded)
{{EXP_M}}5Month without leading zero
{{EXP_YEAR}} / {{EXP_YYYY}}2027Year field (4-digit)
{{EXP_YY}}27Year field (2-digit)
{{EXP_MM_YY}}05/27Combined MM/YY field
{{EXP_MM_YYYY}}05/2027Combined MM/YYYY field

Driving License

TokenExampleDescription
{{DRIVING_LICENSE}}D12345678License number from sheet
{{DRIVING_LICENSE_STATE_FULL}}CaliforniaFull state name (auto-normalized)
{{DRIVING_LICENSE_STATE_ABBR}}CAState abbreviation (auto-normalized)

Phone Digit Extraction

Some forms split the phone number into separate fields — area code, prefix, and line number. Use the digit-index pattern to extract specific digits from the phone number:

JSON
// If PHONE = "5551234567"

28
{ "type": "type", "selector": "#area-code", "value": "{{PHONE_1_2_3}}" }
127

145
{ "type": "type", "selector": "#prefix", "value": "{{PHONE_4_5_6}}" }
240

258
{ "type": "type", "selector": "#line", "value": "{{PHONE_7_8_9_10}}" }
362

The pattern is {{PHONE_N_N_N}} where each N is a 1-based digit position. The engine strips all non-digit characters first, so (555) 123-4567 and 5551234567 both work the same way. This also works with {{WORK_PHONE_1_2_3}} and {{EMPLOYER_PHONE_1_2_3}}.

The SEPARATE Pattern

The SEPARATE pattern works like phone digit extraction but for any field. It extracts characters at specific positions from any column value. The format is: {{FIELD_SEPARATE_positions}}

JSON
// If ID_NUMBER = "123456789"
{ "type": "type", "selector": "#id-part1", "value": "{{ID_NUMBER_SEPARATE_1_2_3}}" }
115

{ "type": "type", "selector": "#id-part2", "value": "{{ID_NUMBER_SEPARATE_4_5}}" }
216

{ "type": "type", "selector": "#id-part3", "value": "{{ID_NUMBER_SEPARATE_6_7_8_9}}" }
320

339
{ "type": "type", "selector": "#first-four", "value": "{{ACCOUNT_NUMBER_SEPARATE_1_2_3_4}}" }
493

Positions are 1-based. Whitespace, hyphens, parentheses, dots, and plus signs are stripped before extracting — so a formatted value like 123-45-6789 is treated as 123456789 for position counting.

Tokens in Selectors

Tokens aren't limited to value — you can use them in selector too. This is useful when the target element changes based on the row's data:

JSON
// Click a button whose text matches the row's loan amount
{
  "type": "click",
  "selector": "xpath=//button[contains(normalize-space(),'{{REQUESTED_LOAN_AMOUNT}}')]"
}

171
{
  "type": "click",
  "selector": "xpath=//label[contains(normalize-space(),'{{GENDER}}')]"
}

Setting Up Your Spreadsheet

Your spreadsheet is the data source for every token in your script. The first row contains column headers (which become token names), and each row after that is one automation run:

FIRST_NAMELAST_NAMEEMAILPHONEDOBZIP
JohnSmithjohn@example.com555123456703/15/199078701
JaneDoejane@example.com555987654311/02/198590210
AlexJohnsonalex@example.com555678123407/22/199260614

Key rules:

  • Row 1 = headers. These become your token names. Use uppercase with underscores (e.g. FIRST_NAME).
  • One row = one run. The engine processes one row at a time. After a successful run, it marks the row as done and moves to the next.
  • No blank headers. Every column you want to use as a token must have a header in row 1.
  • Add any columns you need. There is no fixed schema. If a form asks for EMPLOYER, add an EMPLOYER column to your sheet and use {{EMPLOYER}} in the script.
  • DOB format matters. Put dates as MM/DD/YYYY so the auto-generated DOB tokens work correctly.

Special Sheet Columns

Some column names have special meaning. They control how the engine processes each row rather than providing data for form fields:

ColumnPurpose
STATUSThe engine writes the run result here (lead, error, etc.). Rows with an existing status are skipped.
STATEWhen use_state_filter is enabled, only rows matching the profile's assigned state are processed.
SOURCETracks which script or run processed this row.

Complete Example

A multi-step form page that uses spreadsheet tokens, DOB formatting, phone splitting, and ID number splitting — all in one actions array:

JSON
"actions": [
  {
    "type": "type",
    "selector": "#firstName",
    "value": "{{FIRST_NAME}}"
  },
  {
    "type": "type",
    "selector": "#lastName",
    "value": "{{LAST_NAME}}"
  },
  {
    "type": "type",
    "selector": "#email",
    "value": "{{EMAIL}}"
  },
  {
    "type": "type",
    "selector": "#areaCode",
    "value": "{{PHONE_1_2_3}}"
  },
  {
    "type": "type",
    "selector": "#phonePrefix",
    "value": "{{PHONE_4_5_6}}"
  },
  {
    "type": "type",
    "selector": "#phoneLine",
    "value": "{{PHONE_7_8_9_10}}"
  },
  { "type": "wait", "delay": 300 },
  {
    "type": "select",
    "selector": "#dob-month",
    "value": "{{DOB_MONTH_LONG}}"
  },
  {
    "type": "select",
    "selector": "#dob-day",
    "value": "{{DOB_D}}"
  },
  {
    "type": "select",
    "selector": "#dob-year",
    "value": "{{DOB_YYYY}}"
  },
  { "type": "wait", "delay": 300 },
  {
    "type": "type",
    "selector": "#address",
    "value": "{{ADDRESS}}"
  },
  {
    "type": "type",
    "selector": "#city",
    "value": "{{CITY}}"
  },
  {
    "type": "select",
    "selector": "#state",
    "value": "{{STATE}}"
  },
  {
    "type": "type",
    "selector": "#zip",
    "value": "{{ZIP}}"
  },
  {
    "type": "type",
    "selector": "#id-part1",
    "value": "{{SSN1}}",
    "optional": true
  },
  {
    "type": "type",
    "selector": "#id-part2",
    "value": "{{SSN2}}",
    "optional": true
  },
  {
    "type": "type",
    "selector": "#id-part3",
    "value": "{{SSN3}}",
    "optional": true
  },
  {
    "type": "click",
    "selector": "xpath=//button[contains(normalize-space(),'Submit')]"
  }
]

Tips

  • Column headers are case-insensitive — a sheet column called Email, EMAIL, or email all work with {{EMAIL}}.
  • Missing columns resolve to empty — if a token doesn't match any column, it becomes an empty string. The action still runs — it just types nothing.
  • Use DOB tokens instead of splitting manually — put the date as MM/DD/YYYY in one column and use the auto-generated tokens. No need for separate month/day/year columns.
  • SEPARATE works on anything — routing numbers, account numbers, license plates, any value where you need specific character positions.
  • Test with one row first — before running a full batch, test your script with a single spreadsheet row to verify all tokens resolve correctly.