OpenUI Output Parser

Parses OpenUI Lang output from AI models into structured data

OpenUI Output Parser

AI-generated

Summary

Parse text output from AI models formatted in OpenUI Lang or JSON into structured data objects representing products, bookings, events, tasks, orders, or messages.

Inputs

  • Input Format — Select parsing format: Auto Detect chooses between OpenUI Lang or JSON; OpenUI Lang forces OpenUI parsing; JSON forces JSON parsing.
  • Fallback to Text — If parsing fails, returns the raw text as a message instead of an error.

Output shape

an object containing parsed structured data fields such as products, booking, events, task, orders, or message with metadata fields indicating parse success, format, and error if any

If parsing succeeds, the output includes data fields with extracted information plus _openuiFormat (either 'openui' or 'json'), _openuiSuccess true, and no error. If parsing fails and fallbackToText is true, returns message with raw text. If parsing fails and fallbackToText is false, returns success false with an error message. JSON parsing extracts fields only if recognized keys are present; otherwise returns message with raw text.

Links

Discussion