Skip to content

Tool Nodes

Searches the agent’s brand memory / knowledge base using vector similarity.

{
"id": "search-1",
"type": "file_search",
"data": {
"type": "file_search",
"query": "{{input.message}}",
"collectionId": "collection-uuid",
"maxResults": 5
}
}
FieldTypeDescription
querystringSearch query (supports variable interpolation)
collectionIdstringBrand memory collection ID
maxResultsnumberMaximum results to return

Makes HTTP requests to external APIs.

{
"id": "http-1",
"type": "http_api",
"data": {
"type": "http_api",
"url": "https://api.example.com/data",
"method": "GET",
"headers": {
"Authorization": "Bearer {{credentials.api_key}}"
},
"body": null,
"responseMapping": { "data": "$.results" }
}
}
FieldTypeDescription
urlstringRequest URL (supports interpolation)
methodstringHTTP method (GET, POST, PUT, DELETE, PATCH)
headersobjectRequest headers
bodyanyRequest body (for POST/PUT/PATCH)
responseMappingobjectJSONPath mappings for response extraction

Runs code in a sandboxed environment.

{
"id": "code-1",
"type": "code_executor",
"data": {
"type": "code_executor",
"language": "javascript",
"code": "const data = inputs.data;\nreturn data.filter(item => item.score > 0.8);"
}
}
FieldTypeDescription
languagestringProgramming language (javascript)
codestringCode to execute. Access inputs via inputs object.

Generates images using AI models.

{
"id": "img-1",
"type": "image_generator",
"data": {
"type": "image_generator",
"prompt": "{{agent-1.output}}",
"model": "dall-e-3",
"size": "1024x1024"
}
}
FieldTypeDescription
promptstringImage generation prompt
modelstringImage model to use
sizestringOutput dimensions