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.
// Your script
{ "type": "type", "selector": "#email", "value": "{{EMAIL}}" }
79
137If 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:
| Token | Spreadsheet Column | Example Value |
|---|---|---|
{{FIRST_NAME}} | FIRST_NAME | John |
{{LAST_NAME}} | LAST_NAME | Smith |
{{EMAIL}} | john@example.com | |
{{PHONE}} | PHONE | 5551234567 |
{{ADDRESS}} | ADDRESS | 123 Main St |
{{CITY}} | CITY | Austin |
{{STATE}} | STATE | TX |
{{ZIP}} | ZIP | 78701 |
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:
// 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
| Token | Source | Example |
|---|---|---|
{{FULL_NAME}} | FIRST_NAME + LAST_NAME | John 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:
| Token | Output | Use For |
|---|---|---|
{{DOB}} | 05/12/1990 | Original value from sheet |
{{DOB_MM_DD_YYYY}} | 05/12/1990 | Combined text field with slashes |
{{DOB_YYYY_MM_DD}} | 1990-05-12 | HTML input[type=date] fields |
{{DOB_COMPACT_MMDDYYYY}} | 05121990 | Fields that expect no separators |
{{DOB_MM}} / {{DOB_MONTH_PADDED}} | 05 | Month dropdown (zero-padded number) |
{{DOB_DD}} / {{DOB_DAY_PADDED}} | 12 | Day dropdown (zero-padded number) |
{{DOB_M}} / {{DOB_MONTH_NUM}} | 5 | Month without leading zero |
{{DOB_D}} / {{DOB_DAY_NUM}} | 12 | Day without leading zero |
{{DOB_YYYY}} / {{DOB_YEAR}} | 1990 | Year dropdown (4-digit) |
{{DOB_MONTH_SHORT}} | May | Month name dropdown (3-letter) |
{{DOB_MONTH_LONG}} | May | Month name dropdown (full name) |
Which DOB token to use where:
// 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:
| Token | Digits | Example |
|---|---|---|
{{SSN}} | All 9 | 123456789 |
{{SSN1}} | First 3 | 123 |
{{SSN2}} | Middle 2 | 45 |
{{SSN3}} | Last 4 | 6789 |
// 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:
| Token | Example | Use For |
|---|---|---|
{{EXP_MONTH}} / {{EXP_MM}} | 05 | Month field (zero-padded) |
{{EXP_M}} | 5 | Month without leading zero |
{{EXP_YEAR}} / {{EXP_YYYY}} | 2027 | Year field (4-digit) |
{{EXP_YY}} | 27 | Year field (2-digit) |
{{EXP_MM_YY}} | 05/27 | Combined MM/YY field |
{{EXP_MM_YYYY}} | 05/2027 | Combined MM/YYYY field |
Driving License
| Token | Example | Description |
|---|---|---|
{{DRIVING_LICENSE}} | D12345678 | License number from sheet |
{{DRIVING_LICENSE_STATE_FULL}} | California | Full state name (auto-normalized) |
{{DRIVING_LICENSE_STATE_ABBR}} | CA | State 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:
// 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}}" }
362The 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}}
// 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}}" }
493Positions 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:
// 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_NAME | LAST_NAME | PHONE | DOB | ZIP | |
|---|---|---|---|---|---|
| John | Smith | john@example.com | 5551234567 | 03/15/1990 | 78701 |
| Jane | Doe | jane@example.com | 5559876543 | 11/02/1985 | 90210 |
| Alex | Johnson | alex@example.com | 5556781234 | 07/22/1992 | 60614 |
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/YYYYso 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:
| Column | Purpose |
|---|---|
STATUS | The engine writes the run result here (lead, error, etc.). Rows with an existing status are skipped. |
STATE | When use_state_filter is enabled, only rows matching the profile's assigned state are processed. |
SOURCE | Tracks 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:
"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, oremailall 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/YYYYin 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.