PersonafileSpecification
On this page1. Purpose2. Envelope Header: Avatar3. Body Elements: <pf:welcome> and <pf:starter>4. PFDOM Node Model & Deterministic Serialization5. Renderer & Client Projections6. Security & Backward Compatibility

Personafile Welcome, Starters, and Avatar Specification


1. Purpose

When a user opens a PERSONAFILE/1.0 persona in a mobile app, web browser, or chat client, the client needs an instant, deterministic, zero-token first view before invoking an LLM:

This specification defines a strictly optional, backward-compatible extension for publisher-defined avatars, welcome introductions, and clickable starter prompts. Clients remain free to render these natively (e.g., empty-chat welcome panels, hero cards, quick-reply chips) while the Personafile remains the single canonical source of truth.


2. Envelope Header: Avatar

An optional Avatar header inside the PERSONAFILE/1.0 envelope (--- block) declares the persona's primary visual avatar URI:

Avatar: <URI-Reference>

3. Body Elements: <pf:welcome> and <pf:starter>

3.1 <pf:welcome>

Declares the human-facing welcome block for empty conversations or persona landing views.

<pf:welcome>
  Welcome to Bistro Lumière! Ask about today's menu, allergens, or book a table.
  <pf:starter label="Today's specials">What are today's specials?</pf:starter>
  <pf:starter label="Book a table">I'd like to book a table for 2 tonight</pf:starter>
</pf:welcome>

3.2 <pf:starter>

Declares a publisher-authored starter prompt pill / quick-reply action inside <pf:welcome>.

<pf:starter label="Check availability">Is Dune available to borrow today?</pf:starter>
Attribute Required Description
label MUST Short human-readable button/chip label.
id Optional Stable identifier for analytics or client state.
Inner text Optional Exact message sent to the persona when the user taps the starter. If empty or omitted, clients MUST default the prompt text to label.

4. PFDOM Node Model & Deterministic Serialization

Conformant PFDOM parsers (pfdom-js, pfdom-kt) implementing this extension MUST expose:


5. Renderer & Client Projections

Consumer Recommended Projection
Chat / Mobile Client Render WelcomeNode.message (Markdown) and WelcomeNode.starters as clickable starter pills in the empty-session welcome panel with zero LLM latency. Tapping a starter sends starter.prompt as the user's first message.
Fallback (no <pf:welcome>) Clients MAY derive a fallback welcome view from human-facing Markdown (MarkdownRenderer with includePromptFraming = false) and auto-generated starter actions from <pf:form> tools or top # Section headings.
PFRenderer (LLM) SHOULD omit <pf:welcome> / <pf:starter> from system instructions (or render lightly as non-binding context) so human UI greetings do not distort model behavior.
MarkdownRenderer / HTMLRenderer Render <pf:welcome> as a highlighted intro block and <pf:starter> items as chips/buttons or a bulleted list.

6. Security & Backward Compatibility