You are here: Reference > Rule types > Data Set > Creating a Twitter data set record

Creating a Twitter data set record

Use the Twitter data set to filter tweets according to the keywords that you specify. First, create a Twitter data set to connect with the Twitter API. Next, reference the data set from a data flow and use the Free Text Model rule to analyze the text-based content of tweets.

Caution: Do not reference one instance of the Twitter data set in multiple data flows. Stopping one of such data flows, stops the Twitter data set in the other data flows.

Prerequisites:

Before you create a Twitter data set, complete the following tasks:

  1. In Designer Studio, click +Create > Data Model > Data Set.
  2. Enter the data set label and identifier.
  3. From the Type list, select Twitter.
  4. Specify the ruleset, Applies-to class, and ruleset version of the data set.

    Note: The Applies-to class for Twitter data sets must always be Data-Social-Twitter.

  5. Click Create and open.
  6. On the Twitter tab, complete the Access details section with the OAuth settings from the Twitter application that you created:
  7. Optional: Enter the Klout score API key.

  8. Optional: In the Keywords section, click Add keyword and enter the words that you want to find in the tweets.

    You can also enter the Twitter authors that you want to find in tweets (for example, @JohnSmith).

  9. Optional: In the Timeline section, click Add author and enter the names of users whose tweets you want to analyze.

    Note: As a best practice, complete either the Keywords or Timeline section. If you leave both sections empty, you will analyze all the tweets on the platform.

  10. Optional: In the Ignore section, click Add author, and enter the names of users whose posts you want to ignore.

    Note: See the Twitter REST API documentation for information about limitations when specifying keywords and authors.

  11. In the Search section, specify the retrieval settings for tweets:

    Note: The Search section appears only when you select the Playback option in the Retrieve tweets section.

  12. Click Save.