docs: update email templating docs with complete variable reference

- adds new `Author` template var and injects it into all templates
- make author fields empty for all automated system generated emails
This commit is contained in:
Abhinav Raut
2025-06-05 01:55:38 +05:30
parent 5d6897a960
commit ea0b7d6d52
6 changed files with 89 additions and 55 deletions

View File

@@ -674,18 +674,19 @@ func (m *Manager) SendNotification(scheduledNotification models.ScheduledSLANoti
"Priority": "",
"UUID": appliedSLA.ConversationUUID,
},
"Agent": map[string]any{
"FirstName": agent.FirstName,
"LastName": agent.LastName,
"FullName": agent.FullName(),
"Email": agent.Email,
},
"Recipient": map[string]any{
"FirstName": agent.FirstName,
"LastName": agent.LastName,
"FullName": agent.FullName(),
"Email": agent.Email,
},
// Automated emails do not have an author, so we set empty values.
"Author": map[string]any{
"FirstName": "",
"LastName": "",
"FullName": "",
"Email": "",
},
})
if err != nil {