← All updates

Try your real data from the AI chat

When the AI chat renders a preview against pasted JSON, the workspace pane now shows a copy-pasteable two-step API recipe and one-click Save / Try buttons.

ai-chatapi

The /ai/chat workspace now teaches you the production rendering flow inline. Once the assistant has produced a preview and you've pasted real JSON in the Render data panel, the workspace pane shows a third section under the PDF preview with the exact two API calls your backend would make:

  1. POST /api/v1/templates { dsl, name } to save the template (free).
  2. POST /api/v1/render { templateId, data } to render with your data (1 credit per 10 pages).

The recipe interpolates the model's actual DSL and your actual JSON, with tabs for curl, fetch, and Node so you can paste the snippet straight into your codebase.

A Save template button creates the template under your account; clicking it again after the chat updates the DSL overwrites the same row. Once saved, Try it now — 1 credit runs the billed render path against your data and swaps the watermarked preview for the production PDF in place. The chat is still for authoring; the API is still where production rendering happens.