Skip to main content

Configuring Email Templates

Once you’ve created an email template, you can customize exactly how analysis results appear in emails. This guide covers all aspects of template configuration.

Accessing Template Configuration

There are several ways to access a template’s configuration page:
  1. From the Templates tab at Settings → Subscriptions → Email:
    • Click on the template name or the edit icon
  2. From an Email Subscription detail page:
    • Click Edit Fields or Change Template for any configuration
  3. Direct URL: https://app.fabius.io/settings/subscriptions/email/template/[template-id]

Template Configuration Interface

The template configuration page (/settings/subscriptions/email/template/[id]) provides a comprehensive interface for customizing how fields appear in emails. At the top of the page, you’ll see:
  • Template Name: Click the edit icon to rename the template
  • Associated Configuration: Shows which Analysis Configuration this template uses
  • Save Changes Button: Appears when you have unsaved modifications
The save button “sticks” to the bottom of your screen when you scroll, making it easy to save changes even with many fields.

Field List

The main area displays all available fields from the associated Analysis Configuration. Each field shows:
  • Field Name: The original field name from the configuration
  • Display Name: What recipients will see in the email (click to edit)
  • Include Toggle: Check/uncheck to include or exclude the field
  • Drag Handle: Six dots icon for reordering fields

Customizing Fields

Including/Excluding Fields

By default, all fields from the Analysis Configuration are included. To optimize emails:
  1. Uncheck fields that aren’t relevant for email recipients
  2. Excluded fields appear grayed out but remain visible for easy re-inclusion
  3. Only included fields will appear in sent emails
For an executive summary template, you might exclude detailed transcription fields and only include: - Overall Score - Key Risks - Next Steps - Recommended Actions

Reordering Fields

Fields can be reordered to create a logical flow in emails:
  1. Click and hold the drag handle (⋮⋮) next to any field
  2. Drag the field to its new position
  3. Release to drop the field
  4. Other fields will automatically adjust
Field order in the template directly translates to the order in emails. Place most important information first.

Customizing Display Names

Each field can have a custom display name for better email readability:
  1. Click the edit icon (pencil) next to any field
  2. Type the new name in the modal (e.g., change “call_score” to “Call Quality Score”)
  3. Click Save to apply the change
  4. The original field name remains unchanged in the system

Filter Templates

Filter templates allow you to conditionally show score fields in emails based on their values. This powerful feature helps reduce noise and focuses recipients on the most important information, making emails more actionable and relevant.

When to Use Filter Templates

Filter templates are ideal when you want to:
  • Focus on exceptions: Only show scores that are unusually high or low
  • Create coaching emails: Highlight areas needing improvement (low scores)
  • Celebrate wins: Show only high-performing metrics
  • Reduce email length: Hide fields with typical/expected values
  • Improve signal-to-noise ratio: Show only what requires attention
A sales coaching template might use the filter shown below to only show score fields below 3/10, focusing the manager’s attention on critical areas needing immediate improvement:
{{if and .HasScore (lt .Score 3)}}true{{end}}

How to Configure Filter Templates

Filter templates are configured on a per-field basis for score fields:
  1. In the template configuration page, locate a score field you want to filter
  2. Click the filter icon (🔽) next to the field - this only appears for score fields
  3. In the filter modal, you’ll see:
    • Common filter examples with explanations
    • A text area to enter your custom filter template
    • Options to save, clear, or cancel
  4. Enter a Go template expression that evaluates to “true” to show the field:
    {{if and .HasScore (or (gt .Score 8) (lt .Score 3))}}true{{end}}
    
    This example shows the field only for very high (>8) or very low (<3) scores.
Filter templates are only available for score fields - fields that have a numerical score value. Other field types (text fields, value fields, etc.) cannot be filtered and will always appear if included in the template.

Common Filter Patterns

Use CaseDescription
Very Low ScoresShows field only when score is below 3
Low ScoresShows field only when score is below 7
High ScoresShows field only when score is above 7
Very High ScoresShows field only when score is above 8
Extremes OnlyShows only very high or very low scores
Has Any ScoreShows field only when it has a score value
Filter Template Examples
// Very Low Scores
{{if and .HasScore (lt .Score 3)}}true{{end}}

// Low Scores  
{{if and .HasScore (lt .Score 7)}}true{{end}}

// High Scores
{{if and .HasScore (gt .Score 7)}}true{{end}}

// Very High Scores
{{if and .HasScore (gt .Score 8)}}true{{end}}

// Extremes Only
{{if and .HasScore (or (gt .Score 8) (lt .Score 3))}}true{{end}}

// Has Any Score
{{if .HasScore}}true{{end}}

Understanding Filter Behavior

When filter templates are applied:
  • Per-field filtering: Each score field can have its own filter template
  • Runtime evaluation: Filters are applied when the email is generated, based on actual scores
  • Smart email handling: If ALL score fields are filtered out, the email won’t be sent (assuming no non-score fields are included)
  • Visual indicators: Fields with active filters show a blue filter icon in the configuration interface
If you filter out all score fields and have no other content fields included, the email won’t be sent. Always include at least some context fields or ensure your filters aren’t too restrictive.

Best Practices for Filter Templates

  1. Start simple: Begin with basic threshold filters before creating complex logic
  2. Test thoroughly: Use test data to ensure your filters work as expected
  3. Document your logic: Use clear filter expressions that others can understand
  4. Consider the recipient: Think about what information is most valuable for the email recipient
  5. Balance filtering: Don’t filter so aggressively that important context is lost

Live Preview

While Fabius doesn’t currently offer real-time preview, you can:
  1. Save your template configuration
  2. Trigger a test analysis on a sample interaction
  3. Check the resulting email to see your formatting

Saving Changes

Template modifications are not auto-saved. Always remember to:
  1. Click Save Changes after making modifications
  2. Wait for the success notification
  3. Your changes are now live for all future emails using this template
Unsaved changes will be lost if you navigate away. The page will warn you about unsaved changes.

Common Configuration Patterns

Executive Summary Template

  • Include only high-level metrics and action items
  • Order: Score → Key Findings → Risks → Next Steps
  • Custom names: Use business-friendly terminology

Detailed Analysis Template

  • Include all fields for comprehensive review
  • Group related fields together
  • Order: Context fields → Analysis results → Recommendations

Action-Focused Template

  • Include only fields that require action
  • Filter out fields with empty values
  • Order by priority/urgency

Coaching Template

  • Use “Only show low scores” filter template
  • Include all score fields for performance metrics
  • Add fields for improvement suggestions and next steps
  • Order: Low scores → Suggestions → Action items

Exception Reporting Template

  • Apply appropriate filter template (low or high scores)
  • Include context fields to understand the situation
  • Focus on fields that help explain the exception
  • Order: Exception scores → Context → Remediation steps

Troubleshooting

Fields Not Appearing

  • Ensure the field is checked (included)
  • Verify the field exists in the Analysis Configuration
  • Check that the field has data in the analyzed interaction

Display Names Not Updating

  • Make sure to click Save in the modal after editing
  • Save all changes before leaving the page
  • Refresh if changes don’t appear immediately

Cannot Reorder Fields

  • Ensure JavaScript is enabled
  • Try refreshing the page
  • Check browser console for errors

Next Steps