Meta WhatsApp Flow JSON types + a local validator.
Flow JSON is the highest-stakes artifact in a flow: a malformed document is only
rejected at publish time, after a server + Meta round-trip. These types give you
editor-level safety on the screens / components / actions / data-model, and
validateFlowJson catches the common structural mistakes locally before you
ever call the API.
Most integrators should author with the typed draft builders in ./flows.ts
(defineFlow, screen, textField, …) and let Wabery compile to this format.
These types are the escape hatch for hand-written flow_json.
Targets Meta Flow JSON v7.0 / data_api_version 3.0.
Meta WhatsApp Flow JSON types + a local validator.
Flow JSON is the highest-stakes artifact in a flow: a malformed document is only rejected at publish time, after a server + Meta round-trip. These types give you editor-level safety on the screens / components / actions / data-model, and validateFlowJson catches the common structural mistakes locally before you ever call the API.
Most integrators should author with the typed
draftbuilders in./flows.ts(defineFlow,screen,textField, …) and let Wabery compile to this format. These types are the escape hatch for hand-writtenflow_json.Targets Meta Flow JSON v7.0 / data_api_version 3.0.