AI Tools Công cụ đã được cập nhật 1 tháng trước

Prompt Variable Replacer

Fill {{variables}} in prompt templates with a live preview. Paste a template, fill the detected variables, and copy the final prompt instantly. Everything runs in your browser — nothing is sent to a server.

Luôn miễn phí Dễ sử dụng Kết quả ngay lập tức Riêng tư và an toàn

Sử dụng Prompt Variable Replacer

Công cụ thay thế biến theo lời nhắc

Hãy điền vào các trường trống trong bất kỳ mẫu lời nhắc nào và sao chép lời nhắc đã hoàn thành. Mọi thứ đều chạy ngay trong trình duyệt của bạn — không có dữ liệu nào được gửi lên máy chủ.

1 · Chọn một mẫu
Mẫu trống
2 · Điền vào chỗ trống
0 / 0 đã điền

Nhấp vào một ô để tô đầy nó. Nhấn Enter để lưu, nhấn Esc để hủy.

3 · Yêu cầu của bạn
Incomplete
Các giá trị đã điền vào các ô trống được tô màu xanh lá cây, còn các ô trống được tô màu hổ phách. Các giá trị trống sẽ giữ cho biến đó vẫn hiển thị trong kết quả đầu ra.
Liên kết công cụ
Đã sao chép vào khay nhớ tạm.
Hãy giúp cải thiện công cụ này

Đọc nội dung

Tìm hiểu cách thức hoạt động của công cụ này và khi nào nên sử dụng nó.

How to Use This Tool

Paste any prompt template that uses {{variable}} placeholders, or click Load sample to try a ready-made example. The tool detects every placeholder and builds a list of fields below.

1. Paste your template

Write or paste a prompt with placeholders such as {{role}}, {{topic}} or {{length}}. Placeholders must contain only letters, digits and underscores, and must start with a letter or underscore.

2. Fill the variables

Each detected variable gets its own input field. Type a value for each one, or click Fill all with sample to add realistic values instantly. Use Bulk paste to paste many values at once in a name=value format, one per line.

3. Copy the final prompt

The final prompt updates live as you type. Filled placeholders are highlighted in green; empty ones stay visible in amber. Copy the result, copy the raw template, or save the output as a .txt file.

Features

  • Live token and character counter for the final prompt
  • Malformed placeholder warnings (empty, invalid names, unclosed braces)
  • Per-variable usage count when a placeholder appears more than once
  • Auto-save: your template and values are saved in the browser
  • Presets: save and reload template versions
  • Undo after clearing values

Câu hỏi thường gặp

Các câu trả lời ngắn gọn cho những thắc mắc mà người dùng thường đặt ra trước khi tin tưởng vào kết quả.

A prompt variable is a placeholder such as {{topic}} inside a template. It lets you reuse the same template for many prompts by swapping in different values, which is especially useful for LLM workflows.

No. Everything runs in your browser. Your template and values are stored only in your browser's local storage and are never transmitted to any server.

Double curly braces with a name, like {{role}} or {{num_examples}}. Names can contain letters, digits and underscores, and must start with a letter or underscore.

Yes. Your current template and values are auto-saved in the browser, and you can also save named presets to switch between different templates.

Empty placeholders stay visible in the output and are highlighted in amber so you can see exactly what is still missing before you copy the final prompt.

Bình luận (0)

Dành cho các cuộc thảo luận của người dùng, các trường hợp ngoại lệ và các mẹo bổ sung.
Để lại bình luận
Bình luận của bạn sẽ được hiển thị công khai sau khi gửi.
Chưa có bình luận nào. Hãy là người đầu tiên bình luận!
Hãy cho chúng tôi biết!
Báo cáo sự cố liên quan đến công cụ này

Hãy mô tả vấn đề mà bạn gặp phải để chúng tôi có thể tìm hiểu và cải thiện công cụ này.

Điều gì hữu ích nhất
Vui lòng cung cấp thông tin về dữ liệu đầu vào, kết quả mong đợi, kết quả thực tế, trình duyệt/thiết bị và ảnh chụp màn hình (nếu có thể).
Nút chụp màn hình sẽ chụp lại trang web trong trình duyệt và đính kèm hình ảnh được tạo ra vào biểu mẫu này.
Ảnh chụp màn hình toàn trang
Được ghi lại trên trình duyệt của bạn bằng newisty.
Chưa có ảnh chụp màn hình nào được chụp.
Công cụ Báo cáo