Skip to main content
MindStudio
Pricing
Blog About
My Workspace
AI Generation

Generate HTML Asset

The Generate HTML Asset block takes an HTML source and renders it into an exportable asset — either a webpage, a PDF, or an image.

Generate HTML assets as webpages, PDFs, or images

The Generate HTML Asset block takes an HTML source and renders it into an exportable asset — either a webpage, a PDF, or an image. You define the source content using one of several input types: raw HTML, Markdown, a single-page application, a static string, or a dynamically generated prompt. The block processes that source and produces a URL pointing to the rendered output, which can then be used elsewhere in the workflow or surfaced directly to a user.

The block's primary input is the source field, which holds the HTML or content to be rendered, and the sourceType field, which tells the block how to interpret that content. The output is a single url string — the location of the generated asset. Depending on how the block is configured, the output can be displayed directly to the user in foreground mode or stored in a workflow variable for use in downstream steps.

This block fits into workflows that need to produce formatted documents or visual assets from structured data — for example, generating a report from collected inputs, producing a PDF from a filled template, or rendering a styled webpage from Markdown content. It supports Handlebars templating, so workflow variables defined earlier in the execution can be interpolated into the HTML source before rendering.

What you can build

Real-world workflows powered by the Generate HTML Asset block.

Automated Report Generation

Render a structured HTML template populated with workflow variables into a downloadable PDF report for end users.

Dynamic Invoice Creation

Generate a styled invoice as a PDF by injecting order data and customer details into an HTML template at runtime.

Markdown to PDF Export

Convert a long-form Markdown document — such as a research summary or meeting notes — into a formatted, shareable PDF.

AI-Generated Web Pages

Use a dynamic prompt to instruct the block to generate a complete HTML page on the fly, then expose it as a live URL.

Certificate or Badge Rendering

Produce a personalized certificate image by rendering an HTML template with a recipient's name and completion data.

Data Visualization Snapshots

Render an HTML page containing charts or tables built from workflow data and capture it as an image for sharing or archiving.

Ready to add Generate HTML Asset to your workflow?

Get Started Free

Common questions about Generate HTML Asset

What are the required parameters for this block?

The block requires a source field containing the content to render and a sourceType field specifying how that content should be interpreted. The sourceType accepts one of five values: 'html', 'markdown', 'spa', 'raw', or 'dynamic'.

What does the block return?

The block outputs a single field — url — which is a string containing the location of the generated asset. This URL points to the rendered webpage, PDF, or image produced from the source content.

What kinds of workflows commonly use this block?

This block is commonly used in workflows that need to produce formatted output documents — such as reports, invoices, certificates, or data summaries — from structured inputs or AI-generated content collected earlier in the workflow.

Can workflow variables be used inside the HTML source?

Yes. The block supports Handlebars templating, so any variables already defined in the workflow at the time of execution can be referenced inside the HTML source. There is also a Handlebars helper available to render Markdown variable strings as HTML within the template.

Can the generated asset be shown directly to the user?

Yes. The block can operate in foreground mode, where the output is displayed directly to the user, or in background mode, where the generated asset's URL is saved to a workflow variable for use in subsequent steps.

Add Generate HTML Asset to your workflow

Build powerful AI workflows with drag-and-drop blocks. No coding required.