Order Variable Builder (No JSON Needed)

Non-technical users can create custom capture variables from simple form controls. Type variable name, select type, set required checkbox, and save. System auto-generates schema, required paths, and mapping.

Simple Dashboard Flow

  1. Open Dashboard -> Restaurants -> Open Settings.
  2. Find the card: Order Capture Variables.
  3. In Create New Variable, enter a name (example: customer_name).
  4. Select variable type (Text/Number/Phone/Date/Time/Yes-No/List/Object).
  5. Check Required if needed, then click Add Variable.
  6. Variable appears as a tag. Use edit or x to update/remove.
  7. Click Save Variable Schema.

Per restaurant setup: Every restaurant has its own variables. A restaurant will only validate/show data for variables assigned to it.

What Is Auto-Generated

Advanced JSON preview is shown in the dashboard as read-only reference.

Behavior

Orders and Reservations View

Orders and reservations pages show cards by restaurant. Each card displays only the data fields configured in that restaurant schema.

API Endpoints (Optional for Developers)

Default Template

No hardcoded variable template is preloaded now. New restaurants start with an empty schema and you define fields yourself from dashboard.

Global fallback config file path: backend/prompts/order_capture_config.json

Prompt Usage

Assistant should return final payload in this format:

ORDER_JSON: { ...your custom payload... }

Backend validates and stores data according to selected restaurant schema.