Loading…

Twilio
Cloud communications platform providing APIs and services for messaging, voice, email, authentication, and customer engagement.
- 174 posts summarised
- latest
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
From their blog
Latest articles
The AI race is actually a context race
Businesses are overwhelmed by disconnected customer data across channels like voice, email, and messaging, with 48% citing this as a major obstacle to understanding customers. The AI race is shifting from collecting more data to connecting it into usable context. A four-layer architecture is proposed: a data layer that connects signals, a semantic layer that interprets meaning, an application layer that turns context into action, and an AI layer that synthesizes information at scale. While 84% of brands believe their AI agents recognize returning customers, 74% of consumers report having to repeat themselves to AI assistants. Twilio’s AI Inbound Sales Assistant, built on a unified data foundation, handles 100% of new sign-ups and 95% of inbound sales inquiries, with customers who interact upgrading at 3X the rate of those who do not.
21 types of emails explained (with tips & examples)
Business emails fall into four categories: transactional, promotional, lifecycle, and relationship, each serving a distinct goal. Transactional emails, such as password resets and receipts, confirm user actions and are among the most opened. Lifecycle emails, including welcome, onboarding, and abandoned cart messages, are triggered by subscriber behavior. The post details 21 specific email types, offering tips like keeping product release emails concise and using a dry tone for privacy policy updates. It advises choosing an email type by asking why you are sending, who it is for, and what action you want.
Broadcast text messaging: What is it & how to use it
Broadcast text messaging sends a single SMS or MMS to many recipients at once, with each person receiving it as an individual private text. Unlike group MMS, recipients cannot see each other’s phone numbers or replies, and there is no cap on list size. Businesses use broadcasts for appointment reminders, feedback requests, customer service updates, and time-sensitive promotions. Compliance requires opt-in consent, easy opt-out instructions, sender registration (A2P 10DLC or toll-free verification), and identifying the business in the message. A platform like Twilio handles delivery, opt-out management, and scheduling at any scale.
How much does call center outsourcing cost in 2027?
Call center outsourcing costs in 2027 range from $0.50 to $1.75 per minute for inbound support and $10 to $50 per hour for outbound calling, depending on location and complexity. Upfront setup costs cover new hardware, software, or training the provider needs. Fixed monthly or usage-based rates typically include staff, equipment, operations, monitoring, and reporting. Some providers, especially those using AI agents, charge per conversation or per resolution, tying cost to outcomes instead of agent time. Businesses should calculate cost per contact by dividing total costs by total contacts handled to compare in-house, outsourced, and AI-assisted options.
How to build an AI agent that remembers returning customers
AI agents that fail to recognize returning customers force them to repeat information, with 74% of consumers reporting repetition and 71% willing to abandon conversations early. Twilio’s approach uses three capabilities: identity resolution to match profiles across channels, recall to pull observations and summaries from Conversation Memory, and write-back to save new facts via the Memory API. Conversation Memory stores structured traits, extracted observations from conversations, and short conversation summaries, with the Recall API returning up to 20 observations and 5 summaries per profile. Agent Connect loads relevant context before the agent replies, running in Orchestrator mode with memory modes of always or once, and it uses ConversationRelay for voice calls. New facts are saved mid-conversation by agent tools calling the Memory API directly because automatic extraction only runs after a conversation closes, and memory carries across channels and human handoffs through Twilio Flex.
SMTP relay service: What is SMTP relay & how does it work?
SMTP relay is the backbone of professional email delivery, routing messages through relay servers to reach recipients reliably. An SMTP relay service is a third-party server that accepts outgoing messages and delivers them to recipients’ mail servers, handling high-volume sending and managing sender reputation. The relay server checks credentials, looks up the recipient’s mail server, and delivers the message, similar to how a post office routes physical mail. Businesses can choose between self-managed relay, which offers full control but requires managing reputation and scaling, or a hosted relay service that handles infrastructure and delivery. Choosing the right service depends on factors like sending volume, deliverability tools, authentication support, and security features such as TLS encryption and API key authentication.
How brands start trusted conversations on Apple Messages for Business
Apple Messages for Business (AMB) provides brands a verified presence in the native Messages app, enabling customers to pay, book, or get help without leaving the thread. The first-message problem means customers must initiate conversations, so brands rely on entry points like voice call deflection, website buttons, and Apple Maps. Apple Business Invites, now part of Twilio’s AMB private beta, offers a short invitation template that collects opt-in from customers. Once opted in, brands can send service messages such as fraud alerts, order updates, and support replies for up to a year after the last interaction. Use cases include customer service with bot-to-agent handoff, interactive commerce with Apple Pay, and AI assistants, while marketing requires separate opt-in and Apple reviews each deployment.
Why We Expanded our Internship Program this Year
Twilio expanded its internship program this year, flying every intern to regional hubs for in-person onboarding despite being remote-first, a costly but essential investment. Chief Administrative Officer Christy Lake argues in-person connection lets interns learn through overhearing and asking small questions, building compounding habits. Intern Jakob built a sentiment dashboard that routes customer feedback from Reddit and Discord to product teams, turning thousands of interactions into actionable insights. Intern Justine designed a Twilio-themed mechanical keyboard from sketches through production, used in a giveaway that generated over 100 submissions and became a highly engaged X post. The program emphasizes ownership and creativity, with 93% of interns reporting increased confidence, and the author aims for Twilio to be a great place to start, building a lasting network.
How to audit what your AI agent knows about a customer
To audit what an AI agent knows about a customer, three questions must be answered: what the agent stored, where facts came from, and what it used for each answer. Twilio Conversation Memory stores customer knowledge as traits, observations, and conversation summaries, each with provenance including source, conversation IDs, and revision history. Agent Connect passes retrieved memory to the developer’s code on every message, enabling logging of which memories were used per response, including relevance scores. The guide also covers correcting or deleting incorrect memories and building a persistent audit trail by exporting Memory events via Twilio Event Streams, tied together with conversation IDs. This approach gives human agents and compliance teams the ability to trace, explain, and fix agent behavior, with Agent Copilot displaying knowledge sources.
What is StartTLS?
StartTLS is an email protocol command that upgrades an existing plain-text SMTP connection to an encrypted TLS connection. It starts unencrypted, then the client sends the STARTTLS command, and the server and client perform a TLS handshake before any credentials or email are transmitted. Port 587 is the standard port for StartTLS, while port 465 uses implicit TLS, which encrypts from the first byte. StartTLS is vulnerable to man-in-the-middle attacks during the initial unencrypted handshake, and enforced TLS with MTA-STS can close that gap. TLS 1.2 or higher should be used, as TLS 1.0 and 1.1 are deprecated and SSL is retired.
Best Practices for Conversation Relay Provider Failover
Twilio Conversation Relay uses separate third-party providers for transcription (ASR) and text-to-speech (TTS), each of which can fail under high load or during outages. To maintain uninterrupted Voice AI calls, developers must implement an application-level failover strategy that switches providers when errors occur. Failures manifest differently depending on timing: startup failures end the session with an ErrorCode, while mid-call TTS failures keep the call alive and require the WebSocket server to detect the error and send an end message with handoffData. The action URL handler must branch on specific error codes (64114 for ASR, 64111/64112 for TTS) and return new TwiML with alternative providers. To prevent infinite loops, the strategy limits retry attempts, changes providers on each attempt, and includes a final fallback that does not use Conversation Relay, such as or .
Build vs. buy: How to decide for your orchestration layer
The orchestration layer comprises four distinct components—decision engine, context layer, channel layer, and agent runtime—each requiring a separate build-versus-buy decision rather than a single platform choice. The decision engine, which encodes core business logic such as eligibility rules and risk thresholds, should be built and owned in-house to avoid outsourcing the part that differentiates the business. The context layer, responsible for identity resolution and customer profile freshness, should be bought as infrastructure while the business owns the definition of customer attributes; 48% of companies cite cross-channel data connection as their top obstacle. The channel layer, handling carrier relationships, number provisioning, and per-market compliance, is almost always better bought because it requires specialist maintenance that changes frequently. The agent runtime, including speech pipelines and interruption handling, should be bought as infrastructure while the business retains control over models, prompts, and guardrails, grounding responses in audited knowledge repositories.
Contact center analytics: 6 metrics for AI and human agents
Contact center analytics must adapt when AI agents handle a share of conversations alongside human agents. Traditional metrics like containment rate can mislead because they count customers who give up as successes. The post identifies six metrics—CSAT, sentiment, resolution, average handle time, abandonment/drop-off, and intent—that should be tracked separately for AI and human agents. Twilio provides a four-layer analytics stack: Flex built-in metrics, Voice AI agent monitoring via Conversation Relay Insights, Conversation Intelligence for custom scoring operators, and Conversation Insights for aggregation and comparison. The goal is to benchmark both workforces on the same outcome-based metrics rather than deflection alone.
What is agent assist? How real-time AI helps human agents
Agent assist is AI that supports human contact center agents during live customer conversations by suggesting responses, surfacing relevant knowledge, and handling after-call work while the agent remains in control. Twilio’s implementation combines Agent Copilot in Flex, which provides wrap-up notes, transfer summaries, customer highlights, Ask Copilot, and suggested responses, with Conversation Intelligence for programmable real-time signals. Conversation Intelligence runs LLM-backed Language Operators such as Next Best Response, Script Adherence, Sentiment, and Summary, and rules determine when each operator runs. Operator results reach a backend by webhook, are normalized and streamed to the agent’s browser keyed by call, then displayed in a Flex plugin. Twilio recommends starting with post-conversation wrap-up so agents build trust in AI output before real-time suggestions appear mid-conversation.
Build an AI Voice Assistant with Twilio Voice and Media Streams, Rime's Prism, and Node.js
The tutorial shows how to connect Rime’s Prism speech-to-speech model to Twilio’s voice infrastructure using Twilio Media Streams, Node.js, and Rime’s Node SDK. It covers setting up a Node.js project with Fastify, installing dependencies, and writing audio conversion code to handle the format mismatch between Twilio’s 8 kHz G.711 μ-law and Prism’s 16/24 kHz PCM16. The server manages WebSocket connections, converts incoming μ-law audio to PCM16 for Prism, and converts Prism’s 24 kHz output back to 8 kHz μ-law for Twilio using a low-pass filter and decimation. Additional features include interruption handling, tool calling, persisting customer details with Twilio’s Conversation Memory, and analyzing transcripts with Conversation Intelligence. The tutorial concludes with troubleshooting tips and next steps for further exploration.
How to build multilingual AI agents for customer support
Building a multilingual AI agent for customer support requires coordinating speech-to-text, the LLM, and text-to-speech so all three switch languages together, since callers may change languages mid-conversation. Twilio ConversationRelay handles speech-to-text and text-to-speech, with each element mapping a language code to its own transcription provider, voice, and speech model. Setting speech-to-text to multi with Deepgram tags each utterance with a primary language code, so the agent detects a switch and sends a WebSocket language message that changes languages without restarting the call. Prompt design keeps the LLM consistent, and Twilio Conversation Memory stores the customer’s language trait so the next call starts in the right language. Agent Connect extends the same agent across SMS, WhatsApp, RCS, and Chat, and passes the detected language as a TaskRouter attribute so Flex can hand off to a human who speaks it.
Brilliant Builds: Building for Seamlessness
The third episode of Twilio’s Brilliant Builds series addresses the common problem of customers being bounced between support channels and having to repeat their issue. Guest Matthew Blakemore, named one of 2025’s Top 100 Influential People in tech and CEO of AI Caramba! and Programme Director at Mindstone, is an AI strategy lecturer and key contributor to the EU AI Office’s General-Purpose AI Code of Practice. He explains how to master omnichannel orchestration, connecting scattered channels and preserving context so conversations flow seamlessly across SMS, Voice, RCS, and WhatsApp. The returning thought leadership series, titled ‘Rethinking Enterprise AI Across the Customer Journey,’ takes AI from the hot seat to real-world execution, featuring industry experts who explore how AI drives loyalty, earns credibility, navigates compliance, and addresses the emerging machine-to-machine landscape. Blakemore brings additional expertise from co-authoring the ISO/IEC AI Data Lifecycle Standard and advising Innovate UK’s £100M BridgeAI Programme.
Brilliant Builds: Building for Choice
Twilio’s Brilliant Builds series closes its season with “Building for Choice,” an episode featuring Scott Seaborn, a digital transformation and AI strategist who helps global brands modernise customer experience. The returning series takes AI from the hot seat to real-world execution, including “From Idea to Index: How Twilio Voice and AI Helped Bring the Guinness Price Index to Life” and “Rethinking Enterprise AI Across the Customer Journey.” The season explores how AI works in practice across the customer journey, from driving loyalty and earning credibility to navigating compliance and the emerging M2M landscape. Seaborn addresses what happens as AI agents start talking directly to other AI agents, and how to protect brand identity, keep human oversight, and maintain the customer’s fundamental right to phone support. The episode prepares enterprises for the machine-to-machine era without losing the human touch.
Brilliant Builds: Building for Loyalty
Twilio launched the Brilliant Builds series, a thought leadership program returning with a focus on real-world AI execution across the customer journey. The season opener, titled Building for Loyalty, features Nancy Rademaker, a veteran of digital transformation, professional keynote speaker and guest lecturer at London Business School with over two decades of enterprise IT experience, including senior EMEA roles at Microsoft. Rademaker, associated with top European innovation network Nexxworks, focuses on the human side of technology and how AI changes employee work and customer interactions. The episode addresses how businesses can unify fragmented customer data to deliver genuine customer recognition and tackles the challenge of protecting frontline teams and preventing agent burnout as AI becomes more prevalent. The series, which includes episodes on driving loyalty, earning credibility, navigating compliance, and the emerging machine-to-machine landscape, aims to move AI from theoretical discussion to practical implementation.
Give Legacy Linux Devices a Voice
Legacy Linux devices such as elevator intercoms and door entry systems often have microphones and speakers but can only dial a single hard-coded number. By adding the open-source PJSIP SIP stack to the device and connecting it to a Twilio SIP Domain, these devices gain access to modern voice capabilities. The cloud handles IVR menus, PSTN transfers, live agent connections via the Voice SDK, and AI agents using Conversation Relay or Media Streams. A proof of concept using an elevator help line in Twilio Studio demonstrated that DTMF keypresses and PSTN transfers work over standard SIP without proprietary extensions. The approach avoids costly hardware replacement and allows every device in the field to improve as cloud AI improves.
Topics they write about
All topics →Weekly digest
The best engineering reads, once a week.