You're absolutely right to be cautious - Gorgias uses a limited subset of Liquid templating, and not all standard Liquid features are supported.
For Gorgias specifically, the basic conditional checking with in operator should work:
{% if ticket.subject and ticket.meta and ticket.meta['rmaId'] %}
{% if "YOUR_TEXT" in ticket.subject %}
https://api.returngo.ai/rma/{{ticket.meta['rmaId']}}
{% endif %}
{% endif %}
However, some features that might NOT work in Gorgias include:
- The
matches operator for regex
- The
.lower() method for case-insensitive matching
- Complex string manipulation functions
For case-insensitive matching in Gorgias, you might need to check multiple variations:
{% if ticket.subject %}
{% if "return" in ticket.subject or "Return" in ticket.subject or "RETURN" in ticket.subject %}
{% if ticket.meta and ticket.meta['rmaId'] %}
https://api.returngo.ai/rma/{{ticket.meta['rmaId']}}
{% endif %}
{% endif %}
{% endif %}
To be completely sure about what's supported in your specific Gorgias setup, I'd recommend:
- Testing with a simple condition first
- Checking Gorgias's documentation for their specific Liquid implementation
- Contacting Gorgias support if you need advanced filtering capabilities
The basic in operator with ticket.subject should work, but more advanced string operations might be limited.