Complete AI Training

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

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. 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

  1. Ask for any missing inputs before beginning. If a file path is not provided, assume default names.
  2. 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
  1. 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.
  1. On success, append to the three output files with the required format.
  2. On failure, log timestamp and error message to error_log.txt.
  3. If Telegram tokens are provided, send a notification for each successful registration.
  4. Set up an Express server on port 3000 with GET /stats (JSON with totals, success, failed, running, elapsedSeconds) and GET /logs (last 100 lines).
  5. After processing all emails, display a console.table summary with Total, Success, Failed, Success Rate %, Duration.
  6. Wrap every account attempt in try/catch so failures don't crash the system. Use async/await throughout.
  7. 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