{
  "role": "ai-support-specialist",
  "source": "https://aiinthewild.com/ai-employees/ai-support-specialist/",
  "note": "Tool definitions in JSON Schema. Wire each one to your own systems. Functions marked approval: true should only create drafts or requests for a person to approve.",
  "functions": [
    {
      "name": "search_help_center",
      "description": "Search help articles and internal policies.",
      "access": "read",
      "approval": false,
      "parameters": {
        "type": "object",
        "properties": {
          "query": {
            "type": "string",
            "description": "Question in the customer’s words"
          }
        },
        "required": [
          "query"
        ]
      }
    },
    {
      "name": "get_ticket",
      "description": "Read a ticket and its full thread.",
      "access": "read",
      "approval": false,
      "parameters": {
        "type": "object",
        "properties": {
          "ticket_id": {
            "type": "string",
            "description": "Ticket id"
          }
        },
        "required": [
          "ticket_id"
        ]
      }
    },
    {
      "name": "get_order",
      "description": "Look up an order and its delivery status.",
      "access": "read",
      "approval": false,
      "parameters": {
        "type": "object",
        "properties": {
          "order_id": {
            "type": "string",
            "description": "Order number"
          }
        },
        "required": [
          "order_id"
        ]
      }
    },
    {
      "name": "tag_ticket",
      "description": "Set topic, priority and language tags on a ticket.",
      "access": "write",
      "approval": false,
      "parameters": {
        "type": "object",
        "properties": {
          "ticket_id": {
            "type": "string",
            "description": "Ticket id"
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Tags to add"
          }
        },
        "required": [
          "ticket_id",
          "tags"
        ]
      }
    },
    {
      "name": "draft_reply",
      "description": "Save a reply as an internal draft for an agent to send.",
      "access": "write",
      "approval": true,
      "parameters": {
        "type": "object",
        "properties": {
          "ticket_id": {
            "type": "string",
            "description": "Ticket id"
          },
          "body": {
            "type": "string",
            "description": "Reply text"
          }
        },
        "required": [
          "ticket_id",
          "body"
        ]
      }
    },
    {
      "name": "escalate",
      "description": "Assign the ticket to a person or team with a summary.",
      "access": "write",
      "approval": false,
      "parameters": {
        "type": "object",
        "properties": {
          "ticket_id": {
            "type": "string",
            "description": "Ticket id"
          },
          "team": {
            "type": "string",
            "description": "Team name"
          },
          "summary": {
            "type": "string",
            "description": "What happened and what is needed"
          }
        },
        "required": [
          "ticket_id",
          "team",
          "summary"
        ]
      }
    }
  ]
}