WhatsApp Customer Verification Simulator

Standalone prototype · PHP + JSON file storage · No Meta connection required

Test the customer journey

Start a simulated conversation, submit a mobile number and see the response returned by the PHP verification API.

Use digits with country code. Spaces, + and hyphens are accepted and normalised.

Quick test numbers
Demo Customer Supportsimulated conversation
Start the conversation to begin testing.

Customer verification flow

Visual overview of the complete prototype workflow and its conditional outcomes.

Current prototype
TRIGGER Customer sends a message WhatsApp: Hi / Hello
↓
BOT MESSAGE Welcome message Ask customer to verify their mobile number
↓
CUSTOMER INPUT Enter mobile number Country code + mobile number
↓
BACKEND API Verify customer record PHP reads the latest data/customers.json file
↓
CONDITION What is the verification result? Check record existence and current status
ACTIVE CUSTOMER
Welcome back, [Customer Name] Account verified successfully
↓
Continue to customer journey
INACTIVE CUSTOMER
Account inactive Inform customer and provide support guidance
↓
Contact support / End
NOT REGISTERED
Customer not found Display registration instructions
↓
Registration guidance / End
API / SYSTEM ERROR
Unable to verify Display an error message
↓
Retry verification

Flow behaviour

StepActionData / decision
1Start conversationSimulated incoming Hi / Hello
2Collect mobile numberCustomer-provided number
3Call verification APINormalise number and read current JSON records
4Evaluate resultRecord found? If yes, is status active?
5Return responseActive / Inactive / Not registered / Error
6Log attemptSave result and timestamp in verification_logs.json

Note: This diagram represents the current browser simulator. The live WhatsApp integration will later use Meta webhooks and WhatsApp Flow Data Exchange for the corresponding steps.

Add customer

How dynamic checking works

Every verification reads the current customers.json file. Changes saved here are used on the very next verification request; no application restart is required.

For this prototype, customer records are stored in a local JSON file. Do not expose this demo publicly without adding administrator authentication and HTTPS.

Customer records

Verification history