Variables, macros, and automatic captures
They keep a snippet from being dead text and turn it into a template that adapts to context and asks for data when needed.
On this page · 6 sections
Replied in 13.6 seconds
NexoPad can replace internal variables, read data from the page, ask you for information at insertion time, and save automatic captures by domain.
This system is especially useful for sales, support, follow-up, and repetitive replies that change depending on the customer, site, or task.
Available variables and syntax
| Type | Syntax | What it inserts |
|---|---|---|
Current date | Syntax{{date}}, {{weekday}}, {{month}}, {{year}} | What it inserts Current date or parts of the current date. |
Current time | Syntax{{time}} | What it inserts The time at the moment of insertion. |
Current page | Syntax{{url}}, {{domain}}, {{page_title}} | What it inserts URL, domain, or title of the active tab. |
Name | Syntax{{first_name}}, {{full_name}} | What it inserts Short name or full name when the site provides it. |
Random | Syntax{{random:Option A|Option B|Option C}} | What it inserts Chooses one alternative at insertion time. |
Relative date | Syntax{{date:+7_days}}, {{date:+1_months}}, {{date:+1_years}} | What it inserts Calculates a future relative date. |
Manual input | Syntax{{input:Client name}} | What it inserts Opens a box so you can type the value before insertion. |
Dropdown | Syntax{{dropdown:Priority|High|Medium|Low}} | What it inserts Lets you choose an option before generating the text. |
Date with format | Syntax{{date:DD/MM/YYYY}} | What it inserts Current date in the exact format you choose (day, month, year, month name, day name, time). |
Long paragraph | Syntax{{paragraph:Additional details}} | What it inserts Like manual input, but with room to type several lines before insertion. |
Cursor | Syntax{{cursor}} | What it inserts Leaves the cursor at an exact point in the snippet after inserting it, instead of at the end. |
Clipboard | Syntax{{clipboard}} | What it inserts Pastes whatever you currently have copied to the clipboard at insertion time. |
Greeting by time of day | Syntax{{greeting}} | What it inserts “Good morning”, “Good afternoon” or “Good evening” depending on the time. Capitalized only at the start of a sentence. |
Business days | Syntax{{date:+3_workdays}} | What it inserts A date some business days ahead: skips Saturdays and Sundays. |
Calendar | Syntax{{datepicker:Call date}} | What it inserts Opens a calendar to pick the date before inserting. |
Long date | Syntax Add |long: {{date:+3_workdays|long}} | What it inserts Writes the date as “Thursday, October 23” instead of 23/10/2026. |
{{input:...}} variable opens this dialog when inserting.2Greeting by time of day, business days and calendar
{{greeting}} writes “Good morning” from 6:00, “Good afternoon” from the hour you choose (12:00, 13:00 or 14:00; you change it in the editor’s Variables menu) and “Good evening” from 20:00. It is capitalized at the start of a sentence and lowercase after “Hi, …”. The text follows the extension’s language.
{{date:+3_workdays}} only counts Monday to Friday: a Friday + 1 business day gives Monday. Holidays are not counted.
{{datepicker:Label}} adds a calendar to the usual fill-in form. It starts on today and has “Today”, “Tomorrow” and “Next Monday”. With the keyboard, the arrows move the day and Enter picks it and inserts.
3Variables detected from the current page
The extension includes known extractors for contexts such as Gmail, WhatsApp Web, Intercom, and several LinkedIn views, including profile, company, and Sales Navigator. In those cases it can detect fields such as full_name, job_title, company, sender_email, or subject when the page exposes them.
If a website does not have a specific extractor, NexoPad attempts a generic read using page metadata, Schema.org, and Open Graph tags. That helps fill part of the context even outside dedicated integrations.
On the Free plan, known contextual detection is more limited. Gmail is the clearest available reference, and other advanced extractions may require Pro or Teams.
4Personal macros and company variables
- You can save your own macros and use them as
{{my_macro}}inside snippets or reusable notes. - Company variables are stored in the team settings and inserted with a single brace syntax, for example
{company_name}. - Interactive variables such as
{{input:...}}and{{dropdown:...}}open a modal before insertion, so you do not need to edit the snippet every time. - In the Notebook, the editor's
{x}button opens a visual Macro Builder with 8 ready-made blocks — Text Field, Long Paragraph, Dropdown, Relative Date, Date with Format, Random Choice, Cursor, and Clipboard — that build the correct syntax for you, no need to type it by hand. - Nothing stops you from combining variables, variants, and automatic captures inside the same snippet.
5Try a snippet before using it
In the Notebook, snippets with variables show a green “▶ Try” button next to “Variables”. It opens a window with a field for each value to fill in (text, paragraph, list or calendar) and for each site variable, such as {{first_name}}, so you can type it by hand. Automatic ones, like the date, time, greeting or your macros, are calculated on their own.
Below, you see the final text as you type and you can copy it with “Copy text”. It is only a test: the note doesn’t change.
6How to configure Automatic Captures
Open the Automatic Captures block from the popup
This feature lives inside the main popup. There you can see the saved captures for the current domain and create new ones.
Define the variable name
That name will be the token you can later reuse inside snippets and other templates.
Choose the cleanup filter
The current filters are raw, first_name, numbers, uppercase, lowercase, and capitalize.
Enable the visual inspector and click the element
The extension saves the selector for that domain and reuses it when you return to the same site.
Reload the page if needed and test the variable
If the site changes structure a lot or loads late, a reload helps the selector be found correctly again.
- On Free you can save a limited number of automatic captures.
- Captures depend on the real structure of the site; if the website changes, you may need to select it again.