Muhsin Keloth
35d0a7f1a7
feat: Add liquid template support for WhatsApp template parameters (#12227)
Extends liquid template processing to WhatsApp `template_params`,
allowing dynamic variable substitution in template parameter values.
Users can now use liquid variables in WhatsApp template parameters:
```
{
"template_params": {
"name": "greet",
"category": "MARKETING",
"language": "en",
"processed_params": {
"body": {
"customer_name": "{{contact.name}}",
"customer_email": "{{contact.email | default: 'no-email@example.com'}}"
}
}
}
}
```
When the message is saved, {{contact.name}} gets replaced with the
actual contact name.
Supported Variables
- {{contact.name}}, {{contact.email}}, {{contact.phone_number}}
- {{agent.name}}, {{agent.first_name}}
- {{account.name}}, {{inbox.name}}
- {{conversation.display_id}}
- Custom attributes: {{contact.custom_attribute.key_name}}
- Liquid filters: {{ contact.email | default: "fallback@example.com" }}
2025-08-21 16:44:51 +05:30
..
2025-07-24 12:56:39 +04:00
2025-06-17 15:45:40 -07:00
2025-06-12 17:58:56 +05:30
2025-03-13 17:46:48 -07:00
2025-08-18 19:15:21 -07:00
2025-04-28 14:13:56 -07:00
2025-01-14 16:15:47 -08:00
2023-12-08 14:13:35 -08:00
2025-04-28 14:13:56 -07:00
2025-08-07 15:59:40 +05:30
2025-08-13 16:39:43 +05:30
2025-08-20 21:39:50 +02:00
2025-08-01 16:32:29 -07:00
2025-08-13 16:39:43 +05:30
2025-08-05 13:17:06 +05:30
2025-07-31 11:44:17 -07:00
2025-08-21 16:44:51 +05:30
2025-08-18 19:15:21 -07:00
2025-08-05 13:17:06 +05:30
2025-08-13 20:53:31 +05:30
2025-08-18 19:15:21 -07:00
2025-04-29 15:33:11 -07:00