For Administrators & Creators: This documentation is for users who design and create case templates. If you just need to work with existing cases, see Introduction to Cases.
Understanding Case Templates
Think of a Case Template as a master mold. Every case created from a template copies its structure, including:- Fields and their types
- Sections and organization
- Contact types
- Available statuses
- Workflow steps
- Default values
- Automation rules
- Compliance requirements and documentation
Templates Are Cases
In Penbox, templates are themselves cases with a special flag (is_template: true). This design means:
- You use the same interface to design templates as you do to work with cases
- Templates can be tested like real cases
- The template editor and case view are consistent
- What you see when designing is what users see when working
Creating a Case Template
Basic Template Information
Every template needs:| Field | Description | Required |
|---|---|---|
| Title | Name of the template (what users see) | Yes |
| Description | What this template is for, when to use it, and any regulatory requirements | Optional but recommended |
| Locale | Default language (e.g., en, fr) | Yes |
| Reference | Auto-generated unique identifier | Auto |
| is_template | Flag marking this as a template | Yes (true) |
Template Status
Templates start as draft and can progress through the same statuses as regular cases. This lets you test the template workflow before publishing it for use.Designing the Schema
The schema is the heart of your template - it defines what data the case will collect and how it’s structured.Adding Fields
Each field in your schema has:Field Properties
Key (required)- Unique identifier for the field
- Format: lowercase letters, numbers, and underscores only
- Max 120 characters
- Example:
company_name,date_of_birth,contract_value - Important: Use meaningful keys for regulatory compliance and system integration
- Determines how data is collected and stored
- Available types:
text,number,date,file,checkbox,checkboxes,choices,signature,http
- Label shown to users
- Can contain any characters
- Should be clear and descriptive
- Help text explaining what this field is for
- Shown as a hint to users filling out the case
- Use for regulatory guidance: “This field is required for AML compliance”
always-visible)
always-visible: Field always appearshide-when-empty: Only shows when it has a valuealways-hide: Hidden from view (but data is stored for compliance/integrations)
- UUID of the section this field belongs to
- Fields without a section appear at the top
- Type-specific configuration
- Example: For
choices, this would include the available options
Field Type Details
Text Fields
Text Fields
Type: Best for: Names, addresses, descriptions, notesCompliance use: Legal entity names, regulatory identifiers
textCollect text input - single line or multi-line.Options:Number Fields
Number Fields
Type: Best for: Amounts, quantities, ages, scoresCompliance use: Financial amounts, asset values for reporting
numberCollect numeric values.Options:Date Fields
Date Fields
Type: Best for: Birthdates, deadlines, start dates, expiration datesCompliance use: Contract dates, expiration dates for compliance tracking
dateCollect dates with a date picker.Options:Checkbox Fields
Checkbox Fields
Type:
checkboxSingle yes/no checkbox.Best for: Agreements, confirmations, boolean flagsCompliance use: Consent checkboxes, compliance confirmations (must be timestamped in audit trail)Multiple Checkboxes
Multiple Checkboxes
Type: Best for: Multi-select lists, service selections, featuresCompliance use: Risk assessment checkboxes, regulatory requirement selections
checkboxesMultiple options that can be selected simultaneously.Options:Choice Fields (Dropdown/Radio)
Choice Fields (Dropdown/Radio)
Type: Best for: Country selection, category, status, typeCompliance use: Entity type classification, risk rating selection
choicesSingle selection from multiple options.Options:File Upload Fields
File Upload Fields
Type: Best for: Documents, images, contracts, identificationCompliance use: Legal documents, proof documents, evidence files (all tracked with timestamps)
fileAllow file uploads and document attachments.Options:Signature Fields
Signature Fields
Type: Best for: Approvals, authorizations, contractsCompliance use: Contract signatures, approval signatures (maintains full audit trail with timestamps)
signatureCapture digital signatures.Options:HTTP Fields (External Data)
HTTP Fields (External Data)
Type: Best for: Credit checks, company data, verification servicesCompliance use: Real-time compliance checks, regulatory database lookups
httpFetch data from external APIs.Options:Creating Sections
Sections organize related fields together. Each section has:id.
Example structure for complex compliance case:
- Applicant Information section
- Full Name (text)
- Date of Birth (date)
- Government ID (file)
- Company Information section
- Company Name (text)
- Registration Number (text)
- Industry (choices)
- Beneficial Ownership section (compliance section)
- Ultimate Beneficial Owners (checkboxes)
- Ownership percentages (numbers)
- Risk Assessment section
- Risk Level (choices)
- Risk Factors (checkboxes)
- Compliance Notes (text)
Defining Contact Types
Contact types specify which types of contacts your cases need.main_contact- Primary contactbilling_contact- Billing/payment contactlegal_contact- Legal representativetechnical_contact- Technical liaisonbeneficial_owner- Beneficial owner (compliance)authorized_signatory- Person authorized to sign documents
Each case can have one contact per contact type. If you need multiple contacts of the same type, create separate contact types (e.g.,
contact_1, contact_2, beneficial_owner_1, beneficial_owner_2).Defining Workflow Steps
Workflow steps define actions and tasks within your case process.Step Types
| Type | Description | Use Case |
|---|---|---|
| form | Send a form to collect data | Request information from contacts, signatures, approvals |
| Send an email | Notify, request, or communicate | |
| sms | Send an SMS | Quick notifications or alerts |
| note | Internal note | Document decisions or information |
Step Configuration
Step Assignment
Steps can be assigned to: ContactsEmail Configuration
Set the default email sender for communications from cases created with this template:- Workflow step emails
- Automated notifications
- Case-related communications
Intelligence Features
Enable AI-powered assistance for cases created from this template:Email Drafting
Case Title Generation
Auto-Draft Mode
Enable auto-draft to automatically create cases from triggers:- Cases can be created automatically from form submissions
- Cases start in “draft” status
- Team can review and activate when ready
Best Practices for Complex Workflows
Design from your actual process, not an idealized one
Design from your actual process, not an idealized one
Document your real workflow including all loops, approvals, and exceptions. Your template should match what actually happens, not what should happen.
Use clear, compliance-aware field naming
Use clear, compliance-aware field naming
Field keys should be descriptive and consistent with regulatory terminology. Use
date_of_birth not dob, beneficial_owner_1 not owner. This makes data exports and compliance audits clearer.Group data into logical sections
Group data into logical sections
Use sections to organize fields by business process, compliance requirement, or customer journey stage. This makes cases easier to navigate and helps ensure nothing is missed.
Use visibility strategically
Use visibility strategically
- Use
always-visiblefor critical required fields - Use
hide-when-emptyfor optional fields to keep the interface clean - Use
always-hidefor technical IDs, compliance tracking fields, system integration data
Design status flow to match your workflow
Design status flow to match your workflow
Map out your actual workflow with all decision points and loops before creating statuses. Example for insurance claims:
submitted → initial_review → investigation → decision → approved/denied → appeal_available → closed.Build in compliance tracking from the start
Build in compliance tracking from the start
Create hidden fields to track: timestamps, approval IDs, regulatory check status, data validation results. These support compliance audits without cluttering the UI.
Create contact types for all stakeholders
Create contact types for all stakeholders
Identify everyone involved: primary contact, billing, legal, technical, beneficial owners, authorized signatories. Document why each contact type is needed.
Test templates thoroughly with realistic data
Test templates thoroughly with realistic data
Create test cases from your template using real-world scenarios: complex edge cases, approval workflows, long timelines. Verify the workflow supports your actual process.
Document regulatory requirements in the template
Document regulatory requirements in the template
Add to the template description which regulations apply (SOX, GDPR, GLBA, AML/KYC, etc.) and what this template’s role is in compliance. This guides team members and supports audit responses.
Plan for data retention and archival
Plan for data retention and archival
Consider which fields must be retained for compliance, how long, and how they should be archived. Document this in the template description so the team knows what data to maintain.
Template Versioning
Unlike Form Templates, Case Templates don’t have explicit versioning. When you modify a template:- Changes don’t affect existing cases (they keep their original structure inherited from the template)
- New cases created from the template use the latest structure
- Individual cases can always be customized independently, regardless of template changes
- If you need major changes, consider creating a new template with a version suffix (e.g., “Customer Onboarding v2”)
- The case keeps its current structure and data
- The case can be customized further with additional fields or modifications
- These customizations don’t affect the v1 template or other cases
- If you create a new case from “Customer Onboarding v2”, it will get the v2 structure