Examples
User Content Approval
Complete task payload from the RobotRock dashboard Examples gallery. Open Examples in your workspace to interact with the same task in the inbox UI.
Live inbox preview is not configured. Set NEXT_PUBLIC_APP_PREVIEW_URL to your dashboard URL (e.g. the app origin that serves /preview/examples/…).
Task
{
"type": "user-content-approval",
"name": "Product Review - Flagged for Moderation",
"description": "This product review was automatically flagged by our content moderation algorithm as potentially inappropriate."
}Context
{
"data": {
"flaggedReviewContent": "\"This product is absolutely terrible! The sound quality is garbage and it broke after just 2 weeks. Complete waste of money. I've never been so disappointed in a purchase. The customer service was also unhelpful when I tried to return it. Save your money and buy something else!\"\n",
"metadata": {
"customer": "Sarah Johnson (sarah.j@email.com)",
"product": "Wireless Bluetooth Headphones Pro",
"productId": "#PRD-2024-8472",
"rating": "2/5 stars",
"flagReason": "Potentially inappropriate language",
"algorithmFlagged": true,
"customerVerifiedPurchase": true
}
},
"ui": {
"flaggedReviewContent": {
"ui:title": "Flagged Review Content",
"ui:widget": "markdown"
},
"metadata": {
"ui:title": "Metadata",
"items": {
"productId": {
"ui:title": "Product ID"
},
"flagReason": {
"ui:title": "Flag Reason"
},
"algorithmFlagged": {
"ui:title": "Algorithm Flagged"
},
"customerVerifiedPurchase": {
"ui:title": "Customer Verified Purchase"
}
}
}
}
}Actions
[
{
"title": "Approve",
"description": "Approve this review for publication on the product page",
"id": "approve"
},
{
"title": "Reject",
"description": "Reject this review and remove it from publication",
"id": "reject"
}
]Widgets used
markdown
See Context for widget reference.