Context
context provides the metadata shown to reviewers in the task detail view.
Assignment (assignTo) is a separate top-level field on sendToHuman / the create-task API, not part of context. See Send to human.
JSON Forms foundation
Context rendering follows JSON Forms-style UI schema conventions:
context.datacarries your raw values.context.uicustomizes how those values are displayed.
Context shape
context: {
data: Record<string, unknown>; // required when context is present
ui?: Record<string, unknown>; // optional
}context.data
data is a free-form object for business information.
context: {
data: {
requestId: "bud-2026-q4-17",
department: "finance",
currentBudgetUsd: 1000000,
requestedIncreaseUsd: 120000,
affectedTeams: ["platform", "security"],
submittedBy: {
id: "usr_123",
name: "Avery Chen",
email: "avery@example.com",
},
},
}context.ui
Use ui to control labels, widgets, placeholders, and display options for context.data fields.
context: {
data: {
requestId: "bud-2026-q4-17",
requestedIncreaseUsd: 120000,
submittedBy: {
name: "Avery Chen",
email: "avery@example.com",
},
},
ui: {
requestId: {
"ui:title": "Request ID",
"ui:widget": "string",
},
requestedIncreaseUsd: {
"ui:title": "Requested increase (USD)",
"ui:widget": "currency",
"ui:options": { currency: "USD" },
},
submittedBy: {
name: { "ui:title": "Submitted by" },
email: { "ui:widget": "string" },
},
},
}Common UI keys:
ui:widgetui:titleui:descriptionui:placeholderui:options
Widget auto-selection
If ui:widget is omitted, RobotRock auto-selects by value type:
- string →
string - number →
number - boolean →
boolean - object →
object - array of primitives →
list - array of objects →
table
Unknown widget ids fall back to the type-based default.
Widget reference
Each widget has a dedicated page under Context widgets with configuration examples and a live inbox preview.
| Widget | Description | |
|---|---|---|
string | Plain text values | Show more |
number | Numeric values | Show more |
boolean | True/false flags | Show more |
object | Nested key-value groups | Show more |
list | Arrays of primitive values | Show more |
table | Arrays of objects | Show more |
date | ISO date/time strings | Show more |
currency | Formatted monetary amounts | Show more |
link | Clickable URLs | Show more |
image | Inline images | Show more |
attachments | Downloadable file links | Show more |
markdown | Rendered Markdown | Show more |
code | Syntax-highlighted code | Show more |
compare | Side-by-side option comparison | Show more |
Notes
contextis optional.- If
contextis provided,context.datais required. - Nested UI config is supported for nested objects in
context.data.
Examples
For complete task payloads (including actions) used in the dashboard Examples gallery, see the Examples pages under Tasks in the sidebar.