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.
Table of Contents¶
-
- A high-level overview of what VIBE is and the problems it solves.
-
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
-
- A detailed dictionary of every available question
type(text, number, date, list, etc.) and their options.
- A detailed dictionary of every available question
-
Reusable Data with
definitions- Create reusable data structures, recursive composition, and definition-driven questions.
-
- Learn VIBE's progressive component system: from simple file-drop components to sophisticated definition-linked components with the
{{ insert() }}function.
- Learn VIBE's progressive component system: from simple file-drop components to sophisticated definition-linked components with the
-
- Learn how to use pre-filled data from authentication tokens or administrator configuration in your templates.
-
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).
-
- Access session information, timestamps, template details, and AI assistant usage data from within your templates for audit trails, troubleshooting, and transparency.
-
- Features to help you correctly handle plurals, possessives, and complex list formatting in your templates that adapts to their users' answers (for both English and Swedish).
-
Best Practices and Common Patterns
- A collection of recommended approaches for building robust, maintainable, and easy-to-understand templates.
-
- A symptom-based guide to solving the most common issues like "Why isn't my question showing up?".
-
- Override individual HTML fragments or attach per-template CSS without touching the global app.
-
- 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
-
- 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
-
- 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:
- 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, system administrators, and AI agents working on VIBE system development:
- Developer Toolkit (vibe-dev)
- Comprehensive debugging and utility tools for VIBE system development, testing, and troubleshooting. Includes advanced debugging commands, code management utilities, and structured workflows for AI development assistants.