Non ci sono articoli nel tuo carrello.
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
.
Created by Real Simple Solutions as an n8n template friendly POML compiler (no dependencies) for full POML feature parity.
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.
This workflow converts POML into:
prompt
(Markdown) for single-shot models, ormessages[]
(system|user|assistant
) for chat APIs when speakerMode
is true.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.
componentSpec
(allowed attrs per tag), attributeSpec
(typing/coercion), and optional context
.prompt
or messages[]
.Add a yellow Sticky Note that includes this description and any setup links. Use additional neutral sticky notes to explain each step.
Import the template.
Open the first Set node and paste your componentSpec
, attributeSpec
, and context
(examples included).
In the Code node, choose:
speakerMode: true
to get messages[]
, or false
for a single prompt
.listStyle
: dash | star | plus | decimal | latin
.Run → inspect prompt
/messages
in the output.
<system-msg>
, <user-msg>
, <ai-msg>
) in your POML when using speakerMode: true
.componentSpec
/attributeSpec
to validate or coerce additional tags/attributes.context
(e.g., bulleted
, csv
) for display, or add a small Set node to build them on the fly.