Create Expert
curl --request POST \
--url https://api.b-bot.space/api/v2/v1/create_expert \
--header 'Content-Type: application/json' \
--header 'bbot-api-key: <api-key>' \
--header 'bbot_api_key: <bbot_api_key>' \
--data '
{
"name": "<string>",
"description": "<string>",
"profession": "<string>",
"system_message": "<string>",
"function_description": "<string>",
"function_name": "<string>",
"apps": "<array>",
"experts": [
123
],
"profile_picture": 123,
"expert_llm_models": "<array>"
}
'import requests
url = "https://api.b-bot.space/api/v2/v1/create_expert"
payload = {
"name": "<string>",
"description": "<string>",
"profession": "<string>",
"system_message": "<string>",
"function_description": "<string>",
"function_name": "<string>",
"apps": "<array>",
"experts": [123],
"profile_picture": 123,
"expert_llm_models": "<array>"
}
headers = {
"bbot_api_key": "<bbot_api_key>",
"bbot-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
bbot_api_key: '<bbot_api_key>',
'bbot-api-key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
name: '<string>',
description: '<string>',
profession: '<string>',
system_message: '<string>',
function_description: '<string>',
function_name: '<string>',
apps: '<array>',
experts: [123],
profile_picture: 123,
expert_llm_models: '<array>'
})
};
fetch('https://api.b-bot.space/api/v2/v1/create_expert', 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://api.b-bot.space/api/v2/v1/create_expert",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'description' => '<string>',
'profession' => '<string>',
'system_message' => '<string>',
'function_description' => '<string>',
'function_name' => '<string>',
'apps' => '<array>',
'experts' => [
123
],
'profile_picture' => 123,
'expert_llm_models' => '<array>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"bbot-api-key: <api-key>",
"bbot_api_key: <bbot_api_key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.b-bot.space/api/v2/v1/create_expert"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"profession\": \"<string>\",\n \"system_message\": \"<string>\",\n \"function_description\": \"<string>\",\n \"function_name\": \"<string>\",\n \"apps\": \"<array>\",\n \"experts\": [\n 123\n ],\n \"profile_picture\": 123,\n \"expert_llm_models\": \"<array>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("bbot_api_key", "<bbot_api_key>")
req.Header.Add("bbot-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.b-bot.space/api/v2/v1/create_expert")
.header("bbot_api_key", "<bbot_api_key>")
.header("bbot-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"profession\": \"<string>\",\n \"system_message\": \"<string>\",\n \"function_description\": \"<string>\",\n \"function_name\": \"<string>\",\n \"apps\": \"<array>\",\n \"experts\": [\n 123\n ],\n \"profile_picture\": 123,\n \"expert_llm_models\": \"<array>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.b-bot.space/api/v2/v1/create_expert")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["bbot_api_key"] = '<bbot_api_key>'
request["bbot-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"profession\": \"<string>\",\n \"system_message\": \"<string>\",\n \"function_description\": \"<string>\",\n \"function_name\": \"<string>\",\n \"apps\": \"<array>\",\n \"experts\": [\n 123\n ],\n \"profile_picture\": 123,\n \"expert_llm_models\": \"<array>\"\n}"
response = http.request(request)
puts response.read_body{
"id": 123,
"attributes": {}
}"<string>""<string>""<string>""<string>"Experts (Agencies & Partners Only)
Create Expert
Create a new expert in the B-Bot system. Only available for Agencies and Middleware Partners.
POST
/
v1
/
create_expert
Create Expert
curl --request POST \
--url https://api.b-bot.space/api/v2/v1/create_expert \
--header 'Content-Type: application/json' \
--header 'bbot-api-key: <api-key>' \
--header 'bbot_api_key: <bbot_api_key>' \
--data '
{
"name": "<string>",
"description": "<string>",
"profession": "<string>",
"system_message": "<string>",
"function_description": "<string>",
"function_name": "<string>",
"apps": "<array>",
"experts": [
123
],
"profile_picture": 123,
"expert_llm_models": "<array>"
}
'import requests
url = "https://api.b-bot.space/api/v2/v1/create_expert"
payload = {
"name": "<string>",
"description": "<string>",
"profession": "<string>",
"system_message": "<string>",
"function_description": "<string>",
"function_name": "<string>",
"apps": "<array>",
"experts": [123],
"profile_picture": 123,
"expert_llm_models": "<array>"
}
headers = {
"bbot_api_key": "<bbot_api_key>",
"bbot-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
bbot_api_key: '<bbot_api_key>',
'bbot-api-key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
name: '<string>',
description: '<string>',
profession: '<string>',
system_message: '<string>',
function_description: '<string>',
function_name: '<string>',
apps: '<array>',
experts: [123],
profile_picture: 123,
expert_llm_models: '<array>'
})
};
fetch('https://api.b-bot.space/api/v2/v1/create_expert', 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://api.b-bot.space/api/v2/v1/create_expert",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'description' => '<string>',
'profession' => '<string>',
'system_message' => '<string>',
'function_description' => '<string>',
'function_name' => '<string>',
'apps' => '<array>',
'experts' => [
123
],
'profile_picture' => 123,
'expert_llm_models' => '<array>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"bbot-api-key: <api-key>",
"bbot_api_key: <bbot_api_key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.b-bot.space/api/v2/v1/create_expert"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"profession\": \"<string>\",\n \"system_message\": \"<string>\",\n \"function_description\": \"<string>\",\n \"function_name\": \"<string>\",\n \"apps\": \"<array>\",\n \"experts\": [\n 123\n ],\n \"profile_picture\": 123,\n \"expert_llm_models\": \"<array>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("bbot_api_key", "<bbot_api_key>")
req.Header.Add("bbot-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.b-bot.space/api/v2/v1/create_expert")
.header("bbot_api_key", "<bbot_api_key>")
.header("bbot-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"profession\": \"<string>\",\n \"system_message\": \"<string>\",\n \"function_description\": \"<string>\",\n \"function_name\": \"<string>\",\n \"apps\": \"<array>\",\n \"experts\": [\n 123\n ],\n \"profile_picture\": 123,\n \"expert_llm_models\": \"<array>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.b-bot.space/api/v2/v1/create_expert")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["bbot_api_key"] = '<bbot_api_key>'
request["bbot-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"profession\": \"<string>\",\n \"system_message\": \"<string>\",\n \"function_description\": \"<string>\",\n \"function_name\": \"<string>\",\n \"apps\": \"<array>\",\n \"experts\": [\n 123\n ],\n \"profile_picture\": 123,\n \"expert_llm_models\": \"<array>\"\n}"
response = http.request(request)
puts response.read_body{
"id": 123,
"attributes": {}
}"<string>""<string>""<string>""<string>"Permission Required: This endpoint is only available for Agencies and Middleware Partners.
Authorizations
API key for authentication
Headers
API Key for authentication
Body
application/json
Schema for creating a new expert
The expert's name
A description of the expert's purpose
The expert's profession or role
System-level instructions
Description of the expert's main function
Function name identifier
Connected applications array
Team member expert IDs array
Media library ID of the profile picture
LLM model configurations
⌘I