How Message Templates and Templated Wordings Work
Source: autosoft-workshop/app/controllers/company_message_settings_controller.rb, company_message_setting.rb, templated_wordings_controller.rb
- Over 25 distinct configurable message templates exist covering all communication types (service reminders, booking confirmations, inspection emails, etc.)
- All SMS message templates are limited to 160 characters
- The default service reminder template includes a vehicle rego placeholder; the default booking reminder includes a date placeholder
- Default values are only set for new records with blank fields — existing records with values are never overwritten by defaults
- Templated wordings are scoped to the company and can be filtered by type and description using a prefix match (ILIKE, case-insensitive)
Support scenarios
- "My SMS template got cut off" → all SMS templates are limited to 160 characters; the template needs to be shortened
- "The default template doesn't have the placeholders I expected" → default templates vary by type; service reminders include rego, booking reminders include date — check the specific template type
- "I changed the default but my old messages still have the old wording" → defaults only apply to new records with blank values; existing records are never retroactively updated
- "I can't find my templated wording" → search uses case-insensitive prefix matching on the description field; try searching for the beginning of the wording name