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
..
2019-08-14 15:18:44 +05:30
2021-11-18 10:32:29 +05:30
2024-01-29 15:27:26 +05:30
2025-05-29 16:52:33 -06:00
2025-03-19 18:25:33 -07:00
2024-05-06 11:48:17 -07:00
2021-10-07 13:21:46 +05:30
2023-05-06 10:44:52 +05:30
2024-01-29 15:27:26 +05:30
2025-04-12 08:52:12 +05:30
2021-08-03 20:11:52 +05:30
2024-02-21 14:18:42 -08:00
2023-05-19 14:37:10 +05:30
2025-05-07 00:36:15 -07:00
2024-03-13 20:05:34 +05:30
2023-06-22 18:36:58 +05:30
2025-08-21 16:44:51 +05:30
2025-05-15 17:47:37 -07:00
2023-06-05 20:27:28 +05:30
2022-02-22 01:28:49 -08:00
2025-04-02 15:48:42 -07:00
2023-05-27 13:24:31 +05:30
2024-04-04 15:46:46 +05:30
2025-04-03 14:30:48 +05:30
2022-02-28 18:16:12 +05:30
2024-03-13 20:05:34 +05:30
2023-12-12 17:15:48 -08:00
2025-05-20 17:34:30 -07:00
2024-03-13 20:05:34 +05:30
2023-02-15 16:33:31 -08:00