{
  "openapi": "3.0.0",
  "info": {
    "title": "Bintel Demo Webhook API",
    "version": "1.0.0",
    "description": "API for sending chat data to Bintel backend"
  },
  "servers": [
    {
      "url": "https://demo.bintelbd.com",
      "description": "Main Demo Server"
    }
  ],
  "paths": {
    "/webhook.php": {
      "post": {
        "operationId": "sendChatData",
        "summary": "Send chat data to webhook",
        "description": "This tool sends the customer's name, email, and message to the Bintel server for processing.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "customer_name": {
                    "type": "string",
                    "description": "Name of the customer from chat"
                  },
                  "customer_email": {
                    "type": "string",
                    "description": "Email address of the customer"
                  },
                  "message": {
                    "type": "string",
                    "description": "The message or inquiry from the customer"
                  }
                },
                "required": ["customer_name", "message"]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Data successfully sent to the webhook",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": { "type": "string" },
                    "message": { "type": "string" }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}