Design the schema around decisions
Start from what later actions need. For an intake workflow, that might be:Configure Chat
- Add OpenAI Chat.
- Connect the source text to Prompt.
- Add images or PDFs under Files when the model must inspect them.
- Turn on Structured Output.
- Paste the JSON schema.
- Expose the detected properties you need as outputs.
Enabling Structured Output replaces the normal text Response with
Structured Response. Review existing connections when changing this
setting.
Route and validate
Connect enum outputs to conditions or case selection. Connect extracted text only to actions that accept missing or nullable values when the schema permits them. For high-impact work, add deterministic validation after the model:- check that an email address is valid,
- confirm a number is in the allowed range,
- require human review before sending or deleting,
- reject categories outside the schema,
- preserve the original source for audit and correction.