Skip to main content

Publish HTML content with GitHub Gist and HTML preview

Workflow preview

Workflow preview
100%
Publish HTML content with GitHub Gist and HTML preview preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Who’s it for This subworkflow is designed for developers, AI engineers, or automation builders who generate dynamic HTML content in their workflows (e.g. reports, dashboards, emails) and want a ...

Best for

  • File Management automation workflows
  • beginner n8n builders looking for reusable templates

Tools used

n8n-nodes-base.httprequest, n8n-nodes-base.executeworkflowtrigger, n8n-nodes-base.set, n8n-nodes-base.stickynote

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Open Paws.

Original n8n.io source

1.1 Workflow description

Title
Publish HTML content with GitHub Gist and HTML preview
Workflow name
Publish HTML content with GitHub Gist and HTML preview

📌 Who’s it for

This subworkflow is designed for developers, AI engineers, or automation builders who generate dynamic HTML content in their workflows (e.g. reports, dashboards, emails) and want a simple way to host and share it via a clean URL, without spinning up infrastructure or uploading to a CMS.

It’s especially useful when combined with AI agents that generate HTML content as part of a larger automated pipeline.

⚙️ What it does

This subworkflow:

  1. Accepts raw HTML content as input.
  2. Creates a new GitHub Gist with that content.
  3. Returns the shareable Gist URL, which can then be sent via Slack, Telegram, email, etc.

The result is a lightweight, fast, and free way to publish AI-generated HTML (such as reports, articles, or formatted data outputs) to the web.

🛠️ How to set it up

  1. Add this subworkflow to any parent workflow where HTML is generated.
  2. Pass in a string of valid HTML via the html input parameter.
  3. Configure the GitHub credentials in the HTTP node using an access token with gist scope.

✅ Requirements

  • GitHub account and personal access token with gist permissions

🔧 How to customize

  • Change the filename (report.html) if your use case needs a different format or extension.
  • Add metadata to the Gist (e.g., description, tags).

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Create Gist

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 2 - When Executed by Another Workflow

Type / Role
n8n-nodes-base.executeWorkflowTrigger - executeWorkflowTrigger
Config choices
Version 1.1

Block 3 - Set URL

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 4 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Publish HTML content with GitHub Gist and HTML preview
Complexity beginner
Nodes 4
Categories File Management
Author Open Paws
Published 30 Jul 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/6674/6674.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Publish HTML content with GitHub Gist and HTML preview do?

Who’s it for This subworkflow is designed for developers, AI engineers, or automation builders who generate dynamic HTML content in their workflows (e.g. reports, dashboards, emails) and want a ...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your File Management use case.