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