Recommended prompt sizes
Creative asset specifications for platform prompts. Includes recommended image sizes, aspect ratios, and supported file types for Inline and Overlay prompt styles across web, mobile, and TV SDKs.
Definition
Key benefits
Key details
Insert Liquid variables using the {{ }} delimiters. The system automatically suggests available variables from your Recurly account data as you type. All Liquid functionality is supported, including control flow, iterators (loops), and assignments.
Variable types
There are two primary types of Liquid variables you can use:
- User trait variables: These variables come from user data you have imported. Use the
user.prefix, such as{USER.FIRST_NAME}. - Data source variables: These variables are available if you have connected your Recurly account as a data source.
For more information on connecting data sources, see the Data Sources documentation.
Example: personalize a renewal message
You can create a prompt that displays a customer's name and current plan with the following code:
Hello {{ user.first_name }}, your {{ subscription.plan.name }} plan is set to renew on {{ subscription.renews_at }}.
This renders a personalized message for each user, such as:
Hello Jane, your Pro plan is set to renew on 09/30/2025.
user.first_name, isn't available for a specific user, the field appears blank.Set default values
When you use Liquid variables, the data field you're referencing (for example, a customer's plan type) might not be available for a specific user. By default, the field appears blank.
To keep your messages clean and professional, use the default filter to specify a fallback value. Apply the filter with a vertical pipe (|) followed by default: 'Your Fallback Value'.
Example:
Hello {{ user.first_name | default: 'there' }}, your {{ subscription.plan.name }} plan is set to renew on {{ subscription.renews_at }}.
Updated 1 day ago