{
  "version": 1,
  "structures": [
    {
      "name": "review_insights_response",
      "description": "Summarized insight from a batch of product reviews",
      "example": {
        "overall_sentiment": "positive",
        "common_themes": [
          "packaging quality",
          "battery life",
          "shipping speed"
        ],
        "actionable_items": [
          "Add a battery-life note to the product page"
        ],
        "summary": "Customers love the battery life but mention slower shipping recently."
      },
      "schema": {
        "type": "object",
        "properties": {
          "overall_sentiment": {
            "type": "string",
            "enum": [
              "positive",
              "neutral",
              "negative"
            ]
          },
          "common_themes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "actionable_items": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "summary": {
            "type": "string"
          }
        },
        "required": [
          "overall_sentiment",
          "common_themes",
          "actionable_items",
          "summary"
        ],
        "additionalProperties": false
      }
    }
  ],
  "workflows": [
    {
      "name": "product_review_insights_workflow",
      "description": "Summarizes reviews into themes and action items",
      "provider": "openai",
      "model": "gpt-5.6-terra",
      "backups": [
        {
          "provider": "anthropic",
          "model": "claude-haiku-4-5-20251001"
        }
      ],
      "request_type": "chat",
      "system_instructions": "Analyze the product reviews: give an overall sentiment, list the common themes customers mention, and propose concrete action items for the team. Keep the summary to a few sentences.",
      "structure": "review_insights_response",
      "customer_fields": [
        "product_name",
        "review_text",
        "rating"
      ],
      "test_mode": false,
      "cache_window_seconds": 900,
      "backend_pipeline": {
        "enabled": true,
        "events": [
          {
            "name": "review_received"
          },
          {
            "name": "insights_delivered"
          }
        ]
      }
    }
  ]
}
