Back to all articles
Insights
27 June 20263 min read

Building Nigeria's Fastest Data Purchase Bot

A behind-the-scenes look at the engineering decisions, state machine optimizations, and relentless focus on speed required to build the Vtyield WhatsApp bot.

VT
Vtyield Team
Author & Contributor
Building Nigeria's Fastest Data Purchase Bot

When we set out to build the Vtyield WhatsApp purchasing bot, we had one obsessive metric on our whiteboard: Time-to-Value (TTV).

In the utility vending space, speed isn't just a feature; it is the entire product. If a user is buying data, it means they are likely already disconnected or in a hurry. We needed a system that could handle intent, display a clean menu, collect a secure PIN, execute a financial transaction, and hit the telco API—all in seconds.

Here is a behind-the-scenes look at how we engineered our WhatsApp data flow.

1. Ditching "Dumb Text" for Interactive UI

Most WhatsApp bots force you to type numbers to navigate. It feels like you are just using USSD over the internet.

We threw that out. Instead, our bot heavily utilizes WhatsApp's native interactive buttons and lists. When you initiate a purchase, you aren't guessing what to type. The bot sends a clean UI element with buttons for MTN, Airtel, Glo, and 9mobile.

Old text-based bots in a nutshell
Old text-based bots in a nutshell

2. Taming the Plan List Chaos

One of the hardest UX challenges was displaying data plans. Networks have dozens of plans (SME, Gifting, Corporate, Direct). If a bot just dumps 30 plans into a chat bubble, it completely ruins the readability.

We solved this with a strict Paginated State Machine.

  • WhatsApp interactive lists cap at 10 rows.

  • So, our stable in-chat pattern strictly shows 9 plans plus a "More Plans" row.

  • If you tap "More Plans", the numbering continues perfectly on the next page (page 2 starts at #10, not restarting at #1). You never lose your place.
  • 3. The Secure Portal Webview

    We know that sometimes, tapping through a chat just isn't visual enough—especially for complex actions.

    That's why we engineered a hybrid approach. Alongside the chat menus, the bot can send a Secure Portal CTA. This opens a secure, authenticated webview directly inside WhatsApp. Users get a rich visual interface without ever switching apps. It's the perfect bridge between conversational speed and application richness.

    4. Uncompromising Security

    Handling money over a chat app requires zero compromises on security. Before any purchase is finalized, our flow stops and strictly asks for your 5-digit Transaction PIN.

    If a user hasn't set one up yet, the state machine halts the flow entirely and directs them to their Dashboard to set one up. No PIN, no purchase. It protects our users' pre-funded wallets perfectly.

    The Result

    Building for speed required us to rethink standard API development. We had to embrace strict UX rules, interactive components, and intelligent state tracking.

    The result? In a market where every second counts, we didn't just build a bot—we built an entirely new standard for instant commerce.

    Get more like this — free

    No spam. Just useful Nigerian fintech tips, once a week.

    You might also like

    Instant Delivery

    Ready to try it out?

    Airtime, cheap data, electricity tokens, cable TV — delivered in seconds. No queues, no agents.

    Account saves your history & earns you referral bonuses