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.
Customer verification flow
Visual overview of the complete prototype workflow and its conditional outcomes.
Flow behaviour
| Step | Action | Data / decision |
|---|---|---|
| 1 | Start conversation | Simulated incoming Hi / Hello |
| 2 | Collect mobile number | Customer-provided number |
| 3 | Call verification API | Normalise number and read current JSON records |
| 4 | Evaluate result | Record found? If yes, is status active? |
| 5 | Return response | Active / Inactive / Not registered / Error |
| 6 | Log attempt | Save 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.