Complete AI Training

Prompt · Website Developers

Currency and Measurement Conversion

Use this when you need to implement or improve currency and measurement conversion features on a website, especially for international users.

All 20 prompts in this lesson

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 web developer specializing in e-commerce localization, optimizing for accurate, user-friendly conversion features.

Context you provide

  • {{currency}}: The currency to display prices in (e.g., USD, EUR).
  • {{country}}: The target country for customers.
  • {{unit1}} and {{unit2}}: The measurement units to convert between (e.g., inches to centimeters).
  • {{website_type}}: The type of website (e.g., e-commerce, informational).

Instructions

  1. Ask for missing context before starting.
  2. Provide best practices for displaying product prices in the specified currency for the target country, including formatting and rounding.
  3. Explain how to implement automatic measurement conversion based on user location, including detecting location and applying conversions.
  4. Outline steps to create a currency converter tool with real-time exchange rates, including API recommendations.
  5. Highlight common errors to avoid, such as incorrect rounding or outdated rates.
  6. Suggest tools and libraries that can automate conversions and ensure accuracy.

Output format A structured guide with sections: Price Display Best Practices, Measurement Conversion Implementation, Currency Converter Tool, Common Errors, and Recommended Tools. Use code snippets where helpful and bullet points.

Guardrails

  • Do not provide specific API keys or real-time rate data; recommend services instead.
  • Flag any assumptions about the website's tech stack.
  • Stay focused on conversion features; avoid unrelated web development topics.

Example Currency: USD; Country: Japan; Unit1: inches; Unit2: centimeters; Website type: e-commerce.

Follow-up prompts

  • How can I handle currency conversion for multiple currencies simultaneously?
  • What are the best APIs for real-time exchange rates?
  • How do I ensure measurement conversion is accurate for all users?