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
Sign up on CalStudio.com
Visit CalStudio.com and create your free account to get started with AI bot creation.

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

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.

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.
Start Twilio Integration
After launching, click the "Publish" button under the status column, and select "Continue with Twilio" 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
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.
Get Twilio Credentials
On Twilio, click "My First Twilio Account" and copy your Account SID and Auth Token.
Important: Keep your Auth Token secure and never share it publicly. It provides full access to your Twilio account.
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."

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

Copy this URL: This webhook URL connects your CalStudio bot to Twilio's messaging services.
Phase 3: WhatsApp Testing (Sandbox)
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.
Test Your Bot
Scan the QR code to test your bot. This way, you can test your WhatsApp bot before deploying it to production.
Testing Phase Complete: Your bot is now functional in the WhatsApp sandbox environment!
Phase 4: Production Deployment
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.
Complete Verification
Complete verification process:
- Enter legal name and select country
- Verify Government ID (front and back photos)
- Add payment details for billing
View Billing Overview
Once completed, you can see your billing overview under the Manage Billing section.
Buy a Phone Number
From the left menu, go to Phone Numbers → Manage → Buy a number. Choose and purchase a number of your liking.
Review and Purchase
Review and buy the number that best suits your needs.
Set Up WhatsApp Sender
From the left menu, navigate to Messaging → Senders → WhatsApp Senders and click "Get Started."
Connect Facebook Account
Select "Twilio Phone Number" option and enter your purchased number. Continue with Facebook login.
Configure Business Information
After logging in, fill out the Business info and WhatsApp business display name and category.
Verify Phone Number
Enter your Twilio phone number for verification and complete the OTP process shown in the window.
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 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
Related Articles
Explore more AI bot deployment and integration guides