⚒️ Convert POML to AI-Ready Prompts & Chat Messages with Zero Dependencies

162 views · ⚒️ Engineering

Description

POML → Prompt/Messages (No-Deps)

Poml Logo

What this does

Turns POML markup into either a single Markdown prompt or chat-style messages[] — using a zero-dependency n8n Code node. It supports variable substitution (via context), basic components (headings, lists, code, images, tables, line breaks), and optional schema-driven validation using componentSpec + attributeSpec.

Credits

Created by Real Simple Solutions as an n8n template friendly POML compiler (no dependencies) for full POML feature parity.

View more of our templates here

Who’s it for

Teams who author prompts in POML and want a template-safe way to turn them into either a single Markdown prompt or chat-style messages—without installing external modules. Works on n8n Cloud and self-hosted.

What it does

This workflow converts POML into:

It supports variable substitution via a context object ({{dot.path}}), lists, headings, code blocks, images (incl. base64 → data: URL), tables from JSON (records/columns), and basic message components.

How it works

> Add a yellow Sticky Note that includes this description and any setup links. Use additional neutral sticky notes to explain each step.

How to set up

  1. Import the template.

  2. Open the first Set node and paste your componentSpec, attributeSpec, and context (examples included).

  3. In the Code node, choose:

    • speakerMode: true to get messages[], or false for a single prompt.
    • listStyle: dash | star | plus | decimal | latin.
  4. Run → inspect prompt/messages in the output.

Requirements

How to customize

Security & best practices

🔗 Nodes Used

AI Agent, OpenAI Chat Model

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup