{
  "version": 1,
  "structures": [
    {
      "name": "chatbot_response",
      "description": "A structured chatbot reply with conversation insights and follow-up actions",
      "example": {
        "reply": "Your name is Vishal, you own Sunrise Bakes, and your business is in Bangalore.",
        "summary": "Recalled the user's name, business, and city from this conversation.",
        "sentiment": "neutral",
        "confidence": "high",
        "topics": [
          "personal profile",
          "business details"
        ],
        "action_items": []
      },
      "schema": {
        "type": "object",
        "properties": {
          "reply": {
            "type": "string"
          },
          "summary": {
            "type": "string"
          },
          "sentiment": {
            "type": "string",
            "enum": [
              "positive",
              "neutral",
              "negative",
              "mixed"
            ]
          },
          "confidence": {
            "type": "string",
            "enum": [
              "high",
              "medium",
              "low"
            ]
          },
          "topics": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "action_items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "task": {
                  "type": "string"
                },
                "priority": {
                  "type": "string",
                  "enum": [
                    "high",
                    "medium",
                    "low"
                  ]
                }
              },
              "required": [
                "task",
                "priority"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "reply",
          "summary",
          "sentiment",
          "confidence",
          "topics",
          "action_items"
        ],
        "additionalProperties": false
      }
    }
  ],
  "workflows": [
    {
      "name": "mr_chatbot_workflow",
      "description": "Produces structured real-time replies while remembering the current conversation",
      "provider": "openai",
      "model": "gpt-5.6-luna",
      "backups": [
        {
          "provider": "anthropic",
          "model": "claude-haiku-4-5-20251001"
        }
      ],
      "request_type": "chat",
      "system_instructions": "Act as a helpful, concise customer-facing assistant. Use relevant facts from earlier turns in the current session when answering. If a fact is not present in the conversation, say that you do not know instead of inventing it. Do not claim to remember information outside the supplied session. Return a direct reply plus a short summary, sentiment, confidence, topics, and any clear follow-up action items.",
      "structure": "chatbot_response",
      "customer_fields": [],
      "test_mode": false,
      "sessions_enabled": true,
      "backend_pipeline": {
        "enabled": true,
        "events": [
          {
            "name": "webhook_received"
          }
        ]
      }
    }
  ]
}
