How to Publish a Custom AI Bot to SMS and WhatsApp

A step-by-step tutorial to integrate your custom AI chatbot with WhatsApp using CalStudio and Twilio

The WhatsApp Integration Challenge

One major limitation of a Custom AI bot or a GPT is that you can't really add it to WhatsApp as a dedicated bot for business or personal use.

WhatsApp Business

Reach customers on the world's most popular messaging platform with 2+ billion users.

SMS Integration

Connect with users via traditional SMS for maximum reach and compatibility.

Instant Deployment

Deploy your AI bot to messaging platforms in minutes, not weeks.

Solution: CalStudio bridges this gap by providing seamless integration with Twilio, enabling you to deploy your custom AI bots to WhatsApp and SMS channels effortlessly.

What You'll Need

Prerequisites for WhatsApp and SMS bot integration

CalStudio Account

  • Free CalStudio account
  • Created AI bot/app
  • Bot launched and live

Twilio Account

  • Twilio account (free trial available)
  • Phone number verification
  • Account SID and Auth Token

Complete Integration Guide

Follow these steps to publish your AI bot to WhatsApp and SMS

Phase 1: CalStudio Setup

1

Sign up on CalStudio.com

Visit CalStudio.com and create your free account to get started with AI bot creation.

CalStudio signup page
2

Click "Create App"

Once signed up, navigate to your dashboard and click the "Create App" button to start building your bot.

Create App button
3

Configure Your Bot

Fill out the form with the necessary details for your WhatsApp/SMS bot:

  • Name: Choose a clear, descriptive name
  • Image: Upload a profile picture (optional for SMS/WhatsApp)
  • AI Model: Select from GPT-4.1, Claude 4, Gemini Pro, etc.
  • Prompt: Define your bot's personality and responses
  • Design: Not relevant for WhatsApp/SMS (skip this)

Note: Design settings don't matter for WhatsApp/SMS deployment since users will interact via text messages only.

Bot configuration form
4

Create and Launch Your App

Click "Create App" in the top right corner and wait for your app to appear in the dashboard. Once visible, click "Launch" to make it live.

Launch app interface
5

Start Twilio Integration

After launching, click the "Publish" button under the status column, and select "Continue with Twilio" option.

Twilio integration option

A popup will appear asking for Twilio SID, Auth Token, and Phone Number. We'll get these credentials in the next steps.

Phase 2: Twilio Account Setup

6

Create Twilio Account

Create an account on Twilio.com and verify your phone number with OTP. Download and save the Recovery Code for account security.

Twilio account creation
7

Get Twilio Credentials

On Twilio, click "My First Twilio Account" and copy your Account SID and Auth Token.

Twilio Account SID Twilio Auth Token

Important: Keep your Auth Token secure and never share it publicly. It provides full access to your Twilio account.

8

Connect Twilio to CalStudio

Go back to your CalStudio dashboard and paste the Twilio credentials along with your mobile number in the exact format shown. Click "Publish."

Twilio credentials in CalStudio
9

Save Webhook URL

Save the webhook URL provided in the popup after publishing. You'll need this for Twilio configuration.

Webhook URL popup

Copy this URL: This webhook URL connects your CalStudio bot to Twilio's messaging services.

Phase 3: WhatsApp Testing (Sandbox)

10

Configure Twilio WhatsApp Sandbox

In Twilio, go to Messaging → Try It Out → Send a WhatsApp Message. In Sandbox Settings, paste your webhook URL where it says "When a message comes in" box, keep Method as POST, and save.

Twilio WhatsApp sandbox configuration
11

Test Your Bot

Scan the QR code to test your bot. This way, you can test your WhatsApp bot before deploying it to production.

WhatsApp QR code for testing

Testing Phase Complete: Your bot is now functional in the WhatsApp sandbox environment!

Phase 4: Production Deployment

12

Upgrade Twilio Account

For moving to production scenarios, you will need to upgrade your account through the upgrade link (blue text, green background). Click on it to create your customer profile.

Twilio account upgrade
13

Complete Verification

Complete verification process:

  • Enter legal name and select country
  • Verify Government ID (front and back photos)
  • Add payment details for billing
Twilio verification process
14

View Billing Overview

Once completed, you can see your billing overview under the Manage Billing section.

Twilio billing overview
15

Buy a Phone Number

From the left menu, go to Phone Numbers → Manage → Buy a number. Choose and purchase a number of your liking.

Buy Twilio phone number
16

Review and Purchase

Review and buy the number that best suits your needs.

Review phone number purchase
17

Set Up WhatsApp Sender

From the left menu, navigate to Messaging → Senders → WhatsApp Senders and click "Get Started."

WhatsApp senders setup
18

Connect Facebook Account

Select "Twilio Phone Number" option and enter your purchased number. Continue with Facebook login.

Facebook login for WhatsApp
19

Configure Business Information

After logging in, fill out the Business info and WhatsApp business display name and category.

WhatsApp business info configuration
20

Verify Phone Number

Enter your Twilio phone number for verification and complete the OTP process shown in the window.

Phone number verification
21

Final Configuration

Return to WhatsApp Senders, click your listed number, and paste the CalStudio webhook URL in "Webhook URL for incoming messages." Scroll down and click "Update WhatsApp Sender."

Final webhook configuration

Final Step: Save the Twilio number in your phone contacts. Your bot is now ready to respond to WhatsApp messages in production!

Benefits of WhatsApp & SMS Integration

Why integrate your AI bot with messaging platforms

Massive Reach

Access 2+ billion WhatsApp users worldwide and nearly 100% SMS compatibility.

Instant Responses

Provide 24/7 customer support with immediate AI-powered responses.

Easy Integration

No complex coding required - simple webhook integration through CalStudio.

Cost Effective

Reduce customer service costs while improving response quality and speed.

Analytics & Insights

Track conversation metrics and user engagement through CalStudio dashboard.

Global Business

Serve customers worldwide with multi-language support and local phone numbers.

Pricing Overview

Understand the costs involved in WhatsApp and SMS integration

CalStudio Costs

  • Free account creation
  • Free bot creation and testing
  • Pay per AI model usage

Twilio Costs

  • Phone number: ~$1-5/month
  • WhatsApp: $0.005-0.09 per message
  • SMS: $0.0075-0.15 per message

Free Testing: Both CalStudio and Twilio offer free tiers for testing. You can fully test your integration before any charges apply.

Ready to Deploy Your AI Bot to WhatsApp & SMS?

Join thousands of businesses already using CalStudio to provide AI-powered customer support on messaging platforms