{
  "name": "Melatone Skin Clinic agent",
  "description": "Clinic agent for Melatone Skin Clinic, Battersea, London: a medical aesthetics clinic for every skin tone, with a special interest in Skin of Colour. Answers what the clinic offers, lists skincare products and prices, starts a skincare checkout the person pays for on the clinic's secure Stripe page, and sends the clinic an appointment request the clinic then confirms with the person. It never books, charges or gives medical advice on its own.",
  "version": "1.0.0",
  "supportedInterfaces": [
    {
      "url": "https://www.melatoneskinclinic.co.uk/api/a2a",
      "protocolBinding": "JSONRPC",
      "protocolVersion": "1.0"
    }
  ],
  "provider": {
    "organization": "Melatone Skin Clinic Ltd",
    "url": "https://www.melatoneskinclinic.co.uk/"
  },
  "iconUrl": "https://www.melatoneskinclinic.co.uk/favicon.ico",
  "documentationUrl": "https://www.melatoneskinclinic.co.uk/auth.md",
  "capabilities": {
    "streaming": false,
    "pushNotifications": false,
    "extendedAgentCard": false
  },
  "securitySchemes": {
    "melatone_oauth": {
      "oauth2SecurityScheme": {
        "oauth2MetadataUrl": "https://www.melatoneskinclinic.co.uk/.well-known/oauth-authorization-server",
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "https://www.melatoneskinclinic.co.uk/api/oauth/authorize",
            "tokenUrl": "https://www.melatoneskinclinic.co.uk/api/oauth/token",
            "refreshUrl": "https://www.melatoneskinclinic.co.uk/api/oauth/token",
            "scopes": {
              "clinic:read": "Read the catalogue and clinic details",
              "appointments:request": "Send an appointment request for the person",
              "checkout:write": "Start a skincare checkout for the person"
            },
            "pkceRequired": true
          },
          "clientCredentials": {
            "tokenUrl": "https://www.melatoneskinclinic.co.uk/api/oauth/token",
            "scopes": {
              "clinic:read": "Read the catalogue and clinic details",
              "appointments:request": "Send an appointment request for the person",
              "checkout:write": "Start a skincare checkout for the person"
            }
          }
        }
      }
    }
  },
  "defaultInputModes": [
    "text/plain",
    "application/json"
  ],
  "defaultOutputModes": [
    "text/plain",
    "application/json"
  ],
  "skills": [
    {
      "id": "clinic_info",
      "name": "Clinic details",
      "description": "Name, address, opening hours, contact channels and the booking link. Public, no token needed.",
      "tags": [
        "clinic",
        "opening hours",
        "address",
        "battersea",
        "london"
      ],
      "examples": [
        "Where is Melatone Skin Clinic and when is it open?"
      ]
    },
    {
      "id": "list_treatments",
      "name": "Treatments",
      "description": "The clinic's treatments with a cite-safe summary, who delivers each and the page with prices. Optional data field: category or slug. Public.",
      "tags": [
        "treatments",
        "laser hair removal",
        "pigmentation",
        "skin of colour",
        "polynucleotides"
      ],
      "examples": [
        "Which treatments do you offer for pigmentation in darker skin?"
      ]
    },
    {
      "id": "list_products",
      "name": "Skincare products",
      "description": "Every ESK and Skinade product the clinic sells online, with product id, size and price in pence. Free UK delivery from 50 pounds, otherwise 3.49 pounds tracked. Public.",
      "tags": [
        "skincare",
        "esk",
        "products",
        "prices",
        "shop"
      ],
      "examples": [
        "What does ESK C Forte cost?"
      ]
    },
    {
      "id": "start_checkout",
      "name": "Start a skincare checkout",
      "description": "Builds a basket and returns a secure Stripe checkout link the person opens to enter their address and pay. Data: line_items [{item:{id}, quantity}], optional buyer {email, first_name}. Needs scope checkout:write. GetTask on the returned task shows when it is paid.",
      "tags": [
        "checkout",
        "buy",
        "order",
        "ucp"
      ],
      "inputModes": [
        "application/json"
      ],
      "outputModes": [
        "application/json",
        "text/plain"
      ],
      "examples": [
        "{\"skill\":\"start_checkout\",\"line_items\":[{\"item\":{\"id\":\"esk-c-forte-50ml\"},\"quantity\":1}]}"
      ],
      "securityRequirements": [
        {
          "schemes": {
            "melatone_oauth": {
              "list": [
                "checkout:write"
              ]
            }
          }
        }
      ]
    },
    {
      "id": "request_appointment",
      "name": "Request an appointment",
      "description": "Sends the clinic an appointment request for the person. Nothing is booked or charged: the clinic confirms a time with them directly. Data: first_name, phone or email, consent_to_contact true (only once the person agreed), optional treatment slug, preferred_times, notes. Needs scope appointments:request.",
      "tags": [
        "appointment",
        "booking",
        "consultation"
      ],
      "inputModes": [
        "application/json"
      ],
      "outputModes": [
        "application/json",
        "text/plain"
      ],
      "examples": [
        "{\"skill\":\"request_appointment\",\"first_name\":\"Sam\",\"phone\":\"07700900123\",\"treatment\":\"laser-hair-removal\",\"preferred_times\":\"Saturday morning\",\"consent_to_contact\":true}"
      ],
      "securityRequirements": [
        {
          "schemes": {
            "melatone_oauth": {
              "list": [
                "appointments:request"
              ]
            }
          }
        }
      ]
    }
  ]
}
