Since Twitter’s launch in 2006 it has been a world-changing messaging platform. Tweets are a way to deliver a public message to the entire world. Direct Messages are a way to have a conversation, privately. Over the last few years we’ve been making private messaging on Twitter better:
- We’ve made it easier to share public Tweets from the timeline with others in Direct Messages.
- We’ve expanded the character limit in Direct Messages to 10,000 characters.
- We made it possible to receive Direct Messages from anyone.
- We made it simple to start a Direct Message conversation from Tweets, Twitter profiles, and even websites.
- We made Direct Messages more rich and engaging, by allowing media and Cards to be displayed along with text in messages.
Now, we’re making Direct Messages a better channel for developers to build messaging interactions that deliver personalized customer experiences at scale. We provide the ability to get Direct Messages in real-time via Webhooks, and the REST API to implement features that make conversations faster and easier.
- Welcome messages: Welcome messages let businesses greet people and set expectations as they enter a Direct Message conversation—without requiring people to send the first message. Businesses can create multiple welcome messages and deep link directly to a specific greeting from Tweets, websites, or apps.
- Quick replies: Quick replies let businesses prompt people with the best ways to reply to a Direct Message, whether by choosing from a list of options.
- Custom profiles: Override the Twitter profile avatar and display name attached to a message in order to make the human element or chatbot experience more personal.
- Buttons: Attach buttons to messages to make it easy for people to take actions outside of the Direct Message conversation – like composing a Tweet, following an account, or opening a website within the Twitter app.
In order to get the messages required to build great customer experiences you will need to:
- Create a Twitter app with the correct permissions to allow you to receive activities, including Direct Messages, from Twitter accounts via the APIs.
- Use OAuth via Twitter Sign-in to get permission to consume your customers’ Direct Messages
- Configure a Webhook to subscribe to user activities and get the messages you need
In order to create experiences in Direct Messages by responding to the messages you receive and using new features you may want to:
- Create and manage welcome messages using the welcome message REST endpoints
- Attach quick replies and custom profiles to messages and welcome messages using REST endpoints
- Add media to conversations by using a REST endpoint