iachat/spec/models/concerns
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
..
access_tokenable_shared.rb chore: Update dependencies to the latest versions (#5033) 2022-07-15 09:51:59 +07:00
assignment_handler_shared.rb feat(perf): Cache labels on the conversation model (#8527) 2023-12-11 18:27:55 -08:00
auto_assignment_handler_shared.rb fix: assignee_changed callback not getting triggered during conversation creation (#9334) 2024-05-06 11:48:17 -07:00
avatarable_shared.rb chore: Ability to Disable Gravatars (#5027) 2022-07-21 19:27:12 +02:00
cache_keys_spec.rb feat: expiry for cache keys [CW-3038] (#8793) 2024-01-29 15:27:26 +05:30
featurable_spec.rb feat: Whatsapp embedded signup (#11612) 2025-07-14 21:37:06 -07:00
json_schema_validator_spec.rb feat: Add support for minutes in auto resolve feature (#11269) 2025-05-07 00:36:15 -07:00
liquidable_shared.rb feat: Add liquid template support for WhatsApp template parameters (#12227) 2025-08-21 16:44:51 +05:30
out_of_offisable_shared.rb chore: Limit objects returned by conversation API (#2721) 2021-07-31 21:19:42 +05:30
reauthorizable_shared.rb feat: Instagram reauthorization (#11221) 2025-04-03 14:30:48 +05:30
switch_locale_spec.rb fix: Extend the locale without variant check for article locales as well (#11021) 2025-03-06 18:24:46 -08:00