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-04-15 23:43:12 -07:00
2025-08-11 23:31:25 +05:30
2025-03-13 17:46:48 -07:00
2025-05-30 16:26:40 +05:30
2023-05-19 14:37:10 +05:30
2025-08-18 19:15:21 -07:00
2020-03-29 19:18:30 +05:30
2023-12-08 14:13:35 -08:00
2025-08-18 19:15:21 -07:00
2025-08-18 19:15:21 -07:00
2025-08-07 15:59:40 +05:30
2025-08-01 14:43:46 +05:30
2025-08-13 16:39:43 +05:30
2019-08-25 19:59:28 +05:30
2025-08-12 20:12:18 +05:30
2025-07-30 08:58:27 +04:00
2025-08-13 16:39:43 +05:30
2025-08-05 13:17:06 +05:30
2025-07-30 10:52:47 -07:00
2025-08-21 16:44:51 +05:30
2025-06-05 15:53:17 -05:00
2025-08-05 13:17:06 +05:30
2023-07-28 14:50:30 -07:00
2025-08-13 20:53:31 +05:30
2025-08-11 23:31:25 +05:30
2024-01-26 14:22:18 +04:00
2025-08-11 23:31:25 +05:30
2025-01-14 16:15:47 -08:00
2019-12-02 08:57:11 +05:30