Small implementation details can make a big difference in how an AI agent understands a caller and decides what to do next.
While implementing Frontly for dental practices in the UK, we came across an interesting detail about phone numbers that changed how our AI voice agent handles certain conversations.
Different phone number formats can indicate different types of numbers. A UK mobile number, a geographic landline and a non-geographic number don't all serve the same purpose. This becomes particularly important when an AI agent needs to send a payment link or another message through WhatsApp.
Instead of treating every incoming number as a potential WhatsApp destination, we wanted Frontly to identify the number type beforehand and adapt its conversation accordingly.
What followed was a series of small improvements involving number recognition, caller context, patient identification and message delivery.
What We Discovered During Implementation
We identified three related issues while testing Frontly with Dental Concepts, including during live calls.
1. Phone numbers without country codes were being interpreted incorrectly
On 17 September, we identified a problem with numbers entered through the website widget without an international country code.
A number entered without a country code was being interpreted as an Indian number (+91), even when the intended number belonged to a UK customer.
The issue was caused by assuming that every number without a country code should be treated as an Indian ten-digit number.
We improved this behaviour so that Frontly uses the bot's configured country when interpreting a number without an international prefix. If that isn't available, it uses the relevant server configuration.
For example, a number entered as 07700 900123 on the UK server is interpreted using the UK country code (+44).
2. The same number was sometimes being recognised as two different numbers
Another issue appeared when matching incoming caller IDs with existing patient records.
A patient's mobile number could be stored in the dental practice management system as:
But the incoming caller ID could arrive as:
Although both represent the same phone number, a direct comparison of the digits could fail to recognise the patient.
We improved how these formats are standardised and compared, allowing Frontly to recognise equivalent phone numbers and find the correct patient record.
This is particularly important when the agent needs to recognise an existing patient rather than treating every returning caller as a new enquiry.
3. The agent was asking landline callers about WhatsApp
The most interesting issue appeared during testing on 30 September.
A tester called the dental practice using its landline and agreed when asked whether WhatsApp was available on that number.
However, a landline cannot receive WhatsApp messages.
This meant that the payment link could fail to reach the patient. In the booking workflow we identified, this could eventually result in the appointment being cancelled because the required deposit had not been received.
We realised that the agent needed to know the type of incoming number before asking questions about WhatsApp.
That became the basis for the next improvement.
How Frontly Identifies UK Mobile and Landline Numbers
UK phone numbers follow specific numbering patterns. Their prefixes provide useful information about whether a number is a mobile, geographic landline or another type of number.
Frontly uses these patterns to classify supported phone numbers before deciding whether WhatsApp is an appropriate communication channel.
Understanding UK number formats
| Number prefix |
Number type |
WhatsApp handling |
| 071–075, 077–079 |
Mobile |
Eligible |
| 07624 |
Isle of Man mobile |
Eligible |
| 070, 076 |
Personal numbers and pagers |
Not eligible |
| 01, 02 |
Geographic landlines |
Not eligible |
| 03, 05, 08, 09 |
Non-geographic numbers |
Not eligible |
| Anonymous or withheld |
Withheld number |
Not eligible |
For example, a number beginning with 077 is generally identified as a mobile number, whereas a number beginning with 020 is recognised as a geographic landline.
Frontly performs this classification using the numbering rules for supported countries, without requiring an external phone-number lookup service.
Recognising different representations of the same number
Phone numbers are not always entered in the same format. A UK mobile number might be provided as 07700 900123, +447700900123 or 00447700900123.
Frontly standardises these representations before processing them. This helps the system identify the same number consistently, whether it comes from an incoming call, a website enquiry or an existing patient record.
When a country code is missing, Frontly uses the bot's configured country to interpret the number. This helps avoid assigning an incorrect country code based solely on the number of digits.
India is also supported through its own numbering rules. Ten-digit numbers beginning with 6–9 are classified as mobile numbers, while other numbers are treated as landlines.
How This Changes the AI Conversation
Identifying the number type is only useful if the AI agent can use that information to make better decisions.
Frontly now considers the caller's number type at the beginning of the call. This allows the agent to adapt its conversation before it reaches the point where a payment link or another message needs to be sent.
When the patient calls from a mobile number
Suppose a patient calls the clinic using their mobile number and books an appointment.
Frontly recognises that the caller is using a mobile number. When a payment link needs to be sent, the agent can use the existing number as the WhatsApp destination.
There is no need to ask the patient to provide another mobile number unnecessarily.
When the patient calls from a landline
Now imagine a patient calling from the practice's reception landline or another geographic number.
Frontly already knows that this number isn't suitable for WhatsApp.
Instead of asking, "Do you have WhatsApp on this number?", the agent asks the patient for a mobile number that can be used for WhatsApp.
The number is then read back digit by digit so the patient can confirm it.
If the patient doesn't have a suitable mobile number, the agent offers email as an alternative and confirms the email address before proceeding.
If neither option is available, Frontly can still complete the booking and inform the patient that the reception team will follow up about the deposit.
This is an important distinction. The agent isn't simply following a fixed conversation script. It is using information about the caller to decide which question makes sense next.
Choosing the Right Channel for Payment Links
Number identification also influences what happens after the call.
When Frontly needs to send a payment link, it considers the available delivery destinations in the following order:
- Requested email address: If the caller has asked to receive the link by email, this is prioritised.
- Mobile number provided by the patient: A suitable mobile number provided during the conversation can be used for WhatsApp.
- The caller's own number: If the incoming number is identified as a mobile and can be used for WhatsApp, Frontly can use it.
- Reception follow-up: If no suitable destination is available, Frontly does not create an undeliverable payment link. The practice is notified so its team can contact the patient.
This helps ensure that payment links are directed to an appropriate communication channel instead of being sent to a number that cannot receive them.
What Happens When WhatsApp Delivery Fails?
There is another important distinction between identifying a mobile number and confirming that it has an active WhatsApp account.
A number may follow a valid mobile numbering format but still not be registered with WhatsApp.
Frontly accounts for this possibility separately.
If WhatsApp reports that a message could not be delivered:
- The delivery failure is recorded.
- The patient's booking slot is retained rather than automatically cancelled because of the failed message.
- The practice receives an email notification asking its team to contact the patient.
Frontly also checks delivery destinations before sending and prevents a landline from being used as a WhatsApp destination.
This additional handling is important because a communication failure should not automatically become a booking failure.
Why These Small Details Matter for Dental Practices
From the outside, identifying a mobile number versus a landline might appear to be a minor improvement.
But it influences several parts of the patient journey.
- Fewer unnecessary questions: Returning patients using a mobile number don't need to repeat information that Frontly already has.
- More relevant conversations: The agent asks for an alternative number only when it is actually needed.
- Better patient identification: Different representations of the same number can be matched more consistently with existing patient records.
- More appropriate message delivery: WhatsApp and email are selected based on the available information and patient preference.
- More reliable booking workflows: Failed message delivery is handled without automatically cancelling the appointment.
These improvements may not always be visible to the patient as individual features. However, together they help create an interaction that feels more natural and is better suited to the situation.
What We Learned Building It
This implementation reinforced something we continue to learn while building Frontly for real businesses.
Not every improvement requires a completely new AI capability. Sometimes, the difference comes from understanding the information already available and using it at the right moment.
A phone number isn't just a string of digits. Its format can provide context about the caller, the communication channels available and the questions an AI agent should ask.
By incorporating that context into the conversation, we can make the agent more useful without making the interaction more complicated.
We continue to apply these learnings from real-world implementations to make Frontly's voice, messaging and booking workflows more reliable.
Small implementation details. Better conversation flows. More reliable automation.
See How Frontly Can Support Your Practice
Frontly helps dental practices manage patient interactions across phone calls, website chat and WhatsApp.
From handling incoming enquiries to supporting appointment bookings, rescheduling and payment-related communication, Frontly connects patient conversations with the workflows that help clinics run more smoothly.
Want to understand how Frontly could work with your practice?
Speak with our team and learn more about our AI-powered communication solutions.
Frequently Asked Questions
Can Frontly identify whether a UK phone number is a mobile or landline?
Yes. Frontly uses UK numbering prefixes and number formats to identify supported mobile and landline numbers before deciding how to handle the conversation.
Does every mobile number have WhatsApp?
No. Number classification identifies the type of number, but it does not confirm whether the number has an active WhatsApp account. Actual message delivery is handled separately.
What happens when a patient calls from a landline?
Frontly recognises that the caller is using a landline. When a WhatsApp payment link is needed, the agent asks for a mobile number or offers email as an alternative.
Can Frontly recognise the same number in different formats?
Yes. Frontly standardises supported phone number formats, allowing equivalent representations such as 07... and +447... to be recognised as the same number.
What happens if a WhatsApp payment link cannot be delivered?
Frontly records the delivery failure, retains the booking slot and notifies the practice so that its team can follow up with the patient.
Which countries currently have number classification support?
The current implementation includes country-specific classification for the UK and India. Numbers from other countries are treated as unknown rather than classified using the same country-specific rules.
Explore Frontly
Better patient communication starts with understanding the details behind every interaction.
Discover how Frontly can help your practice manage patient enquiries and booking workflows with AI-powered voice and messaging.
Visit Frontly to learn more about our solutions.
Frontly — Better conversations start with better context.