Списък с инструменти по време на разговор
curl --request GET \
--url https://call.aiployees.com/api/user/tools \
--header 'Accept: <accept>' \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>'import requests
url = "https://call.aiployees.com/api/user/tools"
headers = {
"Authorization": "<authorization>",
"Content-Type": "<content-type>",
"Accept": "<accept>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
Authorization: '<authorization>',
'Content-Type': '<content-type>',
Accept: '<accept>'
}
};
fetch('https://call.aiployees.com/api/user/tools', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://call.aiployees.com/api/user/tools",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Accept: <accept>",
"Authorization: <authorization>",
"Content-Type: <content-type>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://call.aiployees.com/api/user/tools"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<authorization>")
req.Header.Add("Content-Type", "<content-type>")
req.Header.Add("Accept", "<accept>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://call.aiployees.com/api/user/tools")
.header("Authorization", "<authorization>")
.header("Content-Type", "<content-type>")
.header("Accept", "<accept>")
.asString();require 'uri'
require 'net/http'
url = URI("https://call.aiployees.com/api/user/tools")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<authorization>'
request["Content-Type"] = '<content-type>'
request["Accept"] = '<accept>'
response = http.request(request)
puts response.read_body[
{
"id": 1,
"name": "get_weather",
"description": "Use this tool to get the current weather in a specific city. Call this when the customer asks about weather conditions.",
"endpoint": "https://api.openweathermap.org/data/2.5/weather",
"method": "GET",
"timeout": 10,
"headers": [
{
"name": "Content-Type",
"value": "application/json"
},
{
"name": "Authorization",
"value": "Bearer sk_..."
}
],
"schema": [
{
"name": "city",
"type": "string",
"description": "The city name to get weather for"
},
{
"name": "temperature",
"type": "number",
"description": "Current temperature value"
},
{
"name": "is_raining",
"type": "boolean",
"description": "Whether it is currently raining"
}
],
"created_at": "2025-10-10T12:00:00.000000Z",
"updated_at": "2025-10-10T12:00:00.000000Z"
},
{
"id": 2,
"name": "send_notification",
"description": "Use this tool to send a notification to the customer. Call this when customer requests updates.",
"endpoint": "https://api.yourcompany.com/notifications/send",
"method": "POST",
"timeout": 15,
"headers": [
{
"name": "Content-Type",
"value": "application/json"
}
],
"schema": [
{
"name": "message",
"type": "string",
"description": "The notification message to send"
},
{
"name": "priority_level",
"type": "number",
"description": "Priority level from 1 to 5"
},
{
"name": "send_sms",
"type": "boolean",
"description": "Whether to also send SMS notification"
}
],
"created_at": "2025-10-09T14:30:00.000000Z",
"updated_at": "2025-10-10T09:15:00.000000Z"
}
]
Инструменти по време на обаждане
Списък с инструменти по време на разговор
Извличане на всички инструменти по време на разговор
GET
/
user
/
tools
Списък с инструменти по време на разговор
curl --request GET \
--url https://call.aiployees.com/api/user/tools \
--header 'Accept: <accept>' \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>'import requests
url = "https://call.aiployees.com/api/user/tools"
headers = {
"Authorization": "<authorization>",
"Content-Type": "<content-type>",
"Accept": "<accept>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
Authorization: '<authorization>',
'Content-Type': '<content-type>',
Accept: '<accept>'
}
};
fetch('https://call.aiployees.com/api/user/tools', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://call.aiployees.com/api/user/tools",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Accept: <accept>",
"Authorization: <authorization>",
"Content-Type: <content-type>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://call.aiployees.com/api/user/tools"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<authorization>")
req.Header.Add("Content-Type", "<content-type>")
req.Header.Add("Accept", "<accept>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://call.aiployees.com/api/user/tools")
.header("Authorization", "<authorization>")
.header("Content-Type", "<content-type>")
.header("Accept", "<accept>")
.asString();require 'uri'
require 'net/http'
url = URI("https://call.aiployees.com/api/user/tools")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<authorization>'
request["Content-Type"] = '<content-type>'
request["Accept"] = '<accept>'
response = http.request(request)
puts response.read_body[
{
"id": 1,
"name": "get_weather",
"description": "Use this tool to get the current weather in a specific city. Call this when the customer asks about weather conditions.",
"endpoint": "https://api.openweathermap.org/data/2.5/weather",
"method": "GET",
"timeout": 10,
"headers": [
{
"name": "Content-Type",
"value": "application/json"
},
{
"name": "Authorization",
"value": "Bearer sk_..."
}
],
"schema": [
{
"name": "city",
"type": "string",
"description": "The city name to get weather for"
},
{
"name": "temperature",
"type": "number",
"description": "Current temperature value"
},
{
"name": "is_raining",
"type": "boolean",
"description": "Whether it is currently raining"
}
],
"created_at": "2025-10-10T12:00:00.000000Z",
"updated_at": "2025-10-10T12:00:00.000000Z"
},
{
"id": 2,
"name": "send_notification",
"description": "Use this tool to send a notification to the customer. Call this when customer requests updates.",
"endpoint": "https://api.yourcompany.com/notifications/send",
"method": "POST",
"timeout": 15,
"headers": [
{
"name": "Content-Type",
"value": "application/json"
}
],
"schema": [
{
"name": "message",
"type": "string",
"description": "The notification message to send"
},
{
"name": "priority_level",
"type": "number",
"description": "Priority level from 1 to 5"
},
{
"name": "send_sms",
"type": "boolean",
"description": "Whether to also send SMS notification"
}
],
"created_at": "2025-10-09T14:30:00.000000Z",
"updated_at": "2025-10-10T09:15:00.000000Z"
}
]
Този endpoint ви позволява да извлечете всички инструменти по време на разговор. Инструментите по време на разговор позволяват на вашите AI асистенти да взаимодействат с външни API-та по време на разговор.
Заглавки
string
required
Bearer token за удостоверяване
string
required
Трябва да бъде
application/jsonstring
required
Трябва да бъде
application/jsonПолета в отговора
array
Масив от инструменти по време на разговор
Show properties
Show properties
integer
Уникалният идентификатор на инструмента
string
Името на инструмента (малки букви с долни черти)
string
Подробно обяснение кога и как AI трябва да използва този инструмент
string
API endpoint URL, който ще бъде извикан
string
HTTP метод (GET, POST, PUT, PATCH, DELETE)
integer
Timeout на заявката в секунди (1-30)
array
array
string
ISO 8601 timestamp кога е създаден инструментът
string
ISO 8601 timestamp кога е последно актуализиран инструментът
[
{
"id": 1,
"name": "get_weather",
"description": "Use this tool to get the current weather in a specific city. Call this when the customer asks about weather conditions.",
"endpoint": "https://api.openweathermap.org/data/2.5/weather",
"method": "GET",
"timeout": 10,
"headers": [
{
"name": "Content-Type",
"value": "application/json"
},
{
"name": "Authorization",
"value": "Bearer sk_..."
}
],
"schema": [
{
"name": "city",
"type": "string",
"description": "The city name to get weather for"
},
{
"name": "temperature",
"type": "number",
"description": "Current temperature value"
},
{
"name": "is_raining",
"type": "boolean",
"description": "Whether it is currently raining"
}
],
"created_at": "2025-10-10T12:00:00.000000Z",
"updated_at": "2025-10-10T12:00:00.000000Z"
},
{
"id": 2,
"name": "send_notification",
"description": "Use this tool to send a notification to the customer. Call this when customer requests updates.",
"endpoint": "https://api.yourcompany.com/notifications/send",
"method": "POST",
"timeout": 15,
"headers": [
{
"name": "Content-Type",
"value": "application/json"
}
],
"schema": [
{
"name": "message",
"type": "string",
"description": "The notification message to send"
},
{
"name": "priority_level",
"type": "number",
"description": "Priority level from 1 to 5"
},
{
"name": "send_sms",
"type": "boolean",
"description": "Whether to also send SMS notification"
}
],
"created_at": "2025-10-09T14:30:00.000000Z",
"updated_at": "2025-10-10T09:15:00.000000Z"
}
]
Присвояване на инструменти на асистенти
За да използвате тези инструменти с асистенти, вижте:- Създаване на асистент - Прикачете инструменти използвайки параметъра
tool_ids - Актуализиране на асистент - Управлявайте присвояванията на инструменти използвайки параметъра
tool_ids
⌘I

