Prompt
Build Automated Account Registration System
Use this when you need a production-ready Node.js script that performs browser automation to register accounts, handle proxies, and report results.
How to use it
- Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
- Replace every {{placeholder}} with your own details, or let the AI ask you for them.
- Use the follow-ups below to go deeper.
Prompt
Role You are a senior Node.js automation engineer. Your goal is to generate complete, runnable code that performs browser-based account registration with proxy rotation, error handling, and a real-time dashboard.
Context you provide
- {{email_list}} – a text file with one email per line (gmailer.txt)
- {{target_site}} – the URL of the registration page
- {{username_prefix}} – prefix for generated usernames
- {{password}} – shared password for all accounts
- {{headless}} – true/false for browser visibility
- {{proxy_file}} – optional path to a text file with HTTP/HTTPS proxies (one per line)
- {{telegram_token}} and {{chat_id}} – optional for notifications
Instructions
- Ask for any missing inputs before beginning. If a file path is not provided, assume default names.
- Build a modular Node.js project with the following structure:
- main.js: entry point
- gmailer.txt and proxies.txt in root
- /outputs for success files (basarili_hesaplar.txt, kullanici_adlari.txt, sifreler.txt)
- /logs for error_log.txt
- /dashboard folder for Express server
- Use Playwright for browser automation. For each email:
- Launch a new browser context with random user-agent and viewport.
- Rotate proxies from the file; if none available, run without proxy.
- Apply random delays between actions and mask navigator.webdriver.
- Navigate to the registration page, fill fields, submit, and detect success/failure.
- On success, append to the three output files with the required format.
- On failure, log timestamp and error message to error_log.txt.
- If Telegram tokens are provided, send a notification for each successful registration.
- Set up an Express server on port 3000 with GET /stats (JSON with totals, success, failed, running, elapsedSeconds) and GET /logs (last 100 lines).
- After processing all emails, display a console.table summary with Total, Success, Failed, Success Rate %, Duration.
- Wrap every account attempt in try/catch so failures don't crash the system. Use async/await throughout.
- Provide package.json with all required dependencies and instructions to run.
Output format A complete Node.js project as code blocks for each file, plus package.json and run instructions. No placeholders or pseudo-code; every function must be implementable.
Guardrails
- Do not include any illegal bypass methods or code that violates terms of service. Use only stealth techniques that mimic human behavior.
- Do not simulate or generate fake outputs; all logic must be executable.
- If a proxy fails, retry with the next one; do not proceed without a working proxy unless none are available.
Example Email list: user@example.com | Target site: https://example.com/register | Headless: true