Dynamic Evergreen Content Builder (Images & Redirects) - n8n Workflow

This n8n workflow creates and updates dynamic images via GitHub and short URLs via shorten.rest daily/hourly, ensuring your embedded content always stays fresh. Use this n8n template for evergreen marketing assets.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?

Technical marketers needing to keep embedded content (like banners or CTAs) fresh without manually updating forms or emails.
n8n users looking to create advanced, automated content assets.
Developers utilizing dynamic GitHub images in documentation or landing pages.
Anyone needing robust n8n templates for file operations and scheduling.

Overview

Maintaining relevance in published content can be challenging, especially for digital assets embedded across various platforms (emails, forms, documentation). This powerful n8n workflow solves the problem of stale content by automating the creation and updating of two critical dynamic assets: a timestamped image and a self-updating URL redirect.

Using core n8n node types like the Schedule Trigger, HTTP Request, and GitHub n8n node, the n8n workflow ensures that an image file (hosted on GitHub) displays the current time and date, and a shortened URL always points to a timely destination (in this case, today's corresponding Wikipedia article). This specific n8n template demonstrates how to leverage services to deliver evergreen value in your marketing materials, forms, and automated communications. Every aspect of this n8n automation is designed for maximum efficiency and freshness. This is a highly effective n8n workflow for continuous content maintenance.

How it Works

This n8n workflow is divided into initial setup steps (run once) and two recurring scheduled processes.

Initial Setup (Run Once):


  1. URL Setup: The n8n workflow first uses an HTTP Request n8n node to create an initial URL alias (today-in-history) on shorten.rest. The destination is dynamically calculated based on the current day's name, linking to a relevant Wikipedia page.

  2. Image Setup: A GitHub n8n node creates an initial placeholder file (dynamicimg.png) in a specified repository. Another GitHub n8n node retrieves the permanent download URL for this file.

Scheduled Processes:


  1. Daily URL Update (Schedule Trigger): A dedicated n8n trigger runs daily at a specific time. It executes an HTTP Request n8n node to update the existing today-in-history alias, pointing it to the correct, newly calculated daily Wikipedia article. This ensures the redirect is always relevant, powered by this essential n8n node.

  2. Hourly Image Update (Schedule Trigger 1): A separate n8n trigger runs every hour. This schedule n8n node first passes control to the Edit Image n8n node, which generates a new PNG file displaying the current date and precise time. This binary data is then passed to the Update GitHub file n8n node, overwriting the old dynamicimg.png file on GitHub, thus instantly updating the image wherever it is embedded. This is a powerful application of the n8n workflow structure.

Installation Guide

To use this advanced n8n workflow, follow these steps:


  1. Import the n8n template: Copy the provided JSON into your n8n instance using the "Import Workflow" function.

  2. Set up Credentials: This n8n workflow requires credentials for three services:

GitHub OAuth2 API: Configure credentials pointing to a repository where you have write access (e.g., public-tests). Ensure you update the owner and repository parameters in all GitHub n8n node configurations.
HTTP Header Auth (for shorten.rest): Set up a Generic HTTP Header credential type containing your shorten.rest API key. This is used by the HTTP Request n8n node instances for managing the URL alias.
* Gmail OAuth2: Configure your Gmail credentials to test the email functionality.

  1. Initial Run: Disable the two Schedule Trigger n8n node instances initially. Execute the flow starting from the "Create new URL redirection," "Create a file," and "Get the download URL" n8n node instances manually to set up the initial assets. This validates the n8n node setup.

  2. Activate Scheduling: Once the assets are created, activate the "Schedule Trigger" n8n node instances to begin the automated daily and hourly updates. The automation is now live and running in your n8n instance.

Node Details

Schedule Trigger & Schedule Trigger1 (n8n trigger): These serve as the recurring start points for the dynamic updates. One is configured for daily execution (URL update), and the other for hourly execution (image update). They are essential n8n trigger mechanisms for the n8n workflow.
HTTP Request (Create new URL redirection / Update URL redirection): This n8n node communicates with the shorten.rest API.
Function: Manages the URL alias (today-in-history).
Key Configuration: Uses POST for initial creation and PUT for subsequent updates. The JSON body dynamically inserts a destination URL based on the current date via n8n expressions.
Edit Image (Create Image): This core image generation n8n node dynamically creates a PNG file.
Function: Generates an image with layers of text, specifically showing the current date and time using complex $now n8n expressions.
Key Configuration: Uses multi-step operations to define dimensions, background, and text placement.
GitHub (Create a file, Update GitHub file, Get the download URL): Multiple instances of this n8n node manage the image file hosting.
Function: Initializes the file, updates the file with new binary data from the Edit Image node, and retrieves the stable public download_url needed for embedding.
Key Configuration: Uses the file resource, and operations edit, create, and get. The update operation accepts binary data input, demonstrating flexibility in the n8n workflow.
Gmail (Send a message): This n8n node demonstrates a key application of the dynamic asset.
Function: Sends an email embedding the dynamic image hosted on GitHub, ensuring the image is always up-to-date when the recipient opens the mail. This relies on the output of a previous n8n node.


  • Form Trigger: An n8n trigger demonstrating how to embed the dynamic content into a public-facing n8n form.

Related n8n Workflows

Free

Nodes: 8 Nodes
Updated: December 26 2025
View all
Created by

Featured*