text, email, phone, number | A one-line answer. Email, phone, and number keep WhatsApp’s input check. |
textarea | A multi-line answer. |
dropdown, radio, checkbox, chips | A choice. radio with no options is Yes/No. Send options as { id, title }. |
date, calendar | A date. Optional minDate and maxDate are YYYY-MM-DD. |
optin | A consent checkbox. |
photo, document | An upload. One upload per screen. |
heading, subheading, body, caption | Read-only text. These are not inputs. The screen title is the header, so do not repeat it as a heading. A caption is one line: put the words in label only. |
image, image_carousel | A picture. src is base64. |
rich_text | Formatted text. That screen can contain only rich text. |
embedded_link | A link. url must be https. |
navigation_list | Links to other screens. items[].navigateTo is a 1-based screen number. That screen cannot be last. |
switch, if | Show or hide components from an earlier answer. Put the switch or if in fields directly under the input it describes. It renders above Next or Submit. if uses condition, then, and optional else. Put inputs in then.fields, for example a date picker when a Yes/No answer is Yes. A caption in a branch is { fields: [{ type: "caption", label: "..." }] } and is not also sent as body. switch cases are { key, fields } or { key, heading, body }. The Submit button sends every answer. Choice answers are stored as their labels. |