You can use content from external sources in your campaigns and automations. This could include products from your online store, blog posts or your own customer data.
In Rule, there are several ways to retrieve and use external data. The method you should use depends on the type of content you want to display and how often it needs to be updated.
Here, we go through the different methods and how you can use them.
What can you use external data for?
Display HTML content from your website – for example, banners or campaign sections that you update directly on your website.
Add products and articles via URL – automatically retrieve images, titles and descriptions from a webpage.
Display dynamic lists – for example, the latest products from your online store or your latest blog posts.
Retrieve content from RSS and Atom feeds – display news or blog posts from an existing feed.
Use your own subscriber data – store information about your subscribers and use it for personalisation, segmentation and automations.
Which method should you use?
What you want to do | Method | Data source |
Display an HTML block from your website | Direct retrieval (Remote Content) | A public URL with ready-made HTML content |
Add a single product or article via URL | Drag & Drop | A webpage with Open Graph tags |
Display a list of products or articles that updates automatically | Dynamic lists | A JSON feed with URLs |
Display content from an existing RSS or Atom feed | RSS and Atom feeds | A public RSS or Atom feed |
Store customer data for personalisation and segmentation | Custom fields | Import, form, API or integration |
The different methods
Direct retrieval (Remote Content)
With direct retrieval, you can retrieve HTML content from an external website and display it directly in your campaign. The content is retrieved from the specified URL when the campaign is sent.
In Rule, you can find this feature under Remote Content in the editor.
What you need:
A publicly accessible page with a ready-made HTML snippet.
No
<html>,<head>,<body>or<style>tags – only inline styles.A responsive design that works without media queries.
Read more in Setting up Direct retrieval
Drag & Drop
With Drag & Drop, you can add a product or article to your campaign by dragging its URL into a content block.
Rule reads the page's Open Graph tags (such as og:image, og:title and og:description) and automatically fills in the block.
What you need:
A publicly accessible URL for each item.
Open Graph or product: tags on the page.
Read more in How to set up Drag & Drop
Dynamic lists
With dynamic lists, you can retrieve several products or articles at the same time and display them in a list in your campaign.
You enter a URL that returns a JSON list containing links to the content. Rule then retrieves information from each webpage using its Open Graph tags and automatically fills in your Loop block when the campaign is sent.
This is useful, for example, if you want to display the latest products from your online store or your latest blog posts.
What you need:
A public URL that returns a JSON list of URLs.
Open Graph tags on the page for each item.
The same number of items in the JSON list as there are columns in the Loop block.
Read more in Setting up Dynamic Lists
RSS and Atom feeds
If you already publish content through an RSS or Atom feed, you can use it directly in your campaigns.
Add a Loop block in the editor, select XML Doc as the source and enter the URL of your feed. Rule then retrieves the content and automatically fills in the block when the campaign is sent.
For example, you can use this feature to display the latest news or blog posts from your website.
What you need:
A publicly accessible URL to an RSS or Atom feed.
A Loop block with XML Doc as the source.
Custom fields
Custom fields are used to store your own information about subscribers in Rule. You can then use this information to personalise the content of your campaigns, create segments or set up triggers in automations.
For example, you can store information about a subscriber's customer type, interests or other details that you want to use to personalise your communication.
What you need:
A group of custom fields created in Rule.
The correct field type for each field.
A data source that populates the fields with values – import, form, API or integration.
Read more in Custom Fields
Tips
Choose the right field type from the start. The field type of a custom field cannot be changed after it has been created.
Use standard tags. Drag & Drop and Dynamic lists only read Open Graph and product: tags – custom tags are not read.
Adjust the number of items to match the columns. For Dynamic lists, use for example 2, 4 or 6 items for a block with two columns, or 3, 6 or 9 for a block with three columns. Otherwise, the block may display empty columns.
Keep the HTML for Direct retrieval simple. Use inline styles and a layout that adapts to the screen width without media queries.
