NameQuick LogoNameQuick

Templates

Design clear, reusable patterns to rename files using natural language extraction

What templates do

Templates tell NameQuick how to extract structured fields from your files and assemble a consistent filename. Define fields in plain English (e.g., Invoice Date, Client Name), then build a filename pattern using braces to reference those fields and system placeholders.

Use Templates when you need consistent, repeatable filenames for similar documents (invoices, receipts, meeting notes). Prefer Smart Rename for quick one-off descriptive names without strict structure.

Filename Pattern
{Invoice Date}_{Client Name}_{Invoice Total}
Result
2024-03-15_Apple_$299.99.pdf

How It Works

You define fields to extract (AI Instructions), a separator, and a filename pattern. NameQuick builds a structured prompt that:

  • Asks the model to extract your fields from content
  • Includes your separator and formatting guidance
  • Applies post-processing rules you add
  • Requires a JSON response with each field and an assembled filename

The app validates the response, assembles the filename, applies any system placeholders (like {date}), then renames/moves the file. You don’t write raw prompts—the app generates a robust, tagged prompt from your template settings.

Quick Start

1

Open Templates

Sidebar → Templates → New Template card

2

Add AI Instructions

Write natural-language fields: Invoice Date, Client Name, Total Amount

3

Preview & Save

Test on a few files before enabling

Key Concepts

AI Instructions: The list of fields you want to extract (e.g., “Invoice Date”, “Client Name”). Be specific.

Separator: The character for both words and fields (e.g., - or _).

System Placeholders: Built-in values you can insert (e.g., {date}, {counter}, {original}).

Post-Processing Rules: Optional transformations to normalize field output (field-specific or global).

Template Syntax

Placeholders

In your filename pattern, reference extracted fields and system placeholders using braces.

{Invoice Date}, {Invoice Number}, {Client Name}
Literals

Combine placeholders with text, dashes, or underscores.

Invoice-{Invoice Number}_{Client Name}
Separators & File Types

Choose a single separator for words and fields (e.g., - or _). Works with PDFs, images, and text files.

Separator examples: - • _ • . — File types: PDF • PNG • JPG • JPEG • WEBP • TXT • MD • CSV • DOCX

System Placeholders

Insert dynamic values that don’t come from AI extraction:

{date}, {date:yyyy-MM-dd}, {datetime:yyyy-MM-dd_HH-mm-ss}
{time:HH-mm-ss}, {year}, {month}, {day}
{counter}, {original}, {extension}
{parent}, {size}, {dimensions}

Transformations

Clean and standardize extracted data after AI extraction but before the filename is created. Write rules in plain English; NameQuick applies them in order.

Lowercase

"Make vendor lowercase"

Apple Inc. → apple inc.

Replace

"Replace spaces with underscores"

March 15, 2024 → March_15,_2024

Format Date

"Format date as YYYY-MM-DD"

March 15, 2024 → 2024-03-15

Where transformations apply

All Fields

Apply to every extracted value before joining the final filename.

Specific Field

Target one field, like vendor or amount, without affecting others.

Final Filename

Run last to tidy separators, casing, or symbols across the whole name.

Create a Template

  1. Open Templates: Sidebar → Templates, then click the “New Template” card.
  2. Name and describe: Title and optional Description.
  3. Add AI Instructions: One field per value (e.g., Invoice Date, Client Name). Be specific.
  4. Choose a separator: E.g., - or _ for words and fields.
  5. Build the pattern: Arrange fields, static text, and system placeholders.
  6. (Optional) Add post-processing rules: Field-specific first, then global.
  7. Save: Your template is available in processing mode menus.

Run a Template

Select files → choose your template under “Templates” → click Play. NameQuick extracts fields, assembles the filename with your pattern and separator, applies system placeholders, and renames/moves the files.

Validation & Errors

  • Missing or invalid required fields abort the rename to protect your files.
  • Invalid pattern characters (/, <, >, :, ", |, ?, *) are flagged.
  • Patterns should include at least one placeholder (AI field or system placeholder).

Examples

Invoices
{Invoice Date}_{Client Name}_{Invoice Number}_{Total Amount}
2024-03-15_Amazon_INV-4711_$156.99.pdf
Research Papers
{publication year}_{first author}_{paper title}
2024_Smith_Neural_Networks.pdf
Meeting Notes
{Meeting Date}_{Meeting Title}
2025-03-10_architecture_review.md

Walkthrough

Tips & Best Practices

Write clear fields

Be specific: "invoice total" beats "amount"

Offer synonyms: "Total" or "Amount Due"

Use visual cues: "Top right date"

Avoid pitfalls

Don’t be vague: avoid "text", "number"

Keep it short: skip long paragraphs

Test with multiple file sources

Anti-Patterns (Avoid)

  • Ambiguous fields: “Name”, “Date”, “Number” without context
  • Mixing concerns: formatting instructions inside field names
  • Conflicting rules: field rule adds spaces while global enforces underscores
  • Over-engineering: many rules fighting messy inputs — start minimal and iterate
  • Duplicating system placeholders: asking AI for “Date” while also using {date}

Quick Checklist

  • Clear, specific field names (include format hints if helpful)
  • One value per field; specify join rules when needed
  • Single, consistent separator for the template
  • Pattern combines extracted fields and any system placeholders
  • Field-specific rules first; global cleanup last
  • Validate with “Test This Template” and adjust

FAQ

Do I need to write prompts?
No. The app generates a structured prompt from your template settings.
Can I mix AI fields and system placeholders?
Yes. Use both in your pattern (e.g., {Client Name} with {date}).
Does it analyze content or filenames?
Templates analyze file content; system placeholders pull metadata like date or original name.
Will it always find every field?
Not always. If a required field is missing, the app may abort the rename for safety. Make instructions specific and use rules to normalize formats.

Troubleshooting Common Issues

Incomplete extraction

Some values come back empty or partial.

Make your field more specific (e.g. "invoice total" instead of "amount"). Try adding context like where it appears on the page.
Wrong value extracted

Fields pick up the wrong number or text.

Clarify field intent (e.g. "invoice number (top right)"), and add a transformation to clean up the result.
Inconsistent naming

Similar documents get different names.

Use a Template for that document type and prefer clear, deterministic fields over generic ones.
Special characters in filenames

Resulting names include symbols or inconsistent casing.

Add final filename transformations (e.g. replace symbols, standardize separators, or enforce case).