[
  {
    "name": "start_sandbox_conversation",
    "description": "Fictional sandbox only. Start once, before any booking discussion. Read the returned AI disclosure and ask consent.",
    "pre_call_message": "Let me check that for you.",
    "parameters": {
      "type": "object",
      "properties": {
        "branch": {
          "type": "string",
          "description": "Configured branch ID, or empty for main clinic number. Never invent."
        },
        "language": {
          "type": "string",
          "enum": [
            "en-IN",
            "hi-IN",
            "mr-IN"
          ]
        }
      },
      "required": [
        "branch",
        "language"
      ]
    },
    "key": "custom_task",
    "value": {
      "method": "POST",
      "url": "https://myfollowdesk.iwaleatul.chatgpt.site/api/agent/tool",
      "api_token": "Bearer REPLACE_WITH_PRIVATE_MYFOLLOWDESK_TOOL_KEY",
      "headers": {
        "Content-Type": "application/json"
      },
      "param": {
        "action": "start",
        "branch": "%(branch)s",
        "language": "%(language)s"
      }
    }
  },
  {
    "name": "continue_sandbox_conversation",
    "description": "Fictional sandbox only. Continue the server-guided conversation. Read the latest agent response and offer returned options. Stop when status is ended. Never claim a booking until outcome is booked/rescheduled/cancelled.",
    "pre_call_message": "Let me check that for you.",
    "parameters": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Call id from previous tool response"
        },
        "revision": {
          "type": "integer",
          "description": "Revision from the latest tool response"
        },
        "text": {
          "type": "string",
          "description": "Patient response. Do not invent consent or identity. Use a returned option or its number when appropriate."
        }
      },
      "required": [
        "id",
        "revision",
        "text"
      ]
    },
    "key": "custom_task",
    "value": {
      "method": "POST",
      "url": "https://myfollowdesk.iwaleatul.chatgpt.site/api/agent/tool",
      "api_token": "Bearer REPLACE_WITH_PRIVATE_MYFOLLOWDESK_TOOL_KEY",
      "headers": {
        "Content-Type": "application/json"
      },
      "param": {
        "action": "turn",
        "id": "%(id)s",
        "revision": "%(revision)s",
        "text": "%(text)s"
      }
    }
  }
]
