curl --request POST \
--url https://api.b-bot.space/api/v1/invoke_agent \
--header 'Content-Type: application/json' \
--header 'bbot-api-key: <api-key>' \
--data '
{
"expert_id": 37,
"ability_id": 80,
"model_id": 6,
"session_id": "12333333",
"input_data": "use the Assistant Consultation Tool to call an Assistant for help regarding a question",
"temperature": 0,
"user_id": "123",
"document_urls": [
"<string>"
],
"conversation_history": [
{
"role": "<string>",
"content": "<string>"
}
],
"tool_config": {
"tavily_max_results": 1
},
"tool_activation": {
"tavily_search": true,
"wolfram_alpha": true,
"document_retriever": false,
"notion_connector": false
}
}
'import requests
url = "https://api.b-bot.space/api/v1/invoke_agent"
payload = {
"expert_id": 37,
"ability_id": 80,
"model_id": 6,
"session_id": "12333333",
"input_data": "use the Assistant Consultation Tool to call an Assistant for help regarding a question",
"temperature": 0,
"user_id": "123",
"document_urls": ["<string>"],
"conversation_history": [
{
"role": "<string>",
"content": "<string>"
}
],
"tool_config": { "tavily_max_results": 1 },
"tool_activation": {
"tavily_search": True,
"wolfram_alpha": True,
"document_retriever": False,
"notion_connector": False
}
}
headers = {
"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': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
expert_id: 37,
ability_id: 80,
model_id: 6,
session_id: '12333333',
input_data: 'use the Assistant Consultation Tool to call an Assistant for help regarding a question',
temperature: 0,
user_id: '123',
document_urls: ['<string>'],
conversation_history: [{role: '<string>', content: '<string>'}],
tool_config: {tavily_max_results: 1},
tool_activation: {
tavily_search: true,
wolfram_alpha: true,
document_retriever: false,
notion_connector: false
}
})
};
fetch('https://api.b-bot.space/api/v1/invoke_agent', 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/v1/invoke_agent",
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([
'expert_id' => 37,
'ability_id' => 80,
'model_id' => 6,
'session_id' => '12333333',
'input_data' => 'use the Assistant Consultation Tool to call an Assistant for help regarding a question',
'temperature' => 0,
'user_id' => '123',
'document_urls' => [
'<string>'
],
'conversation_history' => [
[
'role' => '<string>',
'content' => '<string>'
]
],
'tool_config' => [
'tavily_max_results' => 1
],
'tool_activation' => [
'tavily_search' => true,
'wolfram_alpha' => true,
'document_retriever' => false,
'notion_connector' => false
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"bbot-api-key: <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/v1/invoke_agent"
payload := strings.NewReader("{\n \"expert_id\": 37,\n \"ability_id\": 80,\n \"model_id\": 6,\n \"session_id\": \"12333333\",\n \"input_data\": \"use the Assistant Consultation Tool to call an Assistant for help regarding a question\",\n \"temperature\": 0,\n \"user_id\": \"123\",\n \"document_urls\": [\n \"<string>\"\n ],\n \"conversation_history\": [\n {\n \"role\": \"<string>\",\n \"content\": \"<string>\"\n }\n ],\n \"tool_config\": {\n \"tavily_max_results\": 1\n },\n \"tool_activation\": {\n \"tavily_search\": true,\n \"wolfram_alpha\": true,\n \"document_retriever\": false,\n \"notion_connector\": false\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
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/v1/invoke_agent")
.header("bbot-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"expert_id\": 37,\n \"ability_id\": 80,\n \"model_id\": 6,\n \"session_id\": \"12333333\",\n \"input_data\": \"use the Assistant Consultation Tool to call an Assistant for help regarding a question\",\n \"temperature\": 0,\n \"user_id\": \"123\",\n \"document_urls\": [\n \"<string>\"\n ],\n \"conversation_history\": [\n {\n \"role\": \"<string>\",\n \"content\": \"<string>\"\n }\n ],\n \"tool_config\": {\n \"tavily_max_results\": 1\n },\n \"tool_activation\": {\n \"tavily_search\": true,\n \"wolfram_alpha\": true,\n \"document_retriever\": false,\n \"notion_connector\": false\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.b-bot.space/api/v1/invoke_agent")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["bbot-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"expert_id\": 37,\n \"ability_id\": 80,\n \"model_id\": 6,\n \"session_id\": \"12333333\",\n \"input_data\": \"use the Assistant Consultation Tool to call an Assistant for help regarding a question\",\n \"temperature\": 0,\n \"user_id\": \"123\",\n \"document_urls\": [\n \"<string>\"\n ],\n \"conversation_history\": [\n {\n \"role\": \"<string>\",\n \"content\": \"<string>\"\n }\n ],\n \"tool_config\": {\n \"tavily_max_results\": 1\n },\n \"tool_activation\": {\n \"tavily_search\": true,\n \"wolfram_alpha\": true,\n \"document_retriever\": false,\n \"notion_connector\": false\n }\n}"
response = http.request(request)
puts response.read_body{
"input": "use the Assistant Consultation Tool to call an Assistant for help regarding a question",
"chat_history": [
{
"role": "<string>",
"content": "<string>"
}
],
"output": "### Marketing Strategy Improvement Tips:\n- **Set Objectives Right Away:** Setting clear objectives is crucial...",
"intermediate_steps": [
[
{
"tool": "<string>",
"tool_input": {
"query": "<string>"
},
"log": "<string>",
"message_log": [
{
"content": "<string>",
"additional_kwargs": {
"tool_calls": [
{
"index": 123,
"id": "<string>",
"function": {
"arguments": "<string>",
"name": "<string>"
},
"type": "<string>"
}
]
}
}
],
"tool_call_id": "<string>"
}
]
]
}{
"error": 123,
"message": "<string>"
}Invoke Agent Call
Creates a new plant in the store
curl --request POST \
--url https://api.b-bot.space/api/v1/invoke_agent \
--header 'Content-Type: application/json' \
--header 'bbot-api-key: <api-key>' \
--data '
{
"expert_id": 37,
"ability_id": 80,
"model_id": 6,
"session_id": "12333333",
"input_data": "use the Assistant Consultation Tool to call an Assistant for help regarding a question",
"temperature": 0,
"user_id": "123",
"document_urls": [
"<string>"
],
"conversation_history": [
{
"role": "<string>",
"content": "<string>"
}
],
"tool_config": {
"tavily_max_results": 1
},
"tool_activation": {
"tavily_search": true,
"wolfram_alpha": true,
"document_retriever": false,
"notion_connector": false
}
}
'import requests
url = "https://api.b-bot.space/api/v1/invoke_agent"
payload = {
"expert_id": 37,
"ability_id": 80,
"model_id": 6,
"session_id": "12333333",
"input_data": "use the Assistant Consultation Tool to call an Assistant for help regarding a question",
"temperature": 0,
"user_id": "123",
"document_urls": ["<string>"],
"conversation_history": [
{
"role": "<string>",
"content": "<string>"
}
],
"tool_config": { "tavily_max_results": 1 },
"tool_activation": {
"tavily_search": True,
"wolfram_alpha": True,
"document_retriever": False,
"notion_connector": False
}
}
headers = {
"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': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
expert_id: 37,
ability_id: 80,
model_id: 6,
session_id: '12333333',
input_data: 'use the Assistant Consultation Tool to call an Assistant for help regarding a question',
temperature: 0,
user_id: '123',
document_urls: ['<string>'],
conversation_history: [{role: '<string>', content: '<string>'}],
tool_config: {tavily_max_results: 1},
tool_activation: {
tavily_search: true,
wolfram_alpha: true,
document_retriever: false,
notion_connector: false
}
})
};
fetch('https://api.b-bot.space/api/v1/invoke_agent', 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/v1/invoke_agent",
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([
'expert_id' => 37,
'ability_id' => 80,
'model_id' => 6,
'session_id' => '12333333',
'input_data' => 'use the Assistant Consultation Tool to call an Assistant for help regarding a question',
'temperature' => 0,
'user_id' => '123',
'document_urls' => [
'<string>'
],
'conversation_history' => [
[
'role' => '<string>',
'content' => '<string>'
]
],
'tool_config' => [
'tavily_max_results' => 1
],
'tool_activation' => [
'tavily_search' => true,
'wolfram_alpha' => true,
'document_retriever' => false,
'notion_connector' => false
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"bbot-api-key: <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/v1/invoke_agent"
payload := strings.NewReader("{\n \"expert_id\": 37,\n \"ability_id\": 80,\n \"model_id\": 6,\n \"session_id\": \"12333333\",\n \"input_data\": \"use the Assistant Consultation Tool to call an Assistant for help regarding a question\",\n \"temperature\": 0,\n \"user_id\": \"123\",\n \"document_urls\": [\n \"<string>\"\n ],\n \"conversation_history\": [\n {\n \"role\": \"<string>\",\n \"content\": \"<string>\"\n }\n ],\n \"tool_config\": {\n \"tavily_max_results\": 1\n },\n \"tool_activation\": {\n \"tavily_search\": true,\n \"wolfram_alpha\": true,\n \"document_retriever\": false,\n \"notion_connector\": false\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
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/v1/invoke_agent")
.header("bbot-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"expert_id\": 37,\n \"ability_id\": 80,\n \"model_id\": 6,\n \"session_id\": \"12333333\",\n \"input_data\": \"use the Assistant Consultation Tool to call an Assistant for help regarding a question\",\n \"temperature\": 0,\n \"user_id\": \"123\",\n \"document_urls\": [\n \"<string>\"\n ],\n \"conversation_history\": [\n {\n \"role\": \"<string>\",\n \"content\": \"<string>\"\n }\n ],\n \"tool_config\": {\n \"tavily_max_results\": 1\n },\n \"tool_activation\": {\n \"tavily_search\": true,\n \"wolfram_alpha\": true,\n \"document_retriever\": false,\n \"notion_connector\": false\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.b-bot.space/api/v1/invoke_agent")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["bbot-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"expert_id\": 37,\n \"ability_id\": 80,\n \"model_id\": 6,\n \"session_id\": \"12333333\",\n \"input_data\": \"use the Assistant Consultation Tool to call an Assistant for help regarding a question\",\n \"temperature\": 0,\n \"user_id\": \"123\",\n \"document_urls\": [\n \"<string>\"\n ],\n \"conversation_history\": [\n {\n \"role\": \"<string>\",\n \"content\": \"<string>\"\n }\n ],\n \"tool_config\": {\n \"tavily_max_results\": 1\n },\n \"tool_activation\": {\n \"tavily_search\": true,\n \"wolfram_alpha\": true,\n \"document_retriever\": false,\n \"notion_connector\": false\n }\n}"
response = http.request(request)
puts response.read_body{
"input": "use the Assistant Consultation Tool to call an Assistant for help regarding a question",
"chat_history": [
{
"role": "<string>",
"content": "<string>"
}
],
"output": "### Marketing Strategy Improvement Tips:\n- **Set Objectives Right Away:** Setting clear objectives is crucial...",
"intermediate_steps": [
[
{
"tool": "<string>",
"tool_input": {
"query": "<string>"
},
"log": "<string>",
"message_log": [
{
"content": "<string>",
"additional_kwargs": {
"tool_calls": [
{
"index": 123,
"id": "<string>",
"function": {
"arguments": "<string>",
"name": "<string>"
},
"type": "<string>"
}
]
}
}
],
"tool_call_id": "<string>"
}
]
]
}{
"error": 123,
"message": "<string>"
}bbot-api-key is included in the request header.input_data should be crafted based on the specific use case and the
abilities of the agent being invoked.tool_config and tool_activation settings should be configured based on
the desired tools and functionalities for the agent.Authorizations
API key for authentication
Body
Plant to add to the store
The ID of the expert you want to invoke.
37
The ID of the ability to be used by the agent.
80
The ID of the language model to be used.
6
The session ID for tracking the interaction.
"12333333"
The input query or command for the agent.
"use the Assistant Consultation Tool to call an Assistant for help regarding a question"
The temperature the Agent should work on.
0
The ID of the user making the request.
"123"
A list of document URLs to be used by the agent.
A list of previous interactions with the agent.
Show child attributes
Show child attributes
Configuration options for various tools available to the agent.
Show child attributes
Show child attributes
Activation options for various tools.
Show child attributes
Show child attributes
Response
plant response
The input command for the assistant.
"use the Assistant Consultation Tool to call an Assistant for help regarding a question"
A list of previous chat interactions.
Show child attributes
Show child attributes
The output generated by the agent.
"### Marketing Strategy Improvement Tips:\n- **Set Objectives Right Away:** Setting clear objectives is crucial..."
A list of intermediate steps taken by the agent.
Show child attributes
Show child attributes