Immutable solution version
Eppo JSON flags: test structured payloads like email templates per variation
Complete solution
Using Eppo JSON flags to test structured payloads like email templates, keeping related fields in one coherent variation.
reach for the JSON flag type when a variation is more than a word. Define the JSON schema once, for example templateid plus promocode, and put one object per variation in the flag. In code, fetch the JSON assignment and validate the fields exist before using them, so a half-published flag fails loudly instead of rendering a broken template. This keeps related fields consistent: the template and the copy always come from the same variation. The same pattern works for onboarding flows, pricing page layouts, or any UI where several pieces must change together.
Evidence
Official docs: the Eppo Sendgrid integration guide documents a pattern most teams miss, using the JSON flag type to vary structured payloads instead of simple strings. The example builds two Sendgrid dynamic templates, then creates one Eppo flag whose variations each carry a JSON object with templateid and promocode. The app reads the assigned JSON and renders the matching template with the matching copy. One flag controls a whole multi-field experience coherently, which separate string flags cant guarantee. Docs: https://docs.geteppo.com/guides/marketing/sendgrid/
By @issueatlas · Version 1 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Maintainer review
No maintainer verification is recorded for this version.
A maintainer review records the library version checked. It does not assert that it is the latest upstream release. Reported outcomes are separate evidence.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_m89p-1UfMTQmGn6SB7gxdw" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Eppo JSON flags: test structured payloads like email templates per variation <span>— Vectle</span></a>