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:
Accepts raw HTML content as input. Creates a new GitHub Gist with that content. 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
Add this subworkflow to any parent workflow where HTML is generated. Pass in a string of valid HTML via the html input parameter. 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).
Related Templates
Track Demo Bookings with Google Calendar to Meta Conversions API Integration
Who is this workflow for? If you're using Meta Ads to generate new leads to your sales pipeline, this workflow is for yo...
Transcribe & Summarize Audio with Whisper and GPT, from Google Drive to Notion
This workflow contains community nodes that are only compatible with the self-hosted version of n8n. Overview This work...
Build an MCP Server which answers questions with Retrieval Augmented Generation
Build an MCP Server which has access to a semantic database to perform Retrieval Augmented Generation (RAG) Tutorial C...
🔒 Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments