πŸ“ Publish HTML content with GitHub Gist and HTML preview

⚑ 176 views Β· πŸ“ File Management

Description

πŸ“Œ 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

πŸ”§ How to customize

πŸ”— Nodes Used

HTTP Request, Execute Workflow Trigger

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup