Documentation Index
Fetch the complete documentation index at: https://docs.offloadapi.com/llms.txt
Use this file to discover all available pages before exploring further.
resultSchema tells Offload what structure you want in the final result field when a case completes successfully.
What The API Validates
The create-case handler only validates thatresultSchema is an object.
It does not currently validate:
- whether the object is a complete JSON Schema document
- whether the schema is internally consistent
- whether every required field is realistically extractable from the conversation
Good Example
Good Schema Design Rules
- Keep the schema focused on data your application will actually use.
- Prefer explicit booleans and strings over vague free-form blobs.
- Use optional properties for data that may not always be available.
- Put workflow instructions in
goalorconstraints, not in the schema.
What Not To Put In The Schema
- attachment download URLs
- raw file bytes
- instructions like “follow up twice”
- fields that can only be known from internal business systems
attachments array.
Useful Patterns
Document Collection
Scheduling Confirmation
Invoice Follow-Up
Practical Advice
- Start with a small schema.
- Add fields only when you can act on them downstream.
- Expect
resultto be absent until the case reachesCOMPLETED. - Be prepared for schema-shaped output quality to depend on the conversation quality and the clarity of your requested fields.