WorkAI Gate Bot
WorkAI Gate Bot · GPT-Aktionen
Employee Interaction API
API for sending questions to a specific employee through a chat interface.
POST /ask_employeeaskEmployeeSend a question to an employee and get a response via a chat interface.
Ursprüngliches API-Schema
{
"openapi": "3.1.0",
"info": {
"title": "Employee Interaction API",
"description": "API for sending questions to a specific employee through a chat interface.",
"version": "v1.0.0"
},
"servers": [
{
"url": "https://eu1.chain.ai.atiks.org"
}
],
"paths": {
"/ask_employee": {
"post": {
"description": "Send a question to an employee and get a response via a chat interface.",
"operationId": "askEmployee",
"requestBody": {
"description": "Data payload containing employee_id, chat_id, and question",
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"employee_id": {
"type": "integer",
"description": "Unique identifier for the employee"
},
"chat_id": {
"type": "string",
"description": "Unique chat session identifier"
},
"question": {
"type": "string",
"description": "The question being asked to the employee"
}
},
"required": [
"employee_id",
"chat_id",
"question"
]
}
}
}
},
"responses": {
"200": {
"description": "Successful response with the employee's reply",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"employee_response": {
"type": "string",
"description": "The answer or response from the employee"
}
}
}
}
}
},
"default": {
"description": "Unexpected error",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"error": {
"type": "string",
"description": "Error message detailing what went wrong"
}
}
}
}
}
}
},
"deprecated": false
}
}
},
"components": {
"schemas": {}
}
}