Skip to main content
Use this skill when you want your AI agent to create, modify, or edit a template variant - “build an SMS variant”, “add a French locale”, “create a tenant-specific welcome email” - without making up brand variable keys or missing the per-channel content shape. The skill loads the variant envelope, per-channel content schemas, and Handlebars/JSONNET syntax references into your agent’s context whenever it detects a template task. Every generated variant validates against https://schema.suprsend.com/template/v2/variant_schema.json and is ready to push with the suprsend-cli skill.

Install


Try it

Paste this into your agent:
Your agent loads the skill and produces a variant file with the minimum shape:
Push it live:
Templates live under ./suprsend/templates/ locally and are pushed as a unit - variants are not managed separately. See Template Commands.

How variants work

Every SuprSend template is modeled as a collection of variants. A variant pairs a channel, locale, optional tenant, and optional condition with channel-specific content. Even a simple template with no multi-tenant or multi-language requirements is just one variant - usually tenant_id: null, locale: "en", conditions: null. Adding more locales, more tenants, or conditional content means adding more variants under the same template. The content object inside a variant validates against a channel-specific schema selected by the channel field.

Channels

The variant’s channel field selects which content schema applies.

Brand variables

Templates can reference tenant/brand properties. There are three shapes - the skill teaches your agent which to use for each case.
These are the only keys valid directly under $brand.. Any other key under $brand. will not resolve and will break preview rendering - put it under $brand.properties. instead.

Common anti-patterns

These are the mistakes the skill is built to prevent.
These anti-patterns silently break preview rendering rather than throwing an obvious error. The skill catches them at generation time so you don’t ship a template that looks fine in JSON but renders blank values at send time.

What you can build

A few real things people generate with this skill:
  • Welcome email in English - single variant, default tenant, default locale.
  • French locale variant - add a locale: "fr" variant to an existing template.
  • Tenant-specific welcome email - one variant per tenant, sharing the same template slug.
  • Multi-channel template - email + SMS + push variants for the same notification.
  • Slack message with JSONNET body_block - dynamic block construction.

Templating syntax

The skill carries both supported templating syntaxes:

Multi-variant patterns


  • suprsend-workflow-schema - workflow delivery nodes (send_email, send_multi_channel, etc.) reference variants by template slug. Use it for the workflow shape that wraps these variants.
  • suprsend-cli - suprsend template push / pull / commit / get / list move variant JSON between your editor and a SuprSend workspace.

Learn more

Template Schema Guide

The full variant envelope, selection rules, and complete examples on GitHub.

Templates in SuprSend

How templates work end-to-end in SuprSend.

suprsend-workflow-schema skill

Generate the workflow JSON that delivers these variants.

Agent Skills Overview

All available skills.