Skip to contentSkip to navigationSkip to topbar
On this page

Core Concepts: Conversations


(information)

Info

Flex Conversations requires Flex UI 2.0. If you are on Flex UI 1.x, please refer to Chat and Messaging pages.

Flex Conversations requires Flex UI 2.x.x and supports async channels including:

  • SMS/MMS
  • WhatsApp
  • Chat
  • Facebook Messenger (Public Beta)

It uses Twilio Conversations and the Interactions API for managing inbound and outbound communication on your contact center. The following diagram illustrates how the various Twilio products connect together to make Flex Conversations possible.

Conversations Core Concept.

Twilio Conversations and Messaging Services

twilio-conversations-and-messaging-services page anchor

Flex uses Twilio Conversations for all digital channels and provides the unique threads in which messages are exchanged between agents and customers. Each Conversation includes a list of current Participants and the Messages that they have sent amongst each other.

Messaging Services serve as a higher-level "bundling" of messaging functionality around a common set of senders, features, and configuration. The same settings and feature configuration apply to all of the senders (long code numbers, short codes, toll-free numbers, A2P 10DLC, etc.) in the Messaging Service's pool.

You can manage your Messaging Services directly through the Console(link takes you to an external page) or through the REST API.


A Conversations Address is a configuration for your Flex SMS or WhatsApp number or Facebook Messenger Sender. The address informs the Conversations Service to auto-create a new conversation for messages that do not belong to an existing conversation. You can configure your address to point to a Studio Flow or a webhook on your application for sending. Once a conversation is created, all new messages from the same source to the same destination will be routed to the newly created conversation.

For more information on handling inbound messages and enabling auto-creation for Conversations, see Inbound Message Handling & Autocreation.


The Interactions API allows you to manage the communication between end-customer and the business. It provides the primitives to connect and orchestrate adding and removing of participants in a given channel and utilizes Twilio TaskRouter for all contact center routing capabilities.

interactions object model.

Interactions Object Model

Interaction Channels

interaction-channels page anchor

An interaction channel gives you the ability to associate multiple tasks with the same conversation. With this model, you can build workflows which allow the conversation to stay open beyond the lifetime of a task. This facilitates use cases like transfer and preserving conversation history across tasks.


Webchat 3.0 is built on Flex Conversations and provides a templated, secure way to add a webchat widget to your website.

Flex Conversations also supports Chat applications built on top of Twilio Conversations, including mobile in-app chat. With custom chat, you can provide authenticated access to your users or build an anonymous webchat to embed into your website.

Twilio takes data security seriously. All customer assets—including text, media, and most metadata—are encrypted at rest. We also encrypt all data at the volume level.

Twilio's servers and Flex communicate using secure WebSockets. The Flex agent desktop connections are authenticated using the same JWT token security as the rest of Flex, meaning they are governed by the same Single Sign On (SSO).


To learn more about Conversations in Flex, check out the following topics:

Need some help?

Terms of service

Copyright © 2024 Twilio Inc.