RobotRock
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.

Inbox preview

Rendered by the dashboard (static preview route). Matches docs light/dark mode. Handle actions are disabled; use the toolbar to submit this example to your inbox or view its configuration.

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.