Assistants are AI-powered agents in Freddy that can be configured with specific behaviors, knowledge, and tools to help users accomplish tasks. Each assistant is highly customizable and can be tailored to specific use cases within your organization.
An assistant is a configured AI agent that combines:
- Base Model: The underlying AI model (e.g., GPT-4, Claude)
- Instructions: System prompts that define behavior and personality
- Knowledge: Rules, documents, and context that inform responses
- Tools: Built-in system tools, MCP integrations, and Streamline automations
- Configuration: Settings for reasoning, response format, and context handling
Create specialized assistants for different tasks:
- Customer support agents
- Code review assistants
- Data analysis experts
- Content creation helpers
- Research assistants
Configure how assistants think and respond:
- Chain-of-thought reasoning
- Step-by-step problem solving
- Multi-step planning
- Reflection and self-correction
Equip assistants with powerful capabilities:
- System Tools: File search, web search, code execution
- MCP Tools: Custom integrations via Model Context Protocol
- Streamline Automations: Workflow automation tools
- Personal Connectors: OAuth-based third-party integrations
Give assistants access to organizational knowledge:
- Attach rules and guidelines
- Connect vector stores for semantic search
- Use preset prompts for common tasks
- Maintain conversation history
Control who can use which assistants:
- Organization-level assistants
- Department-specific assistants
- User-level permissions
- Role-based access
Assistants in Freddy use a normalized database structure for flexibility and scalability:
assistants (main table)
├── assistant_rules (knowledge & guidelines)
├── assistant_reasoning (thinking configuration)
├── assistant_json_schemas (structured output)
├── assistant_vector_stores (semantic search)
├── assistant_rule_attachments (file attachments)
└── assistant_tool_configurations (tools & integrations)
├── system_tools (built-in capabilities)
├── mcp_tools (MCP integrations)
└── streamline_tools (automations){
"name": "Support Agent",
"instructions": "You are a helpful customer support agent...",
"tools": {
"system_tools": ["file_search", "web_search"],
"mcp_tools": ["zendesk_integration"]
},
"rules": ["support_guidelines", "escalation_policy"]
}{
"name": "Code Reviewer",
"instructions": "You are an expert code reviewer...",
"tools": {
"system_tools": ["code_interpreter"],
"mcp_tools": ["github_integration"]
},
"reasoning": {
"enabled": true,
"type": "chain_of_thought"
}
}{
"name": "Data Analyst",
"instructions": "You are a data analysis expert...",
"tools": {
"system_tools": ["code_interpreter"],
"mcp_tools": ["database_connector", "visualization_tool"]
},
"vector_stores": ["company_data_warehouse"]
}curl https://api.aitronos.com/v1/assistants \
-H "X-API-Key: $FREDDY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "My First Assistant",
"instructions": "You are a helpful assistant.",
"model": "gpt-4"
}'curl https://api.aitronos.com/v1/assistants/{assistant_id}/tools \
-H "X-API-Key: $FREDDY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"system_tools": {
"file_search": {"enabled": true},
"web_search": {"enabled": true}
}
}'curl https://api.aitronos.com/v1/assistants/{assistant_id}/rules \
-H "X-API-Key: $FREDDY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"rule_id": "rule_abc123"
}'curl https://api.aitronos.com/v1/responses \
-H "X-API-Key: $FREDDY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"assistant_id": "asst_abc123",
"thread_id": "thread_xyz789",
"messages": [
{"role": "user", "content": "Hello!"}
]
}'- Tool Integration - Working with tools and integrations