AI agents have become good at doing a lot of tasks online, be it accessing websites, filling out form, checking information etc. But one thing that they still struggle with is the workflow where OTPs, SMS, verification is involved. And that's where most of the automations stop.

The agent doesn't have a phone number, can't receive the SMS, and has no way to complete the verification process without a human in the loop.

This is one of the less obvious challenges of building autonomous AI agents. They can navigate apps, fill out forms, and interact with interfaces, but many real-world workflows still depend on something they don't naturally have: a phone number.

With Mobilerun, there are two ways to give your agent one:

  • *Bring your own eSIM:* Install your existing carrier subscription on a supported physical device.
  • *Rent a phone number:* Get a dedicated number for receiving SMS verification codes, starting at $60/month.

Both options let your agent receive incoming SMS and access verification codes programmatically through the API, webhooks, or MCP.

Let's look at how they work, when to use each, and how to build an OTP verification workflow around them.

Why phone verification is a problem for AI agents

Phone verification exists to establish that an account or action is associated with a real phone number. It's a common security measure across messaging apps, marketplaces, social platforms, and other services.

For an AI agent, however, it introduces a few practical problems.

*1. The phone number belongs to someone else*

Your agent might be running on a cloud device, while the number receiving the verification code belongs to a person sitting somewhere else. The agent can complete every other step, but it cannot access the SMS.

*2. Not every phone number works*

Some platforms distinguish between mobile, landline, and VoIP numbers. A number from a generic SMS API might be rejected before the verification code is even sent.

*3. Verification codes are time-sensitive*

OTP codes expire. Depending on someone to forward a code through Slack, email, or another channel introduces delays and breaks otherwise automated workflows.

The solution isn't simply to give an agent access to an SMS inbox. It needs a phone number that works with the services it's interacting with, along with a reliable way to retrieve incoming messages.

Why virtual numbers don't always work

One common approach is to use a virtual number from an SMS API provider. It's convenient, relatively easy to integrate, and works for many applications. But it isn't universally accepted.

For example, Twilio documents how services can identify and filter VoIP numbers before sending verification codes. Its Lookup API can identify number types such as mobile, fixed VoIP, and non-fixed VoIP.

Some platforms specifically restrict certain VoIP number types because they associate them with automated account creation or abuse.

This means that having a number isn't always enough. The type of number matters too. That's where having a carrier-backed eSIM or a dedicated SMS-receiving number becomes useful.

Two ways to give your agent a phone number

Mobilerun supports two approaches, depending on what your workflow requires.

Bring your own eSIM Mobilerun Numbers
What it is Your existing carrier subscription installed on a supported device A phone number rented through Mobilerun
SMS reception On the physical device Through the Numbers API
Send SMS Depends on your carrier plan Enterprise only
Setup Install your carrier's eSIM profile Rent through the dashboard or SDK
Pricing Your carrier plan + supported device From $60/month
Best for Workflows requiring your own carrier number Receiving OTPs programmatically

The main difference is straightforward: with an eSIM, your agent uses a carrier subscription installed on the device. With Mobilerun Numbers, the number and its incoming messages are managed separately from the device.

Let's look at each option.

Option 1: Bring your own eSIM

If you already have a mobile subscription, you can bring that eSIM to Mobilerun and install it on a supported physical Phone.

This is particularly useful for workflows involving apps that expect a carrier-backed mobile number, including messaging apps such as WhatsApp and Telegram.

Things to know before using eSIM

A few implementation details are worth keeping in mind:

  • *One operation at a time:* eSIM operations run sequentially per device. A second request will fail rather than wait in a queue.
  • *Verify the connection:* After enabling a subscription, check GET /devices/{deviceId}/esim/status to confirm the data state and network type.
  • *Multiple subscriptions:* A device can hold multiple eSIM subscriptions, allowing you to switch between them.
  • *iOS behaviour:* Enabling a subscription on iOS requests the plan from the carrier again. iOS does not provide a way to deactivate an active eSIM through this workflow.
  • *Deleting a profile:* Deletion is permanent. You'll need to download the profile again if you want to use it later.

You can also subscribe to installation webhooks to track successful and failed eSIM installations. For more details, see the Mobilerun eSIM documentation.

Option 2: Rent a phone number with Mobilerun Numbers

If you don't need a complete carrier subscription and only want your agent to receive verification codes, renting a number is the simpler option.

Mobilerun Numbers provides dedicated phone numbers that your agent can use to receive incoming SMS.

The important part is that the number isn't tied to a particular cloud device. Your agent can use it across different devices, while incoming messages remain accessible through your Mobilerun account.

How does an AI agent receive and enter an OTP?

Now comes the interesting part: connecting the phone number to the agent's workflow.

Let's say you want an agent to sign up for an application that requires SMS verification. The process looks like this:

  1. The agent opens the app and enters the phone number.
  2. The app sends an OTP to that number.
  3. Mobilerun receives the incoming SMS.
  4. Your application retrieves the verification code through the API or receives it through a webhook.
  5. The agent enters the code and completes the signup.

This removes the need for someone to manually retrieve and forward the verification code.

Can your AI agent send SMS too?

Receiving SMS and sending SMS are two different capabilities. Mobilerun Numbers is receive-only by default. Sending messages through rented numbers is available as an Enterprise feature.

Which Mobilerun device supports eSIM?

Not every cloud device supports eSIM. The distinction between virtual devices and physical devices matters here.

Device Hardware eSIM support
Cloud Android Virtual Android device No
Android with dedicated IP Virtual Android device No
Cloud iOS (on-demand) Virtual iOS device No
Cloud iOS (dedicated) Physical iPhone Yes, contact support
Your own phone Your physical device Not offered as a Mobilerun eSIM feature

If your workflow specifically requires your own carrier eSIM, the dedicated Cloud iOS option is the relevant choice. It runs on a physical iPhone in a Mobilerun data centre.

If you only need to receive OTP codes through a rented number, you don't need an eSIM-compatible device. Your number is managed separately, and the agent can access its messages regardless of which supported device it's using.

One additional consideration: Smart IP can align the device's GPS, time zone, locale, carrier, and network type with a proxy's exit IP. However, carrier and network-type alignment only applies when no eSIM is active. With an eSIM installed, the carrier comes from your actual subscription.

What are the limitations?

Before building your workflow, there are a few limitations worth understanding.

*Rented numbers are receive-only by default.* If your application needs to send SMS, you'll need Enterprise sending access or an eSIM with a carrier plan that supports it.

*eSIM requires physical hardware.* Mobilerun's virtual Cloud Android and on-demand Cloud iOS devices don't support eSIM. You'll need a supported physical iPhone.

*Number availability varies by country.* The number catalog covers multiple countries, but stock changes. The documentation lists 16 countries, although availability is not guaranteed. Check numbers.countries() for the current options.

*There is an additional monthly cost.* Rented numbers are billed separately from your device and plan costs. Reuse numbers across workflows where appropriate.

*Not every app will accept every number.* Carrier-backed numbers can help with services that filter VoIP numbers, but no provider can guarantee acceptance by every platform. Test the exact application before scaling.

*SMS and voice calls are different.* The current number workflow covers SMS, not incoming voice calls. Email-based verification is a separate workflow using mailboxes that can receive emails and extract OTPs.

Use phone numbers responsibly

Phone verification is a security mechanism, and automating it doesn't remove the responsibility to follow the rules of the services you're interacting with.

Use these workflows with your own accounts, test applications, and accounts you're explicitly authorized to manage.

Don't use rented numbers or eSIMs to mass-create accounts, bypass platform restrictions, or evade rate limits. Always review the relevant application's terms before automating account-related workflows.

Block Field

Give your AI agent a number of its own

An AI agent can navigate an app, fill out forms, and complete complex workflows. But without access to a phone number, even a simple verification step can bring the entire process to a halt.

With Mobilerun, you can give your agent access to a carrier-backed eSIM or a dedicated number for receiving SMS, then connect that capability directly to your automation workflow.

If you need a number for OTP verification, start with Mobilerun Numbers. If your workflow requires a carrier subscription, bring your own eSIM.

*Give your agent a phone number and let it handle more of the workflow independently.*

Explore Mobilerun Cloud or read the Cloud Numbers documentation.