πŸ“Š

Phone Number Fixer

Standardize phone numbers to a consistent format (with or without country code).

Excel ⭐ Beginner ⏱️ 2 minutes

😫 The Pain Point

Your contact list has phone numbers in 10 different formats: β€œ0901234567”, β€œ84-90-123-4567”, β€œ+84 90 123 4567”, β€œ090 123 4567”. You need them all standardized for SMS marketing.

πŸš€ Agentic Solution

A Phone Number Normalizer that converts all formats to your standard.

Key Features:

  • Format Options: E.164 (+84901234567), National (0901234567), Spaced.
  • Validation: Check if numbers are valid.
  • Country Detection: Auto-detect or force country code.

βš”οΈ Phase 1: Commander (Quick Fix)

For quick formatting.

Prompt:

β€œI have an Excel contacts.xlsx with column β€˜Phone’ containing Vietnamese phone numbers in various formats. Write a Python script using phonenumbers library to:

  1. Parse: Assume Vietnam (+84) if no country code.
  2. Format: Standardize to 84xxxxxxxxx (no plus, no spaces).
  3. Validate: Mark invalid numbers in a new column.
  4. Output: Save as contacts_fixed.xlsx.

Print count of valid/invalid numbers.”

Result: Clean phone list ready for bulk SMS.

πŸ—οΈ Phase 2: Architect (Permanent Tool)

Engineering Prompt:

**Role:** Python Tool Developer
**Task:** Create a "Phone Number Formatter".

**Requirements:**
1.  **GUI:**
    *   Select Excel file.
    *   Column picker.
    *   Country dropdown (default Vietnam).
    *   Output format dropdown.
    *   Preview valid/invalid.

2.  **Logic:**
    *   Use phonenumbers library.
    *   Handle edge cases (landlines, mobile).
    *   Mark invalid without deleting.

3.  **Deliverables:**
    *   `phone_fixer.py`
    *   `run.bat`, `run.sh`
    *   `requirements.txt`

🧠 Prompt Decoding

  • phonenumbers library: Google’s library that handles all international formats.

πŸ› οΈ Instructions

  1. Install: pip install phonenumbers
  2. Copy Prompt β†’ Run.

Related Workflows

Explore other categories

πŸ“¬

Get Started with Agentic Working

Subscribe to receive updates from AgenticWorking.io

πŸ“– Free eBook Guide πŸ“¦ 7 Ready-to-use Scripts πŸ”” Weekly Tips

No spam, unsubscribe anytime. Join 1,000+ subscribers.