Spintax and merge tag preview
expand_spintaxExpand a spintax template such as "{Hi|Hey} there" and render its Liquid merge tags, returning the total number of variations, every variable the template references, any variable with no value and no default, and a set of rendered samples. Use it to check a sequence before it sends.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vars | No | Values for the merge tags, e.g. {"first_name": "Sarah"}. | |
| samples | No | How many variations to render, 1 to 25. Defaults to 3. | |
| template | Yes | The template, with {spin|groups} and {{merge_tags}}. |