VIBE Template Author's Guide¶
Welcome to the official documentation for creating templates with VIBE. This guide is designed for subject matter experts, not programmers, and will walk you through everything from the basics to advanced features. Assistant and Review are optional extensions; this guide focuses on core template authoring first, with extension guides listed separately.
Start with the introduction or jump directly to the section you need.
Basic¶
-
- A high-level overview of what VIBE is and the problems it solves for authors.
-
Building a VIBE Template: A Step-by-Step Tutorial
- A comprehensive, hands-on guide to building a template from the ground up, covering basic and advanced features.
-
- Explains the fundamental pillars: the
config.ymlfile, the Template file, Session Context, and the VIBE Engine.
- Explains the fundamental pillars: the
-
Template Authoring Guide (Jinja Essentials)
- A curated guide to the most essential Jinja commands for use in your
.mdor.docxfiles.
- A curated guide to the most essential Jinja commands for use in your
-
- Practical guidance for Word-first template authors: where Jinja tags go, what formatting survives, and how to debug DOCX-specific issues.
-
- A detailed dictionary of every available question
type(text, number, date, list, etc.) and their options.
- A detailed dictionary of every available question
Intermediate¶
-
Reusable Data with
definitions- Create reusable data structures, recursive composition, and definition-driven questions.
-
- Create and use reusable components with
{{ insert() }}: from simple snippets to configurable clause libraries with their own interviews.
- Create and use reusable components with
-
- Learn how to use pre-filled data from authentication tokens or administrator configuration in your templates.
-
- Connect interviews with
recommend()so follow-up templates can start with shared, read-only data.
- Connect interviews with
-
Automated Calculations with Computable Variables
- Complete guide to computable variables: inline expressions, function-based computations, automatic dependency tracking, and conditional logic.
-
Generating Appendices and Annexes
- Learn how to create separate documents like appendices, annexes, or schedules that are generated alongside your main template using the
{{ appendix() }}function.
- Learn how to create separate documents like appendices, annexes, or schedules that are generated alongside your main template using the
-
- Organize long interviews into groups and choose a presentation layout (paged, accordion, tabs, flat).
-
What’s New in the Component System
- Overview of the newer component collection patterns, question placement controls, and input scoping behavior.
-
- Features to help you correctly handle plurals, possessives, and complex list formatting in your templates that adapts to their users' answers (for all VIBE supported languages).
-
Template Functions, Filters & Metadata
- Built-in functions, filters, and metadata available in every template, plus how to add your own with
templatefunctions.pyandtemplatefilters.py.
- Built-in functions, filters, and metadata available in every template, plus how to add your own with
-
Cross-References and Section Numbering
- How to create internal links ("see section 3.2") that stay correct when conditional sections shift the numbering, in both Markdown and Word templates.
-
- Override individual HTML fragments or attach per-template CSS without touching the global app.
-
Best Practices and Common Patterns
- A collection of recommended approaches for building robust, maintainable, and easy-to-understand templates.
-
- Copy-pasteable patterns for recurring tasks like optional clauses, followups, grouped interviews, computables, and cross-references.
Reference¶
-
- Access session information, timestamps, template details, and AI assistant usage data from within your templates for audit trails, troubleshooting, and transparency.
-
- A reference of all keys/settings that can be used in the various configuration files.
-
Command-Line Tools for Authors
- A reference for the
validateandinspecttools that help you build and debug templates faster.
- A reference for the
-
- Define expected outcomes for your templates and verify them automatically with
vibe test.
- Define expected outcomes for your templates and verify them automatically with
-
- A suite of tools for troubleshooting the VIBE system, performing code management tasks like file concatenation, and directly manipulating
.docxfiles
- A suite of tools for troubleshooting the VIBE system, performing code management tasks like file concatenation, and directly manipulating
-
- A symptom-based guide to solving the most common issues like "Why isn't my question showing up?".
-
- Simple, clear definitions of VIBE-specific terms like
component,definition, andprobe.
- Simple, clear definitions of VIBE-specific terms like
Extensions (Optional)¶
The following guides require the corresponding extension to be enabled:
- Author Extension
- Create and edit templates directly in the browser with a visual workspace, live preview, drag-and-drop question ordering, and Microsoft Word integration.
- Create drafting assistants
- Integrate interactive Large Language Model (LLM) assistants into your templates, helping the user to draft complex, creative, or context-dependent sections.
- Interactive assistant tutorial
- Hands-on tutorial for building assistant-driven templates.
- Document Review
- Build review templates that evaluate existing documents against requirements.
Developer Resources¶
The following documentation is intended for developers and system administrators:
- Environment Variables
- Configuration options for the VIBE server environment, including debug mode, authentication, and deployment settings.
- Developer Toolkit (vibe-dev)
- Debugging and utility tools for VIBE system development and troubleshooting.