Why use JSON output?
The Client-Side Script and Server-Side SDK both deliver rendered HTML (or images) that you inject into your page. This is ideal when Reelevant controls both the logic and the visual output. But sometimes you want Reelevant to handle the personalisation decisions while your own frontend handles the rendering. That’s what the JSON API approach gives you.Full rendering control
You receive structured data — product names, prices, scores, URLs — and render them with your own components, design system, or native UI.
Framework-agnostic
Works with React, Vue, Svelte, Flutter, iOS, Android, or any client that can make an HTTP request and parse JSON.
Typed & predictable
JSON Templates define a schema upfront. Your frontend knows exactly what fields to expect — no guessing, no parsing HTML.
Same personalisation engine
All the power of Reelevant workflows — datasources, conditions, splits, real-time testing — just with JSON output instead of visual content.
When to choose this approach
| Scenario | Recommended |
|---|---|
| You have a design system and want personalised data, not HTML | JSON API |
| Mobile app that renders natively | JSON API |
| Headless CMS or composable architecture | JSON API |
| You want Reelevant to produce ready-to-display visuals | Client-Side Script or Server-Side SDK |
| Quick integration, no development effort | Client-Side Script + Browser Extension |
How it works
Create a JSON Template
In the Reelevant platform, create a JSON Template that defines the schema (fields and types) and declares named variables. Each variable maps to a datasource value that will be resolved at runtime.
Build a workflow with a JSON Template output node
Add a JSON Template output node to your workflow. Select the template you created, and bind each variable to a datasource field — either as a scalar value or as an array (for product lists, recommendations, etc.).
Publish the workflow
Publishing validates that all JSON Template nodes reference the same template and that the template exists. Once published, the workflow is live.
Example
Suppose you want to personalise a product recommendation card. Your JSON Template definition might look like:Next steps
Technical Integration
API endpoints, request format, response structure, and code examples.
JSON Template (Output Node)
Learn about the JSON output node configuration in the workflow editor.