Odoo Twilio Integration: Two-Way SMS Inside Odoo

  • Home
  • Blog
  • Odoo
  • Odoo Twilio Integration: Two-Way SMS Inside Odoo
Talk to Our Odoo Experts Take the Free ERP Assessment
Odoo Twilio integration for two-way SMS and automated customer alerts

What Twilio Is

Twilio is a cloud communications platform that provides APIs for sending and receiving SMS, making phone calls, and managing customer communications. It gives businesses scalable, programmatic messaging infrastructure that can be connected directly into business applications like Odoo.

The Client Problem: Fragmented Texting Outside Odoo

Before this integration, our client was managing customer text communications across separate mobile devices and a standalone Twilio web dashboard. Because texts were sent outside Odoo, the business faced several communication gaps:

Lost Communication History. Account managers and customer support agents working in Odoo could not see incoming texts or sent messages, leaving team members blind to recent customer requests.

Manual Communication Tasks. Staff had to manually copy customer contact numbers, check order numbers across screens, and retype text messages by hand.

Inconsistent Customer Experience. Without standardized message templates, customer notifications varied widely in accuracy, timing, and professional tone.

Difficulty in Scaling. As sales order volume grew, customer service representatives could no longer keep up with users' demands for real-time text updates.

Want customer texts to live inside Odoo? Let's connect Twilio.

Odoo integration services

What O2B Built: Two-Way SMS and Automated Alerts Inside Odoo

To eliminate manual messaging and centralize customer communication, O2B developed a custom Twilio integration for Odoo. Our integration enables true two-way text messaging and automated event-driven notifications directly inside the ERP interface.

Key features of our integration

Two-Way SMS in Odoo Chatter. Users can send outgoing SMS messages directly from contact cards, CRM leads, sales orders, and support tickets using Twilio's API. When the customer texts back, an incoming Twilio webhook captures the response and logs it directly in the record chatter, ensuring complete conversational history in one place.

Automated Order Confirmations. When a quotation is confirmed as a sales order in Odoo, the system automatically triggers an SMS notification via Twilio, acknowledging the order with its order reference number.

Real-Time Delivery & Shipping Updates. When warehouse staff validate a delivery order, an automated text notifies the customer with the carrier name and live tracking link.

Appointment & Service Reminders. Calendar bookings and field service schedules automatically trigger reminder texts 24 hours and 2 hours prior to the appointment, significantly reducing missed visits.

Dynamic Message Templates. Custom templates dynamically pull customer names, order numbers, tracking URLs, and appointment times from Odoo database fields while keeping text concise.

Setup Basics: Connecting Twilio to Odoo

Setting up Twilio with Odoo involves five standard steps:

1. Create a Twilio Account. Sign up at Twilio and obtain your Account SID and Auth Token from the Twilio Console dashboard.

2. Purchase a Dedicated Phone Number. Buy an SMS-enabled local or toll-free number in your Twilio console to serve as your business sender ID.

3. Add API Keys in Odoo. Configure your Twilio Account SID, Auth Token, and sender number in Odoo's SMS gateway settings.

4. Configure the Inbound Webhook. In your Twilio phone number configuration under "A message comes in", enter your Odoo webhook URL so Twilio routes incoming text replies back to Odoo.

5. Test on Verified Numbers in Trial Mode. Note: In Twilio trial accounts, you can only send messages to verified phone numbers. Verify your personal test numbers in the Twilio console before sending test messages, then upgrade to a paid account before launching to customers.

Twilio vs Spoke Phone vs Odoo Built-in SMS

When choosing a text messaging solution for Odoo, consider your communication volume, existing phone systems, and whether two-way messaging is necessary:

Platform / Approach Best For Voice Calling Two-Way SMS Setup Effort
Twilio API Integration High-volume programmatic alerts, custom two-way chat in Odoo, and global delivery routes Programmatic voice available via Twilio Voice API Full two-way SMS with incoming webhooks logged to chatter Moderate (API credentials, number setup, and webhook routing)
Spoke Phone Custom Integration Distributed teams wanting a unified business phone system (calls, SMS, shared numbers) connected to Odoo Full business calling on mobile and desktop apps Two-way SMS with webhook integration — see our Odoo with Spoke Phone guide Moderate (custom API mapping and phone system routing)
Odoo Built-in IAP SMS Occasional, simple one-way transactional alerts with no external telephony setup No native voice calling included Primarily one-way transactional alerts via in-app purchase credits Low (purchase prepaid credits directly in Odoo and configure native SMS gateway)

What to Plan Before Building a Twilio Sync

Before sending automated business text messages to your customers, review these essential operational requirements:

  • Customer Consent & US Compliance. In the United States, commercial business texting is strictly governed by the Telephone Consumer Protection Act (TCPA) and carrier A2P 10DLC (Application-to-Person 10-Digit Long Code) rules. Businesses must register their brand and messaging campaigns with The Campaign Registry through Twilio, obtain explicit opt-in consent from customers, and support mandatory opt-out keywords like "STOP".
  • Number Registration & Sender IDs. Decide whether your business needs a local 10DLC number, a toll-free number, or a dedicated shortcode, depending on message throughput requirements.
  • Message Length & Segment Costs. Standard SMS messages are limited to 160 characters. Exceeding 160 characters splits messages into multiple billable segments. Keep copy concise and use short tracking links.
  • Transparent Carrier Pricing. Twilio charges pay-as-you-go rates per message segment, which vary by destination country and carrier surcharges. Refer directly to Twilio's pricing page for current rates.

If your business requires automated customer messaging, two-way conversational texting, or multi-channel communication inside Odoo, our Odoo integration services deliver tailored API connectors, webhook handlers, and message template configuration.

Frequently Asked Questions

Can Odoo send and receive SMS with Twilio?

Yes. With a custom integration like the one O2B built, Odoo can send automated outbound notifications and capture incoming customer replies directly into Odoo chatter using Twilio webhooks.

Do I need a Twilio account?

Yes. You register your own Twilio account, buy a dedicated phone number, and input your Account SID and Auth Token in Odoo. This ensures you maintain direct control over your sender numbers and carrier reputation.

Why can I only text some numbers in Twilio trial mode?

In trial mode, Twilio restricts outgoing messages exclusively to verified phone numbers to prevent spam. Once you add a payment method and upgrade your account, you can send messages to any valid phone number worldwide.