Endpoint Examples
Invoke Agent Call
Creates a new plant in the store
POST
/
api
/
v1
/
invoke_agent
Copy
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
}
}'
Copy
{
"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>"
}
]
]
}
Ensure that the correct bbot-api-key
is included in the request header.
The input_data
should be crafted based on the specific use case and the
abilities of the agent being invoked.
The 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
application/json
Plant to add to the store
The body is of type object
.
Response
200
application/json
plant response
The response is of type object
.
Copy
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
}
}'
Copy
{
"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>"
}
]
]
}
Assistant
Responses are generated using AI and may contain mistakes.