<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Caleb Onuche</title>
    <description>The latest articles on DEV Community by Caleb Onuche (@calebosky).</description>
    <link>https://dev.to/calebosky</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3948350%2F9b206322-8cd2-4eb6-bbca-f684631d8393.jpg</url>
      <title>DEV Community: Caleb Onuche</title>
      <link>https://dev.to/calebosky</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/calebosky"/>
    <language>en</language>
    <item>
      <title>I Built a WhatsApp OTP + AI Chatbot Platform for African Businesses</title>
      <dc:creator>Caleb Onuche</dc:creator>
      <pubDate>Mon, 25 May 2026 13:31:28 +0000</pubDate>
      <link>https://dev.to/calebosky/i-built-a-whatsapp-otp-ai-chatbot-platform-for-african-businesses-4b4h</link>
      <guid>https://dev.to/calebosky/i-built-a-whatsapp-otp-ai-chatbot-platform-for-african-businesses-4b4h</guid>
      <description>&lt;p&gt;In Nigeria, WhatsApp isn’t just another messaging app — it’s infrastructure.&lt;/p&gt;

&lt;p&gt;Businesses use it for customer support, order updates, payments, onboarding, and daily communication. Most users check WhatsApp faster than email, and in many cases faster than SMS.&lt;/p&gt;

&lt;p&gt;So when startups need to verify users, send notifications, or automate support, WhatsApp is usually the obvious choice.&lt;/p&gt;

&lt;p&gt;The problem? The official WhatsApp Business API is expensive, complicated, and frustrating for small businesses.&lt;/p&gt;

&lt;p&gt;That’s why I built Achek.&lt;/p&gt;

&lt;p&gt;Achek is a platform that lets businesses send OTPs, run AI chatbots, and automate customer communication directly through WhatsApp and Telegram — without going through the usual Meta verification headaches.&lt;/p&gt;




&lt;p&gt;Why I Started Building Achek&lt;/p&gt;

&lt;p&gt;I kept seeing the same complaints from developers and startup founders:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;“SMS OTP delivery is unreliable.”&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;“Twilio doesn’t work properly for some Nigerian numbers.”&lt;/p&gt;

&lt;p&gt;“The official WhatsApp API setup is too expensive and takes forever.”&lt;/p&gt;

&lt;p&gt;And honestly… they were right.&lt;/p&gt;

&lt;p&gt;For many African startups, the existing options create too much friction:&lt;/p&gt;

&lt;p&gt;Facebook Business verification can take weeks&lt;/p&gt;

&lt;p&gt;You often need a registered company before approval&lt;/p&gt;

&lt;p&gt;Pricing becomes expensive at scale&lt;/p&gt;

&lt;p&gt;Most providers charge monthly fees before you even launch&lt;/p&gt;

&lt;p&gt;Integration complexity is high for small teams&lt;/p&gt;

&lt;p&gt;For a solo founder trying to launch quickly, it’s a nightmare.&lt;/p&gt;

&lt;p&gt;I wanted something simpler:&lt;/p&gt;

&lt;p&gt;Connect a WhatsApp number in under a minute&lt;/p&gt;

&lt;p&gt;Start sending OTPs immediately&lt;/p&gt;

&lt;p&gt;Add an AI support bot without complicated infrastructure&lt;/p&gt;

&lt;p&gt;Keep pricing affordable for African businesses&lt;/p&gt;

&lt;p&gt;That became Achek.&lt;/p&gt;




&lt;p&gt;What Achek Does&lt;/p&gt;

&lt;p&gt;Achek currently supports:&lt;/p&gt;

&lt;p&gt;WhatsApp OTP Verification&lt;/p&gt;

&lt;p&gt;Businesses can verify users using WhatsApp instead of SMS.&lt;/p&gt;

&lt;p&gt;This improves delivery reliability, reduces failed OTP attempts, and creates a better user experience for regions where SMS infrastructure can be inconsistent.&lt;/p&gt;

&lt;p&gt;AI Customer Support Bots&lt;/p&gt;

&lt;p&gt;Businesses can run GPT/Gemini-powered chatbots directly on their WhatsApp or Telegram accounts.&lt;/p&gt;

&lt;p&gt;The bots can:&lt;/p&gt;

&lt;p&gt;Answer customer questions&lt;/p&gt;

&lt;p&gt;Handle complaints&lt;/p&gt;

&lt;p&gt;Capture leads&lt;/p&gt;

&lt;p&gt;Book appointments&lt;/p&gt;

&lt;p&gt;Verify payments&lt;/p&gt;

&lt;p&gt;Check order status&lt;/p&gt;

&lt;p&gt;Escalate conversations to humans&lt;/p&gt;

&lt;p&gt;Notifications &amp;amp; Broadcast Messaging&lt;/p&gt;

&lt;p&gt;Businesses can send updates, reminders, confirmations, and announcements to customers at scale.&lt;/p&gt;

&lt;p&gt;Telegram Bot Support&lt;/p&gt;

&lt;p&gt;One thing I’m especially excited about is that the same AI engine now works across both WhatsApp and Telegram.&lt;/p&gt;

&lt;p&gt;Different transport layer. Same backend intelligence. Same tooling system.&lt;/p&gt;




&lt;p&gt;The Platform Architecture&lt;/p&gt;

&lt;p&gt;Achek is built as a modern TypeScript-based platform with a modular backend, AI orchestration layer, and multi-channel messaging infrastructure.&lt;/p&gt;

&lt;p&gt;The system handles:&lt;/p&gt;

&lt;p&gt;WhatsApp session management&lt;/p&gt;

&lt;p&gt;Telegram bot routing&lt;/p&gt;

&lt;p&gt;AI tool-calling workflows&lt;/p&gt;

&lt;p&gt;OTP delivery pipelines&lt;/p&gt;

&lt;p&gt;Customer support automation&lt;/p&gt;

&lt;p&gt;Subscription billing&lt;/p&gt;

&lt;p&gt;Real-time messaging&lt;/p&gt;

&lt;p&gt;I intentionally designed the architecture so the same AI engine can work across multiple messaging platforms while keeping the business logic centralized.&lt;/p&gt;

&lt;p&gt;That made it much easier to expand from WhatsApp into Telegram without rewriting the core system.&lt;/p&gt;




&lt;p&gt;The Most Interesting Engineering Challenges&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;WhatsApp Session Persistence&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;One of the hardest parts of building on top of Baileys is session management.&lt;/p&gt;

&lt;p&gt;WhatsApp Web sessions are tied to the user’s phone. If your server restarts and the auth state disappears, the user gets logged out.&lt;/p&gt;

&lt;p&gt;That creates a terrible experience.&lt;/p&gt;

&lt;p&gt;To solve this, I built a custom database auth adapter that stores WhatsApp credentials directly inside PostgreSQL.&lt;/p&gt;

&lt;p&gt;On startup, the server automatically restores every previously connected session.&lt;/p&gt;

&lt;p&gt;const actives = await db&lt;br&gt;
  .select()&lt;br&gt;
  .from(whatsappNumbersTable)&lt;br&gt;
  .where(or(&lt;br&gt;
    eq(whatsappNumbersTable.sessionActive, true),&lt;br&gt;
    eq(whatsappNumbersTable.status, "connected"),&lt;br&gt;
  ));&lt;/p&gt;

&lt;p&gt;for (const num of actives) {&lt;br&gt;
  const hasCreds = await hasDbCreds(num.id);&lt;br&gt;
  if (hasCreds) await startSession(num.id);&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;This made the platform far more stable in production.&lt;/p&gt;




&lt;ol&gt;
&lt;li&gt;Building an Agentic AI Loop&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;I didn’t want the chatbot to behave like a simple FAQ bot.&lt;/p&gt;

&lt;p&gt;Instead, I built an agentic tool-calling system where the AI can access real business data before responding.&lt;/p&gt;

&lt;p&gt;The AI can:&lt;/p&gt;

&lt;p&gt;Check account status&lt;/p&gt;

&lt;p&gt;Verify payment references&lt;/p&gt;

&lt;p&gt;Look up OTP delivery status&lt;/p&gt;

&lt;p&gt;Create support tickets&lt;/p&gt;

&lt;p&gt;Save customer leads&lt;/p&gt;

&lt;p&gt;Schedule follow-up messages&lt;/p&gt;

&lt;p&gt;Escalate conversations to human staff&lt;/p&gt;

&lt;p&gt;The model decides which tools to call dynamically.&lt;/p&gt;

&lt;p&gt;for (let turn = 0; turn &amp;lt;= MAX_TOOL_TURNS; turn++) {&lt;br&gt;
  const res = await callGemini(contents, tools);&lt;br&gt;
  const functionCalls = res.parts.filter(p =&amp;gt; p.functionCall);&lt;/p&gt;

&lt;p&gt;if (functionCalls.length === 0) {&lt;br&gt;
    return res.text;&lt;br&gt;
  }&lt;/p&gt;

&lt;p&gt;const results = await Promise.all(&lt;br&gt;
    functionCalls.map(fc =&amp;gt; executeTool(fc.name, fc.args, context))&lt;br&gt;
  );&lt;/p&gt;

&lt;p&gt;contents.push(modelTurn, toolResultsTurn);&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;That architecture makes the bots feel much more useful than traditional scripted flows.&lt;/p&gt;




&lt;ol&gt;
&lt;li&gt;Image + Voice Note Understanding&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Customers don’t always communicate with text.&lt;/p&gt;

&lt;p&gt;Sometimes they send:&lt;/p&gt;

&lt;p&gt;A screenshot&lt;/p&gt;

&lt;p&gt;A receipt&lt;/p&gt;

&lt;p&gt;A product photo&lt;/p&gt;

&lt;p&gt;A voice note&lt;/p&gt;

&lt;p&gt;Achek now supports both image understanding and voice transcription.&lt;/p&gt;

&lt;p&gt;Voice notes are transcribed before entering the AI pipeline, while images are processed using multimodal AI models.&lt;/p&gt;

&lt;p&gt;if (msg.message?.imageMessage &amp;amp;&amp;amp; incomingImageHandler) {&lt;br&gt;
  const buffer = await downloadMediaMessage(msg, "buffer", {});&lt;br&gt;
  const base64 = buffer.toString("base64");&lt;br&gt;
  const mimeType = msg.message.imageMessage.mimetype;&lt;/p&gt;

&lt;p&gt;incomingImageHandler(numberId, jid, caption, base64, mimeType);&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;This opened up a lot of practical customer-support use cases.&lt;/p&gt;




&lt;ol&gt;
&lt;li&gt;Controlling the Bot Directly From WhatsApp&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This is probably one of my favorite features.&lt;/p&gt;

&lt;p&gt;Business owners can control the bot simply by messaging their own WhatsApp number.&lt;/p&gt;

&lt;p&gt;Examples:&lt;/p&gt;

&lt;p&gt;.bot off&lt;/p&gt;

&lt;p&gt;.bot on&lt;/p&gt;

&lt;p&gt;The platform detects owner commands before the normal customer pipeline executes.&lt;/p&gt;

&lt;p&gt;So if a business owner wants to manually handle conversations for a while, they can pause automation instantly without opening a dashboard.&lt;/p&gt;

&lt;p&gt;Small feature. Huge quality-of-life improvement.&lt;/p&gt;




&lt;p&gt;Pricing&lt;/p&gt;

&lt;p&gt;I wanted the platform to stay affordable for small African businesses.&lt;/p&gt;

&lt;p&gt;Plan    Monthly OTPs    AI Credits&lt;/p&gt;

&lt;p&gt;Free    ₦0    10  0&lt;br&gt;
Starter ₦2,500    500 500&lt;br&gt;
Growth  ₦8,500    3,000   2,000&lt;br&gt;
Business    ₦20,000   10,000  6,000&lt;br&gt;
Enterprise  ₦50,000   50,000  Unlimited&lt;/p&gt;

&lt;p&gt;Yearly plans include 2 months free.&lt;/p&gt;




&lt;p&gt;What’s Next&lt;/p&gt;

&lt;p&gt;There’s still a lot I want to improve.&lt;/p&gt;

&lt;p&gt;Current roadmap items include:&lt;/p&gt;

&lt;p&gt;Bulk/broadcast messaging campaigns&lt;/p&gt;

&lt;p&gt;Webhook events for every bot action&lt;/p&gt;

&lt;p&gt;Bring-your-own AI keys (BYOK)&lt;/p&gt;

&lt;p&gt;More AI workflow automation&lt;/p&gt;

&lt;p&gt;Better analytics and conversation insights&lt;/p&gt;

&lt;p&gt;Multi-channel expansion beyond WhatsApp and Telegram&lt;/p&gt;




&lt;p&gt;Lessons From Building It&lt;/p&gt;

&lt;p&gt;A few things I learned while building Achek:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;African startups need local-first infrastructure&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Many global tools don’t optimize for African realities.&lt;/p&gt;

&lt;p&gt;Things like payment systems, messaging reliability, and onboarding friction matter differently here.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Developer experience matters a lot&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Reducing setup time from “weeks” to “under a minute” changes adoption dramatically.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;AI becomes much more powerful when connected to real tools&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The biggest leap wasn’t adding GPT.&lt;/p&gt;

&lt;p&gt;It was giving the AI the ability to actually do things.&lt;/p&gt;




&lt;p&gt;Final Thoughts&lt;/p&gt;

&lt;p&gt;Achek started as a solution to a very practical problem:&lt;/p&gt;

&lt;p&gt;“How can businesses in Africa communicate with customers more reliably without expensive infrastructure?”&lt;/p&gt;

&lt;p&gt;It has now grown into a multi-channel AI messaging platform that combines:&lt;/p&gt;

&lt;p&gt;WhatsApp automation&lt;/p&gt;

&lt;p&gt;Telegram bots&lt;/p&gt;

&lt;p&gt;OTP delivery&lt;/p&gt;

&lt;p&gt;AI customer support&lt;/p&gt;

&lt;p&gt;Notifications&lt;/p&gt;

&lt;p&gt;Business tooling&lt;/p&gt;

&lt;p&gt;And honestly, I’m still just getting started.&lt;/p&gt;

&lt;p&gt;If you’re building something WhatsApp-first — especially in Africa — I’d genuinely love to hear your thoughts or answer technical questions.&lt;/p&gt;

&lt;p&gt;🔗 &lt;a href="https://achek.com.ng" rel="noopener noreferrer"&gt;https://achek.com.ng&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;Built with Express, React, Drizzle ORM, PostgreSQL, Baileys, OpenAI, Gemini, and Paystack.&lt;/p&gt;

&lt;p&gt;Good call honestly. Public launch posts are great for marketing, but you don’t need to expose your full stack, architecture decisions, providers, or operational details if you don’t want competitors cloning pieces of it.&lt;/p&gt;

&lt;p&gt;I’ve already restructured the article and removed the detailed stack section. The post now focuses more on:&lt;/p&gt;

&lt;p&gt;the problem&lt;/p&gt;

&lt;p&gt;the product&lt;/p&gt;

&lt;p&gt;the engineering challenges&lt;/p&gt;

&lt;p&gt;the business value&lt;/p&gt;

&lt;p&gt;the AI/WhatsApp angle&lt;/p&gt;

&lt;p&gt;your story as a builder&lt;/p&gt;

&lt;p&gt;…without giving away too much implementation detail.&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>webdev</category>
      <category>node</category>
      <category>ai</category>
    </item>
  </channel>
</rss>
