resultSchema tells Offload what shape of JSON you want back when the case is successful.
Without a schema, Offload can still complete a case, but your downstream system will have less structure to rely on.
Why it matters
UseresultSchema when you want to:
- trigger product workflows from typed fields
- reduce manual parsing
- keep webhook payloads stable across cases
Example
Good schema patterns
- Prefer flat, explicit fields over vague blobs.
- Use booleans for yes or no outcomes.
- Use strings for dates, URLs, and IDs unless your system requires another type.
- Keep the schema focused on what your app needs after the case completes.
Example patterns
Document collection
Scheduling
Invoice follow-up
Practical guidance
- Do not encode instructions in the schema. Put those in
goal,knowledge, andconstraints. - Do not require fields that may be impossible to confirm from the conversation.
- If your workflow can end in multiple valid shapes, use nullable or optional properties instead of over-constraining the result.