When creating an app to manage Direct Messages, having context of where the user came from or what application was responsible for sending the message can be important information for managing the conversation. Having this context can help improve analytics or determine the next action your app should take. To provide this context the following is available in Direct Message event objects when applicable.

Event properties

Message create event properties for conversation management.

  • initiated_via
    Provides the Twitter entity (Tweet or Welcome Message) that preceded the Direct Message in conversation.
  • source_app
    Provides information about the Twitter app the authenticating account used to send the Direct Message.