How do I use the RSS block?

Letterhead allows you to add your RSS (Really Simple Syndication) feed as a curations source and pull those articles into the Curations library (Stories and articles)

An RSS feed allows you to access updates to websites in a standardized, computer-readable format, which Letterhead uses, to pull the content into your newsletter edition.  By using an RSS feed you can take advantage of automated publishing through Letterhead.

Things to keep in mind when using RSS Feeds: 

  1. Check the validity of the RSS Feed you're attempting to use using this RSS Feed ValidatorTypically if it passes this, it should work in Letterhead. If the feed fails from a source you do not control (another publisher), you would have to reach out to the publisher.
  2. In the block settings:
    1. RSS Feed can display up to 10 articles, using the Heading and excerpt or Heading, excerpt and image layout options.  If you intend to use Full content, which will display the entire article, you have to be mindful of how long these articles will be.  Letterhead may only be able to pull in 1-3 with this option, in order to control the size of the email.  More on the layout options here.
    2. If Offset is set to 0 articles, it will show the first article, and if it's set to 1, the second​ item on the list will load.
  3. If your feed comes in empty, after it has continuously pulled in articles correctly, it may be that the feed itself is serving a cached version to its users.  
    1. Letterhead itself does not save a cached version of the feed, as we fetch the feed in real time at the moment of preview.
    2. If the feed itself is serving a cached version to users — which WordPress does — then it will see Letterhead has a repeat user and serve that cache until it clears on the server side.
    3. We have implemented a workaround for this; however, this may not necessarily fix all our customers' problems.
    4. If this is still happening to you, please reach out to the feed owner or to Letterhead support, so we can investigate your options.

The RSS block is perfect if you want to set up automations to pull certain articles from your feed based on specific criteria, as well as customize how they are displayed in your newsletter.  You will be able to filter by your source, which is the title of the RSS feed, published dates, or keywords.

To get started, review the steps outlined below.

To ensure uninterrupted access to our RSS feeds, please ensure that the following IPs are whitelisted and our crawler's domain is safe-listed:

Whitelist IPs: 198.199.66.189 | 164.90.252.240 | 167.172.156.41

Safelist Domain: *.tryletterhead.com | letterhead.email | letterhead.ai

By whitelisting the above IPs and safe-listing the mentioned domains, you enable our crawlers to efficiently access and retrieve content from our RSS feeds.

In addition to this, the Letterhead crawler is labeled "LetterheadCurationBot", and its User-agent is below:

  1. Mozilla/5.0 (compatible; LetterheadCurationBot/1.0; +http://tryletterhead.com/bots)

Add the RSS feed as a Source

  1. Navigate to Newsletters
  2. Click on Curations
  3. Click in the center on SourcesClick on Sources
  4. Click on Add content
  5. Add a title for your feed, a description and your RSS Feed URL.Add a title for your feed, a description and your RSS Feed URL
  6. Determine whether or not to enable the Crawl feed option.  If you plan on adding a feed to use with the RSS block, it is best NOT to enable the 'Crawl feed' option. Letterhead will pull content from the feed every 15 minutes per feed.
    1. 'Crawl feed' will ignore the RSS feed and use the <link> within each item of the feed to go fetch the content from the site directly.  We recommend leaving this disabled, so Letterhead takes the tags inside the <item> node, instead of crawling the URLs inside each item.
    2. In other words, if you enable 'Crawl feed', Letterhead will try to fetch content from the URL like in <media:content url="whateverLinkIs">, in the same way we pull from a URL, when you use our URL block. The caveat is that sometimes URLs allow us to crawl them, but sometimes they do not.You can also choose to crawl your feed
  7. Click Add feed
  • When the crawl feed option is selected, our bots will follow the url in the <link> node of your feed to attempt to gather more data from your website for your curations. In order to use this option, your website must be configured to allow our crawler and bot traffic will significantly increase on your website.

  • You can optimize and otherwise control what Letterhead curates by using open graph tags with the crawl feed option enabled.

  • Letterhead cannot crawl any website with a paywall or mandatory login, including any social media sites. 

Setting up the RSS block in Composer

  1. Navigate to NewslettersThen you will navigate to your Newsletters
  2. Select the newsletter draft or template you are working on.
  3. Drag and drop RSS feed blockDrag and drop RSS feed block
  4. Select your RSS feed/source.Select your RSS feed source
  5. Select the timeframe from when you would like to pull the articles.  By default, it is set to 'Use exact dates', but if this is for an automation, we suggest you select All days or one of the options in the dropdown.Select all days or use exact dates
  6. Select how many articles (RSS items) to show in feed and/or how many items to skip.
    1. Items to show: how many articles would you like Letterhead to display in your newsletter?
    2. Skip items (which article should we start with?).  If the offset is set to 0, Letterhead will display the first article/item on the list.Select how many items to show in feed and/or how many items to skip
  7. Click Load to load the articles from your feed (this option will only be available if you are in a newsletter draft, not a template).
If your curation shows up twice, this may be why...

The following are the same:

  1. <title>
  2. <link>
  3. <pubDate> is same day of an otherwise identical item
  1. If the same item is included in a different feed, then it will be inserted separately.
  2. If anything about the title or link are different -- such as, in one case, the casing of the title was different ("The" instead of "the"), or it's a totally new date, or the url has changed, Letterhead will see this is a separate entry.

Layout Options

The layout options are:

  1. Heading, excerpt and image (Left Image/Right Text, Right Image/Left Text, or Large Image above/Text below).
    1. Letterhead displays the image from the <image> node inside <item>.  We pull this information from the <media:content> node or an enclosure node, and it assumes that there's an image there, so it will leave space for it, even if no image is included or if the image is elsewhere.
    2. Also, the RSS block only supports <media:content>, not <media:thumbnail>.
  2. Heading and excerpt (just the heading and description of the article, so text only).  
  3. Full content (the entire article including images).  This is almost full html, and Letterhead pulls this information from the feed's <content:encoded> node.  If this is coming up empty for you, it is possible that your feed does not include this node.
Select from various layout-options

Display options

Here you can select what you want to include in the layout.  The options are:

  1. Title: Letterhead pulls the title from the <title> section within each RSS <item>
  2. Excerpt: Letterhead pulls the excerpt from <description> for the <item>, or <content>, if description is empty/null.  Also, descriptions are sometimes non-standard, so we get the first sentence of the <description> to create the excerpt.  The link to the article comes from <link> in the feed.
  3. Date published: Letterhead pulls the date from <pubDate> for the <item>.
  4. Source: This is the title of the feed.
  5. Author: Letterhead pulls the author from <dc:creator> for the <item>.Select your RSS display options
  6. Adjust your column widthAdjust your column width
  7. Adjust your image settings.Adjust your images

Customize your RSS Blocks look and feel

These settings are shared across all blocks and allow you to add background color, or a border to the block.  You can review all the options here.

Customize your RSS look and feel

Note: If you are using the RSS block in conjunction with an automation, the email subject can be dynamic.  In order for this to work, Letterhead will loop through the whole newsletter to find the first heading (from h1 to h6).  If there's any, it will be set as the dynamic title.

Otherwise, we will loop through all RSS blocks (including new RSS blocks) to find the first title - it's a <strong> tag in your RSS (or new RSS) block content. When you use any layout that's not full content, the title is a <strong>.

How do we handle the super long title?

We will trim it to the last complete word and append ellipsis, but the same time the whole character count is no more than 150 (including ellipsis).

We recommend NOT using the RSS block, if you only want to add one or two specific articles from a website. 

It is best to use the URL block for specific articles you want to share, instead of pulling from a feed that may update automatically prior to your scheduled send. 

If you are having problems with your RSS feed, please submit a support ticket with as much detail as possible, and we'll try to guide you on how you can update your RSS feed to better sync with Letterhead.