# Welcome to Odin AI Platform
Source: https://learn.getodin.ai/Introduction
Meet Odin AI Platform — RAG, agents, workflows, automation, and enterprise security & compliance.
**Odin AI Platform** is a single place for your organization to turn documents, data, and systems into answers and actions your teams can trust.
Whether you are exploring AI for the first time or scaling it across departments, Odin AI Platform is built to feel approachable: start with a **RAG knowledge base** and chat, add **AI Agents** and toolkits, then extend into **workflows and automation** as your use cases mature.
## What you can do with Odin AI Platform
* **RAG knowledge base** — Bring together documents, files, and connected sources in a **Knowledge Base** that uses **retrieval-augmented generation (RAG)** so answers are grounded in *your* organization's content—not generic web results.
* **AI chat** — Ask questions and explore ideas in chat that stays tied to your projects and the knowledge your team has approved.
* **AI Agents** — Create agents with clear personalities, memory, and **toolkits** (web search, documents, databases, apps like Microsoft 365 or Jira, and more) so the AI can help complete real tasks—not just reply in a thread.
* **Workflows and automation** — Go beyond one-off chats: design **workflows** and automations that chain steps, actions, and integrations so repeatable processes run reliably across people and systems.
* **Share safely** — Work inside **projects** with controls suited to enterprise teams, so the right people see the right knowledge, agents, and automations.
## Enterprise-grade security & compliance
Odin AI Platform is built for **enterprise-grade safety**: your data, access, and operations are designed to meet expectations for regulated and security-conscious organizations—not a consumer toy. That includes strong practices around protection of information, how the platform is run and audited, and support for privacy and compliance programs your legal and IT teams already care about.
We maintain **five** externally recognized compliance areas—**HIPAA**, **AICPA SOC 2 Type II**, **ISO 27001**, **GDPR**, and **CCPA**—with more detail on each in **[Security & Compliance](/general/security-compliance)**.
## How Odin AI Platform is offered
Odin AI Platform is available as a **cloud** subscription or as an **On-Premise** deployment in your environment. Each model has its own licensing and operational considerations. For a concise comparison, start with the Cloud **[Overview](/offerings/cloud/overview)** and the On-Premise **[Overview](/offerings/on-premise/overview)**.
## Who this documentation is for
These docs are written for **people who use and administer Odin AI Platform**: project owners, power users, and IT or platform admins who configure connectors, security, and rollout. You do not need to be a developer to follow the **Get Started** path; deeper sections cover APIs, SDKs, and advanced setup when you need them.
## Take the next step
When you are ready to open the product and try it yourself, continue to **[Create Your First AI Agent](/getting-started/create-first-agent)**—or [sign in to Odin AI Platform](https://app.getodin.ai/?signup=true) and create a project from the dashboard.
> **Tip:** For cloud versus On-Premise licensing and operations, read the overview pages linked above. For security certifications and compliance detail, see **[Security & Compliance](/general/security-compliance)**.
# Agent Templates
Source: https://learn.getodin.ai/agents/agent-templates
Get Started With Our Pre-Built Agents
Odin AI's **Agent Templates** provide a fast, structured way to launch intelligent agents without starting from zero. Each template comes with **predefined behaviors, toolkits, and best practices** designed for specific workflows–whether it's knowledge retrieval, data analysis, research, project management, or automation. You can customize templates to control how agents respond, what data they access, and which models they run on, giving you both **speed to deployment** and **fine-grained flexibility**.
To access the available Agent Templates, navigate to **Agents** within your Odin AI project. Within the Agents' section, you'll find the various pre-built Agent Templates and the option to use AI to design an agent based on what you need. These are the available templates:
The Knowledge Base Agent is a pre-built AI agent designed to help users retrieve information from your knowledge base. It prioritizes accuracy, transparency, and usability, making it a solid starting point for teams building internal support or informat
### Core Capabilities
* **Search-first workflow** – queries the knowledge base before generating responses
* **File operations** – supports:
* `Search` to find relevant information
* `Search Files` to locate documents by name
* `Read Lines` to extract surrounding context from a file
* **Answer Quality** – concise, sourced responses with enough detail to be useful
* **Fallback behavior** – clearly states when information is not available
* **Disambiguation** – prompts users for clarification when requests are ambiguous
### Use Cases
* Internal knowledge base assistants
* Document retrieval and summarization bots
* Templates for custom enterprise agents
### Why Use This Template?
* Provides a **tested framework** for knowledge retrieval agents
* Ensures **consistent answer quality** (accurate, sourced, transparent)
* Reduces build time by giving you a **ready-to-extend foundation**
The Data Analyst Agent is a pre-built AI agent designed for SQL-driven data exploration and visualization. It helps users write efficient queries, interpret results, and generate clear visual outputs to support decision-making.
### Core Capabilities
* **Schema-first workflow** – always examines database schema before query generation
* **SQL query generation** – writes efficient, well-structured queries tailored to user needs
* **Analytical reasoning** – explains methodology and approach behind each analysis
* **Visualization support** – creates relevant charts (Pie, Bar, Line) to illustrate insights
* **Iterative analysis** – suggests follow-up queries or deeper analysis when appropriate
* **Best practices** – follows standard guidelines for query design, data validation, and interpretation
### Tool Support
* `List Tables` – view all available tables
* `Database Schema` – inspect table structures and relationships
* `Database Query` – execute SQL queries and return results
* `Pie Chart`, `Bar Chart`, `Line Chart` – visualize query results
* `List Smart Tables` and `Describe Table` – work with Smart Tables for advanced analysis
### Use Cases
* Interactive SQL assistants
* Internal data exploration and reporting tools
* Dashboards and visualization-driven analytics agents
* Prototyping data analysis workflows with LLMs
### Why Use This Template?
* Provides a **ready-to-use framework** for SQL-based analysis
* Combines **querying + explanation + visualization** in one agent
* Ensures responses are transparent, validated, and user-friendly
* Reduces development effort by giving teams a **scaffolded analytics assistant**
The Research Assistant Agent is a pre-built AI agent designed for gathering, analyzing, and summarizing information from the web. It emphasizes accuracy, transparency, and timeliness, making it a strong foundation for research-driven use cases.
### Core Capabilities
* **Current information retrieval** – always searches for the most up-to-date data available
* **Cross-referencing** – compares multiple sources to validate accuracy
* **Source transparency** – provides citations and direct links to referenced material
* **Summarization** – distills complex or lengthy information into accessible insights
* **Critical analysis** – highlights potential biases or limitations in sources
* **Exploration support** – suggests related research directions for deeper inquiry
### Tool Support
* `Web Search` – query Google for relevant, up-to-date information
* `Get Content` – download and parse full page content for analysis
### Use Cases
* Market and industry research
* Competitive analysis
* Knowledge gathering for reports, briefs, or presentations
* Fact-checking and validation workflows
* Prototyping external research agents
### Why Use This Template?
* Provides a **ready-to-deploy framework** for web-based research assistants
* Ensures findings are **accurate, sourced, and easy to consume**
* Builds trust by including **citations and attribution**
* Reduces development overhead with a **pre-structured, extensible design**
The Project Manager Agent is a pre-built AI agent designed to help teams organize, track, and complete their work efficiently in Asana. It supports task management, progress tracking, and team coordination to improve productivity and streamline workflows.
### Core Capabilities
* **Project structure awareness** – understands workspaces, projects, and team organization
* **Task management** – creates clear, actionable tasks with owners, deadlines, and details
* **Progress tracking** – reviews task status and identifies bottlenecks
* **Team coordination** – facilitates communication and workload balancing across members
* **Process improvements** – suggests best practices for workflow optimization
* **Documentation** – keeps projects organized with updated task and project records
### Tool Support
* `Get Workspaces`/`Get Projects` – understand project structure
* `Get Tasks` – review current tasks and statuses
* `Create Task` – add new tasks with details, assignments, and deadlines
* `Update Task` – modify or track progress on existing tasks
* `Get Users` – identify team members and roles
* `Get User Tasks` – review individual workloads and responsibilities
### Use Cases
* AI-powered project management in Asana
* Automated task creation and progress updates
* Team workload visibility and balancing
* Workload optimization through best practices
* Extensible foundation for productivity-focused agents
### Why Use This Template?
* Provides a **ready-to-use framework** for building Asana-based project assistants
* Ensures **clear, organized, and actionable task management**
* Improves productivity through **progress tracking and bottleneck detection**
* Reduces time-to-value with a **tested, extensible foundation** for project management workflows
The Python Developer Agent is a pre-built AI agent designed to write, execute, and explain Python code for **data processing, analysis, and automation**. It helps users solve problems, create scripts, and analyze data while following best practices for code quality and reliability.
### Core Capabilities
* **Code generation** – writes clean, well-structured, and documented Python code
* **Testing & validation** – executes and verifies code before providing final solutions
* **Data analysis** – leverages common libraries such as `pandas`, `numpy`, and `matplotlib`
* **Error handling** – produces informative error messages and handles exceptions gracefully
* **Code explanation** – clearly describes logic, approach, and implementation details
* **Performance optimization** – balances efficiency with readability and maintainability
### Tool Support
* `Search Files` – locate files or documents for analysis
* `Upload File` – bring new files into the Python environment
* `Execute Code` – run Python scripts in a secure sandbox
* `List Files` – view available files for processing
* `Create Download URL` – generate links for downloading processed files
### Use Cases
* Data processing pipelines
* Exploratory data analysis
* Report generation and automation scripts
* File transformations and conversions
* Rapid prototyping or Python-based workflows
### Why Use This Template?
* Provides a **tested foundation** for Python-based automation and analysis agents
* Ensures solutions are **safe, efficient, and well-document**
* Combines **code execution + explanation** for clarity and trust
* Reduces setup time with a **pre-built environment for code and file handling**
The Business Intelligence Agent is a pre-built AI agent that combines **internal database analysis** with **external market research** to generate actionable business insights and strategic recommendations. It's designed to support decision-making by blending operational performance data with broader industry and competitive context.
### Core Capabilities
* **Business context awareness** – tailors analysis to objectives and strategic goals
* **Integrated analysis** – mergers internal performance metrics with external market data
* **Visualization & reporting** – produces clear, actionable charts, dashboards, and reports
* **Trend identification** – highlights patterns, opportunities, and risks across data sources
* **Strategic recommendations** – translates insights into business-focused actions
* **Market awareness** – factors in competitor landscape and industry dynamics
### Analysis Workflow
1. **Internal Data Analysis** – query databases to assess business performance
2. **Market Research** – gather external insights on trends, competitors, and conditions
3. **Data Processing** – integrate and analyze all sources using Python
4. **Strategic Insights** – synthesize findings into clear recommendations for stakeholders
### Tool Supports
#### Database Analysis
* `List Tables`/`Database Schema` – understand data structure
* `Database Query` – extract business metrics
* `Pie Chart`, `Bar Chart`, `Line Chart` – create quick visualizations
#### Market Intelligence
* `Web Search` – discover industry trends and competitor information
* `Get Content` – parse detailed market research sources
#### Advanced Analytics
* `Upload File` – import external datasets for analysis
* `Execute Code` – perform advanced modeling, statistical analysis, and visualization
* `Create Download URL` – deliver reports and dashboards
* `Search Files` – access historical reports and business documents
### Use Cases
* Executive dashboards and strategy reports
* Market trend and competitor analysis
* Revenue and performance forecasting
* M\&A and investment decision support
* Integrated BI + research workflows
### Why Use This Template?
* Provides a **complete BI workflow** (internal + external analysis in one agent)
* Ensures outputs are **strategic, data-driven, and actionable**
* Reduces development time with a **ready-to-extend foundation**
* Bridges the gap between **business performance tracking** and **market intelligence**
The Prospect Research Agent is a pre-built AI agent that conducts comprehensive company research and maintains detailed prospect records in your CRM. It blends web intelligence (site, pricing, news) with structured CRM checks to produce a standardized research report and keep records clean.
### Core Capabilities
* **CRM duplicate detection** – flexible name matching (`ILIKE`), prior to insert
* **Company profiling** – website/product scan, pricing intel, recent news
* **Signal harvesting** - growth indicators, tech stack, decision makers
* **Standardized report output** – consistent, actionable format every time
* **CRM write-backs** – insert/update prospect data with strict column quoting
* **Sales alignment** – value prop suggestions tied to your services
### Research Workflow
1. **CRM Check** – query CRM for existing records (use `ILIKE` to catch variants).
2. **Company Research** – find site > parse product/company info.
3. **Pricing Intelligence** – locate pricing page > extract/structure/tiers.
4. **News & Intelligence** – pull recent announcements, launches, funding.
5. **Research Report** – draft using a standard format.
6. **CRM Update** – insert or update prospect records; avoid duplicates.
### Tool Support
#### Web Research
* `Web Search` – discover website, pricing, news
* `Get Content` – fetch and parse target pages for details
#### CRM Management
* `Database Query` – check for existing records, insert/update data
* Always wrap column names in double quotes
* Use `ILIKE` for name matching
* Check for duplicates before insert
* If **no response** after `INSERT`, treat as success
### Key Focus Areas
* **AI Automation Opportunities** – manual/legacy workflows ripe for automation
* **Company Scale** – headcount, geography, ACV potential
* **Technology Stack** – current tools, platforms, integrations
* **Growth Indicators** – funding, hiring, expansions, launches
* **Decision Makers** – roles/titles relevant to your motion
### Use Cases
* Outbound prospecting & ABM research
* Pipeline hygiene (dedupe, enrichment, updates)
* SDR/AE pre-call briefs and talk-track prep
### Why Use This Template?
* Ships a **repeatable research flow** + CRM discipline out of the box
* Produces **actionable, standardized reports** aligned to your services
* Minimizes duplicate records and manual CRM cleanup
The Vendor Onboarding Agent is a pre-built AI agent that streamlines the onboarding of new vendors by extracting, validating, and organizing information from uploaded business documents. It provides complete vendor profiles, risk assessments, and database-ready outputs to support procurement workflows.
### Core Capabilities
* **Email drafting** – composes professional communications for vendor onboarding
* **Document analysis** – reviews uploaded forms, contracts, insurance certificates, and tax docs with exhaustive search methods
* **Information extraction** – captures financial, compliance, operational, and contact data
* **Data organization** – structures findings to align with vendor table schema and business requirements
* **Vendor profiling** – generates profiles with summaries, risk factors, and qualification assessments
### Workflows
1. **Document Intake** – begin systematic analysis immediately upon file upload
2. **Exhaustive Search** – scan across all uploaded docs for comprehensive detail
3. **Cross-Reference** – validate consistency across multiple documents
4. **Categorize Findings** – organize data into financial, compliance, operational, and contact sections
5. **Database Update** — populate or update vendor records in structured tables
6. **Vendor Summary** – deliver profile with highlights, risk indicators, and readiness assessment
### Key Focus Areas
* **Financial stability** – revenue, credit ratings, banking relationships
* **Compliance status** – certifications, insurance coverage, safety history
* **Operational capabilities** – services, equipment, geographic coverage
* **Contact \* org structure** – leadership, departments, key contacts
* **Risk factors** – red flags and qualification thresholds
### Tool Support
#### Document Analysis
* `Search` – scan vendor documents for specific details
* `Search Files` – locate and analyze specific document types
#### Vendor Intelligence
* `Web Search` – gather missing information (e.g., EIN lookup if absent in documents)
* `Get Content` – extract details from vendor's official website or filings
#### Database Management
* `Database Query` – check existing vendor records
* `Add Row` – create new vendor entries
* `Edit Row` – update existing vendor records (always using the `id` column)
* `List Smart Tables`/`Describe Table` – understand database schema and relationships
### Use Cases
* Vendor onboarding and due diligence
* Procurement compliance checks
* Supplier risk profiling
* Automated vendor database population
* EIN number verification and enrichment
### Why Use This Template?
* Ensures **comprehensive onboarding** with minimal manual input
* Produces **database-ready vendor records** aligned to business schema
* Increases accuracy by **cross-referencing multiple sources**
* Provides **actionable risk and qualification insights** for procurement teams
The Salesforce Lead Enrichment Agent is a pre-built AI agent that enhances **Salesforce lead data** with external research, turning incomplete records into **comprehensive, actionable profiles**. It combines CRM querying with web research to give sales teams intelligence that drives relevance and confidence in outreach. Its core mission is to transform basic lead records into **research-backed profiles** that reveal company context, growth signals, decision-makers, and engagement opportunities.
### Tool Support
* **Salesforce Operations**:
* `Search Objects`, `Query Records`, `Manage Records`, `Search All`
* **External Research**:
* `Web Search`, `Get Content`
### Workflow
1. Analyze existing CRM records to identify gaps
2. Research company websites, news, funding, tech adoption
3. Update CRM with enriched data and research notes
4. Provide **qualification score** and outreach recommendations
### Focus Areas
* Company intelligence (size, revenue, growth, decision makers)
* Market context (trends, competitors, challenges)
* Engagement opportunities (pain points, timing signals, case studies)
### Use Cases
* Enrich Salesforce leads with company size, tech stack, and key contacts
* Add market context: funding, expansions, product launches, and trends
* Score and qualify leads to prioritize outreach
* Provide tailored recommendations for sales messaging and timing
### Why Use This Template?
* Combines **CRM data + external research** in one workflow
* Ensures leads are **accurate, enriched, and sales-ready**
* Provides **actionable insights**, not just raw data
* Reduces manual research, enabling faster and more relevant outreach
The Agent Builder is a pre-built meta-agent that converts user intent into a working solution by planning, designing data structures, and creating the right operational agent(s) with appropriate toolkits. It runs a phased process–plan > discover > design schema > build agent > validate–and keeps an up-to-date todo plan throughout.
### Tool Support
* **Planning & Tracking** – \`Update Todos (merge=true)
* **Discovery** – `Search`, `Search Files`, `Read Lines`
* **Data Modeling (Smart Tables)** – `Describe Table`, `List Tables`, `Create Table`, `Add Column`, `Add Rows`
* **Agent Operations** – `Create Agent from Prompt`, `Update Agent`, `Get Toolkits`
* **Database Access for Agents** – Ensure the agent has `sql_database` toolkit enabled when Smart Tables are used (read/write)
### Use Cases
* Stand up a **KB chatbot** that writes to a Smart Table (tickets, feedback, vendor records)
* Build a **vendor/client onboarding flow** with document extraction + structured storage
* Create **analytics or workflow automations** that require schema design + agent orchestration
* Rapidly prototype **domain-specific assistants** with clear data flows and minimal viable schemas
### Why Use This Template?
* Provides a **repeatable, phased methodology** to go from intent to working agent(s).
* Enforces **good data design** (Smart Tables) and the correct **toolkit wiring** (e.g., `sql_database`).
* Reduces built time with **structured planning and discover/design/build/validate** loops.
* Produces **maintainable solutions** with synced todos, explicit assumptions, and minimal viable schemas.
Agent Templates in Odin AI give you a **head start**–they're structured enough to guide you toward best practices, but flexible enough to adapt to your exact workflow. By leveraging these templates, you can focus less on scaffolding and more on solving real business problems, whether that's retrieving knowledge, analyzing data, managing projects, or enriching records. Start with a template, extend it to fit your needs, and you'll have a reliable, intelligent agent up and running in less time–with the confidence that it's built on a solid foundation.
# Overview
Source: https://learn.getodin.ai/agents/agents
Get Started Setting Up AI Agents
## Introduction
What is the Agent Builder in Odin AI Platform?
The Agent Builder is an advanced, enterprise-grade feature in the Odin AI platform specifically designed to empower organizations to create, configure, and deploy intelligent autonomous agents. Unlike standard chatbots that are constrained to simple conversational exchanges based on pre-defined scripts or limited knowledge bases, an Agent within this ecosystem is a specialized digital entity. These agents are equipped with specific instructions (personality), persistent memory, and, crucially, "Toolkits" that grant them the ability to interact dynamically with the real world, enterprise systems, and data sources.
The platform operates as a robust bridge between state-of-the-art Large Language Models (LLMs) and your critical business data, software applications, and operational workflows. It significantly abstracts the technical complexity associated with prompt engineering, API integration, authentication management, and context window handling. This abstraction provides a streamlined, user-friendly interface where anyone—from technical developers to business analysts and domain experts—can construct powerful AI assistants tailored to specific business needs without writing extensive code.
The value proposition of the Agent Builder Platform lies in its ability to transform AI from a passive information retrieval tool into an active participant in business processes. By enabling agents to perform actions—such as querying databases, generating documents, sending emails, and executing code—organizations can automate complex, multi-step workflows that previously required human intervention. This shift from "chatting with AI" to "working with AI agents" represents a fundamental evolution in enterprise productivity and automation.
### Platform Architecture & Overview
The architecture is built on a modular, four-layer system designed for scalability, security, and flexibility:
* **Core Intelligence Layer:** This foundational layer is powered by the selected Large Language Model (e.g., GPT-5 Series, Claude 3.5 Sonnet, Gemini 3). It handles the heavy lifting of cognitive processing, including reasoning, language understanding, context synthesis, and decision-making logic. It is the "brain" that interprets user intent and formulates plans.
* **Tooling Layer (The "Arms and Legs"):** This operational layer connects the core intelligence to external systems and the physical world. It includes a comprehensive suite of native toolkits for executing code, browsing the web, querying databases, and manipulating files. It translates the LLM's intent into concrete API calls and system commands.
* **Integration Layer:** This connectivity layer enables seamless interaction with the enterprise software ecosystem. It features a vast library of pre-built, secure connectors for major third-party services like Salesforce, Microsoft 365, Jira, ServiceNow, and more. It manages API endpoints, data formats, and protocol negotiation.
* **Orchestration Layer:** This management layer oversees the entire lifecycle of an interaction. It manages the flow of data between the user, the agent, and the tools, handling critical functions such as authentication, error recovery, state management, and multi-agent delegation. It ensures that complex, multi-step tasks are executed reliably and securely.
### Key Capabilities
The Agent Builder Platform offers a distinct set of capabilities that differentiate it from standard AI interfaces:
* **Custom Personalities:** Administrators can define rigid behavioral constraints and persona definitions. An agent can be configured to strictly adhere to specific communication styles, such as a formal compliance officer, a creative marketing copywriter, or an empathetic customer support representative, ensuring brand consistency.
* **Retrieval Augmented Generation (RAG):** The platform natively integrates vector database technology to handle document ingestion and retrieval. Users can simply upload documents (PDFs, DOCX, TXT), and the agent automatically gains the ability to perform semantic searches and reference this specific knowledge base during conversations, grounding its answers in verified data.
* **Real-time Web Access:** Agents are not limited to the static training data of their underlying LLMs. They possess the capability to browse the live internet securely to fetch real-time stock prices, breaking news, competitor data, or regulatory updates, ensuring that their responses are always current and relevant.
* **Secure Code Execution:** For tasks requiring mathematical precision, data transformation, or algorithmic logic, agents can write and execute Python or Node.js code in secure, isolated sandboxes. This capability allows for on-the-fly generation of charts, complex analysis of Excel files, data cleaning, and simulation modeling.
* **Enterprise Integration:** The platform supports robust OAuth 2.0 authentication protocols for services like Microsoft 365 and Google Workspace. This means the agent acts on behalf of the user, respecting all existing permission structures, access controls, and security policies defined within the organization.
* **Visualizations:** The system includes an intelligent visualization engine that can automatically detect when data is best presented visually. It can render interactive charts (Bar, Pie, Line, Scatter) directly within the chat interface, transforming raw data tables into actionable visual insights instantly.
### Use Cases Across Industries
| Industry | Scenario |
| -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Finance | Agents that query SQL databases to generate daily P\&L reports, visualize market trends, and perform risk analysis on portfolio data. |
| HR | "Resume Screener" agents that read PDF applications, compare them against job descriptions in the Knowledge Base, draft rejection or interview emails, and schedule meetings. |
| Software Development | "PR Reviewer" agents that analyze GitHub pull requests, check for code style violations, suggest optimizations, and automatically generate documentation updates. |
| Sales | "Lead Enrichment" agents that take a prospect's email, search the web for their company details, look them up in Salesforce, identify decision-makers, and draft personalized outreach emails. |
| Customer Support | Tier-1 support agents that can reset passwords in Azure AD, check order status in Odoo ERP, troubleshoot common issues using knowledge base articles, and escalate complex tickets to Jira with full context. |
## Getting Started
### Creating a New Project
The fundamental unit of organization and collaboration in the Agent Builder is the Project. A project acts as a secure, isolated container for all resources related to a specific business function, team, or initiative. Within a project, you manage Agents (the AI assistants themselves), Knowledge Bases (files and documents specific to this workspace), Documents (text files created or managed by the agents), and Databases (connections to SQL or Smart Tables).
Creating a project establishes a dedicated workspace with its own settings, permissions, and resource quotas. This isolation is crucial for maintaining data security and organizing workflows, especially in large enterprises with multiple departments. To create a new project, simply click the "+" icon in the sidebar. You will be prompted to name your project (e.g., "HR Automation", "Q3 Financial Analysis"). Once created, you enter the project workspace where you can begin adding agents and resources.
### Agent Creation Methods
From the main dashboard, clicking "Create Agent" presents two primary pathways, catering to different user expertise levels:
**Create from Prompt (AI-Assisted)**
This is the fastest and most accessible way to get started, ideal for users who are new to prompt engineering or want to prototype quickly. You describe your intent in natural language. For example: "I need an assistant that can help me research competitor pricing on the web and save the data into a Google Sheet." The system analyzes your request using a specialized meta-prompt and automatically configures the agent. It selects an appropriate name (e.g., "Market Research Assistant"), writes a comprehensive system prompt defining the persona and objectives, and enables the necessary toolkits (Web Search, Google Sheets) required to fulfill the request.
**Create Custom Agent (Manual)**
For advanced users, prompt engineers, and developers, this option provides full granular control over every aspect of the agent's configuration. You manually configure the Name & Icon for branding, select the specific LLM version based on performance needs, manually toggle the specific integrations and toolkits required, and write the detailed system instruction from scratch to fine-tune behavior. This method is recommended for production-grade agents where precise control over behavior and capabilities is paramount.
### Agent Templates
To accelerate development and standardize best practices, the platform offers a rich library of pre-configured templates. These are "blueprints" for common use cases, coming with optimized pre-written prompts and pre-selected tool configurations.
* **Knowledge & Support:** Includes "Knowledge Base Agent" (pre-configured for RAG, ideal for policy QA) and "Customer Service Rep" (tuned for empathy, de-escalation, and support protocols).
* **Data & Analytics:** Includes "Data Analyst" (equipped with Python and Database tools for complex analysis) and "SQL Reporter" (specialized in writing accurate, optimized SQL queries).
* **Research:** Includes "Research Assistant" (configured with Web Search and academic sourcing rules) and "Market Analyst" (focuses on competitor data aggregation and trend analysis).
* **Project Management:** Includes "Agile Scrum Master" (integrated with Jira/Asana to manage sprints, standups, and backlog refinement).
* **Development:** Includes "Python Developer" (a coding assistant with file system access and debugging capabilities) and "QA Automation" (scripts tests and reports bugs).
* **Business Operations:** Includes "Vendor Onboarding" (guides users through compliance checklists) and "Financial Analyst" (connects to Excel and Yahoo Finance for market tracking).
### Dashboard Navigation Guide
Once inside a project, the interface is expertly designed for productivity, divided into three main areas:
* **Left Sidebar (Navigation):** Provides quick access to the core modules: Chat interface, Agent Settings configuration, Knowledge Base management, and Integrations setup. It serves as the primary navigation controller for the project.
* **Center Panel (Chat/Canvas):** The main interaction area where you converse with the agent, view its outputs, and visualize data. This is the "runtime" environment where the agent executes tasks and presents results.
* **Right Panel (Context/Settings):** Displays active tool configurations, file uploads, and specific parameters for the current session. It provides context-aware controls and information relevant to the current task or selected agent.
## Basic Agent Configuration
### Agent Identity Setup
The "General Settings" tab is the control center for your agent's identity and cognitive architecture. Correctly configuring these settings is crucial for user adoption and performance.
* **Agent Name:** A user-facing identifier. Best practice is to use clear, descriptive names like "IT Helpdesk Bot" or "Sales Assistant" rather than generic names like "Bot 1 ". The name helps users understand the agent's specific function.
* **Personality Prompt:** Instructions that define the agent's behavior, tone, role, and operational guidelines. It governs how the agent responds and interacts during conversations, shaping its communication style, constraints, and overall conduct.
### Model Selection Strategy
The platform supports a multi-model architecture, allowing you to choose the optimal brain for your agent. Choosing the right model involves balancing intelligence capabilities, reasoning speed, and operational cost.
| Model Family | Specific Models | Best For Certain Tasks | Key Features |
| ------------------- | --------------------------------------------------- | ---------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
| OpenAI GPT-5 Series | GPT-5.2 Codex, GPT-5.1 Codex Max, GPT-5 (Thinking) | State-of-the-art reasoning, advanced coding tasks, complex multi-step problem solving. | Leading performance across benchmarks as of Feb 2026. Superior instruction following. |
| Anthropic Claude 4 | Claude Opus 4.6, Claude Opus 4.5, Claude 4.5 Sonnet | Superior coding (80.9% on SWE-bench), creative writing, massive context windows. | Strict instruction following, nuanced writing style, minimal hallucinations. |
| Google Gemini 3 | Gemini 3 Pro, Gemini 2.5 Pro | Advanced multimodal understanding (images/video/audio), extremely large context windows. | 2M+ tokens context, real-time analysis, strong coding performance. |
| OpenAI Reasoning | o3, o3-pro, o4-mini | Complex logical reasoning, advanced mathematics, scientific problem-solving. | Extended "thinking time" produces superior results for logic puzzles and math. |
| DeepSeek | DeepSeek-R1 , DeepSeek-V3.2, DeepSeek-V3 | Cost-efficient reasoning, general-purpose AI with superior coding. | R1 matches o1 -level performance; V3 is highly cost-effective for general tasks. |
| Cost-Optimized | GPT-4.1 mini, Claude Haiku, Gemini Flash, o4-mini | High-speed tasks, classification, summarization, high-throughput applications. | Lowest cost per token, fastest response times, ideal for simple tasks. |
### Personality Prompts
The System Instruction (or Personality Prompt) is the most powerful configuration lever available. It defines the "soul" of the agent, governing its tone, behavior, and decision-making framework. A well-crafted prompt ensures reliability and consistency.
* **Role Definition:** Clearly state who the agent is. Example: "You are an expert Senior Python Developer."
* **Task Definition:** Define the primary objective. Example: "Your goal is to review code snippets and suggest performance optimizations."
* **Constraint Setting:** Set boundaries on behavior. Example: "Do not explain basic concepts. Focus only on advanced patterns."
* **Format Specification:** Define how the output should look. Example: "Output your response in Markdown with code blocks."
* **Tooling Guidance:** Instruct on tool usage. Example: "Always verify your code by running it in the sandbox before responding."
### Response Configuration Options
These settings control the technical format and creativity of the agent's output:
* **Response Format:**
* **Text (Default):** Standard conversational output.
* **JSON Object:** Forces the agent to output a valid JSON structure. Essential for programmatic integrations where the agent's output is fed into another system.
## Advanced Agent Features
Beyond the basic configuration, Odin AI provides several advanced features to enhance agent capabilities, manage workflows, and optimize performance. These features give you fine-grained control over agent behavior and integration capabilities.
### Custom tools
The Tools section allows you to extend your agent's capabilities beyond built-in toolkits by adding custom actions and workflows. This feature is essential for integrating proprietary APIs, custom business logic, or specialized operations unique to your organization.
**Key Features:**
* **Add Your First Action:** Select an action previously created to reuse existing functionality and integrate it into a workflow efficiently.
* **Create New Action:** Build new tools from scratch or define custom actions with full control over parameters, inputs, outputs, and authentication. Optionally, enable an approval workflow for sensitive operations, adding an extra layer of security and governance.
**Use Cases:**
* **Internal API Integration:** Connect to proprietary company APIs not available in standard toolkits.
* **Custom Business Logic:** Implement specialized calculations, validations, or workflows specific to your business.
* **Third-Party Services:** Integrate with niche services or legacy systems through custom API calls.
* **Data Transformation:** Create tools for specific data processing or transformation tasks.
### MCP Servers (Model Context Protocol)
Model Context Protocol (MCP) Servers provide your agent with access to external tools and data sources through pre-configured server connections. MCP standardizes how AI agents communicate with external systems, enabling seamless integration with a wide ecosystem of services.
**Quick Add Popular Servers:**
* **Sentry:** Monitor errors and performance issues in your applications directly from agent interactions. Agents can query error logs, track performance metrics, and help diagnose issues.
* **Pre-configured Settings:** Popular servers come with optimized default configurations, making integration as simple as clicking "Add".
**Advanced Configuration:**
* **Custom MCP Servers:** Add custom MCP servers or modify existing configurations to fit specific requirements.
* **MCP Toolkit Configuration:** Configure Model Context Protocol (MCP) servers for enhanced agent capabilities.
* **Server Management:** Monitor server status, manage connections, and troubleshoot integration issues.
* **Multiple Protocols:** Servers can be configured with different transport methods (HTTP, SSE) and authentication options.
**Benefits:**
* **Access to external tools and APIs through standardized protocol**
* **Enhanced agent capabilities with monitoring and observability tools**
* **Simplified integration with popular developer services**
* **Custom server support for proprietary systems**
### Agent Memory
Agent Memory allows your agent to remember user preferences, past interactions, and contextual information across conversations. This feature creates a more personalized experience by enabling the agent to recall important details and maintain continuity in long-term interactions.
**Memory Management Features:**
* **Automatic Detection:** The agent automatically identifies and stores important information from conversations, such as user preferences.
* **Approval Workflow:** New memories require approval before being stored permanently, giving users control over what information is retained. **User-Specific:** Memories are isolated per user, ensuring privacy and personalized experiences for each individual.
* **Management Tools:** View, edit, approve, reject, and delete memories through an intuitive interface.
* **Filtering:** Sort memories by user, view all at once.
* **Real-time Updates:** Approved memories immediately enhance agent responses.
**Use Cases:**
* **Personal Assistants:** Remember user preferences, schedules, and frequently used settings.
* **Customer Support:** Recall past issues, solutions, and customer-specific information.
* **Sales Agents:** Remember client preferences, purchase history, and communication styles.
* **Project Management:** Maintain context about ongoing projects, team members, and priorities.
### Prompt Library
The Prompt Library enables you to create and manage custom prompt templates for your agent. This feature allows users to select from predefined prompts in a dropdown within the message input, streamlining common interactions and ensuring consistency in agent behavior.
**Prompt Library Features:**
* **Quick Access:** Users can select prompts from a dropdown in the message input for rapid task initiation.
* **Customizable:** Create, edit, and delete prompts as needed for different workflows and use cases.
* **Agent-Specific:** Each agent can have its own unique prompt library tailored to its role and capabilities.
* **Easy Management:** Drag to reorder, edit inline, or delete with one click.
**Example Prompts:**
* "Analyze the attached file and summarize key findings"
* "Generate a weekly status report for the current project"
* "Search the knowledge base for information about \[topic]"
* "Create a task in Jira for the bug described below"
**Benefits:**
* Reduces typing and ensures consistent query formatting
* Helps users discover agent capabilities through suggested prompts
* Improves agent response quality by using optimized prompt structures
* Accelerates common workflows and repetitive tasks
### Prompt Settings
Prompt Settings provide AI-powered enhancements to improve user prompts and provide intelligent suggestions during conversations. These features help users get better results by automatically optimizing their queries and offering contextual guidance.
**Improve Prompts:**
* **Automatic Enhancement:** When enabled, the system can analyzes user prompts on chat and enhance them with better clarity and detail before sending to the agent.
* **Optimization:** Adds context, clarifies ambiguous terms, and structures queries for better agent comprehension.
* **Transparency:** Users can see how their prompts are improved, learning better prompt engineering over time.
**Prompt Suggestions:**
* **Intelligent Recommendations:** Provides users with smart prompt suggestions during conversations based on context and agent capabilities.
* **Contextual:** Suggestions adapt based on the current conversation topic and recent interactions.
* **Discoverable:** Helps users learn what the agent can do by showing relevant suggestions at appropriate moments.
**Benefits:**
* Improved response quality through better-structured prompts
* Reduced user frustration by guiding them toward effective queries
* Educational tool for learning prompt engineering best practices
* Enhanced agent performance by ensuring clear, well-formed inputs
### Structured Outputs
Structured Outputs allow you to define specific output schemas that your agent must follow when responding. This feature ensures consistent, parseable responses that can be easily integrated with other systems, databases, or workflows.
**Key Features:**
* **Schema Definition:** Create custom JSON schemas that define the exact structure of agent outputs.
* **Type Safety:** Ensure responses conform to specific data types (strings, numbers, booleans, arrays, objects).
* **Required Fields:** Specify which fields must always be present in the output.
* **Validation:** Automatic validation ensures outputs match the defined schema before being returned.
* **Multiple Schemas:** Create different output schemas for different agent tasks or workflows.
**Use Cases:**
* **API Integration:** Generate responses that can be directly consumed by external APIs or microservices.
* **Database Operations:** Ensure agent outputs are formatted correctly for database insertion.
* **Form Filling:** Structure data extraction from documents into predefined form fields.
* **Reporting:** Generate consistent report structures that can be automatically processed.
* **Data Pipelines:** Feed agent outputs into downstream data processing systems.
**Example Schema:**
```json theme={null}
{
"type": "object",
"properties": {
"customer_name": { "type": "string" },
"email": { "type": "string", "format": "email" },
"sentiment": { "type": "string", "enum": ["positive", "neutral", "negative"] },
"priority": { "type": "integer", "minimum": 1, "maximum": 5 },
"tags": { "type": "array", "items": { "type": "string" } }
},
"required": ["customer_name", "email", "sentiment"]
}
```
### Version History
Version History provides a complete audit trail of all changes made to your agent's configuration. This feature enables you to track modifications, revert to previous versions, and maintain compliance with change management policies.
**Features:**
* **Complete History:** View all configuration changes with timestamps and user attribution.
* **Version Comparison:** Compare different versions to see exactly what changed.
* **Rollback Capability:** Quickly revert to a previous working configuration if issues arise.
* **User Attribution:** Track who made each change for accountability and compliance.
**Use Cases:**
* **Troubleshooting:** Identify when issues were introduced by comparing version changes.
* **Compliance:** Maintain audit trails for regulatory requirements.
* **Collaboration:** Track changes made by team members in shared agent development.
* **Experimentation:** Safely test configuration changes knowing you can roll back if needed.
* **Documentation:** Maintain a history of agent evolution and configuration decisions.
# Best Practices and Tips
Source: https://learn.getodin.ai/agents/best-practices
Best practices for implementation and orchestration of agents on the Odin AI platform
# 1. Best Practices for Implementation & Orchestration
Successfully deploying agents on the Odin AI platform requires strategic planning and adherence to orchestration best practices.
## Strategic Planning
### Identifying High-Value Use Cases
Leverage the platform's capabilities by targeting industries where Odin AI agents excel:
* Finance: SQL-querying agents for P\&L reports and risk analysis.
* HR: Resume Screener agents that analyze PDFs and draft emails.
* Software Development: PR Reviewer agents for code analysis and documentation.
* Sales: Lead Enrichment agents integrating Web Search and Salesforce.
* Customer Support: Tier-1 support agents with ERP and Knowledge Base access.
### Defining Agent Scope
| Scope | Description | Odin AI Configuration |
| -------------------- | ------------------------------------------------ | --------------------------------------------------------------- |
| Single-Purpose | Handles specific workflow (e.g., Password Reset) | Focused Personality Prompt, Single Toolkit |
| Department-Wide | Covers team tasks (e.g., HR Generalist) | Multiple Knowledge Collections, Workflow Manager |
| Enterprise Assistant | Delegates to specialized agents | Utilizes Agent Communication Toolkit for multi-agent delegation |
## Agent Design Patterns
**Pattern 1: Single Specialist**
A dedicated agent equipped with deep domain knowledge and specific tools. For example, a "Data Analyst" agent configured with the Database Toolkit and Python Code Execution Toolkit.
**Pattern 2: Multi-Agent Systems**
Use the Agent Communication Toolkit to create a system where a "Manager Agent" breaks down complex requests and delegates tasks to specialized "Worker Agents." This ensures separation of concerns and higher accuracy for complex workflows.
## Knowledge Base Strategy
The Knowledge Base Toolkit powers Retrieval Augmented Generation (RAG). To optimize performance:
* Chunking: The platform handles chunking, but ensuring clear document structure improves retrieval.
* Versioning: Remove outdated documents to prevent conflicting answers.
## Prompt Engineering (Personality Prompts)
The Personality Prompt (also called System Instruction) in the General Settings tab is the most powerful configuration lever available in the Odin AI platform. This single text field governs your agent's identity, behavior, decision-making framework, and interaction style. Unlike the field name suggests, it should contain comprehensive instructions—not just personality traits.
### Why Personality Prompts Matter
A well-crafted Personality Prompt is the difference between an unreliable chatbot and a trusted enterprise assistant. It:
* ✅ Defines the agent's expertise domain and scope of responsibility
* ✅ Establishes behavioral guardrails to prevent hallucinations or inappropriate responses
* ✅ Instructs the agent on when and how to use tools (Database, Web Search, etc.)
* ✅ Specifies response formatting for consistency across conversations
* ✅ Sets escalation triggers for scenarios requiring human intervention
⚠ Common Mistake
Many users write only 1-2 sentences like "You are a helpful assistant." This is insufficient for enterprise agents. A production-grade Personality Prompt should be 200-500 words with clear sections covering role, constraints, tool usage, and output format.
### Anatomy of a Robust Personality Prompt
Structure your Personality Prompt with these essential components:
| Component | Purpose | Example |
| ------------------------- | ------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 1. Role Definition | Establishes expertise and authority | "You are an expert Senior Python Developer with 10 years of experience in backend systems and API design." |
| 2. Primary Mission | Defines the core task/goal | "Your primary responsibility is to review code snippets submitted by junior developers and suggest performance optimizations, security improvements, and best practices." |
| 3. User Context | Describes who the agent serves | "Your users are junior engineers (1-3 years experience) learning Python. Assume they understand basic syntax but may need guidance on advanced patterns." |
| 4. Behavioral Constraints | Sets boundaries and guardrails | "Do NOT write code from scratch. Only review submitted code. If a request is unrelated to Python development, politely decline and suggest contacting the appropriate team." |
| 5. Tool Usage Rules | Instructs when/how to use toolkits | "Always use the Python Code Execution Toolkit to verify your suggestions before responding. If you cannot test the code, explicitly state: 'This recommendation is untested.'" |
| 6. Output Format | Ensures consistent response structure | "Format all responses using Markdown with: 1) Summary of issue, 2) Specific recommendations in bullet points, 3) Code example in code blocks, 4) Explanation of why the change improves performance/security." |
| 7. Escalation Triggers | Defines when to involve humans | "If the code involves database migrations, financial calculations, or security authentication, respond: 'This requires senior engineering review. Please escalate to the Architecture team.'" |
| 8. Tone & Style | Sets communication approach | "Be encouraging and educational. Avoid condescending language. Celebrate good practices when you see them. Keep responses under 200 words unless a deep technical explanation is required." |
### Complete Personality Prompt Example: IT Support Agent
```text theme={null}
ROLE & EXPERTISE: You are an IT Support Specialist for Acme Corporation with expertise in password resets, account provisioning, and basic troubleshooting for Microsoft 365 and Azure Active Directory.
PRIMARY MISSION: Your goal is to resolve Tier-1 support requests quickly and accurately, specifically: - Password resets and account unlocks - New user account provisioning - Software license assignment (Microsoft Office, Adobe Creative Cloud) - Basic connectivity troubleshooting
USER CONTEXT: Your users are Acme employees (both technical and non-technical) experiencing login or access issues. They may be frustrated and need clear, patient guidance.
BEHAVIORAL RULES YOU MUST FOLLOW:
✅ Always ask for Employee ID before taking any action
✅ Verify identity by checking the email domain matches @acme.com
✅ Never reset passwords without user verification
✅ If the issue is NOT in your scope (hardware, network outages, server issues), politely say: "This requires escalation to Tier-2 IT. I'll create a ticket for you."
❌ Do NOT make assumptions about user permissions
❌ Do NOT share information about other users' accounts
TOOL USAGE INSTRUCTIONS:
1. Use the Azure Active Directory Toolkit to: - Look up user accounts (search by Employee ID) - Reset passwords (only after verification) - Check license assignments
2. Use the Knowledge Base Toolkit to search for: - Password policy requirements - Step-by-step troubleshooting guides - Common error messages and their solutions
3. Use the Document Manager Toolkit to: - Generate password reset confirmation emails - Create handoff notes when escalating to Tier-2
RESPONSE FORMAT: Structure every response as:
1. Acknowledgement: "I can help you with that."
2. Information Gathering: Ask for missing details (Employee ID, error message, etc.)
3. Action: Describe what you're doing ("Looking up your account now...")
4. Resolution: Provide clear next steps or confirmation
5. Follow-up: "Is there anything else I can help with today?" Keep responses under 100 words unless providing detailed troubleshooting steps.
ESCALATION TRIGGERS: Escalate immediately if:
- User reports suspicious account activity (potential security breach)
- Issue involves VPN, firewall, or network infrastructure
- Request requires admin-level permissions beyond Tier-1
- User is unable to verify their identity
TONE: Be patient, professional, and empathetic. Remember that users may be stressed about being locked out. Use simple language and avoid IT jargon.
```
### Best Practice: Iterative Refinement
No Personality Prompt is perfect on Day 1. After deployment:
1. Review conversation logs in the Chat interface
2. Identify where the agent failed or gave incorrect responses
3. Update the Personality Prompt to address those specific scenarios
4. Use Version History to track changes and rollback if needed
5. Repeat monthly for continuous improvement
## Advanced Prompt Engineering Techniques
### Few-Shot Examples (In-Context Learning)
Include 2-3 example interactions directly in your Personality Prompt to demonstrate desired behavior:
```text theme={null}
Example 1: User: "I forgot my password" Agent: "I can help with that. May I have your Employee ID to look up your account?"
Example 2: User: "The server is down" Agent: "Server infrastructure is handled by our Network Operations team. This requires escalation. I'll create a Tier-2 ticket for you with priority: HIGH. Can you describe what you're trying to access?"
```
### Negative Constraints (What NOT to Do)
Explicitly list prohibited behaviors to reduce hallucinations and errors:
* ❌ "Never invent employee information if a user is not found. Say: 'I cannot locate that Employee ID. Please verify and try again.'"
* ❌ "Never provide password reset instructions for accounts you cannot verify."
* ❌ "Never assume permissions. If uncertain, escalate."
### Chain-of-Thought Reasoning
Instruct the agent to explain its reasoning process for transparency:
```text theme={null}
Before taking any action, explain your reasoning step-by-step:
1. What information do I have?
2. What am I being asked to do?
3. Do I have the tools and permissions to do this?
4. What are the potential risks?
5. What is the correct next step?
```
### Conditional Logic for Multi-Scenario Handling
Use IF-THEN structures to handle different request types:
```text theme={null}
IF the user asks about password reset: → Ask for Employee ID → Use Azure AD Toolkit to verify identity → Reset password → Send confirmation
IF the user asks about software installation: → Check if software is in approved list (Knowledge Base) → If YES: Provide download link and instructions → If NO: Explain approval process and create request ticket
IF the request is unclear: → Ask 2-3 clarifying questions before taking action
```
## Testing Your Personality Prompt
Use the Chat interface to test these scenarios before deployment:
| Test Scenario | Expected Behavior | Validates |
| -------------------- | ---------------------------------------------------------------- | --------------------------- |
| Happy Path | User provides all needed info; agent completes task successfully | Core functionality works |
| Missing Information | Agent asks clarifying questions instead of assuming | Information gathering logic |
| Out-of-Scope Request | Agent politely declines and explains why | Boundary enforcement |
| Ambiguous Query | Agent asks for clarification before acting | Safety guardrails |
| Tool Failure | Agent explains the issue and suggests alternatives | Error handling |
| Escalation Trigger | Agent correctly identifies need for human intervention | Escalation logic |
💡 Platform Tip: Use Prompt Settings
Enable Prompt Settings > Improve Prompts to let Odin AI automatically enhance user queries before they reach your agent. This feature adds clarity and context, improving your agent's comprehension even if users submit vague requests.
## Tool & Toolkit Orchestration
Select the appropriate Odin AI Toolkits to extend agent capabilities:
* Knowledge Base Toolkit: RAG-powered retrieval from proprietary docs.
* Web Search Toolkit: Real-time information access.
* Database Toolkit: Query SQL databases and Smart Tables.
* Python/Node.js Toolkits: Secure code execution sandboxes.
* Document Manager Toolkit: Create and edit documents in chat.
* Smart Table Manager Toolkit: NoSQL-style internal data management.
* Agent Communication Toolkit: Delegate tasks to other agents.
* Workflow Manager Toolkit: Execute deterministic automation workflows.
* Image Generation Toolkit: Create images using DALL-E 3.
## Testing & Iteration Workflow
Use the Center Panel Chat/Canvas for iterative testing.
Test Scenario Checklist
1. Happy Path: Standard query with all context.
2. Missing Info: Does the agent ask clarifying questions?
3. Tool Triggers: Verify specific toolkits activate correctly.
4. Edge Cases: Ambiguous or out-of-scope requests.
5. Latency: Check performance on complex tool chains.
## Governance & Compliance
Adhere to Odin AI security best practices:
* Principle of Least Privilege: Grant agents only minimum required tools.
* Human-in-the-Loop: Configure approval workflows for high-risk actions (e.g., bulk emails, DB writes).
* Data Access Controls: Use role-based access and PII masking.
* Audit Logging: Enable logging for all actions for compliance.
* Prompt Injection Protection: Validate inputs to prevent malicious overrides.
### What Goes in the Personality Prompt?
Every production agent should have these elements clearly defined:
* Role & Expertise: Who is this agent? What domain knowledge does it possess?
* Mission Statement: What is the agent's primary goal? What problems does it solve?
* User Audience: Who will interact with this agent? What's their technical level?
* Scope & Boundaries: What CAN the agent help with? What is explicitly OUT OF SCOPE?
* Behavioral Rules: Must-do and must-not-do behaviors
* Tool Usage Guidelines: When and how to use Database, Web Search, Python, etc.
* Response Structure: How should answers be formatted?
* Escalation Criteria: When to defer to a human or specialized agent
* Tone & Style: Formal? Friendly? Technical? Empathetic?
### Real-World Example: Sales Lead Enrichment Agent
```text theme={null}
=== ROLE & EXPERTISE ===
You are a Sales Intelligence Agent for Acme Software Inc., specializing in B2B lead enrichment and qualification for enterprise SaaS products.
=== PRIMARY MISSION ===
Your goal is to transform basic prospect information (name, email, company) into comprehensive lead profiles that help account executives prioritize outreach. You accomplish this by:
- Researching company details (size, industry, revenue)
- Identifying decision-makers and org structure
- Analyzing tech stack and potential fit
- Scoring lead quality (A/B/C tier)
- Drafting personalized outreach templates
=== USER CONTEXT ===
Your users are Sales Development Representatives (SDRs) and Account Executives (AEs) who need enriched lead data quickly. They value accuracy over speed. A 5-minute research task that yields high-quality data is better than a 30-second task with missing information.
=== SCOPE & BOUNDARIES ===
✅ IN SCOPE:
- Company research (industry, size, revenue, tech stack)
- Org chart identification (CTO, VP Engineering, etc.)
- Competitive landscape analysis
- Lead scoring and qualification
- Email template drafting
❌ OUT OF SCOPE:
- Direct outreach (you don't send emails yourself)
- Contract negotiation or pricing discussions
- Technical product demos
- Customer support issues
=== BEHAVIORAL RULES ===
- ALWAYS verify company domain before researching (avoid researching competitors or non-targets)
- NEVER fabricate data. If information is not found, explicitly state: "Unable to verify [data point]. Recommend manual research."
- ALWAYS cite sources when providing data (e.g., "According to LinkedIn Company Page..." or "Based on Crunchbase data...")
- NEVER include personal opinions about companies or individuals
- ALWAYS flag potential compliance issues (e.g., GDPR concerns for EU prospects)
=== TOOL USAGE INSTRUCTIONS ===
- Web Search Toolkit: Primary research tool
- Search company website for About page, Leadership page
- Look for recent news, funding announcements, job postings
- Check LinkedIn for employee count and decision-makers
- Salesforce CRM Toolkit:
- Check if company already exists in CRM
- Verify no active deal or recent outreach
- Log enriched data back to lead record
- Database Toolkit: Query internal "tech_stack_intelligence" table
- Check if prospect uses complementary or competing products
- Identify integration opportunities
- Document Manager Toolkit:
- Generate enriched lead profile document
- Create personalized email template
=== RESPONSE STRUCTURE ===
For every lead enrichment request, output:
**Company Overview**
- Name, Industry, Size (employees), Revenue (if available)
- Headquarters location, Founded year
- Brief description (1-2 sentences)
**Decision Makers Identified**
- Name, Title, LinkedIn URL
- Estimated seniority and influence
**Tech Stack Intelligence**
- Current tools they use (if found)
- Potential integration opportunities
- Competitive products they may be evaluating
**Lead Score: A / B / C**
- A: Enterprise (500+ employees), High budget, Strong fit
- B: Mid-market (100-500 employees), Moderate fit
- C: SMB (<100 employees) or weak product-market fit
**Recommended Next Steps**
- Suggested outreach approach
- Key talking points based on research
**Draft Email Template**
[Personalized based on company and decision-maker research]
=== ESCALATION TRIGGERS ===
Escalate to Account Executive if:
- Company is Fortune 500 (requires senior AE involvement)
- Existing customer relationship found (check with Customer Success)
- Legal/compliance flags (e.g., company in sanctioned country)
- Multiple active deals in CRM (avoid duplicate outreach)
=== TONE & STYLE ===
Professional and data-driven. You are a research assistant, not a salesperson. Focus on facts, not hype. Be concise but thorough—SDRs value completeness over brevity.
```
### Personality Prompt Do's and Don'ts
| ✅ DO | ❌ DON'T |
| --------------------------------------------------- | ----------------------------------------------- |
| Be explicit about what the agent CAN and CANNOT do | Assume the agent will "figure it out" |
| Include 2-3 concrete examples of desired behavior | Use vague instructions like "be helpful" |
| Specify exact tool usage patterns | Rely on the agent to know when to use tools |
| Define response format with numbered sections | Let the agent choose its own output structure |
| Set word count or length guidelines | Accept verbose or inconsistent response lengths |
| Use headings and structure within the prompt itself | Write one long paragraph without organization |
| Test with edge cases before deployment | Deploy and hope for the best |
| Version control via History tab and iterate monthly | Set it once and never update |
💡 Pro Tip: Prompt Templates by Use Case
Odin AI's Agent Templates (Knowledge Base Agent, Data Analyst, Customer Service Rep) come with pre-written Personality Prompts optimized for those roles. Start from a template, then customize the Personality Prompt for your specific business context. This saves 50-70% of initial configuration time.
## Testing & Troubleshooting
### Common Issues & Solutions
| Issue | Symptom | Solution |
| --------------------- | ------------------------------ | ------------------------------------------------------------------------------------ |
| Agent not using tools | Responds "I don't have access" | Check tool is enabled, description is clear, and Prompt explicitly encourages usage. |
| Hallucinating data | Invents information | Instruct agent in Personality Prompt to say "I don't know" when info is missing. |
| Slow responses | Queries >10 seconds | Check context window size, optimize Knowledge Base, use parallel execution. |
| Tool auth failure | Unauthorized error | Verify credentials in Integrations settings, check token expiry and scopes. |
## Production Readiness Checklist
Ensure your agent is ready for deployment using the Odin AI verification framework.
* ✅ Configuration Verification: Prompts are structured, correct Model selected.
* ✅ Security Verification: Least privilege applied, approval workflows set for high-risk actions.
* ✅ Testing Verification: Happy path, edge cases, and tool triggers tested in Chat.
* ✅ Documentation: User guides and troubleshooting steps prepared.
# 6. Performance Optimization
Continuous improvement strategies to maintain agent effectiveness:
* System Prompt Engineering: Continuously refine Personality Prompts based on user interaction logs.
* Knowledge Base Optimization: Regularly audit KB documents; optimize file sizes and naming conventions.
* Context & Token Management: Balance response quality with cost by managing context window usage.
* Tool Usage: Minimize unnecessary calls; leverage parallel execution where possible.
# Asana
Source: https://learn.getodin.ai/agents/external-integrations/asana
Project and task management
## Configuration
* **Authentication**: OAuth
* **Default Workspace**: Optional configuration
* **Access**: Full read/write access to tasks, projects, and workspaces
## Available Tools (8/8)
* **Get Projects**: List all projects in the workspace.
* **Get Workspaces**: List all workspaces accessible to users.
* **Get Custom Fields**: Retrieve custom fields defined in workspace or project.
* **Get Users**: List all users in the workspace.
* **Get Tasks**: Query tasks by project, assignee, or due date.
* **Get User Tasks**: Retrieve tasks assigned to specific user.
* **Create Task**: Create tasks with name, assignee, due date, and description.
* **Update Task**: Modify task properties including status and assignee.
## Use Cases
* **Task Management**: Automatically create tasks from emails or customer requests.
* **Project Tracking**: Monitor project progress and send status updates.
* **Automated Task Creation**: Generate recurring tasks for workflows.
* **Status Reporting**: Query task completion rates and generate reports.
* **Sprint Planning**: Create and organize tasks for development sprints.
## Rate Limits
Monitor HTTP 429 responses and implement retry-after delays. Use pagination for large result sets (default: 100 items per page).
## Common Issues & Solutions
* **Task Not Found**: Verify task GID is correct and user has access to the task's project.
* **Permission Denied**: Ensure user has appropriate project access level (commenter, editor, admin).
* **Custom Field Errors**: Verify custom field type matches value being set (number, text, enum).
* **Rate Limit**: Implement exponential backoff and respect Retry-After header in 429 responses.
# Azure Active Directory
Source: https://learn.getodin.ai/agents/external-integrations/azure-active-directory
User provisioning and directory management
## Authentication & Setup
Azure Active Directory (Azure AD) integration uses Microsoft Graph API with OAuth 2.0 authentication via Azure AD App Registration. Requires Application (admin-level) permissions rather than Delegated permissions for automated user management. Organizations must create an Azure AD application in Azure Portal with appropriate permissions and admin consent. Supports Azure AD (Entra ID) for user provisioning, license management, group administration, and security operations.
## Required Application Permissions
* **User.ReadWrite.All**: Create, read, update, and delete user accounts.
* **User.Read.All**: Read-only access to user profiles.
* **Group.ReadWrite.All**: Manage group memberships and properties.
* **Directory.ReadWrite.All**: Full directory access for advanced operations.
* **UserAuthenticationMethod.ReadWrite.All**: Manage MFA and auth methods.
## Available Operations
With all required permissions configured, the toolkit enables the following operations:
### User Management
* **Get User**: Retrieve user profile including email, name, department, job title, manager.
* **List Users**: Query all users with filtering by department, location, or custom attributes.
* **Create User**: Provision new user accounts with UPN, display name, password, and licenses.
* **Update User**: Modify user properties including department, phone, title, office location.
* **Delete User**: Remove user accounts (soft delete; recoverable for 30 days).
* **Restore User**: Recover soft-deleted users from the recycle bin.
* **Get User Photo**: Retrieve user profile photos.
* **Set User Photo**: Upload profile photos for users.
### Password Management
* **Reset Password**: Force password reset and send temporary password.
* **Force Password Change**: Require password change at next sign-in.
* **Set Password**: Set specific password for user account.
* **Get Password Policies**: Retrieve password complexity and expiration settings.
### Account Control
* **Disable Account**: Block user sign-in without deleting account.
* **Enable Account**: Re-enable disabled user accounts.
* **Revoke Sessions**: Force sign-out from all active sessions and refresh tokens.
* **Block Sign-In**: Prevent specific users from accessing resources.
### License Management
* **Assign License**: Allocate Office 365, Microsoft 365, or Azure licenses to users.
* **Remove License**: Deallocate licenses from users.
* **Get User Licenses**: View all licenses assigned to users.
* **List Available Licenses**: Query organization's license pool and availability.
* **Batch License Assignment**: Assign licenses to multiple users simultaneously.
### Group Operations
* **Create Group**: Create security groups, Microsoft 365 groups, or distribution lists.
* **Get Group**: Retrieve group details including members and owners.
* **List Groups**: Query all groups with filtering.
* **Update Group**: Modify group properties.
* **Delete Group**: Remove groups from directory.
* **Add User to Group**: Grant group membership to users.
* **Remove User from Group**: Revoke group membership.
* **List Group Members**: Get all users in a group.
* **List Group Owners**: View group administrators.
### Directory Roles
* **Assign Role**: Grant administrative roles (Global Admin, User Admin, etc.).
* **Remove Role**: Revoke administrative privileges.
* **Get User Roles**: View all roles assigned to users.
* **List Available Roles**: Query directory role templates.
### Manager Relationships
* **Get Manager**: Retrieve user's direct manager.
* **Set Manager**: Assign manager to user.
* **Remove Manager**: Clear manager assignment.
* **Get Direct Reports**: List all users reporting to a manager.
### Authentication Methods
* **Get Auth Methods**: View configured MFA methods (phone, email, authenticator).
* **Add Auth Method**: Register new authentication methods.
* **Remove Auth Method**: Delete authentication methods.
* **Reset MFA**: Clear MFA registration forcing re-enrollment.
## Configuration Options
* **Default Domain**: Set primary domain for new user creation.
* **Password Complexity**: Configure minimum password requirements.
* **License Defaults**: Auto-assign specific licenses to new users.
* **Group Templates**: Standard groups to add new users to.
## Use Cases
* **User Onboarding**: Automate new employee provisioning including account creation, license assignment, and group membership.
* **Offboarding**: Disable accounts, revoke licenses, and remove group memberships for departing employees.
* **Password Resets**: Self-service password reset workflows triggered by support tickets.
* **License Management**: Optimize license allocation based on usage and reclaim unused licenses.
* **Security Auditing**: Monitor admin role assignments and privileged access.
* **Bulk Operations**: Mass user updates for organizational changes (department moves, title changes).
* **Compliance Reporting**: Generate user access reports for compliance audits.
* **HR Integration**: Sync user data between HR systems and Azure AD.
## Best Practices
* **Use Service Principal**: Create dedicated app registration rather than using personal accounts.
* **Least Privilege**: Grant minimum required permissions for operations.
* **Admin Consent**: Ensure tenant admin grants consent for application permissions.
* **Error Handling**: Handle concurrent modification conflicts gracefully.
* **Batch Operations**: Use batch endpoints for bulk user operations.
* **Audit Logging**: Log all user management operations for compliance.
## Security Considerations
* Store client secret securely; rotate regularly (max 2-year expiration).
* Monitor app sign-ins and API usage in Azure AD audit logs.
* Implement approval workflows for sensitive operations (role assignments, deletions).
* Use conditional access policies to protect admin operations.
## Common Issues & Solutions
* **Insufficient Privileges**: Verify app has required Application permissions with admin consent.
* **License Not Available**: Check organization's license pool before assignment.
* **UPN Conflict**: Ensure unique User Principal Name when creating users.
* **Immutable ID**: Cannot modify immutableId on cloud-only accounts.
# Confluence
Source: https://learn.getodin.ai/agents/external-integrations/confluence
Wiki pages and documentation management
## Configuration
* **OAuth Authentication Required**: Configure in Superadmin Settings
* **Default Space Key**: Optional (e.g., PROJ, DOCS, TEAM)
* **Access**: Create, read, update, and manage wiki pages and spaces
## Available Tools (11/11)
* **Get Spaces**: List all spaces accessible to user.
* **Get Pages**: Retrieve pages from specific space.
* **Get Page Content**: Retrieve page content including title and body.
* **Create Page**: Create new pages with title and content.
* **Update Page**: Modify page content or title.
* **Get Page History**: View page version history.
* **Delete Page**: Move pages to trash.
* **Search Content**: Search across page content and titles.
* **Get Attachments**: List attachments on pages.
* **Get Comments**: Retrieve comments on pages.
* **Get Sites**: List Confluence sites.
### Version & History
* **Get Page History**: Retrieve all versions of a page with change details.
* **Get Version**: View specific historical version of page.
* **Compare Versions**: Get diff between two page versions.
* **Restore Version**: Revert page to previous version.
### Comment Management
* **Get Comments**: Retrieve all comments on a page.
* **Add Comment**: Post comments on pages with @mentions and rich formatting.
* **Update Comment**: Edit existing comments.
* **Delete Comment**: Remove comments from pages.
* **Reply to Comment**: Add threaded replies to existing comments.
### Space Operations
* **Get Space**: Retrieve space details including key, name, description, and homepage.
* **List Spaces**: Get all spaces accessible to user.
* **Get Space Content**: List all pages within a space.
* **Create Space**: Create new spaces with permissions and description.
* **Update Space**: Modify space properties.
* **Delete Space**: Remove spaces (admin permission required).
### Page Hierarchy
* **Get Child Pages**: List immediate child pages of a page.
* **Get Descendants**: Retrieve the entire page tree below a page.
* **Get Ancestors**: Get parent hierarchy up to space root.
* **Get Page Tree**: Visualize complete page structure.
### Attachment Operations
* **Get Attachments**: List all attachments on a page.
* **Upload Attachment**: Add files to pages from agent workspace.
* **Download Attachment**: Retrieve attachment files for processing.
* **Update Attachment**: Replace attachment with new version.
* **Delete Attachment**: Remove attachments from pages.
### Label & Organization
* **Get Labels**: Retrieve all labels applied to a page.
* **Add Label**: Tag pages with labels for categorization.
* **Create Label**: Define new label in space.
* **Remove Label**: Remove labels from pages.
* **Search by Label**: Find all content with specific label.
### User & Permissions
* **Get User**: Retrieve user profile information.
* **Get Watchers**: List users watching a page.
* **Add Watcher**: Subscribe users to page updates.
* **Remove Watcher**: Unsubscribe from page notifications.
* **Get Permissions**: View page or space permissions.
### Advanced Features
* **Create Blog Post**: Publish blog entries in spaces.
* **Create Template**: Define page templates for consistent documentation.
* **Export Page**: Export page as PDF or Word document.
* **Macro Handling**: Work with Confluence macros (code blocks, tables, etc.).
## Use Cases
* **Documentation Management**: Automatically generate and update technical documentation.
* **Knowledge Sharing**: Create knowledge base articles from support tickets.
* **Meeting Notes**: Convert meeting transcripts into formatted pages.
* **Status Reports**: Generate automated project status pages.
* **Team Wikis**: Maintain collaborative team knowledge bases.
# Dropbox
Source: https://learn.getodin.ai/agents/external-integrations/dropbox
File storage and sharing
## Authentication & Setup
Dropbox integration uses OAuth 2.0 authentication with Scoped Access approach. Organizations must create a Dropbox App in the Dropbox App Console and configure appropriate permissions. The integration supports both personal Dropbox accounts and Dropbox Business team accounts. Agents can access files in user's Dropbox or shared team folders with proper authorization.
## Required Permissions & Scopes
* **files.content.write**: Upload and modify file content.
* **files.content.read**: Download and read file content.
* **files.metadata.write**: Create folders, move, rename, and delete files.
* **files.metadata.read**: View file and folder metadata.
* **sharing.write**: Create and modify sharing links.
* **sharing.read**: View existing sharing settings.
* **team\_data.member**: Access team folder content (Dropbox Business).
## Available Operations
With all required permissions configured, the toolkit enables the following operations:
### File Operations
* **Upload File**: Upload files from agent workspace to Dropbox with automatic versioning.
* **Download File**: Retrieve files for local processing with support for partial downloads.
* **Move File**: Relocate files between folders with automatic conflict resolution.
* **Copy File**: Duplicate files to the same or different location.
* **Delete File**: Remove files (can be recovered from deleted files for 30 days).
* **Restore File**: Recover deleted files or restore previous versions.
* **Get File Metadata**: Retrieve file details including size, modified date, content hash.
* **Search Files**: Full-text search across filenames and content (where supported).
* **Get Thumbnail**: Generate preview thumbnails for images and documents.
### Folder Management
* **Create Folder**: Create new folders with nested hierarchies.
* **List Folder**: Browse folder contents with pagination support.
* **Move Folder**: Relocate entire folder structures.
* **Copy Folder**: Duplicate folders with all contents.
* **Delete Folder**: Remove folders and all contents.
* **Get Folder Metadata**: Retrieve folder properties and statistics.
### Sharing Operations
* **Create Shared Link**: Generate public or password-protected sharing links.
* **List Shared Links**: View all active sharing links for files and folders.
* **Revoke Shared Link**: Deactivate sharing links to prevent further access.
* **Update Link Settings**: Modify link permissions and expiration dates.
* **Create Shared Folder**: Share folders with specific users or teams.
* **Add Folder Member**: Invite users to collaborate on shared folders.
* **Remove Folder Member**: Revoke access for shared folder collaborators.
* **Set Link Expiration**: Configure automatic link expiration dates.
* **Set Link Password**: Protect links with password authentication.
### Advanced Operations
* **Get File Revisions**: Access version history for files (up to 30 days or longer with extended history).
* **Batch Operations**: Perform multiple file operations in a single API call.
* **Upload Session**: Upload large files (>150MB) using chunked upload sessions.
* **Download Zip**: Download multiple files as a compressed archive.
* **Get Space Usage**: Check account storage usage and available space.
* **Paper Doc Operations**: Create and edit Dropbox Paper documents.
### Dropbox Business Features
* **Team Folder Access**: Access and manage team folders.
* **Member Management**: List team members and their permissions.
* **Admin Operations**: Perform administrative tasks (requires admin permissions).
## Configuration Options
* **Default Folder**: Set default upload location in Dropbox.
* **Conflict Resolution**: Choose behavior for filename conflicts (autorename, overwrite, fail).
* **Chunk Size**: Configure upload chunk size for large files (default 4MB).
* **Link Permissions**: Default permissions for sharing links (view only, edit).
* **Auto Delete**: Automatically delete local files after successful upload.
## Use Cases
* **File Storage**: Backup important documents and data from agent workspace to cloud.
* **Backup Automation**: Schedule automatic backups of critical files to Dropbox.
* **File Sharing**: Generate sharing links for reports, documents, or datasets for stakeholder access.
* **Collaborative Workflows**: Upload files to shared team folders for collaboration.
* **Document Distribution**: Distribute generated reports to multiple recipients via shared links.
* **Data Migration**: Transfer files between storage systems using Dropbox as intermediary.
* **Version Control**: Leverage Dropbox's automatic versioning for document management.
* **Media Library**: Store and organize images, videos, and media assets.
## Best Practices
* **Use Path Identifiers**: Reference files by path (case-insensitive) for stability.
* **Chunked Uploads**: Always use upload sessions for files larger than 150MB.
* **Batch Requests**: Group multiple operations to reduce API calls (up to 1,000 operations per batch).
* **Monitor Rate Limits**: Dropbox enforces rate limits; implement exponential backoff for retries.
* **Link Expiration**: Set expiration dates on sharing links for sensitive content.
* **Organize Folders**: Use clear folder hierarchies to keep files organized.
* **Check Space**: Verify available storage before large uploads to avoid failures.
## Rate Limits & Quotas
Dropbox API enforces rate limiting based on app type and account tier. Standard limits: 40 requests/second for individual users. Batch operations count as a single request. Monitor HTTP 429 responses and implement retry logic with exponential backoff (suggested: 1s, 2s, 4s, 8s).
## Common Issues & Solutions
* **Path Not Found**: Verify path spelling and case (Dropbox paths are case-insensitive but case-preserving).
* **Insufficient Space**: Check account storage before uploads. Upgrade plan if needed.
* **Rate Limit Exceeded**: Implement exponential backoff and consider using batch operations.
* **Upload Timeout**: Use chunked upload sessions for large files to handle network interruptions.
* **Permission Denied**: Verify OAuth scopes include necessary permissions for the operation.
# GitHub
Source: https://learn.getodin.ai/agents/external-integrations/github
Repository management, issues, and pull requests
## Configuration
* **Default Owner/Organization**: octocat
* **Default Repository**: Hello-World
* **Authentication**: OAuth; prompts user to authenticate
* **Access**: Limited by user permissions; supports public/private repos and managing issues/PRs/repo content
## Available Tools (16/16)
### Repository Management
* **List Repositories**: Get all repos for users or organizations.
* **Get Repository**: Retrieve repo details.
* **Search Repositories**: Find repos by name, description, or topics.
* **List Branches**: Get all branches in the repository.
### Issue & PR Management
* **List Issues**: Query issues by state, labels, or assignee.
* **Create Issue**: Create issues with title, body, and labels.
* **List Pull Requests**: Get all PRs by state or branch.
* **Create Pull Request**: Open PR from branch to branch.
* **Get Pull Request**: Retrieve PR details.
* **Get PR Files**: List all files changed in pull request.
* **Get PR Diff**: Get the diff for a pull request.
* **Get PR Commits**: View all commits in pull request.
### Code History & Labels
* **Get Commit History**: View commit history for repository.
* **Get Labels**: Retrieve all labels from the repository.
* **Assign PR Labels**: Tag pull requests with labels.
## Use Cases
* **Issue Tracking**: Create and manage GitHub issues from reports or alerts.
* **Code Reviews**: List and review pull requests automatically.
* **Release Management**: Track commits and manage releases.
* **Project Management**: Sync GitHub issues with project workflows.
## Best Practices
* **Branch Protection**: Enable protection on main branches before automation.
* **PR Validation**: Check PR mergeability before attempting merge.
* **Rate Limits**: Monitor rate limits (5,000/hour for authenticated requests).
## Common Issues & Solutions
* **403 Forbidden**: Verify token has required scopes and repository access.
* **Merge Conflict**: Cannot auto-merge PR with conflicts. Resolve conflicts first.
* **Rate Limit**: Implement exponential backoff and conditional requests with ETags.
* **Branch Protection**: PR reviews or checks required before merge. Configure automation accordingly.
# Gmail
Source: https://learn.getodin.ai/agents/external-integrations/gmail
Email management with Gmail API and OAuth 2.0
## Authentication & Setup
Gmail integration requires OAuth 2.0 authentication through Google Cloud Platform. Organizations must create a project in Google Cloud Console, enable the Gmail API, and configure OAuth consent screen. The integration supports both personal Gmail accounts and Google Workspace (formerly G Suite) enterprise accounts. Authentication tokens are securely stored and automatically refreshed to maintain continuous access.
## Required API Scopes
* **gmail.readonly**: Read-only access to emails and settings.
* **gmail.send**: Send emails on behalf of the user.
* **gmail.compose**: Create and manage draft emails.
* **gmail.modify**: Full access to read, compose, send, and modify emails.
* **gmail.labels**: Manage email labels and categories.
## Available Operations
With all required permissions configured, the toolkit enables the following operations:
### Email Management
* **Search Emails**: Advanced search using Gmail query syntax (from:, to:, subject:, has:attachment, is:unread, etc.).
* **Get Email Content**: Retrieve full email with headers, body (plain text/HTML), and attachment list.
* **Send Email**: Compose and send new emails with multiple recipients, CC/BCC, attachments, and HTML content.
* **Reply to Email**: Reply to existing threads maintaining conversation history and threading.
* **Forward Email**: Forward messages to other recipients with optional additional comments.
* **Get Attachments**: Download email attachments for processing or storage.
* **Delete Email**: Move emails to trash or permanently delete from trash.
* **Archive Email**: Remove from inbox while keeping in All Mail.
* **Mark as Spam**: Report and move unwanted emails to the spam folder.
* **Mark as Important/Starred**: Flag important emails for easy retrieval.
### Draft Management
* **Create Draft**: Save email compositions as drafts without sending.
* **Update Draft**: Modify existing draft content, recipients, or attachments.
* **Send Draft**: Send a previously created draft email.
* **List Drafts**: View all saved draft emails.
* **Delete Draft**: Remove draft emails from the drafts folder.
### Label Operations
* **List Labels**: Get all available labels including system and custom labels.
* **Create Label**: Create custom labels for email organization.
* **Apply Label**: Add one or multiple labels to emails.
* **Remove Label**: Remove labels from emails.
* **Rename Label**: Change label names for better organization.
* **Delete Label**: Remove custom labels (emails remain intact).
### Thread Operations
* **Get Thread**: Retrieve the entire conversation thread with all messages.
* **List Threads**: Query conversation threads based on search criteria.
* **Modify Thread**: Apply bulk operations to all emails in a thread.
### Status Management
* **Mark as Read**: Update read status for single or multiple emails.
* **Mark as Unread**: Flag emails as unread for later attention.
* **Trash Email**: Move emails to the trash folder.
* **Untrash Email**: Restore emails from trash to inbox.
## Configuration Options
* **Query Filters**: Set default filters for searches (e.g., only search last 30 days).
* **Max Results**: Configure maximum number of emails to retrieve per query (default 50, max 500).
* **Include Spam/Trash**: Whether to include spam and trash folders in searches.
* **Attachment Handling**: Set size limits and virus scanning for downloaded attachments.
* **Default Labels**: Automatically apply labels to emails sent by the agent.
* **Thread Mode**: Enable/disable automatic thread grouping for replies.
## Use Cases
* **Intelligent Inbox Management**: Automatically categorize, label, and prioritize incoming emails based on content analysis.
* **Lead Extraction**: Scan emails for contact information, extract leads, and populate CRM systems.
* **Automated Replies**: Generate contextual responses to common inquiries using KB knowledge.
* **Email Monitoring**: Watch for specific keywords or senders and trigger workflows or notifications.
* **Newsletter Management**: Automatically file, summarize, or unsubscribe from promotional emails.
* **Customer Support**: Route support emails to appropriate teams based on content classification.
* **Expense Tracking**: Extract receipts from emails, process attachments, and log to accounting systems.
* **Meeting Coordination**: Parse meeting invitation emails and sync with calendar systems.
## Best Practices
* **Use Gmail Query Syntax**: Leverage advanced search operators for precise email filtering.
* **Batch Operations**: Process multiple emails in single operations to reduce API calls.
* **Respect API Quotas**: Gmail API has daily quota limits (1 billion quota units/day for Google Workspace).
* **Implement Exponential Backoff**: Handle rate limiting gracefully with retry logic.
* **Thread-Safe Replies**: Always use thread IDs when replying to maintain conversation context.
* **Label Organization**: Create a clear label hierarchy for automated classification.
## API Quota Considerations
Gmail API uses a quota system where different operations cost different amounts. Typical costs: Send email (100 units), Get message (5 units), List messages (1 unit). Monitor usage in Google Cloud Console to avoid hitting limits. For high-volume applications, request quota increases through Google.
## Common Issues & Solutions
* **Quota Exceeded**: Implement caching and batch operations to reduce API calls. Request quota increase if needed.
* **Invalid Grant Error**: Token expired or revoked. Re-authenticate user through OAuth flow.
* **Missing Permissions**: Ensure all required scopes are requested during OAuth consent.
* **Attachment Download Failures**: Large attachments may timeout; use streaming download for files >5MB.
# Google Drive
Source: https://learn.getodin.ai/agents/external-integrations/google-drive
File storage, sharing, and management
## Authentication & Setup
Google Drive integration provides comprehensive file storage and management capabilities through OAuth 2.0 authentication. Agents can interact with personal Drive accounts and shared Team Drives (Shared Drives) in Google Workspace organizations. The integration supports all major file types including documents, spreadsheets, presentations, images, videos, and PDFs.
## Required API Scopes
* **drive**: Full access to all files in Drive including Team Drives.
* **drive.file**: Access only to files created or opened by the application.
* **drive.readonly**: Read-only access to view and download files.
* **drive.metadata**: Access to file metadata without file content access.
* **drive.appdata**: Access to application-specific data folder.
## Available Operations
With all required permissions configured, the toolkit enables the following operations:
### File Operations
* **Upload File**: Upload files from agent workspace to Drive with metadata (name, description, MIME type).
* **Download File**: Retrieve files for local processing or analysis.
* **List Files**: Browse files and folders with filtering by name, type, owner, or modification date.
* **Search Files**: Full-text search across file names and content using query parameters.
* **Get File**: Retrieve detailed file metadata including permissions, owners, and version history.
* **Update File**: Modify file content or metadata without changing file ID.
* **Delete File**: Move files to trash or permanently delete.
* **Restore File**: Recover files from trash.
* **Export File**: Convert Google Workspace files to standard formats (Docs to PDF, Sheets to Excel, etc.).
### Folder Management
* **Create Folder**: Create new folders with custom names for organization.
* **Move File**: Relocate files between folders by updating parent references.
* **Copy File**: Duplicate files with new names or to different locations.
* **List Folder Contents**: Retrieve all files within a specific folder.
* **Get Folder Path**: Determine full path hierarchy for any folder.
### Sharing & Permissions
* **Share File**: Generate sharing links with configurable permissions (view, comment, edit).
* **Create Permission**: Grant specific users or groups access to files.
* **Update Permission**: Modify existing access permissions.
* **Remove Permission**: Revoke access for users or sharing links.
* **List Permissions**: View all users and groups with access to a file.
* **Set Link Expiration**: Configure automatic expiration for sharing links.
* **Restrict Download**: Prevent viewers from downloading, printing, or copying content.
### Advanced Operations
* **Get File Metadata**: Retrieve creation date, modified date, size, owner, MIME type, thumbnail.
* **Watch File**: Set up notifications for file changes (webhooks).
* **Get File Revisions**: Access version history and restore previous versions.
* **Add Comment**: Post comments on Google Docs, Sheets, Slides files.
* **Batch Operations**: Perform multiple file operations in a single API call.
## Configuration Options
* **Default Folder**: Set default upload location to specific folder or Team Drive.
* **File Size Limit**: Configure maximum upload size (API limit is 5GB per file).
* **Include Trashed**: Whether to include trashed files in list/search results.
* **Supports Team Drives**: Enable access to Team Drives (Shared Drives) in Workspace accounts.
* **Corpus**: Search scope - user's Drive, Team Drives, or all domains.
## Use Cases
* **Document Backup**: Automatically backup important files from project workspace to Drive with version control.
* **File Organization**: Auto-categorize and move uploaded files to appropriate folders based on content or metadata.
* **Content Distribution**: Upload reports, generate sharing links, and distribute to stakeholders via email.
* **Collaborative Workflows**: Upload drafts to Team Drives, share with team, track comments and revisions.
* **Data Migration**: Bulk transfer files between storage systems using Drive as intermediary.
* **Media Library Management**: Organize images, videos, and assets with metadata tagging and search.
* **Document Processing Pipeline**: Download files, process with Python/Node.js, upload results back to Drive.
## Best Practices
* **Use File IDs**: Always reference files by ID rather than name to avoid ambiguity with duplicates.
* **Implement Resumable Uploads**: For files >5MB, use resumable upload protocol to handle interruptions.
* **Batch Requests**: Combine multiple operations to reduce API calls and improve performance.
* **Monitor Quota**: Track API usage against daily quota limits (varies by account type).
* **Organize with Folders**: Use clear folder hierarchies instead of flat structure for large file collections.
* **Set Appropriate Permissions**: Use least privilege principle when sharing files.
## Common Issues & Solutions
* **Upload Timeouts**: For large files, use resumable upload and implement retry logic.
* **Permission Denied**: Verify user has granted drive scope during OAuth. Check file ownership and permissions.
* **Duplicate Files**: Drive allows multiple files with same name. Use search by ID or include parent folder in queries.
* **Rate Limit**: Implement exponential backoff for retries. Consider caching frequently accessed metadata.
# Google Sheets
Source: https://learn.getodin.ai/agents/external-integrations/google-sheets
Read, write, and manipulate spreadsheet data
## Authentication & Setup
Google Sheets integration uses OAuth 2.0 authentication through Google Cloud Platform with the Sheets API enabled. Agents can read, write, and manipulate spreadsheet data programmatically, enabling powerful data automation workflows. Supports both personal Google accounts and Google Workspace enterprise accounts with shared spreadsheets.
## Required API Scopes
* **spreadsheets**: Full access to create, read, update, and delete spreadsheets.
* **spreadsheets.readonly**: Read-only access for data retrieval and analysis.
* **drive**: Access to list and manage spreadsheets in Google Drive.
* **drive.file**: Access only to files created or opened by the app.
## Available Operations
With all required permissions configured, the toolkit enables the following operations:
### Reading Operations
* **Read Range**: Retrieve cell values from specified range (e.g., "Sheet1!A1:D10"). Supports A1 notation and named ranges.
* **Read Multiple Ranges**: Batch read from multiple non-contiguous ranges in a single request.
* **Get Cell Value**: Retrieve value from a single specific cell.
* **Get Row**: Read the entire row by row number.
* **Get Column**: Read the entire column by column letter.
* **Find Cell**: Search for specific value and return its location.
### Writing Operations
* **Write Range**: Update values in specified range with 2D array data. Supports raw input or user-entered format.
* **Append Row**: Add new row(s) to the end of the sheet without overwriting existing data.
* **Insert Row**: Insert new rows at specific positions, shifting existing rows down.
* **Update Cell**: Modify single cell value with formula or static data.
* **Clear Range**: Delete content from specified range while preserving formatting.
* **Delete Row/Column**: Remove entire rows or columns from the sheet.
### Spreadsheet Management
* **Create Spreadsheet**: Create new Google Sheet with custom title and initial sheet structure.
* **Copy Spreadsheet**: Duplicate existing spreadsheet with all data and formatting.
* **Get Spreadsheet Metadata**: Retrieve sheet names, dimensions, protected ranges, and properties.
* **Update Spreadsheet Properties**: Modify title, locale, time zone, and default format.
### Sheet Operations
* **Add Sheet**: Create new sheet (tab) within existing spreadsheet.
* **Delete Sheet**: Remove sheet from spreadsheet.
* **Rename Sheet**: Change sheet name/title.
* **Copy Sheet**: Duplicate sheet within same or different spreadsheet.
* **Hide/Unhide Sheet**: Control sheet visibility.
* **Reorder Sheets**: Change tab order within spreadsheet.
### Formatting Operations
* **Batch Update**: Apply multiple formatting changes in single API call (colors, fonts, borders, alignment).
* **Set Cell Format**: Apply number format, currency, date, percentage, or custom formats.
* **Merge Cells**: Combine multiple cells into single cell.
* **Unmerge Cells**: Split previously merged cells.
* **Set Column Width**: Adjust column widths in pixels or auto-resize.
* **Set Row Height**: Modify row heights for better layout.
* **Freeze Rows/Columns**: Lock header rows or columns for easier navigation.
### Advanced Operations
* **Sort Range**: Sort data by column(s) in ascending or descending order.
* **Filter Data**: Apply filter criteria to display subset of data.
* **Create Pivot Table**: Generate pivot tables for data analysis.
* **Add Chart**: Insert charts (bar, line, pie, scatter) based on data ranges.
* **Create Named Range**: Define named ranges for easier reference.
* **Data Validation**: Set dropdown lists, number ranges, or custom validation rules.
* **Conditional Formatting**: Apply rules-based cell formatting.
## Configuration Options
* **Value Input Option**: Choose between RAW (preserves exact input) or USER\_ENTERED (parses as if typed).
* **Value Render Option**: Control how values are returned (FORMATTED\_VALUE, UNFORMATTED\_VALUE, FORMULA).
* **Default Spreadsheet ID**: Set default spreadsheet for operations to avoid repeated ID specification.
* **Date Time Render Option**: Choose serial number or formatted string for dates/times.
* **Dimension**: Specify whether operations apply to ROWS or COLUMNS.
## Use Cases
* **Automated Reporting**: Query database, process results with Python, write formatted reports to Sheets with charts.
* **Data Entry Automation**: Extract data from emails, documents, or forms and populate spreadsheet rows.
* **Real-time Dashboards**: Continuously update metrics sheets that power stakeholder dashboards.
* **Inventory Management**: Sync product data between ERP systems and collaborative Sheets trackers.
* **Budget Tracking**: Aggregate expense data from multiple sources into consolidated budget sheets.
* **Survey Response Processing**: Collect form responses, analyze with Python, and write insights to summary sheets.
* **Project Status Reports**: Pull task data from Jira/Asana, format, and publish to stakeholder-accessible Sheets.
* **Sales Pipeline Visualization**: Export CRM data to Sheets with calculated fields and conditional formatting.
## Best Practices
* **Use Spreadsheet ID**: Always reference by spreadsheet ID (from URL) rather than name for stability.
* **Batch Operations**: Combine multiple updates in single batchUpdate call to improve performance.
* **Cache Metadata**: Store sheet structure information to minimize metadata API calls.
* **Named Ranges**: Use named ranges for important data regions to make code more maintainable.
* **Append vs Insert**: Use append for adding new data; it's faster and safer than finding last row.
* **Read Large Datasets**: For sheets >10,000 rows, read in chunks to avoid timeout and memory issues.
* **Formula Handling**: When writing formulas, use the RAW value input option and prefix with "=".
## Performance Tips
* Minimize API calls by batching operations and reading larger ranges at once.
* Use appropriate value render options - UNFORMATTED\_VALUE is faster when formatting is not needed.
* Avoid excessive formatting operations which are resource-intensive.
* For large datasets, consider using IMPORTRANGE in Sheets instead of repeatedly reading via API.
## Common Issues & Solutions
* **Permission Denied**: Verify spreadsheet is shared with agent's service account or user has granted access.
* **Invalid Range**: Check A1 notation syntax (e.g., "Sheet1!A1:B10"). Include sheet name for multi-sheet files.
* **Rate Limit Exceeded**: Implement exponential backoff. Consider using batch operations to reduce call count.
* **Data Type Mismatch**: Ensure data types match expected format (numbers as numbers, not strings).
# Google Slides
Source: https://learn.getodin.ai/agents/external-integrations/google-slides
Create and modify presentations
## Configuration
* **Authentication**: OAuth 2.0
* **Access**: Create, read, and modify presentations
* **Supports**: Personal Google accounts and Google Workspace
## Available Tools
### Presentation Management
* **Create Presentation**: Create a new presentation with a custom title.
* **Get Presentation**: Retrieve presentation metadata.
* **Add Slide**: Insert new slide with layout options.
* **Delete Slide**: Remove slides from presentation.
### Content & Formatting
* **Insert Text**: Add text boxes with position and styling.
* **Insert Image**: Add images with positioning.
* **Insert Table**: Add tables with rows and columns.
* **Insert Chart**: Add charts linked to Google Sheets.
* **Apply Theme**: Apply design themes to presentation.
## Use Cases
* **Automated Slide Decks**: Generate presentations from data.
* **Report Presentations**: Convert analysis into slide decks.
* **Status Updates**: Create project status presentations.
* **Training Materials**: Generate educational content.
# HubSpot
Source: https://learn.getodin.ai/agents/external-integrations/hubspot
Contacts, companies, deals, and tickets
## Configuration
* **Default Contact Properties**: firstname, lastname, email, company
* **Authentication**: OAuth
* **Access**: Comprehensive CRM capabilities including contacts, companies, deals, and tickets
## Available Tools (4/4)
* **Search Objects**: Full-text search across contacts, companies, and deals.
* **Query Objects**: Query objects with filters and conditions.
* **Manage Objects**: Create, update, or delete CRM records.
* **Get Properties**: List all properties for object types.
## Use Cases
* **Marketing Automation**: Sync leads from web forms and events into HubSpot.
* **Sales Pipeline Management**: Track deals through stages and forecast revenue.
* **Lead Enrichment**: Enhance contact records with external data.
* **Customer Support**: Auto-create tickets from emails or chat.
* **Data Synchronization**: Keep HubSpot in sync with other business systems.
# Jira
Source: https://learn.getodin.ai/agents/external-integrations/jira
Issue tracking and project workflows
## Configuration
* **Instance URL**: [https://your-company.atlassian.net](https://your-company.atlassian.net) (optional; will be prompted during first use if not provided)
* **Authentication**: OAuth
* **Access**: Manage issues, projects, and workflows
## Available Tools (10/10)
* **Get Projects**: Get all projects accessible to users.
* **Get Custom Fields**: Retrieve custom field definitions.
* **Get Users**: Find users by name or email for assignment.
* **Get User Issues**: Retrieve issues assigned to specific users.
* **Get Issues**: Query issues by project or filters.
* **Search Issues**: Execute JQL searches with full syntax support.
* **Get Issue Details**: Retrieve complete issue information.
* **Create Issue**: Create new issues with summary, description, and type.
* **Update Issue**: Modify issue fields and properties.
* **Delete Issue**: Remove issues from projects.
## Use Cases
* **Bug Tracking**: Automatically create Jira issues from error logs or alerts.
* **Sprint Management**: Manage agile sprints and issue assignment.
* **Issue Automation**: Auto-transition issues based on external events.
* **Integration Bridge**: Sync issues between Jira and other tools.
* **Release Management**: Track release progress and deployments.
# Microsoft 365
Source: https://learn.getodin.ai/agents/external-integrations/microsoft-365
Email, calendar, OneDrive, and SharePoint integration via Azure AD
## Authentication & Setup
Microsoft 365 integration uses OAuth 2.0 authentication through Azure AD App Registration. Organizations must create an Azure AD application in the Azure portal and configure the appropriate API permissions. Required credentials include Client ID (Application ID), Client Secret (Application Secret), and Tenant ID (Directory ID). This ensures secure, delegated access to user resources while respecting organizational security policies.
## Required Permissions
* **Mail.ReadWrite**: Full access to read, compose, send, and delete emails in user mailboxes.
* **Mail.Send**: Send emails on behalf of the user without full mailbox access.
* **Calendars.ReadWrite**: Create, read, update, and delete calendar events and meetings.
* **Files.ReadWrite.All**: Full access to OneDrive and SharePoint files and folders.
* **User.Read**: Read basic user profile information.
* **Contacts.ReadWrite**: Manage user contacts and contact lists.
## Available Operations
With all required permissions configured, the toolkit enables the following operations:
### Email Operations
* **Search Emails**: Query mailbox using keywords, sender, date range, and folder filters. Supports advanced search operators.
* **Send Email**: Compose and send emails with attachments, CC/BCC recipients, and HTML formatting.
* **Reply to Email**: Reply or reply-all to existing email threads maintaining conversation context.
* **Forward Email**: Forward messages to other recipients with optional comments.
* **Get Email Content**: Retrieve full email body, headers, and attachment metadata.
* **Move Email**: Organize emails by moving them between folders (Inbox, Archive, Custom folders).
* **Create Draft**: Save emails as drafts for later review and sending.
* **Download Attachment**: Extract and save email attachments to agent workspace.
* **Mark as Read/Unread**: Update email status flags.
* **Delete Email**: Move emails to Deleted Items or permanently delete.
### Calendar Operations
* **List Events**: Query calendar events by date range, attendees, or keywords.
* **Create Event**: Schedule meetings with title, date/time, location, attendees, and body.
* **Update Event**: Modify existing calendar events including rescheduling.
* **Cancel Event**: Delete meetings and send cancellation notices to attendees.
* **Find Free Slots**: Check availability across multiple calendars for meeting scheduling.
* **Get Attendee Status**: View RSVP responses (Accepted, Tentative, Declined).
* **Add Attendees**: Invite additional participants to existing meetings.
* **Set Reminder**: Configure notification alerts for events.
### OneDrive & SharePoint Operations
* **List Files**: Browse files and folders in OneDrive or SharePoint document libraries.
* **Upload File**: Upload documents from agent workspace to cloud storage.
* **Download File**: Retrieve files for processing or analysis.
* **Search Files**: Find files by name, content, or metadata across OneDrive/SharePoint.
* **Create Folder**: Organize files with new folder structures.
* **Share File**: Generate sharing links with view/edit permissions and expiration dates.
* **Move File**: Relocate files between folders or sites.
* **Delete File**: Remove files and folders from storage.
* **Get File Metadata**: Retrieve creation date, modified date, size, and author information.
### Contacts Operations:
* \*\*List Contacts: Browse user contacts and contact lists.
* \*\*Create Contact: Add new contacts with name, email, phone, and other details.
* \*\*Update Contact: Modify existing contact information.
* \*\*Delete Contact: Remove contacts from contact lists.
* \*\*Search Contacts: Find contacts by name, email, or other fields.
## Configuration Options
* **Default Mailbox**: Specify which mailbox to access (user's primary or shared mailbox).
* **Folder Scope**: Limit access to specific folders (e.g., only Inbox and Sent Items).
* **Calendar Scope**: Choose which calendars to access (primary, shared, or resource calendars).
* **File Location**: Set default OneDrive folder or SharePoint site for file operations.
* **Attachment Handling**: Configure automatic virus scanning and size limits for attachments.
* **Time Zone**: Set time zone for calendar operations to ensure correct scheduling.
## Use Cases
* **Automated Meeting Scheduling**: Agent reads email requests, checks calendar availability, proposes times, and books meetings automatically.
* **Email Triage**: Automatically categorize and route incoming emails based on content, urgency, and sender.
* **Report Distribution**: Generate reports using other toolkits, upload to OneDrive, and email links to stakeholders.
* **Meeting Preparation**: Extract agenda items from emails, find related documents in SharePoint, and prepare meeting materials.
* **Follow-up Automation**: Track action items from meetings and send reminder emails to participants.
* **Document Collaboration**: Upload drafts to SharePoint, share with team, collect feedback via email.
* **Calendar Management**: Coordinate multi-party meetings by checking availability and finding optimal time slots.
## Best Practices
* **Use Service Accounts**: For shared scenarios, use dedicated service accounts rather than personal accounts.
* **Implement Rate Limiting**: Microsoft Graph API has throttling limits; implement exponential backoff for retries.
* **Batch Operations**: Use batch requests to perform multiple operations in a single API call for better performance.
* **Monitor Quota**: Track API usage to avoid hitting Microsoft's daily limits.
* **Security Scanning**: Always scan attachments and uploaded files for malware before processing.
## Common Issues & Solutions
* **Authentication Failures**: Verify Azure AD app permissions are granted admin consent. Check token expiration.
* **Insufficient Permissions**: Ensure all required API permissions are granted in Azure portal.
* **Calendar Conflicts**: Use Find Free Slots tool before creating events to avoid double-booking.
* **Attachment Size Limits**: Large files should be uploaded to OneDrive first, then linked in emails.
# Microsoft Excel
Source: https://learn.getodin.ai/agents/external-integrations/microsoft-excel
Workbook management, data operations, and analysis
## Configuration
* **Auto-save**: Enabled
* **Maximum Chart Results**: 20
* **Authentication**: OAuth 2.0
* **Data Access**: Read/Write, Tables, Charts, Formulas, Advanced Analysis
## Available Tools (20/20)
### Workbook & Worksheet Management
* **List Excel Workbooks**: View all Excel files.
* **Open Workbook**: Open an existing workbook.
* **Create Workbook**: Create a new workbook.
* **Save Workbook**: Save current workbook.
* **Get Worksheets**: List all worksheets in the workbook.
* **Create Worksheet**: Add new worksheet.
* **Add Worksheet with Data**: Create worksheet and populate with data.
* **Copy Worksheet**: Duplicate worksheet.
* **Delete Worksheet**: Remove worksheet.
* **Rename Worksheet**: Change worksheet name.
### Data Operations
* **Read Cell Range**: Get values from range.
* **Write Cell Range**: Update values in range.
* **Format Cells**: Apply formatting (font, color, borders).
* **Insert Formula**: Add Excel formulas.
### Table & Analysis
* **Create Excel Table**: Convert range to table.
* **Create Chart**: Insert charts from data.
* **Create Pivot Table**: Generate pivot table.
* **Apply Filter**: Filter data in range.
* **Sort Range**: Sort data.
* **Find and Replace**: Search and replace values.
## Use Cases
* **Financial Modeling**: Build financial models with formulas and scenarios.
* **Data Analysis**: Process datasets with pivot tables and charts.
* **Report Automation**: Generate formatted Excel reports.
* **Sales Dashboards**: Create interactive dashboards.
* **Data Consolidation**: Merge data from multiple sources.
# Microsoft Word
Source: https://learn.getodin.ai/agents/external-integrations/microsoft-word
Document creation and editing
## Configuration
* **Authentication**: OAuth 2.0
* **Access**: Create, read, and modify Word documents
* **Storage**: OneDrive, SharePoint, OneDrive for Business
* **Format**: .docx with text, tables, images, headers/footers, and styles
## Available Tools
### Document Management
* **Create Document**: Create new Word document.
* **Get Document Content**: Retrieve document text and structure.
* **Copy Document**: Duplicate document.
* **Delete Document**: Remove document.
### Content Operations
* **Insert Text**: Add text at specific locations.
* **Replace Text**: Find and replace text.
* **Insert Table**: Create tables with rows and columns.
* **Insert Image**: Add images with positioning.
* **Apply Formatting**: Apply fonts, colors, bold, italic, styles.
* **Insert Header/Footer**: Add headers and footers.
### Advanced Features
* **Table of Contents**: Generate automatic TOC from headings.
* **Convert to PDF**: Export document as PDF.
## Use Cases
* **Contract Generation**: Create contracts from templates with data.
* **Proposal Automation**: Generate sales proposals with content.
* **Report Creation**: Build formatted reports.
* **Template Processing**: Fill Word templates with data.
* **Legal Documents**: Generate agreements and legal forms.
## Common Issues & Solutions
* **File Locked**: Ensure the document isn't open in Word desktop. Close file and retry.
* **Format Loss**: Complex formatting may require using Word API rather than simple text replacement.
* **Table Alignment**: Use proper table styles and cell formatting for professional appearance.
* **PDF Conversion**: Large documents may take longer to convert; consider async processing.
# Odoo ERP
Source: https://learn.getodin.ai/agents/external-integrations/odoo-erp
ERP capabilities including inventory, sales, and accounting
## Configuration
Configure Odoo ERP integration to access CRM, sales, inventory, and business data. The toolkit enables search, create, update, and manage records.
* **Connection**: No Odoo connections found. Please create a connection in the Settings → Connectors page first.
* **Access**: ERP capabilities including inventory, sales, purchasing, accounting, and HR management.
* **Supports**: Odoo SaaS and self-hosted (12+).
## Available Tools (7/7)
* **Search Records**: Query any Odoo model with filters.
* **Read Record**: Retrieve record data by IDs.
* **Create Record**: Insert new records.
* **Update Record**: Modify existing records.
* **Delete Record**: Remove records from system.
* **List Models**: View available Odoo models.
* **Helpdesk (Create Ticket)**: Create support tickets.
## Use Cases
* **Inventory Management**: Real-time stock tracking and warehouse optimization.
* **Sales Order Processing**: Automated order creation.
* **Automated Invoicing**: Generate and send invoices.
* **Purchase Automation**: Create purchase orders automatically.
* **Reporting**: Extract financial, sales, or inventory data.
## Best Practices
* **Use External IDs**: Assign external IDs to records for stable cross-system references.
* **Batch Operations**: Use search\_read and write on multiple IDs to reduce API calls.
* **Field Selection**: Always specify fields to read rather than retrieving all fields.
* **Domain Filters**: Use efficient domain expressions for searches (\[('field', 'operator', 'value')]).
* **Context Usage**: Pass appropriate context for multi-company, language, or special behavior.
* **Error Handling**: Check workflow states before calling action methods (confirm, validate).
## Common Models
* **sale.order** - Sales Orders
* **purchase.order** - Purchase Orders
* **res.partner** - Customers/Suppliers
* **product.product** - Products
* **stock.picking** - Delivery/Receipt Orders
* **account.move** - Invoices/Bills
* **account.payment** - Payments
* **stock.quant** - Inventory Quantities
## Common Issues & Solutions
* **Access Denied**: User lacks access rights for model. Check security groups and permissions.
* **Validation Error**: Required fields missing or workflow state incorrect. Review model constraints.
* **Record Not Found**: Verify record ID exists and user has read access.
* **Method Not Found**: Ensure method exists on model and is callable via XML-RPC.
# Overview
Source: https://learn.getodin.ai/agents/external-integrations/overview
External integrations enable your AI agents to connect with third-party services, APIs, and platforms. Each integration provides specialized tools for interacting with email, file storage, project management, CRM, and other enterprise systems.
## Available Integrations
Email, calendar, OneDrive, and SharePoint via Azure AD OAuth
Email management with Gmail API and OAuth 2.0
Read, write, and manipulate spreadsheet data
File storage, sharing, and management
Create and modify presentations
Workbook management, data operations, and analysis
Document creation and editing
File storage and sharing
Project and task management
Issue tracking and project workflows
Wiki pages and documentation management
CRM data and operations
Contacts, companies, deals, and tickets
ERP capabilities including inventory, sales, and accounting
Market data, quotes, and financial analysis
User provisioning and directory management
Repository management, issues, and pull requests
# Salesforce CRM
Source: https://learn.getodin.ai/agents/external-integrations/salesforce
CRM data and operations
## Configuration
* **Environment**: Production
* **Instance URL**: [https://your-domain.my.salesforce.com](https://your-domain.my.salesforce.com) (optional; prompted on first use)
* **Default Object**: Account, Contact, Lead, etc.
* **Custom OAuth**: Client ID: 3MVG9..., Client Secret: Enter client secret...
* **Authentication**: OAuth; data access based on user permissions
## Available Tools (5/5)
* **Search Objects**: Find records across standard and custom objects.
* **Describe Object**: Get schema information for any object.
* **Query Records**: Execute SOQL queries to retrieve records.
* **Manage Records**: Create, update, or delete records.
* **Search All**: Perform full-text searches across multiple objects.
## Use Cases
* **Lead Enrichment**: Automatically enrich leads with research and company data.
* **Opportunity Management**: Track deals through pipeline and forecast revenue.
* **Automated Lead Routing**: Assign leads based on territory or lead score.
* **Customer Data Sync**: Synchronize data between Salesforce and other systems.
* **Case Automation**: Auto-create support cases and update statuses.
## API Limits & Quotas
Salesforce enforces API call limits based on edition and license type. Professional: 1,000 calls/day, Enterprise: 5,000+ calls/day, Unlimited: 10,000+ calls/day. Monitor usage in Setup → System Overview → API Usage. Use bulk operations to maximize efficiency.
## Common Issues & Solutions
* **API Limit Exceeded**: Implement caching, use bulk operations, or request limit increase from Salesforce.
* **Invalid Field**: Verify field API names (often differ from display labels). Check field-level security.
* **Record Type Mismatch**: Ensure correct record type ID when creating records with multiple record types.
* **Validation Rules**: Failed saves may be due to Salesforce validation rules. Review error messages carefully.
# Yahoo Finance
Source: https://learn.getodin.ai/agents/external-integrations/yahoo-finance
Market data, quotes, and financial analysis
## Configuration
* **Default Stock Symbols**: AAPL, GOOGL, MSFT
* **Default Time Period**: 1 Year
* **Default Data Interval**: 1 Day
* **Maximum Results**: 50
* **Setup**: No setup required; data via Yahoo Finance
## Available Features
### Market Data
* Real-time quotes
* Historical data
* Indices
* Volume
* Market cap
### Research & Analysis
* Company information
* Financials
* Symbol lookup
* Market news
* Trending stocks
## Available Tools (7/7)
* **Get Stock Quote**: Real-time price, volume, and market data.
* **Get Stock History**: Historical OHLCV data for any date range.
* **Get Market Summary**: Major indices performance (S\&P 500, Dow, NASDAQ).
* **Get Company Info**: Company details, sector, industry, and description.
* **Search Stock Symbols**: Find stock tickers by company name.
* **Get Market News**: Latest financial news for stocks or markets.
* **Get Trending Stocks**: Most active stocks, gainers, and losers.
## Use Cases
* **Portfolio Tracking**: Monitor investment portfolio values and performance.
* **Investment Research**: Analyze company fundamentals and financials.
* **Market Monitoring**: Track market trends and sentiment.
* **Automated Alerts**: Send notifications for price targets.
* **Financial Analysis**: Build financial models using historical data.
## Best Practices
* **Use Correct Tickers**: Verify ticker symbols including exchange suffix if needed (e.g., AAPL for Apple).
* **Handle Delisted Stocks**: Check for valid data before processing to avoid errors.
* **Cache Data**: Store frequently accessed data locally to reduce redundant requests.
* **Timezone Awareness**: Market data is in exchange's local time; converted to user timezone.
* **Market Hours**: Account for market open/close times when using real-time data.
* **Data Delay**: Remember 15-minute delay for most quotes; use appropriate disclaimers.
## Supported Assets
* Stocks (US and international exchanges)
* ETFs and Mutual Funds
* Indices (^GSPC, ^DJI, ^IXIC, etc.)
* Cryptocurrencies (BTC-USD, ETH-USD, etc.)
* Forex Pairs (EURUSD=X, GBPUSD=X, etc.)
* Commodities (Gold, Oil, etc.)
* Futures Contracts
## Common Issues & Solutions
* **Ticker Not Found**: Verify ticker symbol spelling and exchange suffix.
* **No Data Available**: Stock may be delisted or historical data not available for date range.
* **Inconsistent Data**: Cross-reference critical data with official sources.
* **Rate Limiting**: While rare, excessive requests may be throttled. Implement reasonable delays.
# Hoshi 1.0
Source: https://learn.getodin.ai/agents/hoshi
Our proprietary frontier model — agent-grade intelligence using a fraction of the credits
**Hoshi 1.0** is our proprietary frontier model, purpose-built for agentic workloads. It delivers frontier-tier performance on coding, structured output, and tool-use benchmarks at a **fraction of the credits** of leading alternatives.
## Why Hoshi 1.0?
Hoshi 1.0 is designed from the ground up for the kinds of tasks Odin AI Platform agents perform every day: reasoning over documents, calling tools, generating structured output, and following multi-step instructions. It is not a general-purpose chatbot — it is an **agent engine**.
Frontier-level quality at a fraction of the credits of GPT 5.5 or Sonnet 5.
Drop-in Chat Completions API — change three lines and keep your stack.
Standard request/response shape. Switch back or route around us anytime.
## Pricing
Hoshi 1.0 uses a simple credit-based pricing model. No subscription is required for raw API access.
| Tier | Credits |
| ---------------- | ----------------------------------------------- |
| **Input** | 150 / 1M tokens |
| **Cached Input** | 10 / 1M tokens (\~15× cheaper than fresh input) |
| **Output** | 300 / 1M tokens |
Credits are the universal unit across Shogo. Agent plans (Free / Basic / Pro / Business) include a monthly credit allotment — see the [pricing page](https://www.shogo.ai/pricing) for details.
## When to Use Hoshi vs. Frontier Models
Choosing the right model depends on the task. Use the guide below to decide when Hoshi 1.0 is the best fit and when you might reach for a frontier model like **Sonnet 5** or **GPT 5.5**.
### Use Hoshi 1.0 When…
| Scenario | Why Hoshi Wins |
| ------------------------------------ | --------------------------------------------------------------------------------- |
| **Tool calling & function use** | Purpose-tuned for reliable, low-latency tool invocations — the core of any agent. |
| **Structured output (JSON, tables)** | Consistently produces valid, schema-conformant output without retries. |
| **Multi-step reasoning** | Excels at chaining actions, parsing responses, and deciding next steps. |
| **High-volume batch tasks** | At 150 credits / 1M input tokens, running thousands of agent turns is economical. |
| **Knowledge Base retrieval** | Optimized for RAG-style workflows — grounding answers in your documents. |
| **Cost-sensitive production** | Same quality tier as frontier models at a fraction of the credits. |
| **Code generation & refactoring** | Sweeps coding benchmarks; generates, edits, and reviews code reliably. |
### Use a Frontier Model When…
| Scenario | Why a Frontier Model May Be Better |
| ---------------------------------------- | -------------------------------------------------------------------------------------------------------- |
| **Ultra-long context (> 200K tokens)** | Models like Claude Sonnet 5 or GPT 5.5 support very large context windows for massive document analysis. |
| **Cutting-edge multimodal reasoning** | When you need best-in-class vision, audio, or cross-modal understanding. |
| **Highly creative / open-ended writing** | Frontier models may produce more varied, stylistically rich prose for marketing or storytelling. |
| **Regulatory or compliance constraints** | Some organizations require a specific provider's model for data governance reasons. |
| **Research-grade tasks** | When you need the absolute latest capability on a novel, unstructured problem. |
For most Odin AI Platform agent workloads — tool calling, structured output, RAG, and multi-step automation — **Hoshi 1.0 is the recommended default**. Use frontier models only when you have a specific reason to do so.
## Quick Comparison
| Dimension | Hoshi 1.0 | Sonnet 5 | GPT 5.5 |
| --------------------- | ---------------- | ------------ | ------------ |
| **Input cost** | 150 credits / 1M | \$2.00 / 1M | \$5.00 / 1M |
| **Output cost** | 300 credits / 1M | \$10.00 / 1M | \$30.00 / 1M |
| **Tool calling** | ★★★★★ | ★★★★★ | ★★★★★ |
| **Structured output** | ★★★★★ | ★★★★☆ | ★★★★☆ |
| **Coding** | ★★★★★ | ★★★★★ | ★★★★★ |
| **Creative writing** | ★★★★☆ | ★★★★★ | ★★★★★ |
| **Multimodal** | ★★★☆☆ | ★★★★★ | ★★★★★ |
| **Context window** | 128K | 200K | 128K |
| **OpenAI-compatible** | ✅ | ❌ | ✅ |
## Getting Started
Hoshi 1.0 is available in Odin AI Platform as a predefined model. No API key configuration is required.
### Select Hoshi in Your Agent
Go to **Agents** in the sidebar.
Select an existing agent or create a new one.
Open the **General** tab in the agent configuration.
Find the **Model** drop-down selector and choose **Hoshi 1.0** from the list.
### Use via API
Hoshi 1.0 is fully OpenAI-compatible. Point your existing client at the Shogo API:
```bash theme={null}
curl https://api.shogo.ai/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "hoshi-1.0",
"messages": [
{"role": "user", "content": "Summarize this document into bullet points."}
]
}'
```
Or use the OpenAI SDK:
```python theme={null}
from openai import OpenAI
client = OpenAI(
api_key="YOUR_API_KEY",
base_url="https://api.shogo.ai/v1"
)
response = client.chat.completions.create(
model="hoshi-1.0",
messages=[{"role": "user", "content": "Summarize this document into bullet points."}]
)
print(response.choices[0].message.content)
```
## Routing: Use Hoshi by Default, Frontier by Exception
Odin AI Platform's model routing lets you set **Hoshi 1.0 as your default model** across all agents and selectively override to a frontier model only when a specific task demands it. This gives you the best of both worlds:
1. **Default to Hoshi** — all agents run on Hoshi 1.0 for cost-efficient, high-quality performance.
2. **Override per agent** — switch individual agents to Sonnet 5 or GPT 5.5 when the task requires it (e.g., multimodal analysis, ultra-long context).
3. **Monitor and adjust** — track performance and cost per agent, then optimize your model mix over time.
## FAQ
For agentic tasks — tool calling, structured output, coding, and multi-step reasoning — Hoshi 1.0 performs at the same frontier tier. Frontier models may have an edge on highly creative writing, multimodal reasoning, and extremely long contexts.
Yes. Hoshi 1.0 is available both as a predefined model in Odin AI Platform (no key needed) and via the raw API with your own Shogo API key.
When you send the same context repeatedly (e.g., the same system prompt or knowledge base retrieval), cached tokens are billed at 10 credits / 1M — roughly 15× cheaper than fresh input tokens.
Hoshi 1.0 runs on Shogo infrastructure. Your data is not used to train the model. For full details, see the [Shogo privacy policy](https://www.shogo.ai/privacy).
No. Hoshi 1.0 is our flagship model and will be actively maintained and improved. Future versions will be announced with clear migration timelines.
## Learn More
* [Hoshi 1.0 Product Page](https://www.shogo.ai/hoshi/) — full technical details and benchmarks
* [Model Pricing](/agents/models) — compare all available models and their costs
* [Agent Best Practices](/agents/best-practices) — tips for building effective agents
# MCP (Model Context Protocol)
Source: https://learn.getodin.ai/agents/mcp
Connect agents to external systems and tools using the Model Context Protocol
The Model Context Protocol (MCP) is an open standard that enables you to build secure, two-way connections between your data sources and AI-powered tools. Think of MCP as a universal translator that allows AI Agents to seamlessly communicate with any external system such as databases, file systems, web services, and APIs.
## Overview
MCP servers extend your agent's capabilities by providing:
* **External Tool Access** - Connect to third-party services and APIs
* **Data Source Integration** - Access databases, file systems, and cloud storage
* **Custom Functionality** - Add specialized tools for your specific use cases
* **Standardized Interface** - Use a consistent protocol for all integrations
* **Secure Authentication** - Support for OAuth 2.0 and custom headers
## How It Works
### 1. MCP Server Connection
When you add an MCP server to your agent:
1. **Server Registration** - The server is registered with your agent configuration
2. **Tool Discovery** - The agent discovers available tools from the MCP server
3. **Tool Integration** - Tools become available to the agent during conversations
4. **Dynamic Execution** - The agent can call these tools as needed
### 2. Tool Execution Flow
```
User Query → Agent → MCP Tool Call → MCP Server → External System → Response → Agent → User
```
### 3. Multiple Servers
You can configure multiple MCP servers per agent:
* Each server provides its own set of tools
* Tools are prefixed with the server name (e.g., `sentry_get_errors`)
* Servers can be enabled or disabled independently
## Quick Start
### Adding Popular MCP Servers
1. Navigate to **Agents** in the sidebar
2. Select or create an agent
3. Click **Edit** to open the agent builder
4. Go to the **MCP** tab
5. In the **Quick Add Popular Servers** section, click on a server tile to add it
### Popular Servers
#### Sentry
Monitor errors and performance issues in your applications.
* **URL**: `https://mcp.sentry.dev/mcp`
* **Transport**: HTTP
* **Authentication**: OAuth 2.0
* **Scopes**: `org:read project:write team:write event:write`
**Capabilities:**
* View error reports
* Monitor performance metrics
* Manage projects and teams
* Track events and issues
## Video Tutorial
Watch this video to see how to add and configure MCP servers:
## Adding Custom MCP Servers
### Step 1: Access MCP Configuration
1. Navigate to **Agents** in the sidebar
2. Select or create an agent
3. Click **Edit** to open the agent builder
4. Go to the **MCP** tab
5. Scroll to the **Advanced Configuration** section
### Step 2: Add New Server
1. Click **Add Server** button
2. The server configuration form will appear
### Step 3: Configure Server Settings
#### Server Name
Enter a unique name for your MCP server (e.g., `my-custom-server`, `weather-api`, `database-connector`).
**Best Practices:**
* Use lowercase letters and hyphens
* Be descriptive but concise
* Avoid special characters
#### Transport Type
Select how the agent will communicate with the MCP server:
**HTTP (streamable\_http)**
* Standard HTTP requests
* Best for REST APIs and web services
* Supports request/response pattern
**SSE (Server-Sent Events)**
* Real-time streaming communication
* Best for live data feeds
* Supports one-way server-to-client streaming
#### Server URL
Enter the endpoint URL for your MCP server:
**HTTP Examples:**
* `https://api.example.com/mcp`
* `http://localhost:8000/mcp/`
* `https://mcp.example.com/v1`
**SSE Examples:**
* `https://api.example.com/sse`
* `https://stream.example.com/events`
### Step 4: Configure Authentication
#### No Authentication
Select **No Authentication** if your MCP server doesn't require authentication.
#### OAuth 2.0
For OAuth-protected servers:
1. Select **OAuth 2.0** as the authentication method
2. Enter **OAuth Scopes** (space-separated)
* Example: `read write admin`
* Example: `org:read project:write team:write`
**OAuth Flow:**
* When a user interacts with the agent, they'll be prompted to authorize
* Authorization is handled automatically
* Tokens are securely stored and refreshed as needed
### Step 5: Custom Headers (Optional)
If your MCP server requires custom HTTP headers:
1. Click **Add Header**
2. Enter the header name (e.g., `X-API-Key`, `Authorization`)
3. Enter the header value
4. Add additional headers as needed
**Common Headers:**
* `X-API-Key`: `your-api-key`
* `Authorization`: `Bearer token`
* `X-Custom-Header`: `custom-value`
### Step 6: Enable/Disable Server
Toggle the **Enabled** checkbox to control whether the server is active:
* **Enabled**: Server tools are available to the agent
* **Disabled**: Server tools are hidden but configuration is preserved
### Step 7: Test Connection
1. Click the **Test** button to verify the connection
2. Wait for the test result:
* **Success**: Server is reachable and configured correctly
* **Error**: Check your configuration and network connectivity
### Step 8: Save Configuration
1. Click **Save** to store your MCP server configuration
2. The server is now available to your agent
## Managing MCP Servers
### Viewing Configured Servers
In the **MCP** tab, you can see:
* **Server Count** - Number of configured servers
* **Server Status** - Enabled/disabled status
* **Server Names** - List of all configured servers
### Editing Server Configuration
1. Find the server in the **Advanced Configuration** section
2. Click to expand the server configuration
3. Modify any settings
4. Click **Test** to verify changes
5. Configuration is saved automatically
### Removing Servers
1. Find the server you want to remove
2. Click the **Remove** icon (trash can)
3. Confirm removal
4. The server is removed from your agent configuration
Removing an MCP server will make its tools unavailable to the agent. Make sure
no active conversations depend on these tools.
### Enabling/Disabling Servers
Toggle the **Enabled** checkbox for any server:
* **Enable**: Makes server tools available
* **Disable**: Hides server tools but preserves configuration
This is useful for:
* Temporarily disabling problematic servers
* Testing different server configurations
* Managing server availability without removing configuration
## Transport Types
### HTTP (streamable\_http)
**Use When:**
* Connecting to REST APIs
* Standard request/response patterns
* Web services and microservices
**Configuration:**
* URL should point to the MCP endpoint
* Supports standard HTTP methods
* Works with most web services
**Example:**
```
URL: https://api.example.com/mcp
Transport: HTTP
```
### SSE (Server-Sent Events)
**Use When:**
* Real-time data streams
* Live updates and notifications
* One-way server-to-client communication
**Configuration:**
* URL should point to the SSE endpoint
* Server must support SSE protocol
* Automatic reconnection on disconnect
**Example:**
```
URL: https://stream.example.com/sse
Transport: SSE
```
## Authentication Methods
### No Authentication
Use when your MCP server doesn't require authentication:
* Public APIs
* Internal services
* Development/testing servers
**Configuration:**
* Select **No Authentication**
* No additional configuration needed
### OAuth 2.0
Use for secure, user-authorized access:
* Third-party services (Sentry, Canva, etc.)
* User-specific data access
* Scoped permissions
**Configuration:**
1. Select **OAuth 2.0**
2. Enter OAuth scopes (space-separated)
3. Users will authorize on first use
**OAuth Scopes Examples:**
* Sentry: `org:read project:write team:write event:write`
* Canva: `asset:read asset:write design:read design:write`
* Custom: `read write admin`
**OAuth Flow:**
1. User interacts with agent
2. Agent needs MCP tool from OAuth-protected server
3. User is prompted to authorize
4. Authorization completes automatically
5. Token is stored securely
6. Future requests use stored token
## Custom Headers
Use custom headers for:
* API keys
* Custom authentication tokens
* Service-specific headers
* Request metadata
### Adding Headers
1. In server configuration, find **Custom Headers** section
2. Click **Add Header**
3. Enter header name (e.g., `X-API-Key`)
4. Enter header value
5. Add more headers as needed
### Common Header Patterns
**API Key:**
```
Header: X-API-Key
Value: your-api-key-here
```
**Bearer Token:**
```
Header: Authorization
Value: Bearer your-token-here
```
**Custom Service Header:**
```
Header: X-Service-Name
Value: your-service-identifier
```
## Use Cases
### Error Monitoring
**Sentry MCP Server**
Monitor application errors and performance:
```json theme={null}
{
"server_name": "sentry",
"transport": "streamable_http",
"url": "https://mcp.sentry.dev/mcp",
"auth_type": "oauth",
"oauth_scopes": "org:read project:write team:write event:write"
}
```
**Agent Capabilities:**
* "Show me errors from the last 24 hours"
* "What's the error rate for project X?"
* "List all unresolved issues"
### Database Access
**Custom Database MCP Server**
Connect to your database:
```json theme={null}
{
"server_name": "postgres-db",
"transport": "streamable_http",
"url": "https://mcp.example.com/database",
"auth_type": "oauth",
"headers": {
"X-Database-Name": "production"
}
}
```
**Agent Capabilities:**
* "Query the users table"
* "Show me recent orders"
* "Get customer statistics"
### File System Access
**File System MCP Server**
Access files and directories:
```json theme={null}
{
"server_name": "filesystem",
"transport": "streamable_http",
"url": "https://mcp.example.com/files",
"auth_type": "oauth"
}
```
**Agent Capabilities:**
* "List files in the documents folder"
* "Read the config file"
* "Search for files containing 'error'"
### Real-Time Data Streams
**SSE MCP Server**
Connect to live data feeds:
```json theme={null}
{
"server_name": "live-data",
"transport": "sse",
"url": "https://stream.example.com/sse",
"auth_type": "oauth"
}
```
**Agent Capabilities:**
* "Show me live stock prices"
* "Monitor system metrics"
* "Track real-time events"
## Best Practices
### Server Naming
* **Be Descriptive**: Use clear, meaningful names
* **Use Lowercase**: Prefer lowercase with hyphens
* **Avoid Special Characters**: Stick to letters, numbers, and hyphens
* **Be Consistent**: Follow a naming convention
**Good Examples:**
* `sentry-monitoring`
* `postgres-production`
* `weather-api`
**Bad Examples:**
* `Server1`
* `my_mcp_server`
* `MCP-Server!!!`
### URL Configuration
* **Use HTTPS**: Always prefer secure connections
* **Include Full Path**: Specify the complete endpoint URL
* **Test URLs**: Verify URLs are accessible before saving
* **Document Endpoints**: Keep documentation of your endpoints
### Authentication
* **Use OAuth When Possible**: More secure than API keys
* **Minimize Scopes**: Request only necessary permissions
* **Store Securely**: Tokens are handled automatically
* **Test Authorization**: Verify OAuth flow works correctly
### Error Handling
* **Test Connections**: Use the Test button before saving
* **Monitor Logs**: Check for connection errors
* **Handle Failures**: Configure fallbacks for critical servers
* **Disable Problematic Servers**: Temporarily disable if needed
### Performance
* **Limit Server Count**: Too many servers can slow down agents
* **Disable Unused Servers**: Keep only active servers enabled
* **Optimize Headers**: Only include necessary custom headers
* **Monitor Response Times**: Watch for slow MCP server responses
## Troubleshooting
### Connection Failures
**Problem**: Test connection fails
**Possible Causes:**
* Incorrect URL
* Network connectivity issues
* Server not running
* Firewall blocking connection
**Solutions:**
* Verify URL is correct and accessible
* Check network connectivity
* Ensure server is running
* Review firewall rules
### Authentication Errors
**Problem**: OAuth authentication fails
**Possible Causes:**
* Incorrect OAuth scopes
* Server doesn't support OAuth
* User hasn't authorized
* Token expired
**Solutions:**
* Verify OAuth scopes are correct
* Check server OAuth documentation
* Re-authorize the connection
* Check token expiration settings
### Tools Not Available
**Problem**: MCP server tools don't appear
**Possible Causes:**
* Server is disabled
* Connection not established
* Server not responding
* Tool discovery failed
**Solutions:**
* Enable the server
* Test the connection
* Verify server is running
* Check server logs
### Timeout Errors
**Problem**: Requests timeout
**Possible Causes:**
* Slow server response
* Network latency
* Server overloaded
* Incorrect timeout settings
**Solutions:**
* Check server performance
* Verify network speed
* Reduce server load
* Adjust timeout settings if configurable
## Testing MCP Servers
### Test Connection
1. Configure your MCP server
2. Click the **Test** button
3. Wait for results:
* **Success**: Green indicator with success message
* **Error**: Red indicator with error details
### Test Results
**Success Indicators:**
* Connection successful message
* Server responding correctly
* Authentication working (if applicable)
**Error Indicators:**
* Connection timeout
* Authentication failed
* Invalid URL
* Server not responding
### Interpreting Results
**Success:**
```
✓ Connection successful
MCP server connection tested successfully
```
**Error:**
```
✗ Connection failed
Failed to connect to server: Connection timeout
```
## Security Considerations
### OAuth Security
* **Token Storage**: Tokens are stored securely
* **Token Refresh**: Automatic token refresh when expired
* **Scope Limitation**: Request minimum necessary scopes
* **User Authorization**: Users must explicitly authorize
### Custom Headers
* **Sensitive Data**: Don't put sensitive data in headers if avoidable
* **API Keys**: Use OAuth when possible instead of API keys
* **Header Visibility**: Headers are stored in configuration
* **Access Control**: Limit who can view/edit MCP configurations
### Network Security
* **HTTPS Only**: Always use HTTPS for production servers
* **Internal Networks**: Use internal URLs for private servers
* **Firewall Rules**: Configure firewalls appropriately
* **VPN Access**: Use VPN for secure connections when needed
## Examples
### Example 1: Sentry Integration
**Configuration:**
```json theme={null}
{
"server_name": "sentry",
"transport": "streamable_http",
"url": "https://mcp.sentry.dev/mcp",
"auth_type": "oauth",
"oauth_scopes": "org:read project:write team:write event:write",
"enabled": true
}
```
**Usage:**
* Agent can monitor errors
* View performance metrics
* Manage Sentry projects
### Example 2: Custom API Integration
**Configuration:**
```json theme={null}
{
"server_name": "custom-api",
"transport": "streamable_http",
"url": "https://api.example.com/mcp",
"auth_type": "oauth",
"oauth_scopes": "read write",
"headers": {
"X-Client-ID": "your-client-id"
},
"enabled": true
}
```
**Usage:**
* Agent can call custom API endpoints
* Access protected resources
* Use custom headers for identification
### Example 3: Internal Service
**Configuration:**
```json theme={null}
{
"server_name": "internal-service",
"transport": "streamable_http",
"url": "http://internal-service:8000/mcp",
"auth_type": "none",
"headers": {
"X-Internal-Key": "internal-key-value"
},
"enabled": true
}
```
**Usage:**
* Agent can access internal services
* No OAuth required
* Custom header for internal authentication
## Related Features
* **Toolkits** - Built-in integrations and tools
* **Tools** - Custom tools and actions
* **Agent Configuration** - Configure agent behavior
* **API Integration** - Connect to external APIs
Learn about built-in toolkits and integrations
## Support
Need help with MCP servers? Contact support at [support@getodin.ai](mailto:support@getodin.ai).
# Memory
Source: https://learn.getodin.ai/agents/memory
Enable agents to learn and remember user preferences, facts, and context
The Agent Memory feature allows your AI agents to learn and remember important information about users from their conversations. This enables personalized, context-aware interactions that improve over time. This article will explain how this feature works as well as how to enable and fine-tune it for your specific use case. At the end of the article we offer some examples to get you started. Get more out of your AI Agents with the Memory feature.
## Overview
Agent Memory is an intelligent system that:
* **Automatically detects** memorable information from user conversations
* **Learns user preferences** and important facts
* **Remembers context** for future interactions
* **Personalizes responses** based on stored memories
* **Requires approval** before storing memories (configurable)
## How It Works
### 1. Automatic Detection
When memory is enabled, the agent analyzes each user message in the background to identify:
* **User Preferences** - Likes, dislikes, working styles, communication preferences
* **Important Facts** - Role, company, specific needs, requirements
* **Context** - Important background information that helps personalize responses
### 2. Memory Creation
When memorable information is detected:
1. **Analysis** - The agent uses AI to analyze the message content
2. **Duplicate Check** - Checks against existing memories to avoid duplicates
3. **Confidence Scoring** - Assigns a confidence score (0.0 to 1.0)
4. **Pending Status** - Creates a memory with "pending" status
5. **Expiration** - Pending memories expire after 7 days if not approved
### 3. Approval Workflow
Memories go through an approval process:
* **Pending** - Newly detected memories awaiting review
* **Approved** - Memories that have been reviewed and accepted
* **Rejected** - Memories that have been declined
### 4. Integration
Approved memories are automatically:
* **Included in system prompts** - Added to agent context for every conversation
* **Formatted by type** - Organized as User Preferences, User Information, or Important Context
* **User-specific** - Only memories for the current user are included
## Memory Types
### Preference
User preferences and working styles:
* Communication preferences
* Format preferences
* Workflow preferences
* Style preferences
**Example:**
* "User prefers detailed explanations with examples"
* "User likes to receive summaries in bullet points"
* "User prefers morning meetings"
### Fact
Important factual information about the user:
* Role and responsibilities
* Company information
* Technical expertise
* Specific requirements
**Example:**
* "User is a software engineer at TechCorp"
* "User specializes in Python and machine learning"
* "User works in the healthcare industry"
### Context
Important background information:
* Project context
* Current situation
* Relevant history
* Special circumstances
**Example:**
* "User is working on a deadline for Q4 launch"
* "User's team uses Agile methodology"
* "User is new to the platform"
## Enabling Memory
### Step 1: Access Agent Settings
1. Navigate to **Agents** in the sidebar
2. Select the agent you want to configure
3. Click **Edit** to open the agent builder
4. Go to the **Memory** tab
### Step 2: Enable Memory
1. Toggle **Enable Memory** to ON
2. The agent will now start analyzing messages for memorable information
### Step 3: Configure Settings (Optional)
You can customize memory behavior:
* **Max Memories** - Maximum number of memories per user (default: 50)
* **Auto Approve** - Automatically approve memories without review (default: false)
* **Memory Types** - Which types of memories to detect (preference, fact, context)
## Managing Memories
### Viewing Memories
In the Memory tab, you can view:
* **Approved Memories** - All active memories organized by user
* **Pending Approvals** - New memories awaiting your review
* **Memory Statistics** - Total memories, approved, pending, and user count
### Approving Memories
1. Go to the **Pending** tab
2. Review each memory suggestion
3. See the original message that triggered the memory
4. Check the confidence score
5. Click **Approve** or **Reject**
### Filtering Memories
* **By User** - Filter to see memories for a specific user
* **By Type** - View memories by type (preference, fact, context)
* **By Status** - Switch between Approved and Pending views
### Deleting Memories
1. Find the memory in the **Approved** tab
2. Click the **Delete** icon
3. Confirm the deletion
## Memory Settings
### Enable Memory
Toggle to enable or disable memory detection for the agent.
When memory is disabled, no new memories will be created, but existing
approved memories will still be used in conversations.
### Max Memories
Limit the total number of memories stored per user. When the limit is reached, older memories may be replaced or new ones may be rejected.
### Auto Approve
When enabled, detected memories are automatically approved without requiring manual review. This is useful for:
* High-confidence memories
* Low-risk environments
* Automated workflows
Auto-approve bypasses the review process. Use with caution to ensure memory
quality.
### Memory Types
Select which types of memories the agent should detect:
* **Preference** - User preferences and styles
* **Fact** - Important factual information
* **Context** - Background and situational context
## Best Practices
### For Administrators
1. **Review Regularly** - Check pending memories periodically
2. **Quality Control** - Reject low-quality or irrelevant memories
3. **User Privacy** - Ensure memories comply with privacy policies
4. **Monitor Usage** - Track memory statistics to optimize settings
### For Users
1. **Be Explicit** - Clearly state preferences and important information
2. **Provide Context** - Share relevant background when needed
3. **Update Memories** - Inform the agent when preferences change
4. **Review Suggestions** - Approve or reject memory suggestions as appropriate
### Memory Quality
* **Be Specific** - Vague memories are less useful
* **Be Relevant** - Focus on information that improves future interactions
* **Avoid Duplicates** - The system checks for duplicates, but review carefully
* **Keep Updated** - Remove outdated memories
## Memory Lifecycle
### Creation
1. User sends a message
2. Agent analyzes message in background
3. AI detects memorable information
4. Memory created with "pending" status
5. Expiration timer starts (7 days)
### Approval
1. Admin/user reviews pending memory
2. Approves or rejects the memory
3. If approved, memory becomes active
4. If rejected, memory is archived
### Usage
1. User starts a conversation
2. System loads approved memories for that user
3. Memories are formatted and added to system prompt
4. Agent uses memories to personalize responses
### Expiration
* **Pending memories** expire after 7 days if not approved
* **Approved memories** do not expire (unless manually deleted)
* Expired pending memories are automatically rejected
## Privacy and Security
### Data Storage
* Memories are stored securely in the database
* Each memory is linked to a specific user and agent
* Memories are isolated per user (users can't see each other's memories)
### Access Control
* Only users with agent access can view memories
* Users can only see their own memories
* Admins can view all memories for their agents
### Data Retention
* Approved memories persist until manually deleted
* Rejected memories are archived
* Expired pending memories are automatically removed
## Troubleshooting
### Memories Not Being Created
**Possible Causes:**
* Memory is disabled for the agent
* Messages are too short (\< 10 characters) or too long (> 2000 characters)
* No memorable information detected in messages
* Duplicate of existing memory
**Solutions:**
* Check that memory is enabled in agent settings
* Ensure messages contain clear preferences or facts
* Review existing memories to avoid duplicates
### Too Many Pending Memories
**Possible Causes:**
* High message volume
* Auto-approve is disabled
* Not reviewing memories regularly
**Solutions:**
* Enable auto-approve for high-confidence memories
* Set up regular review schedule
* Adjust memory detection sensitivity
### Memories Not Being Used
**Possible Causes:**
* Memories are still pending (not approved)
* Memory was rejected
* Agent is not loading memories correctly
**Solutions:**
* Approve pending memories
* Check memory status in the Memory tab
* Verify memory is enabled for the agent
## API Integration
The memory feature is accessible via API endpoints:
* `GET /agents/{agent_id}/memories` - Get all memories for an agent
* `GET /agents/{agent_id}/memories/user/{user_id}` - Get memories for a specific user
* `GET /memory-approvals/pending` - Get pending approvals
* `POST /memory-approvals/{memory_id}/action` - Approve or reject a memory
* `PUT /agents/{agent_id}/memory-settings` - Update memory settings
* `GET /agents/{agent_id}/memory-settings` - Get memory settings
* `DELETE /memories/{memory_id}` - Delete a memory
## Examples
### Example 1: Preference Memory
**User Message:**
"I prefer to receive code examples in Python rather than pseudocode"
**Detected Memory:**
* **Type:** Preference
* **Content:** "User prefers Python code examples over pseudocode"
* **Confidence:** 0.9
**Future Impact:**
Agent will provide Python code examples when the user asks for code.
### Example 2: Fact Memory
**User Message:**
"I'm the CTO at StartupCorp and we're building a SaaS platform"
**Detected Memory:**
* **Type:** Fact
* **Content:** "User is CTO at StartupCorp building a SaaS platform"
* **Confidence:** 0.95
**Future Impact:**
Agent will understand the user's role and company context in future conversations.
### Example 3: Context Memory
**User Message:**
"We're launching our product next month, so I need everything ready quickly"
**Detected Memory:**
* **Type:** Context
* **Content:** "User has product launch deadline next month requiring quick turnaround"
* **Confidence:** 0.85
**Future Impact:**
Agent will prioritize speed and urgency in responses.
## Support
Need help with the memory feature? Contact [Support](mailto:support@getodin.ai).
# Memory API Reference
Source: https://learn.getodin.ai/agents/memory-api-reference
Manage agent memories and approval workflows programmatically using the Odin AI Platform REST API.
## Authentication
All endpoints require the following headers:
```http theme={null}
x-api-key:
x-api-secret:
Content-Type: application/json
```
## Endpoints
**`GET /agents/{agent_id}/memory-settings`**
Returns the current memory configuration for an agent.
**Response example:**
```json theme={null}
{
"memory_enabled": true,
"max_memories": 50,
"auto_approve": false,
"memory_types": ["preference", "fact", "context"]
}
```
**`PUT /agents/{agent_id}/memory-settings`**
Enables, disables, or updates memory configuration for an agent.
**Request body:**
```json theme={null}
{
"memory_enabled": true,
"max_memories": 50,
"auto_approve": false,
"memory_types": ["preference", "fact", "context"]
}
```
**Response example:**
```json theme={null}
{
"success": true,
"message": "Memory settings updated successfully",
"settings": {
"memory_enabled": true,
"max_memories": 50,
"auto_approve": false,
"memory_types": ["preference", "fact", "context"]
}
}
```
**`GET /agents/{agent_id}/memories`**
Returns all approved memories for an agent, grouped by user.
**Response example:**
```json theme={null}
{
"memories_by_user": {
"user_123": [
{
"id": "memory_abc",
"agent_id": "agent_123",
"user_id": "user_123",
"memory_content": "User prefers concise technical answers.",
"memory_type": "preference",
"confidence_score": 0.92,
"status": "approved",
"created_at": 1710000000,
"updated_at": 1710000100,
"approved_at": 1710000100,
"source_message_id": "msg_123"
}
]
},
"total_users": 1,
"total_memories": 1
}
```
**`GET /agents/{agent_id}/memories/user/{user_id}`**
Returns approved memory records for one user and one agent.
**Response example:**
```json theme={null}
[
{
"id": "memory_abc",
"agent_id": "agent_123",
"user_id": "user_123",
"memory_content": "User prefers concise technical answers.",
"memory_type": "preference",
"confidence_score": 0.92,
"status": "approved",
"created_at": 1710000000,
"updated_at": 1710000100,
"approved_at": 1710000100,
"source_message_id": "msg_123"
}
]
```
**`GET /memory-approvals/pending`**
Returns pending memory approvals for the authenticated user. Optionally filter by agent using `?agent_id={agent_id}`.
**Response example:**
```json theme={null}
[
{
"id": "memory_abc",
"agent_id": "agent_123",
"user_id": "user_123",
"memory_content": "User prefers concise technical answers.",
"memory_type": "preference",
"confidence_score": 0.92,
"source_message": "Please keep answers short and technical.",
"created_at": 1710000000,
"expires_at": 1710604800
}
]
```
**`POST /memory-approvals/{memory_id}/action`**
Approves or rejects a pending memory record.
**Request body:**
```json theme={null}
{
"action": "approve"
}
```
**Response example:**
```json theme={null}
{
"success": true,
"message": "Memory approved successfully",
"memory_id": "memory_abc"
}
```
**`DELETE /memories/{memory_id}`**
Deletes a memory record by marking it as rejected.
**Response example:**
```json theme={null}
{
"success": true,
"message": "Memory deleted successfully",
"memory_id": "memory_abc"
}
```
# Managing Memories
Source: https://learn.getodin.ai/agents/memory-managing
View, approve, reject, and delete agent memories from the Memory Management panel.
## Memory Settings
Controls whether the agent can learn and remember user preferences from conversations.
| Setting | Description |
| ----------------- | --------------------------------------------------------------------------------------------------- |
| **Enable Memory** | Allow this agent to learn and remember user preferences from conversations. **Enabled by default.** |
When memory is disabled, no new memories will be created. However, existing approved memories will still be used in conversations.
### Memory Stats
The Memory Settings panel displays a live summary of the agent's memory state:
| Stat | Description |
| ------------------ | -------------------------------------------------------------------- |
| **Total Memories** | Total number of memory records stored for this agent. |
| **Approved** | Memories that have been approved and are actively used in responses. |
| **Pending** | Memories awaiting approval before being used. |
| **Users** | Number of distinct users with stored memories for this agent. |
## Memory Management Panel
The **Memory Management** panel lets you view, approve, reject, and delete memory records. Use the **All Users** filter to scope the view to a specific user or view all at once.
### Viewing Memories
| Tab | Description |
| ------------ | ------------------------------------------------------------------------------------ |
| **Approved** | Memories that are active and injected into the agent's context during conversations. |
| **Pending** | Memories detected from conversations that are awaiting review before use. |
### Approving or Rejecting Memories
Navigate to the **Memory** tab and select **Pending**.
Check the memory content, the original message that triggered it, and the confidence score.
Click **Approve** to activate the memory or **Reject** to archive it.
### Filtering Memories
* **By User** — Use the **All Users** dropdown to filter memories for a specific user.
* **By Status** — Switch between the **Approved** and **Pending** tabs.
### Deleting Memories
Navigate to the **Memory** tab and select **Approved**.
Locate the memory record you want to remove.
Click the **Delete** icon and confirm the deletion.
## Privacy and Security
### Data Storage
* Memories are stored securely and linked to a specific user and agent.
* Memories are isolated per user — users cannot see each other's memories.
### Access Control
* Only users with agent access can view memories.
* Users can only see their own memories.
* Admins can view all memories for their agents.
### Data Retention
* Approved memories persist until manually deleted.
* Rejected memories are archived.
* Expired pending memories are automatically removed.
## Best Practices
### For Administrators
* **Review regularly** — Check pending memories periodically to maintain quality.
* **Quality control** — Reject low-quality or irrelevant memories.
* **User privacy** — Ensure stored memories comply with your organization's privacy policies.
* **Monitor usage** — Track memory statistics to optimize agent behavior over time.
### For Users
* **Be explicit** — Clearly state preferences and important information so the agent can detect them.
* **Provide context** — Share relevant background when starting new workflows.
* **Update memories** — Inform the agent when preferences change.
### Memory Quality Tips
* **Be specific** — Vague memories are less useful than precise ones.
* **Stay relevant** — Focus on information that will genuinely improve future interactions.
* **Remove outdated memories** — Delete memories that no longer reflect current preferences or facts.
## Troubleshooting
**Possible causes:**
* Memory is disabled for the agent.
* Messages are too short (under 10 characters) or too long (over 2,000 characters).
* No memorable information was detected in the message.
* The memory is a duplicate of an existing one.
**Solutions:**
* Verify that memory is enabled in the Memory Settings panel.
* Ensure messages contain clear preferences or facts.
* Review existing memories to check for duplicates.
**Possible causes:**
* High message volume generating many candidates.
* Pending memories not being reviewed regularly.
**Solutions:**
* Set up a regular review schedule for pending memories.
* Reject low-confidence or irrelevant candidates to keep the queue manageable.
**Possible causes:**
* Memories are still in `pending` status.
* Memory was rejected.
* Memory is not enabled for the agent.
**Solutions:**
* Approve pending memories in the Memory Management panel.
* Check memory status in the **Memory** tab.
* Verify that **Enable Memory** is toggled on.
# Predefined and Custom Models
Source: https://learn.getodin.ai/agents/models
Configure LLM models for your agents - use default models or bring your own API keys
Odin AI not only brings you the latest and most popular models available, we enable you to connect to your own custom model with our "Bring Your Own Keys" (BYOK) feature. This gives you the ability to create custom Agents and test how they respond or complete the tasks you give them so that you can use the LLM that produces the best results for your use case. In this article you'll learn about the different LLMs that are available and how to connect your own custom LLM to your Agents.
Your agents can use two types of models:
* **Predefined Models** - Pre-configured models available to all users
* **Custom Models** - Models you configure with your own API keys (BYOK)
## Predefined Models
Predefined models are available by default and don't require API key configuration. These models are managed by Odin and are ready to use.
Odin provides access to a wide range of models from leading AI providers, including OpenAI, Anthropic, Google AI, and more. The full list of available models is displayed in the model selector when configuring your agent.
### Frontier Models
Frontier models represent the latest and most advanced AI capabilities available. These cutting-edge models offer superior performance for complex tasks:
#### OpenAI Frontier Models
* **GPT-4o** - Latest GPT-4 model with improved performance, faster responses, and enhanced capabilities
* **O1 Mini** - Advanced reasoning model optimized for complex problem-solving and step-by-step thinking
* **GPT-4 Turbo** - High-performance model with extended context window
#### Anthropic Frontier Models
* **Claude 3.5 Sonnet** - Latest Claude model with advanced reasoning, long context (200K tokens), and superior performance
* **Claude 3 Opus** - Most capable Claude model for complex, nuanced tasks requiring deep understanding
#### Google AI Frontier Models
* **Gemini Pro** - Google's latest advanced language model with multimodal capabilities and extended context
### Other Available Models
In addition to frontier models, Odin provides access to a comprehensive selection of models including:
* **GPT-3.5 Turbo** - Fast and cost-effective option for general tasks
* **Claude 3 Haiku** - Fast and efficient Claude model
* **Llama 3** - Open-source models (8B and 70B variants)
* **Mixtral** - High-performance open-source model
* **DeepSeek** - Advanced reasoning model
* And many more...
All available models are visible in the model selector dropdown when configuring your agent. Models are organized by provider and show their cost, capabilities, and availability status.
### Model Selection
1. Navigate to **Agents** in the sidebar
2. Select or create an agent
3. Click **Edit** to open the agent builder
4. Go to the **General** tab
5. Find the **Model** section
6. Select a predefined model from the dropdown
### Model Information
Each predefined model shows:
* **Model Name** - Display name (e.g., "GPT-4o")
* **Provider** - API provider (OpenAI, Anthropic, Google AI)
* **Cost** - Credits per use
* **Status** - Available or requires upgrade
## Custom Models (BYOK)
Bring Your Own Key (BYOK) allows you to configure custom models using your own API keys. This gives you:
* **Cost Control** - Use your own API keys and billing
* **Model Flexibility** - Access models not available in predefined list
* **Custom Endpoints** - Connect to private or custom model endpoints
* **Provider Choice** - Use any compatible API provider
### Supported Providers
#### OpenAI
* Standard OpenAI API models
* Azure OpenAI endpoints
* Custom OpenAI-compatible endpoints
**Configuration:**
* API Key: Your OpenAI API key
* API URL: `https://api.openai.com/v1` (default)
* Model Name: e.g., `gpt-4`, `gpt-3.5-turbo`
#### Anthropic
* Claude models via Anthropic API
* Custom Anthropic-compatible endpoints
**Configuration:**
* API Key: Your Anthropic API key
* API URL: `https://api.anthropic.com` (default)
* Model Name: e.g., `claude-3-5-sonnet-20241022`
#### Google AI
* Gemini models via Google AI API
* Custom Google AI endpoints
**Configuration:**
* API Key: Your Google AI API key
* API URL: `https://generativelanguage.googleapis.com/` (default)
* Model Name: e.g., `gemini-pro`
#### OpenRouter
* Access to multiple model providers through OpenRouter
* Unified API for various models
**Configuration:**
* API Key: Your OpenRouter API key
* API URL: OpenRouter endpoint
* Model Name: Any model available on OpenRouter
#### AWS Bedrock
* Amazon Bedrock models
* Access to various foundation models
**Configuration:**
* AWS credentials configured separately
* API URL: Bedrock endpoint
* Model Name: Bedrock model identifier
#### Custom Endpoints
* Any OpenAI-compatible API endpoint
* Private model deployments
* Self-hosted models
**Configuration:**
* API Key: Your custom API key (if required)
* API URL: Your custom endpoint URL
* Model Name: Your model identifier
## Adding Custom Models
### Step 1: Access Model Configuration
1. Navigate to **Agents** in the sidebar
2. Select or create an agent
3. Click **Edit** to open the agent builder
4. Go to the **General** tab
5. Scroll to the **AI Models** section
6. Click the **Custom** tab
### Step 2: Add New Model
1. Click **Add Custom Model** button
2. The model configuration modal will open
### Step 3: Configure Model Settings
#### Basic Information
**Model Name**
* Enter a descriptive name for your model
* Example: "My GPT-4", "Company Claude", "Custom Model"
**Model Version/ID**
* Enter the model identifier
* Example: `gpt-4`, `claude-3-5-sonnet-20241022`, `gemini-pro`
* This is the actual model name used in API calls
#### API Configuration
**API Provider**
* Select your API provider from the dropdown:
* OpenAI
* Anthropic
* Google AI
* OpenRouter
* AWS Bedrock
* Custom
**API Key**
* Enter your API key for the selected provider
* Keys are stored securely and encrypted
* Required for most providers
**API URL**
* Enter the API endpoint URL
* Default URLs are pre-filled based on provider
* For custom endpoints, enter your full URL
**API Version** (Optional)
* For Azure OpenAI, specify API version
* Example: `2024-12-01-preview`
#### Model Limits
**Max Input Tokens**
* Maximum tokens the model can accept as input
* Example: `60000`, `100000`, `200000`
* Default: `3000`
**Max Response Tokens**
* Maximum tokens the model can generate
* Example: `4096`, `8000`, `16000`
* Default: `1000`
#### Advanced Settings
**Custom Headers** (Optional)
* Add custom HTTP headers if required
* Example: `X-Custom-Header: value`
* Useful for custom authentication or metadata
**Model Extra Parameters** (Optional)
* Additional parameters for model configuration
* JSON format
* Provider-specific settings
### Step 4: Save Model
1. Review all configuration settings
2. Click **Save** or **Add Model**
3. The model is now available in your Custom models list
## Using Custom Models
### Selecting a Custom Model
1. In the **General** tab, find the **Model** section
2. The dropdown shows both predefined and custom models
3. Custom models are marked or shown in a separate section
4. Select your custom model
### Model Availability
* Custom models are **project-specific**
* Models are available to all agents in the project
* Each project can have its own set of custom models
## Managing Custom Models
### Viewing Custom Models
1. Go to **Agents** → **Edit Agent** → **General** tab
2. Click the **Custom** tab in the AI Models section
3. See all your custom models listed
### Editing Custom Models
1. Find the model in the Custom models list
2. Click the **Edit** icon (three dots menu)
3. Modify configuration settings
4. Click **Save** to update
Editing the API key will replace the existing key. Make sure you have the
correct key before saving.
### Deleting Custom Models
1. Find the model in the Custom models list
2. Click the **Delete** icon (three dots menu)
3. Confirm deletion
4. The model is removed from your project
Deleting a custom model will affect all agents using that model. Make sure to
update those agents first.
## Model Configuration Examples
### Example 1: OpenAI Custom Model
```json theme={null}
{
"model_name": "My GPT-4",
"version": "gpt-4",
"api_provider": "openai",
"api_type": "openai",
"api_key": "sk-...",
"api_url": "https://api.openai.com/v1",
"max_input_tokens": 60000,
"max_response_tokens": 4096
}
```
### Example 2: Azure OpenAI
```json theme={null}
{
"model_name": "Azure GPT-4",
"version": "gpt-4",
"api_provider": "openai",
"api_type": "azure",
"api_key": "your-azure-key",
"api_url": "https://your-resource.openai.azure.com",
"api_version": "2024-12-01-preview",
"max_input_tokens": 60000,
"max_response_tokens": 4096
}
```
### Example 3: Anthropic Claude
```json theme={null}
{
"model_name": "Company Claude",
"version": "claude-3-5-sonnet-20241022",
"api_provider": "anthropic",
"api_type": "anthropic",
"api_key": "sk-ant-...",
"api_url": "https://api.anthropic.com",
"max_input_tokens": 60000,
"max_response_tokens": 4000
}
```
### Example 4: Custom Endpoint
```json theme={null}
{
"model_name": "Private Model",
"version": "custom-model-v1",
"api_provider": "custom",
"api_type": "custom",
"api_key": "your-custom-key",
"api_url": "https://your-custom-endpoint.com/v1",
"max_input_tokens": 100000,
"max_response_tokens": 8000,
"auth_header_template": "{\"Authorization\": \"Bearer \"}"
}
```
## Best Practices
### API Key Security
* **Never Share Keys** - Keep API keys confidential
* **Use Environment Variables** - For development, use secure storage
* **Rotate Keys Regularly** - Update keys periodically
* **Monitor Usage** - Track API usage to detect issues
### Model Selection
* **Match Use Case** - Choose models appropriate for your task
* **Consider Cost** - Balance performance and cost
* **Test Performance** - Evaluate model quality for your needs
* **Monitor Limits** - Watch token limits and quotas
### Configuration
* **Accurate Model Names** - Use exact model identifiers
* **Correct URLs** - Verify API endpoint URLs
* **Appropriate Limits** - Set realistic token limits
* **Test Connections** - Verify model connectivity
### Cost Management
* **Track Usage** - Monitor API usage and costs
* **Set Budgets** - Configure spending limits if available
* **Optimize Tokens** - Use appropriate token limits
* **Review Regularly** - Audit model usage periodically
## Troubleshooting
### Model Not Available
**Problem**: Custom model doesn't appear in dropdown
**Possible Causes:**
* Model not saved correctly
* API key invalid
* Model configuration error
**Solutions:**
* Verify model was saved successfully
* Check API key is correct
* Review model configuration
* Refresh the page
### API Key Errors
**Problem**: "Invalid API key" or authentication errors
**Possible Causes:**
* Incorrect API key
* Expired API key
* Wrong API provider selected
* Key doesn't have required permissions
**Solutions:**
* Verify API key is correct
* Check key hasn't expired
* Confirm correct provider selected
* Ensure key has necessary permissions
### Connection Failures
**Problem**: Cannot connect to model endpoint
**Possible Causes:**
* Incorrect API URL
* Network connectivity issues
* Endpoint not accessible
* Firewall blocking connection
**Solutions:**
* Verify API URL is correct
* Check network connectivity
* Ensure endpoint is accessible
* Review firewall rules
### Token Limit Errors
**Problem**: "Token limit exceeded" errors
**Possible Causes:**
* Input too long
* Response limit too high
* Model limits exceeded
**Solutions:**
* Reduce input length
* Lower max response tokens
* Check model's actual limits
* Split large inputs
## Model Compatibility
### Knowledge Base v2
When using Knowledge Base v2, only certain models are supported:
* **OpenAI models** (openai, azure)
* **Anthropic models**
Other providers are not compatible with Knowledge Base v2.
### Feature Support
Different models support different features:
* **Streaming** - Most models support streaming responses
* **Function Calling** - OpenAI and Anthropic models
* **Vision** - GPT-4 Vision, Claude 3, Gemini Pro Vision
* **Long Context** - Claude 3.5 Sonnet, GPT-4 Turbo
## API Key Management
### Getting API Keys
#### OpenAI
1. Go to [OpenAI Platform](https://platform.openai.com)
2. Navigate to API Keys
3. Create a new secret key
4. Copy the key (starts with `sk-`)
#### Anthropic
1. Go to [Anthropic Console](https://console.anthropic.com)
2. Navigate to API Keys
3. Create a new key
4. Copy the key (starts with `sk-ant-`)
#### Google AI
1. Go to [Google AI Studio](https://makersuite.google.com/app/apikey)
2. Create a new API key
3. Copy the key
#### OpenRouter
1. Go to [OpenRouter](https://openrouter.ai)
2. Navigate to Keys
3. Create a new key
4. Copy the key
### Key Security
* **Store Securely** - Keys are encrypted in the database
* **Don't Share** - Never share API keys
* **Rotate Regularly** - Update keys periodically
* **Monitor Usage** - Watch for unauthorized use
## Cost Considerations
### Predefined Models
* Costs are managed by Odin
* Billed through your Odin subscription
* Credits-based pricing
* Transparent pricing model
### Custom Models (BYOK)
* You pay directly to the provider
* No additional Odin fees
* Full control over costs
* Direct billing from provider
### Cost Optimization
* **Choose Right Model** - Use appropriate model for task
* **Optimize Prompts** - Reduce token usage
* **Set Limits** - Configure max tokens appropriately
* **Monitor Usage** - Track API usage regularly
## Related Features
* **Agent Configuration** - Configure agent behavior
* **Model Settings** - Adjust temperature and other parameters
* **Token Management** - Monitor and optimize token usage
* **Cost Tracking** - Track model usage and costs
Learn how to configure your agents
## Support
Need help with model configuration? Contact [Support](mailto:support@getodin.ai).
# Outputs
Source: https://learn.getodin.ai/agents/outputs
Define JSON schemas to structure agent responses in a consistent format
Structured Outputs allow you to define JSON schemas that your AI agents must follow when responding. This ensures consistent, machine-readable responses that can be easily integrated with other systems, APIs, or automated workflows.
## Overview
Structured Outputs enable you to:
* **Define Response Format** - Create custom JSON schemas for agent responses
* **Ensure Consistency** - Guarantee agents always return data in the same structure
* **Enable Integration** - Make responses easily consumable by other systems
* **Improve Parsing** - Eliminate the need for complex text parsing
## How It Works
### 1. Create JSON Schema
Define the structure you want your agent to follow:
* **Fields** - Specify required and optional fields
* **Data Types** - Define types (string, number, boolean, array, object)
* **Nested Structures** - Create complex nested JSON objects
* **Examples** - Provide example values for clarity
### 2. Assign to Agent
Select the structured output schema for your agent:
* **General Tab** - Choose from available structured outputs
* **Agent-Specific** - Each agent can use a different schema
* **Dynamic Selection** - Change schemas as needed
### 3. Agent Response
When enabled, the agent will:
* **Format as JSON** - Return responses in the specified JSON structure
* **Follow Schema** - Include all required fields
* **Maintain Structure** - Preserve nested objects and arrays
* **Validate Format** - Ensure responses match the schema
## Creating Structured Outputs
### Step 1: Access Output Tab
1. Navigate to **Agents** in the sidebar
2. Select an agent or create a new one
3. Click **Edit** to open the agent builder
4. Go to the **Output** tab
### Step 2: Create New Schema
1. Click **Create New** button
2. Enter a descriptive title for your structured output
3. Use the JSON builder to define your schema
### Step 3: Define Schema Structure
Use the visual JSON builder to create your schema:
#### Basic Structure
```json theme={null}
{
"status": "string",
"message": "string",
"data": {
"result": "string"
}
}
```
#### With Arrays
```json theme={null}
{
"items": [
{
"id": "string",
"name": "string",
"value": "number"
}
],
"total": "number"
}
```
#### Complex Nested Structure
```json theme={null}
{
"response": {
"summary": "string",
"details": {
"category": "string",
"subcategory": "string",
"metadata": {
"created_at": "string",
"updated_at": "string"
}
},
"items": [
{
"id": "string",
"properties": {
"name": "string",
"value": "number"
}
}
]
}
}
```
### Step 4: Save Schema
1. Click **Save** to store your structured output
2. The schema is now available for use in agents
## Assigning to Agents
### Method 1: From General Tab
1. Open the agent you want to configure
2. Go to the **General** tab
3. Find the **Response Format** section
4. Select your structured output from the dropdown
5. Save the agent
### Method 2: From Output Tab
1. Open the agent you want to configure
2. Go to the **Output** tab
3. Select a structured output from the list
4. The agent will use this schema for all responses
## Use Cases
### API Integration
**Scenario:** You need agent responses in a format that can be consumed by your API.
**Schema Example:**
```json theme={null}
{
"status": "success",
"code": 200,
"data": {
"result": "string",
"timestamp": "string"
}
}
```
**Agent Response:**
```json theme={null}
{
"status": "success",
"code": 200,
"data": {
"result": "Task completed successfully",
"timestamp": "2024-01-15T10:30:00Z"
}
}
```
### Data Extraction
**Scenario:** Extract structured data from unstructured text.
**Schema Example:**
```json theme={null}
{
"entities": [
{
"type": "string",
"value": "string",
"confidence": "number"
}
],
"summary": "string"
}
```
**Agent Response:**
```json theme={null}
{
"entities": [
{
"type": "person",
"value": "John Doe",
"confidence": 0.95
},
{
"type": "company",
"value": "TechCorp",
"confidence": 0.88
}
],
"summary": "Extracted 2 entities from the text"
}
```
### Formatted Reports
**Scenario:** Generate consistent report structures.
**Schema Example:**
```json theme={null}
{
"report": {
"title": "string",
"date": "string",
"sections": [
{
"heading": "string",
"content": "string",
"metrics": {
"value": "number",
"unit": "string"
}
}
],
"summary": "string"
}
}
```
### Workflow Automation
**Scenario:** Structure responses for automated workflow processing.
**Schema Example:**
```json theme={null}
{
"action": "string",
"parameters": {
"key": "value"
},
"next_step": "string",
"metadata": {
"workflow_id": "string",
"step_number": "number"
}
}
```
## Best Practices
### Schema Design
1. **Be Specific** - Clearly define all fields and their types
2. **Use Examples** - Include example values in your schema
3. **Keep It Simple** - Avoid overly complex nested structures when possible
4. **Document Fields** - Use descriptive field names
5. **Consider Optional Fields** - Mark fields as optional when appropriate
### Field Naming
* **Use Clear Names** - `user_name` instead of `un`
* **Be Consistent** - Follow a naming convention (snake\_case, camelCase)
* **Avoid Abbreviations** - Use full words when possible
* **Group Related Fields** - Use nested objects for related data
### Schema Structure
* **Flat When Possible** - Prefer flat structures for simple data
* **Nest for Organization** - Use nesting for complex, related data
* **Arrays for Lists** - Use arrays for collections of similar items
* **Objects for Groups** - Use objects to group related fields
### Testing
1. **Test with Real Queries** - Verify the schema works with actual user questions
2. **Check All Fields** - Ensure all required fields are populated
3. **Validate Types** - Confirm data types match the schema
4. **Handle Edge Cases** - Test with unusual or missing data
## Managing Structured Outputs
### Viewing All Schemas
In the **Output** tab, you can:
* **List All Schemas** - See all structured outputs in your project
* **Search** - Find schemas by name
* **Sort** - Sort by creation date or title
* **View Details** - See schema structure and metadata
### Editing Schemas
1. Click on a schema in the list
2. Modify the JSON structure using the visual builder
3. Click **Save** to update the schema
4. Changes apply to all agents using this schema
### Deleting Schemas
1. Find the schema in the list
2. Click the **Delete** icon
3. Confirm deletion
4. Agents using this schema will revert to normal text responses
Deleting a structured output will affect all agents currently using it. Make
sure to update those agents before deleting.
## Response Format
### Normal Response (Default)
When no structured output is selected, agents return free-form text:
```
The user requested information about project status.
The project is currently in progress with 75% completion.
All milestones are on track.
```
### Structured Response
When a structured output is selected, agents return JSON:
```json theme={null}
{
"status": "in_progress",
"completion_percentage": 75,
"milestones": [
{
"name": "Phase 1",
"status": "completed"
},
{
"name": "Phase 2",
"status": "in_progress"
}
],
"on_track": true
}
```
## Integration with System Prompt
When a structured output is assigned to an agent:
1. **Schema Included** - The JSON schema is added to the system prompt
2. **Format Instructions** - Agent receives explicit formatting instructions
3. **Example Provided** - The schema serves as an example format
4. **Validation** - Agent attempts to match the exact structure
## Advanced Features
### Dynamic Field Values
Schemas can include fields that adapt to the response:
```json theme={null}
{
"response_type": "string",
"content": {
"text": "string",
"metadata": {}
}
}
```
### Conditional Structures
Use different schemas for different response types:
```json theme={null}
{
"type": "success|error|warning",
"message": "string",
"data": {} // Structure varies by type
}
```
### Array Responses
Handle multiple items in responses:
```json theme={null}
{
"count": "number",
"items": [
{
"id": "string",
"data": {}
}
]
}
```
## Troubleshooting
### Agent Not Following Schema
**Possible Causes:**
* Schema not assigned to agent
* Schema structure too complex
* Agent needs clearer instructions
**Solutions:**
* Verify structured output is selected in General tab
* Simplify the schema structure
* Add more explicit field descriptions
* Test with simpler queries first
### Invalid JSON Responses
**Possible Causes:**
* Schema has syntax errors
* Agent struggling with complex structure
* Missing required fields
**Solutions:**
* Validate schema syntax in the JSON builder
* Check for JSON validation errors
* Simplify the schema if too complex
* Review agent responses for parsing errors
### Missing Fields
**Possible Causes:**
* Fields not clearly defined
* Agent doesn't understand field requirements
* Schema too vague
**Solutions:**
* Add clear field descriptions
* Provide example values in schema
* Make fields optional if not always available
* Test with specific queries
## Examples
### Example 1: Customer Support Response
**Schema:**
```json theme={null}
{
"ticket_id": "string",
"status": "open|resolved|pending",
"response": "string",
"next_actions": ["string"],
"priority": "low|medium|high|urgent"
}
```
**Agent Response:**
```json theme={null}
{
"ticket_id": "TKT-12345",
"status": "resolved",
"response": "Your issue has been resolved. The problem was related to account permissions.",
"next_actions": ["Refresh your browser", "Log out and log back in"],
"priority": "medium"
}
```
### Example 2: Data Analysis Response
**Schema:**
```json theme={null}
{
"analysis": {
"summary": "string",
"findings": [
{
"category": "string",
"insight": "string",
"confidence": "number"
}
],
"recommendations": ["string"]
},
"data_points": "number"
}
```
**Agent Response:**
```json theme={null}
{
"analysis": {
"summary": "Sales data shows 15% increase in Q4",
"findings": [
{
"category": "revenue",
"insight": "Revenue increased by 15% compared to Q3",
"confidence": 0.95
},
{
"category": "customers",
"insight": "New customer acquisition up 20%",
"confidence": 0.88
}
],
"recommendations": [
"Continue current marketing strategy",
"Focus on customer retention"
]
},
"data_points": 1250
}
```
### Example 3: Task Management Response
**Schema:**
```json theme={null}
{
"task": {
"id": "string",
"title": "string",
"status": "todo|in_progress|completed",
"assignee": "string",
"due_date": "string",
"description": "string"
},
"related_tasks": [
{
"id": "string",
"title": "string"
}
]
}
```
## Permissions
### Creating Structured Outputs
* **Project Admin** - Can create, edit, and delete structured outputs
* **Project Member** - Depends on project permissions (flows.edit)
* **Viewer** - Can view but not modify structured outputs
### Using in Agents
* **Agent Owner** - Can assign structured outputs to their agents
* **Project Admin** - Can assign to any agent in the project
* **Project Member** - Can assign to agents they have access to
## Related Features
* **Agent Configuration** - Configure agent personality and behavior
* **Tools** - Use tools that return structured data
* **API Integration** - Integrate structured responses with external APIs
* **Workflows** - Use structured outputs in automated workflows
Learn how to configure your agents
## Support
Need help with structured outputs? Contact support at [support@getodin.ai](mailto:support@getodin.ai).
# Agent Settings
Source: https://learn.getodin.ai/agents/settings
Configure context handling, user identification, prompt improvement, and related options for your agent.
## Context Handling
Controls how the agent estimates and trims conversation context before each model call.
| Method | Description |
| ------------------------- | --------------------------------------------------------------------------------------------------------------------- |
| **Standard (Fast)** | Uses character-based estimation for faster processing. |
| **Precise (Token-based)** | Uses exact token counting for more accurate context limits; may drop context if the maximum token window is exceeded. |
Keeping context trimmed helps prevent exceeding model token limits and reduces latency.
## User Identification
Enable this feature to allow the agent to recognize and interact with individual users based on their unique characteristics and preferences. The agent will be able to address users by name and remember their identity across conversations.
## ID Chain Awareness
Exposes session identifiers — **Project ID**, **Chat ID**, and **Message ID** — to the agent so it can supply them as arguments to tool calls that require them.
Enable this when your tools require session context to function correctly, such as tools that log activity or retrieve session-specific data.
## Custom Models
Add and manage custom AI models for this project. Custom models will appear in the model dropdown on the **General** tab.
Follow these steps to add a custom model connection:
Click the **+ Add Model** button to open the **New Connection** form.
Complete the following fields:
| Field | Description |
| ---------------------------------- | ------------------------------------------------------------------------------------------------------------ |
| **Model Name** | The identifier for the model (e.g., `gpt-4o`). |
| **Model Provider** | Select the provider from the dropdown (e.g., OpenAI). |
| **Configure through Kong Gateway** | Check this option to route the model connection through a Kong API gateway. |
| **API Key** | Your provider-issued API key for authenticating requests. |
| **API URL** | The endpoint URL for the model's API. |
| **Timeout (seconds)** | Maximum wait time for a model response. Defaults to `300s`. Increase this for long-running reasoning models. |
| **Max Input Tokens** | Maximum number of tokens sent to the model per request. Defaults to `3000`. |
| **Max Response Tokens** | Maximum number of tokens the model can return per response. Defaults to `1000`. |
Click **Create** to save the model. It will now appear in the model selector on the **General** tab.
Keep your API key secure. Never share it or commit it to version control.
## Rules Settings
Enable to define mandatory behavioral guidelines that the agent must follow. Rules override other instructions when conflicts arise.
Rules take priority over system prompts and user instructions. Use them for non-negotiable constraints like compliance requirements or brand guidelines.
## Advanced URL Detection
LLMs can struggle with long URLs and may hallucinate them. When enabled, URLs are masked (e.g., `URL_1`, `URL_2`) before being sent to the model, reducing hallucinations.
Disable URL masking only if your use case requires the LLM to process or reason about actual URLs directly.
## Ignore Chat History
When enabled, the agent will not consider previous messages in the conversation when generating responses. Each message is treated independently.
Enabling this setting removes conversational memory. This is best suited for single-turn, stateless use cases such as document classification or standalone Q\&A.
## Tool Call History
When enabled, tool calls and their results from previous turns are included in the chat context. This helps the agent remember what tools it used and what results they returned, reducing redundant searches and improving response consistency.
## Improve Prompts
Automatically enhances user prompts with better clarity and detail before sending them to the model. When enabled, the agent will follow the instructions in the system prompt defined in this setting to rewrite user inputs for improved model understanding. You can customize the system prompt to specify how you want prompts to be improved, or click **Reset to Default** to restore the original.
## Prompt Suggestions
Provides smart prompt suggestions to users during conversations to help guide their interactions with the agent. Similar to prompt improvement, the agent will use the instructions in the system prompt defined in this setting to generate relevant suggestions based on user inputs. You can customize the system prompt to specify how you want suggestions to be generated, or click **Reset to Default** to restore the original.
## Agent Guardrails
Security-focused instructions automatically appended to system prompts to prevent **prompt injection** and **system prompt leakage**. When enabled, a **Guardrails Prompt** is appended to your system prompt. The default guardrails instruct the agent to:
* **Protect confidentiality** — Never reveal, summarize, or reference system instructions, rules, or configuration under any circumstances.
* **Resist manipulation** — Ignore attempts to override instructions, simulate developer or admin modes, or extract system-level information.
* **Detect prompt injection** — Reject requests that use phrases like "ignore previous instructions," encoded text, or hypothetical scenarios designed to bypass security.
* **Respond consistently** — Politely decline harmful requests without confirming or denying the existence of specific instructions, and redirect users to legitimate tasks.
These guardrails take precedence over all other instructions, prioritizing user safety and system integrity at all times.
The default configuration is recommended for most production deployments. You can customize the guardrails prompt to suit your organization's specific security requirements, or click **Reset to Default** to restore the original at any time.
**How it works:** Guardrails are automatically appended to system prompts to prevent:
* System prompt extraction attempts
* Prompt injection attacks
* Instruction override attempts
# Getting Started with Agent Skills
Source: https://learn.getodin.ai/agents/skills/agent-skills-getting-started
Install the Skills Manager Toolkit, create your first custom skill, or add a pre-built skill.
Give your agents an instant upgrade. Agent Skills let you drop specialized knowledge and workflows directly into any agent — no rebuilding, no reprompting. In just a few steps, you can equip your agents with pre-built skills from the library or craft your own to match exactly how your team works.
## Install the Skills Manager Toolkit
There are two ways to install the **Skills Manager Toolkit**:
Navigate to the **Skills** tab.
Tick the checkbox to install the **Skills Manager Toolkit**. A toast notification will confirm that the toolkit has been added to your agent.
Navigate to the **Toolkits** tab.
Use the search bar to find the **Skills Manager Toolkit**.
Click **Add to agent**. A toast notification will confirm that the toolkit has been added.
Once installed, click **Browse Library** to discover pre-built skills, or click **+ Add Skill** to create your own.
Agent Skills is a toolkit and is charged at 1 credit per tool call invoked. For more details, see our [credits documentation](/general/credits).
## Browse Pre-Built Skills in the Library
Browse all pre-built skills available out of the box, organized by category.
## Create a Custom Skill
To create a new skill, open the **Skills** section and click **Create Skill**. Fill in the following fields:
Enter a unique identifier for your skill using lowercase letters, numbers, and hyphens only (1–64 characters). Leading, trailing, or consecutive hyphens are not allowed.
```
e.g. github-ops
```
See [Agent Skills name rules](https://agentskills.io/specification#name-field) for the full naming specification.
Write a clear explanation of what the skill does and when to use it. Include keywords that agents can match on — this text is what the agent reads during the Discovery stage to decide whether to activate the skill.
Description must be between 1–1024 characters and cannot be empty.
See [Agent Skills description rules](https://agentskills.io/specification#description-field) for guidance on writing effective descriptions.
Add one or more keywords or `/regex/` patterns that will activate this skill. Press **Enter** or **comma** after each trigger to add it.
Triggers are optional — if left empty, the skill will only activate via the **Always On** setting (see below).
```
e.g. code review, review my code, /review\s+PR/i
```
Write the skill instructions in markdown. This is the full `SKILL` content loaded into the agent's context when the skill is activated. Be specific — step-by-step instructions with clear formatting produce the most reliable agent behavior.
```md theme={null}
# My Skill
When asked to do X:
1. First, do Y
2. Then, do Z
```
Click **Select tools** to choose which agent toolkits this skill is permitted to use (e.g. `knowledge base`, `web search`, `database`). If no tools are selected, the skill runs on the agent's context alone.
Select a category from the dropdown to organize the skill in the library. Defaults to **None** if left unset.
Toggle **Always On** to inject this skill's instructions into every conversation turn, regardless of whether a trigger keyword is matched. Use this for skills that should apply globally, such as tone guidelines or compliance rules.
Once all required fields are filled in, click **Create** to save the skill and make it available to your agents.
# Agent Skills Library
Source: https://learn.getodin.ai/agents/skills/agent-skills-library
Browse all pre-built skills available out of the box
The following pre-built skills are available out of the box, organized by category. Each skill includes an overview, instructions for when to trigger it, and a step-by-step workflow for the agent to follow. You can use these skills as-is or customize them to fit your specific needs.
### Development
**Overview:** Gives your agent a consistent, structured approach to reviewing code. When triggered, the agent evaluates submissions across six dimensions — correctness, security, performance, readability, testing, and architecture — and outputs findings in a standardized format with severity ratings and actionable recommendations.
**Allowed agent toolkits:** `knowledge base`
**Trigger keywords:** `code review`, `review code`, `review this code`, `review my code`
**Instructions:**
When reviewing code:
1. **Correctness** — Does the code do what it's supposed to? Edge cases handled?
2. **Security** — Any injection risks, exposed secrets, or auth bypasses?
3. **Performance** — Obvious N+1 queries, unnecessary loops, or memory leaks?
4. **Readability** — Clear naming, appropriate comments, consistent style?
5. **Testing** — Are there tests? Do they cover the happy path and edge cases?
6. **Architecture** — Does this fit the existing patterns? Any unnecessary coupling?
For each finding, provide:
* **Severity**: Critical / Warning / Suggestion
* **Location**: File and line reference
* **Description**: What the issue is
* **Recommendation**: How to fix it
**Overview:** Enables your agent to manage GitHub workflows end-to-end. From creating and labeling issues to reviewing pull requests and surfacing stale items, this skill keeps your repository organized and your team unblocked — without leaving the agent.
**Allowed agent toolkits:** `github`
**Trigger keywords:** `github`, `pull request`, `PR review`, `issue tracker`, `repository`
**Instructions:**
When the user asks about GitHub issues, pull requests, or repository management:
1. **Issue management**
* Search existing issues before creating duplicates
* Apply appropriate labels and assignees
* Link related issues when relevant
2. **Pull request review**
* Summarize the changes in the PR
* Check for potential issues (missing tests, breaking changes)
* Suggest improvements with specific line references
3. **Repository insights**
* Provide activity summaries when asked
* Track open issues and PR counts
* Highlight stale items that need attention
### Operations
**Overview:** Turns your agent into a personal briefing assistant. Every morning, it searches for the latest updates across your tracked topics and compiles them into a clean, structured digest — top stories, categorized updates, action items, and a calendar preview — delivered via your preferred channel.
**Allowed agent toolkits:** `web search`
**Trigger keywords:** `daily digest`, `morning briefing`, `send briefing`, `daily summary`
**Instructions:**
When asked to create a daily digest or morning briefing:
1. Check the current date and identify key topics the user tracks
2. Search for recent news, updates, and changes on each tracked topic
3. Compile findings into a structured briefing format:
* **Date and greeting**
* **Top stories** (3–5 most important items)
* **By category** — group remaining items by topic area
* **Action items** — anything requiring the user's attention today
* **Calendar preview** — upcoming events if calendar data is available
4. Keep each item to 2–3 sentences maximum
5. Send via the user's preferred channel if configured
**Overview:** Transforms raw meeting transcripts into concise, actionable notes. The agent extracts key decisions, organizes discussion highlights by topic, and produces a clean action item table with owners and deadlines — so nothing falls through the cracks after a call.
**Allowed agent toolkits:** `knowledge base`
**Trigger keywords:** `meeting notes`, `summarize meeting`, `meeting summary`, `meeting recap`
**Instructions:**
When summarizing a meeting transcript or recording:
1. **Meeting metadata** — Date, attendees, duration, topic
2. **Key decisions** — Bulleted list of decisions made
3. **Discussion highlights** — Major points discussed, organized by topic
4. **Action items** — Table format:
| Action | Owner | Deadline |
| ------ | ----- | -------- |
Extract every commitment or task mentioned.
5. **Open questions** — Unresolved items that need follow-up
6. **Next meeting** — Date/time if mentioned
Keep the summary concise — aim for 1/10th the length of the original transcript.
**Overview:** Helps your agent generate tailored onboarding experiences for new hires or users. It builds comprehensive guides covering week-one essentials, 30-day milestones, key contacts, FAQs, and success metrics — all adapted to the specific role and organization.
**Allowed agent toolkits:** `knowledge base`
**Trigger keywords:** `onboarding`, `new hire`, `getting started guide`, `orientation`
**Instructions:**
When creating an onboarding guide:
1. **Identify the audience** — New employee? New user? Role-specific?
2. **Week 1 essentials**:
* Account setup and access provisioning
* Key tools and where to find them
* Team introductions and org chart
* First-day checklist
3. **First 30 days**:
* Learning resources and documentation
* Shadowing schedule
* Key processes to understand
* First small tasks or projects
4. **Key contacts** — Who to ask for what
5. **FAQ** — Common questions new people have
6. **Success metrics** — What does a successful first 90 days look like?
Tailor the guide based on available information about the organization and role.
**Overview:** Equips your agent to produce polished, publication-ready reports from scratch. It pulls data from your knowledge base, database, or the web, then structures it into a complete report with an executive summary, analysis, recommendations, and properly cited sources.
**Allowed agent toolkits:** `knowledge base`, `database`, `web search`
**Trigger keywords:** `build report`, `generate report`, `create report`, `write report`
**Instructions:**
When asked to create a report:
1. **Clarify scope** — What is the report about? Who is the audience? What time period?
2. **Gather data** — Pull from available sources (KB, database, web search)
3. **Structure the report**:
* **Title page** — Report name, date, author
* **Executive summary** — 3–5 sentences covering the key takeaway
* **Table of contents** — For reports with 3+ sections
* **Data sections** — Each with a clear heading, narrative, and supporting data/charts
* **Analysis** — What the data means, trends identified
* **Recommendations** — Actionable next steps based on findings
* **Appendix** — Raw data, methodology notes, or detailed tables
4. **Format for readability** — Use headers, bullets, tables, and bold for key numbers
5. **Cite sources** — Reference where data came from
### Analytics
**Overview:** Gives your agent a rigorous, end-to-end approach to working with data. From understanding the dataset and checking data quality to running exploratory analysis, building visualizations, and summarizing findings — this skill ensures every analysis is thorough, focused, and clearly communicated.
**Allowed agent toolkits:** `database`, `python`
**Trigger keywords:** `analyze data`, `data analysis`, `explore dataset`, `data insights`
**Instructions:**
When asked to analyze data:
1. **Understand the data** — What tables/files are available? What do columns represent?
2. **Data quality check** — Look for nulls, duplicates, outliers, and inconsistencies
3. **Exploratory analysis**
* Summary statistics (count, mean, median, min, max)
* Distribution of key variables
* Correlation between variables
4. **Answer the question** — Focus analysis on what the user specifically wants to know
5. **Visualize** — Create charts where they add clarity (bar, line, scatter, etc.)
6. **Summarize findings** — Clear narrative with supporting numbers
7. **Recommend next steps** — What additional analysis could be valuable?
### Communication
**Overview:** Helps your agent write clear, professional emails every time. It adapts tone to the recipient and context, structures the message for maximum clarity, and ensures every email ends with a specific, actionable ask — keeping communication concise and effective.
**Allowed agent toolkits:** none
**Trigger keywords:** `draft email`, `write email`, `compose email`, `email draft`
**Instructions:**
When drafting an email:
1. **Determine the context** — Who is the recipient? What is the relationship? What is the goal?
2. **Choose the tone** — Formal, semi-formal, or casual based on context
3. **Structure the email**:
* **Subject line** — Clear and specific (not "Quick question" or "Follow up")
* **Opening** — Brief greeting + context/purpose in 1–2 sentences
* **Body** — Key information, organized with bullets or short paragraphs
* **Call to action** — What you need from the recipient, with a specific deadline if applicable
* **Closing** — Appropriate sign-off
4. **Keep it concise** — Most emails should be under 200 words
5. **Review** — Check for typos, unclear language, and missing information
### Support
**Overview:** Brings consistency and speed to your support queue. The agent reads each incoming ticket, categorizes it, assigns a priority level, extracts key details, and suggests the right team for routing — then drafts an acknowledgment response, all in one pass.
**Allowed agent toolkits:** none
**Trigger keywords:** `ticket triage`, `triage tickets`, `categorize ticket`, `support ticket`, `classify ticket`
**Instructions:**
When triaging a support ticket:
1. **Read the ticket** thoroughly, including any attachments or context
2. **Categorize** into one of: Bug, Feature Request, Question, Account Issue, Integration Issue, Other
3. **Assess priority** using:
* **Critical** — Service down, data loss, security breach
* **High** — Major feature broken, many users affected
* **Medium** — Feature partially working, workaround exists
* **Low** — Cosmetic, nice-to-have, single user edge case
4. **Extract key details**: affected component, reproduction steps, user impact
5. **Suggest routing** to the appropriate team (Engineering, Support, Product, Billing)
6. **Draft a response** acknowledging the issue with an estimated timeline
### Research
**Overview:** Turns your agent into a thorough research analyst. It defines the scope, queries multiple sources, cross-references findings for contradictions, and synthesizes everything into a structured report with an executive summary, subtopic breakdowns, and full source citations.
**Allowed agent toolkits:** `web search`, `knowledge base`
**Trigger keywords:** `research`, `deep dive`, `investigate`, `comprehensive analysis`
**Instructions:**
When asked to research a topic thoroughly:
1. **Scope definition** — Clarify the research question and boundaries
2. **Multi-source search** — Query at least 3 different sources or angles
3. **Cross-reference** — Identify agreements and contradictions across sources
4. **Synthesize** — Compile findings into a structured report:
* Executive summary (3–5 key points)
* Detailed findings organized by subtopic
* Conflicting information flagged clearly
* Source citations for all claims
5. **Actionable takeaways** — End with recommended next steps
# Agent Skills Overview
Source: https://learn.getodin.ai/agents/skills/agent-skills-overview
A standardized way to give AI agents new capabilities and expertise.
## What are Agent Skills?
Agent Skills are a lightweight, open format for extending AI agent capabilities with specialized knowledge and workflows. At its core, a skill is a dataset containing a `SKILL` file. This file includes metadata (`name` and `description`, at minimum) and instructions that tell an agent how to perform a specific task. Skills can also bundle scripts, reference materials, templates, and other resources.
## Why Agent Skills?
Agents are increasingly capable, but often don't have the context they need to do real work reliably. Skills solve this by packaging procedural knowledge and company-, team-, and user-specific context into portable, version-controlled folders that agents load on demand.
This gives agents:
Capture specialized knowledge — from legal review processes to data analysis pipelines to presentation formatting — as reusable instructions and resources.
Turn multi-step tasks into consistent, auditable procedures.
Build a skill once and use it across any skills-compatible agent.
## How do Agent Skills work?
Agents load skills through **progressive disclosure**, in three stages:
At startup, agents load only the `name` and `description` of each available skill — just enough to know when it might be relevant.
When a task matches a skill's description, the agent reads the full `SKILL` instructions into context.
The agent follows the instructions, optionally executing bundled code or loading referenced files as needed.
Skills also have four key behavioral properties:
Skills activate when user messages match defined keywords or regex patterns.
Some skills inject instructions into every conversation turn, regardless of the trigger.
Multiple skills can activate simultaneously to handle complex, multi-domain tasks.
Install pre-built skills from the library or create your own custom skills.
Full instructions load only when a task calls for them, so agents can keep many skills on hand with only a small context footprint.
## Add Agent Skills to Your Agents!
Install the Skills Manager Toolkit and create your first custom skill.
Browse all pre-built skills available out of the box, organized by category.
# Agent Communication Toolkit
Source: https://learn.getodin.ai/agents/toolkits/agent-communication
Multi-Agent Systems - delegate tasks to specialized worker agents
Enables Multi-Agent Systems (MAS). Allows a "Manager" agent to delegate tasks to specialized "Worker" agents. This toolkit transforms a single-agent system into a coordinated multi-agent architecture where different agents with specialized capabilities can work together to solve complex problems.
## Key Features
* **Agent Selection**: Intelligent routing mechanism that analyzes task requirements and selects the most appropriate specialized agent for the job.
* **Context Passing**: Seamlessly transfers conversation history and relevant context between agents to maintain continuity.
* **Response Integration**: Aggregates outputs from multiple worker agents into a coherent response for the user.
* **Fallback Handling**: If a specialist agent fails, the system can route to alternative agents or escalate to human intervention.
* **Agent Discovery**: Automatically detects available agents in the workspace and their capabilities.
* **Task Orchestration**: Coordinates complex workflows involving multiple agents working in sequence or parallel.
## Design Patterns
* **Hub and Spoke (Router)**: Central coordinator routes requests to specialized agents.
* **Sequential Chain (Pipeline)**: Tasks flow through a sequence of agents.
* **Parallel Processing (Fan-Out)**: Multiple agents work simultaneously on subtasks.
* **Hierarchical (Tree)**: Multi-level delegation with supervisory agents.
* **Expert Panel (Committee)**: Multiple specialists provide opinions; coordinator synthesizes.
# Ask User Toolkit
Source: https://learn.getodin.ai/agents/toolkits/ask-user
Enable agents to request structured input from users at any point in a workflow
The **Ask User Toolkit** gives agents the ability to interactively collect input from users mid-conversation. Instead of guessing missing parameters or making assumptions, an agent can pause its execution, present one or more structured questions, and resume only after the user responds. This enables more accurate, context-aware agentic workflows.
**Ask User features**
* Present structured questions with multiple-choice options to the user
* Agent pauses and waits for the user's response before continuing
* Useful for clarification, confirmation, and guided workflows
## Available tools (1/1)
The Ask User Toolkit provides one tool:
* **Ask User**: Present structured questions with predefined options to the user and wait for their response.
The **Require Confirmation** option, when enabled, prompts the user to confirm the tool call before the agent executes it. This is disabled by default for the Ask User tool since the tool itself is a user-facing interaction.
## Question types
Each question passed to the Ask User tool is one of two types:
Displays predefined options as selectable radio buttons (single answer) or checkboxes (multiple answers). Use when the valid responses are known in advance.
Displays clickable suggestion chips plus a "Custom" free-text field at the bottom. Use when the answer space is open-ended or only partially predictable.
## How it works
When an agent needs information before it can continue, it will pause and display an interactive question card directly in the conversation. The card presents one or more questions — either as selectable options or a text input with suggestions — and waits for a response before proceeding.
Once the user submits their answers, the agent picks up where it left off, using those responses to continue the workflow.
All questions appear together in a single card. The agent will never ask follow-up questions mid-response or prompt for input through plain chat text.
## Use cases
* **Data collection workflows** — gather required parameters such as date ranges, filters, or record IDs before executing a query or generating a report.
* **Multi-step approvals** — prompt the user to confirm or choose between actions before the agent proceeds with an irreversible step.
* **Dynamic routing** — ask the user which path a workflow should take when branching logic depends on user intent.
* **Onboarding and intake** — collect structured profile or preference data at the start of a session to personalize subsequent agent behavior.
* **Clarification on ambiguous requests** — resolve ambiguity before taking action rather than proceeding on an incorrect assumption.
# Database Toolkit
Source: https://learn.getodin.ai/agents/toolkits/database
Query, analyze, and visualize data from SQL databases and Smart Tables
The Database Toolkit transforms agents into expert data analysts, providing comprehensive database access and data visualization capabilities. Agents can connect to external SQL databases and internal Smart Tables to query, analyze, and visualize data with built-in charting tools.
## Configuration Options
* **Data Source Type**: Choose between SQL (external databases), Smart Tables (internal data), or CSV/Excel files.
* **Database Connection**: Select from configured database connections for SQL data sources.
* **Table Metadata Caching**: For SQL Server, optionally cache table metadata to speed up loading with large databases.
* **Helper Prompt**: Provide additional context to help the AI understand your database schema and structure.
## Available Tools
The Database Toolkit provides 14 tools organized into four categories:
### SQL Tools (4 tools)
* **Database Query**: Execute SQL queries on connected databases to retrieve and analyze data.
* **Database Schema**: Get comprehensive schema information from databases including tables, columns, and relationships.
* **List Tables**: List all tables available in the connected database.
* **Query Checker**: Validate and check SQL queries for syntax errors before execution.
### Smart Table Tools (4 tools)
* **Add Row**: Add new rows to Smart Tables for data entry and record creation.
* **Edit Row**: Edit existing rows in Smart Tables to update data values.
* **List Smart Tables**: List all available Smart Tables in the current project.
* **Describe Table**: Get detailed table structure and metadata including column definitions and data types.
### Visualization Tools (6 tools)
* **Pie Chart**: Generate pie charts from data to show proportions and percentages.
* **Bar Chart**: Generate bar charts from data for comparing values across categories.
* **Line Chart**: Generate line charts from data to visualize trends over time.
* **Comparison Chart**: Generate line charts with comparison data for multi-series analysis.
* **Area Chart**: Generate area charts from data to show cumulative totals and trends.
* **Chart Help**: Get help and guidance for creating charts with best practices and examples.
## Use Cases
* **Business Intelligence**: Query sales databases to generate revenue reports with automatic chart visualization.
* **Data Analysis**: Analyze customer data from Smart Tables and create trend visualizations.
* **Report Automation**: Execute scheduled queries and generate formatted reports with charts.
* **Database Exploration**: Use schema tools to understand database structure and relationships.
* **Data Validation**: Check SQL queries before execution to prevent errors.
* **Dashboard Creation**: Build interactive dashboards with multiple chart types from database queries.
# Document Manager Toolkit
Source: https://learn.getodin.ai/agents/toolkits/document-manager
Create and edit documents directly within chat conversations
The Document Manager Toolkit enables your agent to create and edit documents directly within chat conversations. This toolkit provides seamless document creation and editing workflows, allowing agents to generate documents that users can review and modify in real-time without leaving the chat interface.
## Available Tools
The Document Manager Toolkit provides three core tools for document management:
* **Create Document**: Create a new empty document. This opens the document tab on the frontend and creates an empty document ready for editing.
* **Edit Document**: Edit a document with real-time streaming updates. Content is written in markdown format and streamed to the frontend in real-time, allowing users to see changes as they happen.
* **List Documents**: List all documents in the project. Use this to see what documents already exist before creating or updating documents.
## Key Features
* **Real-Time Streaming**: Document edits stream to the frontend in real-time for immediate visibility.
* **Markdown Support**: Documents are created and edited using markdown format for easy formatting.
* **Document Tab Integration**: New documents automatically open in the document tab for easy access.
* **Project-Level Management**: All documents are managed within the current project workspace.
## Use Cases
* **Report Generation**: Create business reports with real-time updates visible to users.
* **Content Drafting**: Generate draft content for emails, proposals, or marketing materials.
* **Documentation**: Create technical documentation or meeting notes with markdown formatting.
* **Collaborative Writing**: Edit documents iteratively with streaming updates showing progress.
* **Document Organization**: List existing documents to avoid duplicates and maintain organization.
## Best Practices
* **List Before Creating**: Always use List Documents to check what exists before creating new documents.
* **Use Markdown**: Take advantage of markdown formatting for structured, professional-looking documents.
* **Descriptive Names**: Use clear, descriptive names when creating documents for easy identification.
* **Stream Awareness**: Remember that edits stream in real-time - users will see content as it's written.
# Google Cloud Platform Toolkit
Source: https://learn.getodin.ai/agents/toolkits/google-cloud-platform
Connect your agent to BigQuery, Cloud Run, and Cloud SQL using a service-account connection.
The **Google Cloud Platform (GCP) Toolkit** enables your agent to interact with BigQuery, Cloud Run (services and HTTP-triggered functions), and Cloud SQL. Authentication is handled via a service-account JSON key stored as a connection — the agent acts as the service account and inherits its IAM roles.
## Prerequisites
Before configuring the GCP Toolkit, you need an active Google Cloud connection. If you haven't set one up yet, go to **Settings → Connections** to create one.
Connections are managed centrally in Settings → Connections. The service-account JSON is stored encrypted; only the `client_email` and project are surfaced to agents.
## Adding the Toolkit to an Agent
1. Open your agent and go to **Toolkits**.
2. Find **Google Cloud Platform** and click **Add to Agent**.
3. Click **Configure** to open the configuration panel.
## Configuration
### Connection
Use the **Select GCP Connection** dropdown to choose the service account connection the agent will use. To manage or create connections, click **Manage Connections** in the upper right.
### About Google Cloud Integration
Keep the following in mind when configuring the toolkit:
* The agent inherits the service account's IAM roles — grant only the roles required (e.g. `BigQuery Data Viewer`, `Cloud Run Invoker`, `Cloud SQL Client`).
* Cloud Run / Cloud Functions invocation uses OIDC ID-tokens signed by the service account; restrict `roles/run.Invoker` to the service account when services are private.
* Only the tools you enable below will be available to the agent.
## Select Tools
Use **Select All** or **Deselect All** to manage tools in bulk, or enable them individually. You can also toggle **Require Confirmation** per tool to prompt the user before the agent executes that action.
There are 13 tools available across four categories.
### BigQuery
| Tool | Description |
| -------------------- | ----------------------------------------------------------------------------------- |
| **List Datasets** | Lists BigQuery datasets accessible to the connected service account. |
| **List Tables** | Lists tables in a BigQuery dataset. |
| **Get Table Schema** | Inspects column names, types, descriptions, and table metadata. |
| **Run Query** | Runs a SQL query against BigQuery with optional dry-run, parameters, and row limit. |
| **Insert Rows** | Stream-inserts rows into a BigQuery table using the streaming insert API. |
### Cloud Run
| Tool | Description |
| ------------------- | ---------------------------------------------------------------------------------------------------- |
| **List Services** | Lists Cloud Run services (Gen 2) in a region. |
| **Get Service** | Fetches a Cloud Run service definition including its URL and image. |
| **Invoke Service** | Invokes an HTTP endpoint of a Cloud Run service with an OIDC ID-token signed by the service account. |
| **Invoke Function** | Invokes an HTTP-triggered Cloud Run / Cloud Functions Gen 2 function with an OIDC ID-token. |
### Cloud SQL
| Tool | Description |
| ------------------ | -------------------------------------------------------------------------- |
| **List Instances** | Lists Cloud SQL instances (Postgres, MySQL, SQL Server) in a project. |
| **Get Instance** | Fetches metadata for a specific Cloud SQL instance (engine, IPs, version). |
| **Execute Query** | Runs a SQL query against a Cloud SQL instance via the Python connector. |
### Generic
| Tool | Description |
| ------------------- | ------------------------------------------------------------------------------------------------------------------------------- |
| **Custom API Call** | Makes an authenticated request to any Google Cloud REST API. Use this when no dedicated tool exists for the operation you need. |
## Saving Your Configuration
Click **Save** to apply your configuration, or **Set as Default** to make this configuration the default for new agents. To remove the toolkit from the agent entirely, click **Remove Toolkit**.
# Image Generation Toolkit
Source: https://learn.getodin.ai/agents/toolkits/image-generation
Generate high-fidelity images on demand using DALL-E 3
This toolkit gives the agent the ability to act as a creative director, generating high-fidelity images on demand using DALL-E 3. It transforms text descriptions into visual assets instantly. The agent can create original artwork, illustrations, diagrams, and photorealistic images based on natural language descriptions.
## Configuration Options
The Image Generation Toolkit configuration panel allows you to set default preferences for image generation:
* **Provider**: DALL-E (OpenAI) - The AI image generation provider.
* **Model**: DALL-E 3 - The model version used for image generation.
* **Default Image Size**: Choose from 1024x1024 (Square), 1024x1792 (Portrait), or 1792x1024 (Landscape).
* **Default Quality**: Standard (faster, lower cost) or HD (more detailed, higher cost).
* **Maximum Images Per Request**: Generate 1-4 images at once (set range 1-4).
## Image Size Options
| Size | Description | Use Case |
| --------------------- | ---------------------- | -------------------------- |
| 1024x1024 (Square) | Standard square format | Avatars, icons |
| 1024x1792 (Portrait) | Vertical orientation | Phone wallpapers, posters |
| 1792x1024 (Landscape) | Horizontal orientation | Desktop wallpapers, slides |
## Available Tools
The Image Generation Toolkit provides one tool that can be enabled or disabled:
* **Generate Images**: Generate one or more images from a natural language prompt using DALL-E. This tool can be configured to require user confirmation before execution.
## Storage & Display
* **Automatic Upload**: Generated images are automatically uploaded to your project storage.
* **Persistent URLs**: Images receive permanent URLs for reliable access.
* **Chat Integration**: Images are attached to chat messages and displayed immediately in responses.
## Prompting Best Practices
* Be specific about style, lighting, and composition (e.g., "shot from above with natural sunlight").
* Use descriptive adjectives (e.g., "cinematic lighting," "hyper-realistic," "minimalist," "vintage").
* Avoid vague terms like "cool" or "nice" - instead describe exactly what you want.
* Iterate on prompts based on generated results - refine and adjust for better output.
* Specify perspective and framing (e.g., "close-up portrait," "wide-angle landscape," "bird's eye view").
* Include art style references when helpful (e.g., "in the style of Art Nouveau," "watercolor painting").
* Mention mood and atmosphere (e.g., "mysterious," "cheerful," "dramatic," "serene").
* For technical diagrams, be precise about layout and elements required.
## Use Cases
* **Marketing**: "Generate 5 concepts for our new sneaker ad campaign."
* **Storyboarding**: "Create a scene showing a cyberpunk city in rain."
* **Web Design**: "Generate a placeholder hero image for a gardening website."
* **Presentations**: "Create an illustration representing 'Cloud Security' for my slide deck."
# Knowledge Base Toolkit
Source: https://learn.getodin.ai/agents/toolkits/knowledge-base
RAG-powered retrieval from your proprietary data and documents
The Knowledge Base (KB) Toolkit is the cornerstone of custom AI applications. It implements Retrieval-Augmented Generation (RAG) to allow the agent to "read" and reference your proprietary data. Without this, an agent relies solely on its pre-training data; with it, the agent becomes an expert on your specific documents.
## RAG Technology Explained
When you upload a file to the platform, it is processed through a sophisticated pipeline. First, text extraction pulls raw text from PDFs, DOCX, and other formats, applying OCR to scanned images if necessary. Next, chunking splits the text into smaller, manageable segments. Then, embedding converts each chunk into a vector (a list of numbers representing meaning) using an embedding model. Finally, storage saves these vectors in a vector database. When an agent searches, the query is also embedded, and the database finds the chunks with the closest mathematical proximity (meaning) to the query.
## Configuration Panel
* **Current Project Knowledge Base**: Enabled by default, granting access to files in the current workspace.
* **Cross-Project Access**: Allows linking KBs from other projects (e.g., a central "Company Policies" project).
* **Description**: Metadata describing the KB contents helps the agent decide when to use this tool.
* **Advanced Citation (+1 credit)**: If enabled, the agent provides rigorous inline citations linked to the source text.
| Mode | Description | Cost | Best For |
| ----------------- | -------------------------------------------------------------------------------------------------- | --------------------- | --------------------------- |
| Standard Citation | References document name and chunks using cosine similarity. Included General Q\&A, quick lookups. | Included | General Q\&A, quick lookups |
| Advanced Citation | Provides exact page/paragraph reference with quote | +1 credit per request | Compliance, Legal, Auditing |
## Available Sub-tools
* **Search Tool**: The primary tool for semantic retrieval. Finds relevant information even if keywords don't match exactly.
* **Search Files Tool**: A metadata search for finding specific files by name rather than content.
* **Read Lines Tool**: Extracts raw text from a specific file. Useful when the agent needs to read a whole chapter or section in detail.
* **File Stats Tool**: Returns metadata: file size, author, creation date, page count.
* **File Tree Tool**: Lists the directory structure. Essential for agents to explore a new KB and understand file organization.
## Implementation Examples
* **Resume Screening**: Agent searches for "Python experience" across all uploaded PDFs, retrieves relevant chunks from different resumes, and summarizes top candidates.
* **Policy QA**: User asks "Can I expense a taxi?". Agent searches "Travel Policy", finds the ground transport section, and answers "Yes, if it is for client travel, per section 4.2."
* **Technical Support**: Agent searches technical manuals to find error codes and troubleshooting steps.
# Node.js Execution Toolkit
Source: https://learn.getodin.ai/agents/toolkits/nodejs
Optimized for JavaScript/TypeScript workloads
**How to reach:** Main sidebar > "Agents" > Select agent > "Toolkits" tab > "Code & Development" > "Node.js Code Execution"
1. Open your agent > "Toolkits" tab > "Code & Development" category > Find "Node.js Code Execution" toolkit.
2. Click "Add to Agent" on Node.js Code Execution, then "Configure". Click "Save".
## Node.js Code Execution Toolkit
Execute Node.js/JavaScript code in a secure sandbox environment with NPM package support and file management capabilities. Optimized for JavaScript/TypeScript workloads, API integrations, JSON processing, async operations, and web automation.
## Node.js Toolkit Configuration
Configure the Node.js sandbox environment. This toolkit allows the agent to execute Node.js/JavaScript code, upload files, and manage files in the sandbox.
## Security Information
* Node.js code runs in a secure, isolated sandbox environment
* Each chat session gets its own dedicated sandbox with persistent state
* Files uploaded to the sandbox are isolated from other users and projects
* Sandboxes automatically clean up after the session ends
## Available Tools (5/5)
**Code Execution:**
* **Execute Code**: Execute Node.js/JavaScript code in a secure sandbox environment
**File Management:**
* **Search Files**: Search for files in the knowledge base to upload to sandbox
* **Upload File**: Upload files from knowledge base to the Node.js sandbox
* **List Files**: List all files currently available in the sandbox
* **Create Download URL**: Create secure download URLs for files in the sandbox
## Use Cases
* **API Integration**: Call REST APIs and handle OAuth flows.
* **JSON Processing**: Parse and transform JSON data structures.
* **Web Automation**: Scrape websites and automate forms.
* **Data Transformation**: Convert between formats (CSV, JSON, XML, YAML).
## Example Code
Below is an example Node.js script demonstrating NPM package usage, dependency checking, and the required `module.exports` pattern with a `main()` entry point function:
```javascript theme={null}
const _ = require("lodash");
const PACKAGES = ["lodash", "@google-cloud/bigquery", "axios"];
const isPackageInstalled = (packageName) => {
try {
require.resolve(packageName);
return true;
} catch (e) {
return false;
}
};
const getPackageVersion = (packageName) => {
if (!isPackageInstalled(packageName)) return {
isInstalled: false,
version: null,
message: "Package is not installed",
package: packageName,
};
const version = require(`${packageName}/package.json`).version;
return {
isInstalled: true,
version,
message: `Package is installed with version ${version}`,
package: packageName,
};
};
const test = () => {
return _.map(PACKAGES, (pkg) => getPackageVersion(pkg));
};
async function main(inputText, maxLength = 100, options = {}) {
/**
* Main function that will be executed
*
* @param {string} inputText - The text to process
* @param {number} maxLength - Maximum length of output (default: 100)
* @param {object} options - Additional processing options (default: {})
*/
return { data: test() };
}
// The entry point function will be called with the arguments you define
module.exports = { main };
```
## Key Points from Example
* **Entry Point**: The `main()` function is the entry point, exported via `module.exports = { main }`.
* **NPM Packages**: Use `require()` to import installed packages (e.g., lodash, axios, @google-cloud/bigquery).
* **Package Checking**: Use `require.resolve()` to check if a package is available in the sandbox.
* **Async Support**: The main function can be async for handling API calls and file operations.
* **Parameters**: Define parameters with defaults (e.g., `maxLength = 100`, `options = {}`) for flexible input.
* **Return Format**: Return results as an object (e.g., `{ data: ... }`) for structured output.
# Notion Toolkit
Source: https://learn.getodin.ai/agents/toolkits/notion
Search, read, create, update, and append content to Notion pages and databases from your agents and workflows.
The Notion Toolkit lets agents and workflows interact with Notion pages and databases. It supports searching content, querying and updating database records, reading and appending page content, and creating new pages.
## Prerequisites
* A Notion account (free plan is sufficient)
* A Notion workspace (every account has one by default)
## Creating a Connection
1. In the workflow, add a Notion toolkit step.
2. Click **Connect with Notion**.
3. Authorize the connection on the Notion consent screen and select which pages and databases to grant access to.
In chat, you will be prompted to connect to your Notion account via OAuth when the toolkit is first invoked.
The toolkit can only access pages and databases that have been explicitly shared with the connection. To share content, open the page or database in Notion, click **···** → **Connections**, and add your integration. Content in the same workspace that has not been shared is not visible.
## Available Tools
| Tool | Description |
| -------------------- | ---------------------------------------------------------------------- |
| **Search** | Search across all shared pages and databases by title |
| **List Databases** | Return all databases the connection can access |
| **Get Database** | Return the schema (column names and types) of a specific database |
| **Query Database** | Fetch records from a database with optional filters and sorting |
| **Get Page** | Retrieve the property values and metadata of a page or database record |
| **Create Page** | Create a new database record or sub-page |
| **Update Page** | Update properties of an existing page, or archive it |
| **Get Page Content** | Read the body text (content blocks) of a page |
| **Append Content** | Add new content blocks to the bottom of a page |
***
## Search
Searches across all shared pages and databases, returning matches by title.
**Key inputs:**
| Input | Description |
| ----------- | ------------------------------------------------------------------------ |
| Query | The text to search for |
| Filter Type | Optionally restrict to `page` or `database`. Leave blank to search both. |
| Page Size | Number of results to return (default: 10, max: 100) |
**Referencing results in downstream steps:**
* First result's ID: `{{ step.output.results[0].id }}`
**Example use case:** Before creating a new client record, search by the client's name. If `count` is greater than 0, the client already exists — use the existing record's `id` instead of creating a duplicate.
***
## Database Actions
### List Databases
Returns all databases the connection can access, with their names and IDs.
**Key inputs:**
| Input | Description |
| --------- | ----------------------------------------------------- |
| Page Size | Number of databases to return (default: 20, max: 100) |
**When to use it:** Run this once in a test workflow to discover your database IDs. Copy the `id` of the database you want and hard-code it in subsequent steps.
***
### Get Database
Returns the schema of a specific database — its column names and property types.
**Key inputs:**
| Input | Description |
| ----------- | -------------------------------------------------------------------------------------------------- |
| Database ID | The ID of the database — from List Databases, or from the Notion URL: the segment before the `?v=` |
**When to use it:** Run this before writing Create Page or Update Page steps. It tells you the exact property names (case-sensitive) and their types, which determines the JSON format to use in the `Properties` field.
Get Database shows property types and names but not the available option values for Select fields. To see valid select options, open the database in Notion directly.
***
### Query Database
Fetches records from a database with optional filtering and sorting.
**Key inputs:**
| Input | Description |
| ----------- | ----------------------------------------------------------------------------- |
| Database ID | Which database to query |
| Filter | A JSON filter object (see examples below). Leave blank to return all records. |
| Sorts | A JSON array of sort rules (see examples below) |
| Page Size | Number of records to return (default: 20, max: 100) |
**Filter examples:**
Single filter — records where Status equals "In Progress":
```json theme={null}
{
"property": "Status",
"select": { "equals": "In Progress" }
}
```
Filter by checkbox:
```json theme={null}
{
"property": "Done",
"checkbox": { "equals": false }
}
```
Filter by date — records with Due Date before a specific date:
```json theme={null}
{
"property": "Due Date",
"date": { "before": "2026-05-26" }
}
```
Combined filter with AND logic:
```json theme={null}
{
"and": [
{ "property": "Status", "select": { "equals": "In Progress" } },
{ "property": "Done", "checkbox": { "equals": false } }
]
}
```
Sort — newest first:
```json theme={null}
[
{ "property": "Created time", "direction": "descending" }
]
```
**Referencing results in downstream steps:**
* First result's ID: `{{ step.output.results[0].id }}`
* First result's Status: `{{ step.output.results[0].properties.Status }}`
* First result's title: `{{ step.output.results[0].title }}`
***
## Page Actions
### Get Page
Retrieves the property values and metadata of a specific page or database record.
**Key inputs:**
| Input | Description |
| ------- | --------------------------------------------------------------------------- |
| Page ID | The page ID — from the Notion URL, or from Query Database or Search results |
**Referencing values in downstream steps:**
* Status: `{{ step.output.page.properties.Status }}`
* Title: `{{ step.output.page.title }}`
* Page ID: `{{ step.output.page.id }}`
**Example use case:** A trigger fires with a page ID. Use Get Page to read the record's current Status. If Status is "Pending", continue the workflow — otherwise stop.
***
### Create Page
Creates a new page — either as a record inside a database (new row) or as a child page under another page.
**Key inputs:**
| Input | Description |
| ----------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
| Parent ID | The database ID (for a new row) or page ID (for a sub-page) |
| Parent Type | `database_id` to add a database row, `page_id` to add a sub-page. Default: `database_id` |
| Title | The page or record title as plain text |
| Properties | Optional JSON object for additional field values. Keys must exactly match your database's property names — use Get Database to confirm them. |
**Properties format by field type:**
```json theme={null}
// Select field
{ "Status": { "select": { "name": "To Do" } } }
// Status field (Notion's built-in Status type)
{ "Status": { "status": { "name": "In Progress" } } }
// Date field
{ "Due Date": { "date": { "start": "2026-06-01" } } }
// Checkbox field
{ "Done": { "checkbox": false } }
// Number field
{ "Priority Score": { "number": 8 } }
// Rich text field
{ "Notes": { "rich_text": [{ "text": { "content": "Needs review before sending." } }] } }
```
**Full example — creating a task row:**
Title: `Follow up with client`
Properties:
```json theme={null}
{
"Status": { "select": { "name": "To Do" } },
"Due Date": { "date": { "start": "2026-06-01" } },
"Done": { "checkbox": false }
}
```
The returned `id` can be passed to downstream steps to update or link to the new page.
***
### Update Page
Updates the properties of an existing page, or archives it.
**Key inputs:**
| Input | Description |
| ---------- | ------------------------------------------------------------------------------------------------------------------------- |
| Page ID | The page to update — from Query Database, Get Page, or Search |
| Properties | JSON object with only the fields you want to change (same format as Create Page). Fields not included are left unchanged. |
| Archived | Set to `true` to archive (soft-delete) the page |
**Example — marking a task as done:**
```json theme={null}
{
"Status": { "select": { "name": "Done" } },
"Done": { "checkbox": true },
"Completed On": { "date": { "start": "2026-05-26" } }
}
```
**Example — archiving a record:** Leave Properties empty and set Archived to `true`. The record disappears from the database view but can be restored from Notion's trash.
**Typical pattern:**
1. Use Query Database to find the record and get its `id`
2. Feed that `id` into Update Page to change its fields
***
## Content Actions
### Get Page Content
Retrieves the content blocks inside a Notion page — paragraphs, headings, bullet lists, etc. This is separate from the page's properties (database fields). Use this to read the body text of a document.
**Key inputs:**
| Input | Description |
| --------- | -------------------------------------------------- |
| Page ID | The page to read content from |
| Page Size | Number of blocks to return (default: 50, max: 100) |
**Referencing values in downstream steps:**
* First block's text: `{{ step.output.blocks[0].text }}`
* All blocks: `{{ step.output.blocks }}`
**Example use case:** Get the page content, pass all text blocks to an AI step to generate a summary, then send that summary via email or Telegram.
***
### Append Content
Adds new content blocks to the bottom of an existing Notion page.
**Key inputs:**
| Input | Description |
| -------- | ------------------------------------------- |
| Page ID | The page to append content to |
| Children | A JSON array of Notion block objects to add |
**Example — appending a heading and a paragraph:**
```json theme={null}
[
{
"object": "block",
"type": "heading_2",
"heading_2": {
"rich_text": [{ "type": "text", "text": { "content": "Workflow Run — May 26" } }]
}
},
{
"object": "block",
"type": "paragraph",
"paragraph": {
"rich_text": [{ "type": "text", "text": { "content": "3 records processed. 1 error found." } }]
}
}
]
```
**Example — appending a bullet list item:**
```json theme={null}
[
{
"object": "block",
"type": "bulleted_list_item",
"bulleted_list_item": {
"rich_text": [{ "type": "text", "text": { "content": "New lead: Jane Doe — jane@example.com" } }]
}
}
]
```
**Example use case:** A workflow runs every morning, processes data, and appends a one-line log entry to a "Daily Log" page — building a running audit trail without creating a new page each time.
***
## Troubleshooting
| Symptom | Likely Cause | Fix |
| ----------------------------------- | ----------------------------------------- | -------------------------------------------------------------------------- |
| `401 Unauthorized` | Token revoked or missing | Re-authorize via the OAuth flow |
| `404 Not Found` on page or database | Content not shared with connection | Share the page via **···** → **Connections** |
| Empty search or query results | Nothing shared with connection | Share at least one page or database |
| Property update silently ignored | Property name case mismatch | Use Get Database to confirm exact property names — they are case-sensitive |
| `oauth_not_configured` error | Client ID/secret not saved in Super Admin | See [Notion OAuth Setup](/tools/notion-oauth-setup) |
# Overview
Source: https://learn.getodin.ai/agents/toolkits/overview
Comprehensive guide to all available agent toolkits
Agent toolkits are pre-built integrations that extend your AI agents' capabilities. Each toolkit provides a set of specialized tools that your agents can use to perform specific tasks.
## Available Toolkits
RAG-powered retrieval from your proprietary data and documents
Generate high-fidelity images on demand using DALL-E 3
Real-time information access capabilities via search and web scraping
Create and edit documents directly within chat conversations
Query, analyze, and visualize data from SQL databases and Smart Tables
Manage structure and data of internal Smart Tables with NoSQL-style capabilities
Multi-Agent Systems - delegate tasks to specialized worker agents
Execute Python code in secure sandbox with file uploads and analysis
Optimized for JavaScript/TypeScript workloads
Persistent memory for tracking tasks across conversations
Design and execute deterministic workflows for automation
# Python Code Execution Toolkit
Source: https://learn.getodin.ai/agents/toolkits/python
Execute Python code in secure sandbox with file uploads and analysis
Configure Python sandbox for code execution, file uploads, and analysis reports. Each chat session uses an isolated sandbox; uploaded files are sandboxed; sandboxes are cleaned after the session ends.
## Available Tools (5/5)
* **Execute Code**: Run Python code in secure sandbox (Enabled, Require Confirmation).
* **Search Files**: Search for files in the sandbox environment.
* **Upload File**: Upload files to the sandbox for processing.
* **List Files**: Show all files currently in the sandbox.
* **Create Download URL**: Generate download links for files created in the sandbox.
## Installing External Libraries
*Example: Installing PyMuPDF library in Python sandbox*
If you want to install any external library that you want the agent to install and use, you can include the installation command in your code. For example, if you want the agent to install PyMuPDF, you should do it as shown below:
```python theme={null}
# Install PyMuPDF library
subprocess.check_call([sys.executable, "-m", "pip", "install", "PyMuPDF"])
```
**Note:** Before executing your code, you must execute the installation command shown above. The library installation is performed using `subprocess.check_call()` with the proper syntax for pip installation.
## Use Cases
* **Data Analysis**: Process CSV/Excel files, perform statistical analysis, generate reports.
* **Visualization**: Create charts and graphs from data.
* **Mathematical Computation**: Solve equations and perform calculations.
* **File Processing**: Transform data formats, merge datasets, clean data.
* **Automation**: Execute repetitive data processing tasks.
# Smart Table Manager Toolkit
Source: https://learn.getodin.ai/agents/toolkits/smart-table-manager
Manage structure and data of internal Smart Tables with NoSQL-style capabilities
While the Database Toolkit is for querying, this toolkit is for managing the structure and data of internal Smart Tables. It provides NoSQL-style database capabilities within the platform.
## Tools Overview
* **Column Ops**: Add Column, Rename Column, Change Type.
* **Row Ops**: Insert Row, Update Row, Delete Row.
* **Table Ops**: Create Table, Drop Table.
* **Table Info**: Get Schema, List Tables, Get Row Count, Get Table Stats.
* **Data Ops**: Query Rows, Filter Data, Sort Data, Search.
## Supported Data Types & Limits
Supports String, Number, Boolean, Date, JSON, and Reference types. Limits include 100,000 rows per table, 200 columns per table, and 10MB max cell size.
# Telegram Toolkit
Source: https://learn.getodin.ai/agents/toolkits/telegram
Connect your Telegram bot to agents and workflows to send messages, manage chats, and trigger automations from incoming messages.
The Telegram Toolkit lets agents and workflows interact with Telegram bots. It supports sending and editing messages, sending media, managing chat members, generating invite links, and registering webhooks to trigger workflows from incoming messages.
Telegram bots and their credentials are managed through a Telegram bot called **@BotFather** — there is no web developer console.
## Prerequisites
| Requirement | Detail |
| ---------------- | ------------------------------------ |
| Telegram account | Required to interact with @BotFather |
## Step 1 — Create a Telegram Bot
Open Telegram and start a conversation with [@BotFather](https://t.me/BotFather).
Send the command `/newbot` and follow the prompts:
| Prompt | Detail |
| -------- | -------------------------------------------------- |
| Bot name | A human-readable display name (e.g. `My App`) |
| Username | Must be unique and end in `bot` (e.g. `myapp_bot`) |
BotFather will reply with a success message containing your bot token — it looks like `123456789:ABCdefGhIJKlmNoPQRsTUVwxyZ`. Copy and save it securely.
Set a profile picture that matches your application logo using the `/setuserpic` command in BotFather. A recognizable image makes your bot look professional and trustworthy to users.
## Step 2 — Add the Token to EK
1. In the workflow, add a Telegram toolkit step.
2. Click **Select a Connection** → **Create a Connection**.
3. Enter a **Connection Name** and paste your bot token.
4. Click **Save**.
1. Open your agent in the **Agent Builder**.
2. Go to the **Toolkits** tab in the left sidebar.
3. Find **Telegram** and click **Add to Agent**.
4. Paste your bot token under **Telegram Bot Token**.
5. Click **Save**.
## Managing Your Token
Your bot token is the master key to your bot. Do not share it, commit it to public repositories, or expose it in client-side code.
If your token is accidentally leaked, revoke it immediately:
1. Message @BotFather
2. Send `/mybots`
3. Select your bot
4. Tap **API Token** → **Revoke current token**
A new token will be generated. Update the connection in EK with the new value.
## Available Tools
| Tool | Description |
| ------------------------- | ------------------------------------------------------ |
| **New Message** (Trigger) | Start a workflow when a message is sent to your bot |
| **Send Text Message** | Send a text message from your bot to any chat |
| **Send Media** | Send a photo, video, sticker, or animated GIF |
| **Edit Message Text** | Update the text of a previously sent message |
| **Delete Message** | Delete a message from a chat |
| **Get Chat Info** | Retrieve metadata about a chat |
| **Get Chat Member** | Look up a user's membership status in a chat |
| **Create Invite Link** | Generate an invite link for a group or channel |
| **Register Webhook** | Tell Telegram to forward bot messages to your workflow |
| **Deregister Webhook** | Remove the webhook and stop message delivery |
## Trigger — New Message
Starts a workflow automatically whenever someone sends a message to your Telegram bot.
**Setup:**
Add a **New Message** trigger as the first step of your workflow. Copy the `/tool-webhook/{workflow-id}` URL from the trigger configuration panel.
Use the **Register Webhook** step to tell Telegram to deliver messages to that URL. Run it once — see [Register Webhook](#register-webhook) below.
Send a test message to your bot. The workflow fires and all message data is available as variables.
**Available trigger variables:**
| Variable | Description |
| -------------------------------------------- | --------------------------------------------------- |
| `{{ trigger.body.message.text }}` | The message text the user sent |
| `{{ trigger.body.message.chat.id }}` | The chat ID — use this as Chat ID in all send steps |
| `{{ trigger.body.message.from.id }}` | The sender's Telegram user ID |
| `{{ trigger.body.message.from.first_name }}` | The sender's first name |
| `{{ trigger.body.message.from.username }}` | The sender's username (may be empty) |
| `{{ trigger.body.message.message_id }}` | The ID of the incoming message |
| `{{ trigger.body.update_id }}` | The unique update ID from Telegram |
## Messaging Actions
### Send Text Message
Sends a text message from your bot to any Telegram chat.
**Key inputs:**
| Input | Description |
| ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Chat ID | The chat to send to. For the person who triggered the workflow, use `{{ trigger.body.message.chat.id }}`. For a fixed group or channel, paste its numeric ID. |
| Message | The text to send. Mix static text with variables, e.g. `Hello {{ trigger.body.message.from.first_name }}, your request was received.` |
| Format | Leave blank for plain text. Set to `HTML` for `bold` / `italic`. Set to `MarkdownV2` for Markdown (special characters are auto-escaped). |
| Disable Web Page Preview | Set to `true` to suppress link previews |
| Message Thread ID | Optional — only relevant for Forum supergroups |
| Reply Markup | Optional — a JSON object for inline keyboards or custom reply keyboards |
**Referencing the output in downstream steps:**
* Message ID (needed for Edit or Delete later): `{{ step.output.message_id }}`
* Chat ID: `{{ step.output.chat_id }}`
### Send Media
Sends a photo, video, sticker, or animated GIF to a Telegram chat.
**Key inputs:**
| Input | Description |
| ----------------- | -------------------------------------------------------------------------------------------------------------------- |
| Chat ID | The chat to send to |
| Media Type | Must be exactly one of: `photo`, `video`, `sticker`, `animation` |
| Media URL | A publicly accessible HTTPS URL to the file — Telegram fetches it directly |
| Media ID | Alternatively, a Telegram `file_id` from a previously uploaded file. Provide either Media URL or Media ID, not both. |
| Caption | Optional text shown below the media. Supports HTML/MarkdownV2 via Format. |
| Format | Parse mode for the caption |
| Message Thread ID | Optional — for forum supergroup topics |
If neither Media URL nor Media ID is provided, the step returns an error. The URL must be publicly reachable — local or private URLs will not work.
### Edit Message Text
Updates the text of a message previously sent by your bot.
**Key inputs:**
| Input | Description |
| ---------- | ----------------------------------------------------------------------------------- |
| Chat ID | The chat where the original message is |
| Message ID | The `message_id` from the Send Text Message output — `{{ step.output.message_id }}` |
| Text | The new message content |
| Format | Parse mode for the new text (blank = plain text, `HTML`, or `MarkdownV2`) |
**Example use case:** Send "Processing your request…" first. Run the workflow logic. Then edit that message with the final result — the user sees one message instead of two.
### Delete Message
Deletes a message from a chat.
**Key inputs:**
| Input | Description |
| ---------- | ----------------------------------------- |
| Chat ID | The chat containing the message |
| Message ID | The `message_id` of the message to delete |
Bots can only delete their own messages unless the bot is an admin in the chat. Telegram also imposes a time limit — messages older than 48 hours generally cannot be deleted by bots.
## Chat & Member Actions
### Get Chat Info
Retrieves metadata about a chat.
**Key inputs:**
| Input | Description |
| ------- | ------------------- |
| Chat ID | The chat to look up |
**Referencing values in downstream steps:**
* Chat title: `{{ step.output.title }}`
* Description: `{{ step.output.description }}`
* Invite link: `{{ step.output.invite_link }}`
### Get Chat Member
Looks up a specific user within a chat and returns their membership status and role.
**Key inputs:**
| Input | Description |
| ------- | --------------------------------------------------------------------------------------------------------------------- |
| Chat ID | The chat to look in |
| User ID | The Telegram user ID to look up. For the person who triggered the workflow, use `{{ trigger.body.message.from.id }}`. |
**Referencing values in downstream steps:**
* Status: `{{ step.output.status }}`
* Username: `{{ step.output.username }}`
**Possible status values:** `creator`, `administrator`, `member`, `restricted`, `left`, `kicked`
**Example use case:** Check `{{ step.output.status }}` — if it equals `left` or `kicked`, skip sending the message and handle the error instead.
### Create Invite Link
Generates a new invite link for a group or channel.
The bot must be an administrator with the "Invite Users" permission in the target chat.
**Key inputs:**
| Input | Description |
| ------------ | -------------------------------------------------------------------------------------------------------------------------- |
| Chat ID | The group or channel |
| Name | Optional label for the link (up to 32 characters), visible in the Telegram admin panel |
| Expire Date | Optional. An ISO-8601 string when the link expires, e.g. `2026-12-31T23:59:59Z`. Converted to a unix timestamp internally. |
| Member Limit | Optional. Max number of people who can join via this link (1–99,999) |
**Referencing the link in downstream steps:**
* Invite URL: `{{ step.output.invite_link }}`
`expire_date` in the output is a unix timestamp (integer seconds), not ISO format. `creates_join_request` will be `true` if the chat requires admin approval for new members.
## Webhook Setup Actions
These two steps connect a New Message trigger to your bot. Run them once per workflow.
### Register Webhook
Tells Telegram to start forwarding messages from your bot to your workflow URL.
**Key inputs:**
| Input | Description |
| -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| URL | The `/tool-webhook/{workflow-id}` URL from the New Message trigger panel |
| Allowed Updates | Set to `["message"]` to receive only regular messages (recommended). Leave blank to use the same default. |
| Secret Token | Optional but recommended. Any random string (e.g. `my-secret-abc123`). Telegram includes it in every webhook request header so you can verify requests are genuine. |
| Drop Pending Updates | Set to `true` to ignore messages that arrived before the webhook was registered |
Create a workflow with a New Message trigger. Copy the `/tool-webhook/{workflow-id}` URL from the trigger panel.
In a separate one-time workflow or manual test run, add a **Register Webhook** step and fill in the inputs above.
Run the step. Then send a message to your bot — your main workflow should now fire.
Alternatively, register via curl for a quick one-time setup:
```bash theme={null}
curl -X POST "https://api.telegram.org/bot/setWebhook" \
-H "Content-Type: application/json" \
-d '{
"url": "https://your-domain.com/tool-webhook/",
"allowed_updates": ["message"],
"secret_token": "my-secret-abc123"
}'
```
A successful response:
```json theme={null}
{ "ok": true, "result": true, "description": "Webhook was set" }
```
A Telegram bot can only have one active webhook at a time. Registering a new URL replaces any previous one.
### Deregister Webhook
Removes the webhook and stops Telegram from delivering messages to your workflow.
**Key inputs:**
| Input | Description |
| -------------------- | ------------------------------------------------------------------------- |
| Drop Pending Updates | Set to `true` to discard any messages queued while the webhook was active |
Deregister the webhook when you retire or archive a workflow. If you leave the webhook registered but the workflow inactive, Telegram will keep sending requests that go unanswered.
## Troubleshooting
| Symptom | Likely Cause | Fix |
| ------------------------------------------- | ------------------------------------------------------- | ---------------------------------------------------------------------- |
| Workflow does not fire on new messages | Webhook not registered or pointing to wrong URL | Run **Register Webhook** with the correct trigger URL |
| `401 Unauthorized` | Bot token is invalid or revoked | Verify the token or generate a new one via @BotFather |
| Media not delivered | URL is not publicly accessible | Use a public HTTPS URL — local or private URLs will not work |
| Cannot delete a message | Message is older than 48 hours, or bot is not an admin | Bots can only delete recent messages unless they have admin privileges |
| `creates_join_request: true` on invite link | Chat requires admin approval for new members | This is expected behavior — users must be approved before joining |
| Old messages triggering the workflow | Pending updates not cleared during webhook registration | Re-register with `Drop Pending Updates` set to `true` |
# To-Do Manager Toolkit
Source: https://learn.getodin.ai/agents/toolkits/to-do-manager
Persistent memory for tracking tasks across conversations
Provides persistent memory for tracking tasks across conversations. The toolkit maintains a structured task database that persists across sessions.
## Available Tools (1/1)
* **Update Todos**: Create/update/delete todos via JSON. Current todo list auto-displays after any operation. Supports merge and replace modes. No explicit limit.
## Use Cases
* **Project Management**: Track multi-step projects with tasks.
* **Customer Onboarding**: Manage onboarding checklists.
* **Content Production**: Coordinate content creation workflows.
* **Issue Tracking**: Maintain lists of bugs and feature requests.
* **Personal Productivity**: Manage personal to-do lists.
# Web Search Toolkit
Source: https://learn.getodin.ai/agents/toolkits/web-search
Real-time information access via search and web scraping
Connecting an agent to the web allows it to step outside its training data and access the current state of the world. It provides real-time information access capabilities.
## Sub-tools
* **Web Search Tool**: Executes a query against a search engine (Google/Bing) and returns the SERP with titles, snippets, and URLs. Best practice is "multi-hop" searching where the agent refines terms and searches again if initial results are inconclusive.
* **Get Content Tool**: Visits a specific URL and scrapes the main text content. Uses a headless browser to render JavaScript, ensuring it can read dynamic modern websites, stripping ads and navbars to return clean text.
## Configuration & Security
* **Whitelisted URLs**: Administrators can restrict the agent to specific domains by adding whitelisted URLs. If no URLs are specified, the agent can access any URL. URLs should include the protocol (http\:// or https\://). This helps ensure information quality by limiting the agent to trusted sources.
## Practical Examples
* **Competitive Intelligence**: "Search for the pricing page of Competitor X and summarize their enterprise tier features."
* **News Monitoring**: "Find the latest regulatory changes regarding AI in the EU published in the last week."
* **Fact Checking**: "Verify if the quote attributed to Lincoln is real."
# WhatsApp Toolkit
Source: https://learn.getodin.ai/agents/toolkits/whatsapp
Send outbound messages, media, and pre-approved templates through the WhatsApp Business API from your agents and workflows.
The WhatsApp Toolkit provides programmatic access to the WhatsApp Business Platform (Cloud API). It enables agents and workflows to send outbound messages including text, media, pre-approved templates, and advanced message types via the Meta Graph API. Receiving or processing inbound WhatsApp messages is not supported.
## Prerequisites
Before creating a connection, you will need the following from Meta:
| Requirement | Where to Get It |
| ------------------------------------ | --------------------------------------------------------- |
| WhatsApp Business Account (verified) | [Meta Business Manager](https://business.facebook.com) |
| System User Access Token | Meta Business Manager → System Users |
| Phone Number ID | WhatsApp Manager → Phone Numbers |
| Business Account ID | Optional — required for advanced Graph API calls |
| Approved message templates | Meta Business Manager → Account Tools → Message Templates |
## Creating a Connection
The WhatsApp Toolkit is available in both the Agent Builder and the Workflow Builder. The connection setup is the same in both, but the navigation path differs.
1. Open your agent in the **Agent Builder**
2. Go to the **Toolkits** tab in the left sidebar
3. Find **WhatsApp** and click **Add to Agent**
4. In the Toolkit panel, click **Select a Connection** > **Create a Connection**
5. In the pop-up that appears, enter a **Connection Name**, your **System User Access Token**, **Business Account ID**.
6. Enter your **Access Token**, **Business Account ID** (optional), and a display **Name** for the connection
7. Click **Save** — Odin AI Platform will validate the credentials before saving
1. Open your workflow in the **Workflow Builder**
2. Add a new step and select **WhatsApp** from the toolkit list
3. Click **Add Connection**
4. Enter your **Access Token**, **Phone Number ID**, **Business Account ID** (optional), and a display **Name** for the connection
5. Click **Save** — Odin AI Platform will validate the credentials before saving
## Available Tools
| Tool | Description |
| ------------------- | --------------------------------------------------------------------------------------------------------- |
| **Send Message** | Send a plain text message (up to 4,096 characters, UTF-8) within the 24-hour session window |
| **Send Media** | Send an image, video, audio, or document via a public HTTPS URL, with optional caption or filename |
| **Send Template** | Send a pre-approved template message — required for outbound messaging outside the 24-hour session window |
| **Custom API Call** | Make a direct call to any Meta Graph API endpoint for advanced use cases (see below) |
### Custom API Call
The Custom API Call tool is the most extensible option. It allows direct access to WhatsApp Graph API endpoints beyond what the other tools cover, including:
* Interactive messages (buttons, lists)
* Location and contact cards
* Product catalog messages
* Programmatic template management
* Business profile updates
* Messaging analytics and insights
## Configuration Notes
* **Phone number format**: Always use E.164 international format (e.g., `+1...`, `+52...`). Spaces, dashes, or a missing country code will cause delivery failures (error `1006`).
* **Session window**: Plain text and media messages can only be sent within a 24-hour window of the recipient's last message. Outside that window, use a **Send Template** instead.
* **Media URLs**: Must be publicly accessible over HTTPS. Private, localhost, or expired URLs will cause download failures (error `1011`). Verify MIME types match the file content.
* **Templates**: Must be approved in Meta Business Manager before use. Parameter count and order must match the approved template exactly. Monitor your template quality rating — a low rating can result in a template being paused (error `131056`).
* **Rate limits**: WhatsApp Business API enforces per-number and per-day messaging limits. For bulk sending, use queues and implement retry logic with exponential backoff.
* **Security**: Store access tokens securely and rotate credentials periodically. Ensure user consent is obtained before sending marketing messages.
## Practical Examples
* **Customer Support**: An agent receives a support request, looks up the customer record, and sends a WhatsApp message with the ticket number and next steps — or uses an interactive button template to route the user to the right team.
* **Transactional Notifications**: A workflow triggers after an order is placed and sends a template with order confirmation, shipping updates, or payment notifications.
* **Document Delivery**: An agent generates a PDF invoice or contract and delivers it via the Send Media tool with a descriptive caption.
* **Broadcast Campaigns**: A workflow iterates over a contact list and sends an approved marketing template with personalized parameter substitution.
## Troubleshooting
| Error Code | Symptom | Fix |
| ------------- | --------------------------- | ----------------------------------------------------------------------------------- |
| `401` / `190` | Invalid access token | Regenerate the System User token in Meta Business Manager and update the connection |
| `33` | Invalid Phone Number ID | Verify the Phone Number ID in WhatsApp Manager |
| `1006` | Invalid phone number format | Use E.164 format — include `+` and country code, no spaces or dashes |
| `131005` | Template not found | Confirm the template name and that it exists in Meta Business Manager |
| `131056` | Template paused | Check the template's quality rating in Meta Business Manager |
| `1011` | Media download failed | Use a public HTTPS URL and confirm the file type and MIME type are supported |
If the error is not listed above, use the **Debug Checklist**:
1. Verify credentials and that the connection is valid
2. Confirm the recipient's phone number is registered on WhatsApp
3. Validate the message format and payload structure
4. Confirm template approval status
5. Check whether API rate limits have been reached
# Workflow Manager Toolkit
Source: https://learn.getodin.ai/agents/toolkits/workflow-manager
Design and execute deterministic workflows for automation
Enables design and execution of deterministic workflows. Ideal for recurring tasks and complex processes that require precise orchestration. Workflows provide repeatable, auditable automation.
## Available Tools (15 total)
### Schema Tools
* **Get Node Schemas**: Retrieve node type definitions.
* **Get All Node Schemas**: Get all available node schemas.
### Workflow Management
* **Create Workflow**: Create new workflow definition.
* **List Workflows**: View all workflows in a project.
* **Update Workflow**: Modify existing workflow.
* **Delete Workflow**: Remove workflow.
### Node Management
* **Add Node**: Add single node to workflow.
* **Add N Nodes**: Add multiple nodes at once.
* **Update Node**: Modify node configuration.
* **Remove Node**: Delete node from workflow.
### Connection Management
* **Connect Node**: Create connection between nodes.
* **Remove Connection**: Delete node connection.
### Layout & Execution
* **Auto Layout**: Automatically arrange nodes.
* **Run Workflow**: Execute the entire workflow.
* **Run Node**: Execute single node.
## Use Cases
* **Daily Reports**: Scheduled workflow that queries data and emails reports.
* **Event-Driven Automation**: Trigger actions based on events.
* **Data Pipelines**: Extract, transform, and load data.
* **Customer Onboarding**: Multi-step workflows for new customers.
* **Content Publishing**: Review and approval workflows.
# Tools
Source: https://learn.getodin.ai/agents/tools
Add custom tools and workflows to your agents
The **Tools** tab in the Agent Builder allows you to add custom tools and workflows to your agents. Unlike **Toolkits** (which are pre-built integrations), **Tools** are user-created custom tools and workflows that extend your agent's capabilities with specific functionality tailored to your needs.
## Overview
**Tools** enable you to:
* **Add Custom Tools**: Attach custom tools you've created in your project
* **Add Workflows**: Include workflows/actions that execute multi-step processes
* **Create New Tools**: Build new custom tools directly from the agent builder
* **Manage Tool Configuration**: Configure how tools are used by the agent
* **Browse Tool Library**: Access thousands of pre-built tools from the public library
## Tools vs. Toolkits
Understanding the difference helps you choose the right approach:
| Feature | Tools | Toolkits |
| ----------------- | ------------------------------------------- | -------------------------------- |
| **Type** | Custom tools and workflows | Pre-built integrations |
| **Creation** | User-created or from library | Pre-configured by Odin AI |
| **Scope** | Project-specific or public | Platform-wide integrations |
| **Configuration** | Full customization | Pre-configured with options |
| **Examples** | Custom API calls, workflows, business logic | Gmail, Slack, Google Drive, etc. |
**When to Use Tools:**
* You need custom business logic
* You want to create reusable workflows
* You need to integrate with custom APIs
* You want to combine multiple operations into one tool
**When to Use Toolkits:**
* You need standard integrations (Gmail, Slack, etc.)
* You want pre-configured authentication
* You need common operations (send email, create task, etc.)
## Accessing the Tools Tab
1. **Open Agent Builder**
* Navigate to **Agents** in the sidebar
* Click **Edit** on an existing agent or **Create Agent**
* The Agent Builder will open
2. **Navigate to Tools Tab**
* In the left sidebar, click on **Tools**
* The Tools tab will display with your selected tools and options to add more
## Adding Tools to Your Agent
### Adding Existing Custom Tools
1. **Open Tools Selector**
* Click **+ Add Tool** button in the Tools tab
* The Tools Selector modal will open
2. **Browse Available Tools**
* **Custom Tools**: Tools you've created in your project
* **Public Tools**: Tools from the public library (9,000+ available)
* **Workflows**: Existing workflows from your project
3. **Search and Filter**
* Use the search bar to find specific tools
* Filter by category or type
* Browse by popularity or recent additions
4. **Select a Tool**
* Click on a tool to view its details
* Review the tool's description and inputs
* Click **Add** to attach it to your agent
### Creating a New Custom Tool
1. **From Tools Selector**
* Click **+ Add Tool** in the Tools tab
* Click **Create Custom Tool** in the modal
* You'll be redirected to the Tool Builder
2. **From Empty State**
* If you have no tools, click **Create Your First Tool**
* This opens the Tool Builder for a new tool
3. **Configure Your Tool**
* **Name**: Give your tool a descriptive name
* **Description**: Explain what the tool does
* **Inputs**: Define input parameters
* **Steps**: Configure the tool's execution steps
* **Save**: Save as draft or publish
4. **Return to Agent**
* After creating, the tool will be available in your project
* Return to the agent builder and add it via the Tools selector
### Adding Workflows
1. **Open Tools Selector**
* Click **+ Add Tool** in the Tools tab
* Click **Create Workflow** in the modal
2. **Select Workflow Trigger**
* Choose the trigger type:
* **Form Input**: User fills out a form
* **File Upload**: User uploads files
* **Manual**: Execute on demand
3. **Configure Workflow**
* Set up workflow steps
* Define inputs and outputs
* Configure trigger settings
4. **Add to Agent**
* Once created, the workflow appears in your tools list
* It can be executed by the agent when needed
## Managing Tools
### Viewing Added Tools
The **Tools** tab displays:
* **Sidebar**: Shows all tools added to the agent
* Custom tools
* Workflows
* Actions from your project
* **Main Area**: Shows tool details and management options
### Tool Status
Tools can have different statuses:
* **Active**: Tool is ready to use
* **Draft**: Tool is being edited (not yet published)
* **Published**: Tool has been published and is available
### Configuring Tools
1. **Edit Tool Configuration**
* Click **Configure** on an added tool
* Adjust tool-specific settings
* Set approval requirements (if needed)
2. **Tool Approval Settings**
* **Auto-execute**: Tool runs automatically when triggered
* **Require Approval**: Agent asks for confirmation before executing
3. **Input Defaults**
* Set default values for tool inputs
* Configure required vs. optional inputs
### Removing Tools
1. **Remove from Agent**
* Click the **X** button on a tool in the sidebar
* Or click **Remove** in the tool details
* Confirm removal
2. **Delete Custom Tool**
* For custom tools, you can delete them entirely
* Click the three dots menu on a custom tool
* Select **Delete**
* **Note**: This permanently deletes the tool from your project
## Tool Types
### Custom Tools
Custom tools are tools you create with:
* **Custom Logic**: Your own business rules and processes
* **API Integrations**: Connect to your own APIs
* **Multi-Step Operations**: Combine multiple actions
* **Data Processing**: Transform and manipulate data
**Creating Custom Tools:**
1. Define inputs (parameters the tool accepts)
2. Configure steps (what the tool does)
3. Set up error handling
4. Test the tool
5. Publish when ready
### Workflows
Workflows are multi-step processes that can:
* **Execute Sequences**: Run multiple operations in order
* **Handle Triggers**: Respond to form inputs or file uploads
* **Process Data**: Transform data through multiple steps
* **Integrate Services**: Connect multiple services together
**Workflow Triggers:**
* **Form Input**: User provides input via a form
* **File Upload**: User uploads files for processing
* **Manual**: Execute on demand by the agent
### Public Tools
The public tool library includes:
* **9,000+ Tools**: Pre-built tools from the community
* **Various Categories**: Communication, productivity, data, etc.
* **Ready to Use**: Clone and customize for your needs
* **Regularly Updated**: New tools added frequently
**Using Public Tools:**
1. Browse the public library
2. Find a tool that matches your needs
3. Clone it to your project
4. Customize if needed
5. Add to your agent
## Best Practices
### Tool Organization
1. **Name Clearly**: Use descriptive names that explain the tool's purpose
2. **Document Well**: Add clear descriptions for each tool
3. **Group Related Tools**: Organize tools by function or category
4. **Version Control**: Use drafts for testing before publishing
### Tool Selection
1. **Start Simple**: Begin with basic tools and add complexity gradually
2. **Test Thoroughly**: Test tools before adding to production agents
3. **Consider Performance**: Too many tools can slow down agent responses
4. **Review Regularly**: Remove unused tools to keep agents efficient
### Tool Configuration
1. **Set Appropriate Defaults**: Configure sensible default values
2. **Use Approval When Needed**: Require approval for sensitive operations
3. **Handle Errors**: Ensure tools have proper error handling
4. **Document Inputs**: Clearly document what each input does
## Use Cases
### Customer Support Agent
**Tools Needed:**
* **Create Ticket Tool**: Custom tool to create support tickets
* **Search Knowledge Base**: Tool to search documentation
* **Escalate Issue**: Workflow to escalate to human agent
### Data Analysis Agent
**Tools Needed:**
* **Data Processing Tool**: Custom tool for data transformation
* **Report Generation**: Workflow to generate reports
* **Export Data**: Tool to export results
### Content Creation Agent
**Tools Needed:**
* **Content Generator**: Custom tool for content creation
* **Image Generation**: Tool to create images
* **Publishing Workflow**: Workflow to publish content
## Troubleshooting
### Tool Not Appearing
**Issue**: Tool doesn't show up in the selector
**Solutions:**
* Check if the tool is published (drafts may not appear)
* Verify you're in the correct project
* Refresh the tools list
* Check tool permissions
### Tool Not Executing
**Issue**: Agent doesn't use the tool
**Solutions:**
* Verify the tool is added to the agent
* Check tool configuration
* Review agent's system prompt (may need to mention the tool)
* Test the tool independently
### Tool Execution Errors
**Issue**: Tool fails when executed
**Solutions:**
* Check tool inputs are correct
* Verify tool configuration
* Review error messages in tool execution logs
* Test tool with sample inputs
### Approval Not Working
**Issue**: Tool executes without approval when it should require it
**Solutions:**
* Check approval settings in tool configuration
* Verify agent has permission to request approval
* Review tool's approval configuration
## Related Documentation
* [Workflows](/tools/workflows-v2) - Learn about creating workflows
* [Toolkits](/agents/toolkits/overview) - Understand pre-built integrations
* [Agent Builder](/agents/agents) - General agent configuration guide
# 1.2.0
Source: https://learn.getodin.ai/changelogs/1.2.0
Released 2025-05-24
## New Features
* **Enhanced API Tool**: Improved visual design and user experience for API tool creation
* **Agent v2 Markdown Support**: Added comprehensive markdown editor support for enhanced content creation
* **Smart Table Editing**: Smart table agent now supports inline editing and adding new rows
* **Smart Table Integration**: Smart table agent is now directly accessible from the smart table view
## UI Improvements
* **Login Redesign**: Completely redesigned login interface for better user experience
* **Enhanced Citations Navigation**: Improved navigation flow and usability for citations
* **Inline Citation Display**: Citations now display information directly on the same page for better workflow
## Bug Fixes
* Fixed issue where team information was not displaying correctly in certain scenarios
* Improved action button styling and visibility in dark mode
* Resolved currency formatting issues in smart tables for proper display
# 1.2.1
Source: https://learn.getodin.ai/changelogs/1.2.1
Released 2025-05-28
## Bug Fixes
* Fixed team invitation visibility for new users
* Resolved flickering issue in chat mode interface
* Improved chat navigation by displaying only "My Chats" section in chat mode
* Optimized API performance by reducing unnecessary chat data requests
* Improved team user visibility
# 1.2.2
Source: https://learn.getodin.ai/changelogs/1.2.2
Released 2025-06-04
## New Features
* Added Chat Only Mode setting for Team Members
# 1.2.3
Source: https://learn.getodin.ai/changelogs/1.2.3
Released 2025-06-12
## Bug Fixes
* Fixed issue where flows and flow runs would sometimes not load properly
# 1.3.0
Source: https://learn.getodin.ai/changelogs/1.3.0
Released 2025-06-16
## Features
### Smart Table Pagination
* **Enhanced Performance**: Navigate through large datasets efficiently with intelligent pagination controls
* **Customizable Page Sizes**: Choose how many rows to display per page (10, 25, 50, 100, or custom)
* **Quick Navigation**: Jump to specific pages or use previous/next controls for seamless browsing
* **Memory Optimization**: Only loads visible data to improve performance with massive datasets
### Tag Documents and Smart Tables in Chat with '@'
* **Contextual References**: Use '@' symbol to reference specific documents and smart tables directly in chat conversations
* **Autocomplete Integration**: Smart suggestions appear as you type, making it easy to find and reference the right content
### Smart Table Dashboards
* **Visual Analytics**: Transform your smart table data into interactive charts, graphs, and visualizations
* **Real-time Insights**: Dashboards automatically update as underlying table data changes
* **Customizable Layouts**: Drag-and-drop interface to arrange widgets and create personalized dashboard views
* **Export Capabilities**: Share dashboard snapshots or export visualizations for presentations and reports
### Smart Table Comparison Tools
* **Row-by-Row Analysis**: Compare multiple rows side-by-side to identify differences and similarities
* **Column Comparison**: Analyze data trends across different columns with visual highlighting
* **Historical Comparisons**: Compare current data states with previous versions or snapshots
* **Diff Visualization**: Clear visual indicators show what has changed, added, or removed between comparisons
### Smart Table Row Execution
* **Automated Actions**: Execute predefined workflows, scripts, or API calls directly from table rows
* **Batch Processing**: Select multiple rows and run actions simultaneously for improved efficiency
* **Custom Scripts**: Configure row-specific execution parameters and custom automation logic
* **Integration Support**: Connect with external services, databases, and APIs through row-level actions
# 1.3.1
Source: https://learn.getodin.ai/changelogs/1.3.1
Released 2025-06-19
## New Features
### Tool Display in Chat Interface
* Tools now appear in real-time in the chat interface as they are executed
### Web Search Integration
* **New Toolkit:** Added comprehensive websearch toolkit for real-time information retrieval
* **Capabilities:**
* Real-time web searches during conversations
* Integration with multiple search providers
* Automatic result parsing and summarization
### Custom LLM Headers Support
* **Feature:** Added support for custom headers to be passed to custom Large Language Models
* **Benefits:**
* Enhanced authentication options
* Custom rate limiting headers
* Provider-specific optimization parameters
* Better integration with enterprise LLM deployments
* **Configuration:** Headers can be configured per model or globally
***
## Improvements
### User Interface Enhancements
* Improved tool execution visibility in chat interface
* Better visual feedback during long-running operations
* Enhanced agent and toolkit display on v2 agents page
***
## Bug Fixes
### Critical Fixes
#### Multiline Paste Functionality
* **Issue:** Paste operations for multiline content were not working correctly
#### Thought Display Formatting
* **Issue:** Missing line breaks between AI thought processes made output difficult to read
#### Agent Page Display Issues
* **Issue:** Tools and toolkits were not properly displaying on the v2 agents page
# 1.4.0
Source: https://learn.getodin.ai/changelogs/1.4.0
Released 2025-07-06
## New Features
### Agent to Agent Communication Tool
* **Most Requested Feature:** Released the Agent to Agent tool - the #1 most requested new feature
* **Capabilities:**
* Enable agents to communicate and collaborate with each other
* Seamless workflow orchestration between multiple agents
* Enhanced automation through agent coordination
### Toolkit Configuration Interface
* **New Feature:** Added comprehensive toolkit configuration and tool enabling to the agent customization UI
* **Capabilities:**
* Select specific tools within a toolkit for an agent
* Inline configuration panels for enhanced user experience
* Granular control over toolkit functionality
### Tool Selection Within Toolkits
* **Enhanced Control:** Users can now enable/disable individual tools within each toolkit
* **Supported Toolkits:**
* SQL Database Toolkit
* Azure AD Toolkit
* Knowledge Base Toolkit
* **Benefits:**
* More precise agent customization
* Reduced complexity for specific use cases
* Better resource management
### Inline Configuration Panels
* **UI Enhancement:** Replaced modal-based configuration with inline panels
* **Features:**
* Streamlined configuration workflow
* Real-time preview of toolkit settings
* Improved user experience with less context switching
### Tool Mentions in Personality Editor
* **New Component:** Added inline tool mentions
* **Functionality:**
* @ mentions to suggest and insert tools in personality editor
* Serialization and deserialization of tool mentions in markdown
* Enhanced personality customization with tool integration
### Enhanced API Provider Support
* **New Provider:** Added Databricks as an API provider for custom LLM models
* **Benefits:**
* Expanded choice of LLM providers
* Better integration with enterprise Databricks deployments
* Support for Databricks-specific model configurations
### User and Document Access Control
* **New Feature:** Added tags to users and documents for granular access control
* **Knowledge Base Integration:**
* Tags can be used to control access within Knowledge Base
* Fine-grained permissions based on user and document tags
* Improved security and content organization
### Team Credit Management
* **New Feature:** Added credit limits to users within teams
* **Capabilities:**
* Set individual user credit limits
* Better resource management across team members
* Enhanced cost control for team administrators
***
## Improvements
### Agent Customization UI Enhancements
* **Enhanced GeneralTab:** Integrated new PersonalityEditor with all available tools
* **Improved PersonalityEditor:** Now renders and manages tool mentions effectively
* **Better ActionCard:** Enhanced title and knowledge base information for multi-KB searches
### Toolkit Management
* **Unified Configuration:** Created shared toolkit tools configuration system
* **Standardized Inputs:** Introduced BaseVariableInput.tsx for consistent variable inputs
* **Better Tool Organization:** Improved categorization and display of tools
### User Interface Enhancements
* **Agent Selector:** Moved agent selector into the message input for better accessibility
* **Smart Table Review:** Added sort and filter functionality to smart table review view
* **Automator Steps:** Adjusted the size of steps in the automator for better visibility
* **New User Onboarding:** Improved onboarding experience for new users with better guidance and setup flow
***
## Bug Fixes
### Chat Interface Fixes
* **Citations Bug:** Fixed citations in chat counting on rerender bug
* **Improved Reliability:** Enhanced chat interface stability during re-renders
# 1.5.0
Source: https://learn.getodin.ai/changelogs/1.5.0
Released 2025-07-30
## New Features
### Asynchronous Column Computation for SmartTables
* **Performance Enhancement:** Introduced background processing for column computations in SmartTables
* **Capabilities:**
* Start, monitor, and cancel long-running computation jobs
* Real-time job status tracking and polling
* Improved UI responsiveness during data processing
* Job management with listing and cancellation options
### Real-Time Chat with Server-Sent Events (SSE)
* **Major Infrastructure Upgrade:** Replaced polling mechanism with Server-Sent Events for instant message updates
* **Features:**
* Real-time message delivery without page refresh
* SSE connection status indicator in chat panel
* Automatic reconnection handling
* Reduced server load compared to polling
### Knowledge Base Settings Management
* **New Feature:** Comprehensive settings management for Knowledge Base configuration
* **Capabilities:**
* Centralized knowledge base settings configuration
* Bulk apply settings to all documents
* Fine-grained control over knowledge base behavior
* Enhanced document management and organization
### Access Tags for Knowledge Base Documents
* **Security Enhancement:** Dual tag system for granular access control
* **Features:**
* Allow-only and allow-none tag types for precise access control
* Tag-based document filtering and search
* User and document tag management
* Enhanced security for sensitive content
### Custom LLM Iterator Support
* **AI Model Enhancement:** Added custom iterator configuration for LLM models
* **Benefits:**
* Flexible model iteration strategies
* Enhanced AI model customization options
* Better control over model behavior and responses
### AI Model "Thinking" Capabilities
* **Advanced AI Feature:** Introduced thinking support for AI models
* **Capabilities:**
* Configurable thinking budgets for models
* Option to include or exclude thoughts in responses
* Enhanced AI reasoning transparency
* Improved model introspection and debugging
### Enhanced MCP (Model Context Protocol) Support
* **Integration Improvement:** Expanded Model Context Protocol capabilities
* **Features:**
* SSE transport support for MCP toolkits
* OAuth authentication configuration
* Enhanced MCP toolkit management
* Better integration with external services
***
## Improvements
### SmartTables SDK Enhancements
* **Enhanced Data Types:** Extended Filter.value to support string, number, boolean, and null types
* **Export Improvements:** Better handling of default values in column export transformations
* **Job Management:** Integrated comprehensive job management system
### Chatbot Widget Updates
* **Authentication Flow:** Enhanced anonymous authentication handling and session management
* **Token Management:** Added validation and refresh token checks
### User Interface Enhancements
* **Chat Experience:** Seamless real-time messaging with SSE status indicators
* **Knowledge Base UI:** New settings tab for knowledge base configuration
* **Model Administration:** Enhanced super admin interface for model configuration
* **Tag Management:** Improved tag editing modal with dual tag selection
# 1.5.1
Source: https://learn.getodin.ai/changelogs/1.5.1
Released 2025-08-04
## New Features
### Create AI Agents with Ease
* **Build Smarter, Faster:** Get help from AI when creating your custom agents
* **What You Can Do:**
* Build your perfect agent from a prompt
* Choose from ready-made agent templates to get started quickly
* Create agents that perfectly match your business needs
### Backup and Share Your Projects
* **Never Lose Your Work:** Export your entire projects to save them safely or share with others
* **Benefits:**
* Download your projects as backup files you can store anywhere
* Share complete projects with team members or between different workspaces
* Move your work between different environments with confidence
* All your settings and configurations are preserved perfectly
### Track Every Change to Your Agents
* **See Your Agent's Evolution:** Keep track of all the changes you make to your agents over time
* **What's Included:**
* View the complete history of changes to any agent
* Compare different versions to see what's changed
* Go back to a previous version if needed
* See exactly when and what changes were made
# 1.5.2
Source: https://learn.getodin.ai/changelogs/1.5.2
Released 2025-08-24
## New Features
### Powerful New Toolkits
* **Five New Toolkits Added:** Expand your agent's capabilities with specialized toolkits designed for different workflows
* **Agent Manager:** Create and manage AI agents within your project using natural language descriptions. Build agents that can create other agents, manage agent configurations, and update toolkits dynamically.
* **Smart Table Manager:** Full management power for Smart Tables with column operations, row management, schema editing, and data manipulation. Perfect for agents that need to structure and organize data.
* **Google Drive:** Complete file and folder management in Google Drive including file upload/download, search, organization, and sharing capabilities.
* **Google Sheets:** Read and update Google Sheets for data synchronization, reporting, and collaborative data management.
* **Gmail:** Send emails, search messages, create drafts, reply to emails, and manage all your email communications through the Gmail API.
### Enhanced Account Experience
* **Redesigned Account Page:** Complete overhaul of the account management interface with improved organization and user experience
* **Benefits:**
* Streamlined profile management with dedicated sections for different account aspects
* Better organization of settings, billing, and personal information
* Modern card-based layout for easier navigation
* Enhanced visual design with improved accessibility
***
## Improvements
### Beautiful Smart Tables
* **Airtable-Inspired Interface:** Smart Tables now feature a modern, intuitive interface similar to Airtable
* **Enhanced Features:**
* **Better Column Management:** Visual resize handles, type indicators, and improved sort controls
* **Improved Row Interactions:** Hover states, multi-select capabilities, and inline action buttons
* **Enhanced Cell Editing:** Click-to-edit functionality with proper input types and validation
* **Modern Filtering:** Visual filter chips, quick filters, and advanced search capabilities
* **Professional Styling:** Clean, modern appearance with better typography and spacing
***
## Bug Fixes
### Authentication Improvements
* **Fixed 401 Errors for Long-Time Users:** Resolved authentication issues that occurred when users remained logged in for extended periods
* **Enhanced Session Management:**
* Automatic token refresh when sessions are about to expire
* Improved retry logic for failed authentication requests
* Better handling of concurrent token refresh attempts
* Seamless user experience without unexpected logouts
# 1.5.3
Source: https://learn.getodin.ai/changelogs/1.5.3
Released 2025-08-31
## New Features
### Enhanced Chat Experience
* **Widescreen Chat Mode**: Toggle between standard and widescreen chat layouts for better readability. Access this setting in your account preferences to expand chat width for a more comfortable viewing experience.
* **Improved Agent Action Visuals**: Agent actions now display with enhanced visual indicators, including collapsible sections, status badges, and better organization of action results. Watch your AI agents work with clearer visual feedback and progress tracking.
### Developer & API Improvements
* **Final Response API Parameter**: Added `final_response` field to API calls, allowing developers to filter out thinking messages and receive only the final processed response. This streamlines API integrations by providing clean, user-ready content.
### Project Management
* **Streamlined Project Creation**: Creating a new project now takes you directly into the project workspace, eliminating extra navigation steps and getting you started faster.
* **Smart Agent Builder Redirect**: Projects without a configured default agent now automatically redirect to the agent builder screen, ensuring you always have a properly configured agent before starting conversations.
### Authentication & Status
* **OAuth Agent Status Indicator**: The message input bar now displays the authentication status of your selected agent, showing when OAuth connections are active, expired, or need attention. This helps you understand when agents have the necessary permissions to access external services.
# 1.6.0
Source: https://learn.getodin.ai/changelogs/1.6.0
Released 2025-10-08
## New Features
### Enhanced Chat Experience
* **Document Manager Toolkit**: Agents can now create documents which you can edit directly from chat, providing seamless document creation and editing workflows
* **Smart Table Sidebar**: View any smart table attached to the agent directly from the chat interface for better context and data access
* **Improved Chat Tool Calls**: Enhanced tool call UI with more informative displays and better user feedback during agent operations
### Advanced Agent Configuration
* **Toolkit Configuration in Super Admin**: Added comprehensive toolkit configuration options in the super admin interface for better system management
* **Confirmation Options for All Tools**: Added optional confirmation dialogs to all tools to prevent accidental operations and improve user control
* **Agent Template Reversion**: Ability to revert agent templates to previous configurations for better version control
### Integration & Authentication
* **User Integration Tab**: New project settings tab for managing user integrations with enhanced visibility and control
* **Salesforce Connected App Configuration**: Optionally configure your own Salesforce Connected App credentials, with fallback to default system credentials if not provided
* **PII Feature Toggle**: Super Admin can now enable/disable PII (Personally Identifiable Information) features across the platform
### Smart Table Enhancements
* **Smart Table Polling**: Intelligent polling system for real-time data updates in smart tables
* **Latest Rows Sorting**: User and project integration tables now sort by latest rows by default for better data visibility
***
## Improvements
### User Interface & Experience
* **Better UI Styling**: Comprehensive styling improvements across the entire application for a more polished and consistent experience
* **Chat Mode Styling**: Enhanced visual design and layout for chat mode interface
* **Interface Cleanup**: Streamlined and cleaned up various UI components for better usability
# 1.7.0
Source: https://learn.getodin.ai/changelogs/1.7.0
Released 2025-11-11
## New Features
### Project Interfaces
* **Customizable User Experience**: Create custom interfaces to replace the default chat mode and tailor the user experience
* **Capabilities:**
* Build app-like interfaces with multiple pages
* Support for different page types (chat, custom elements)
* Publish and share interfaces with users
* Set default interfaces per project
* Configure page layouts with custom icons and elements
* **Benefits:**
* Greater control over how users interact with your project
* Create purpose-built experiences for specific use cases
* Professional, branded interfaces for external users
### Prompt Library for Agents
* **Template Management**: Agents now have dedicated prompt libraries to store and organize reusable prompts
* **Features:**
* Create, edit, and organize prompt templates per agent
* Set prompt ordering and active status
* Quick access to common prompts during conversations
* Enable/disable prompt library feature per agent
* **Benefits:**
* Faster workflow with pre-built prompts
* Consistency in agent interactions
* Easy sharing of proven prompt patterns
### Agent Memory System
* **Intelligent Preference Learning**: Agents can now remember user preferences, facts, and context across conversations
* **Capabilities:**
* Automatic detection of memorable information from conversations
* Approval workflow for pending memories (auto-approve or manual)
* Three memory types: preferences, facts, and context
* Configurable memory settings (max memories, memory types)
* Memory expiration and management
* Seamless integration into agent system prompts
* **Detection Rules:**
* Filters out casual remarks and temporary statements
* Avoids duplicate memories
* Focuses on genuinely useful contextual information
* **Benefits:**
* More personalized agent interactions
* Better context retention across conversations
* Reduced need to repeat preferences or information
### Automator V2 (Beta)
* **Next-Generation Workflow Engine**: New Valkyrie workflow system
* **Performance Improvements:**
* Faster workflow execution with optimized node-based architecture
* Advanced execution engine with proper lifecycle management
* Support for parallel execution and dependency resolution
* Cancelable execution with proper error handling
* **Enhanced Capabilities:**
* 16 available node types including AI, communication, database, and flow control
* Deeper integration with agents for streaming and real-time updates
* Support for all execution modes (manual, trigger, test, webhook)
* Node-level execution tracking and debugging
* **Migration Support:**
* Toggle V2 automator on/off per project
* Automatic migration toolkit for existing workflows
* Backward compatibility during transition
### Suggested Responses
* **Contextual Follow-ups**: Agents can now generate intelligent suggestions for the user's next message
* **Features:**
* Automatic generation based on conversation history
* 3-5 contextually relevant suggestions per message
* Uses agent's configured model for generation
* Background processing (non-blocking)
* Enable/disable per agent via prompt settings
* **Benefits:**
* Improved conversation flow
* Helps users explore topics more deeply
* Reduces cognitive load on users
### Improve Prompt with AI
* **Magic Prompt Enhancement**: AI-powered prompt optimization for better results
* **Capabilities:**
* Analyzes and enhances user prompts for clarity and effectiveness
* Uses expert prompt engineering techniques
* Provides explanation of key changes
* One-click revert to original prompt
* Uses the selected agent's model for improvements
* **Enhancement Areas:**
* Clarity and specificity improvements
* Contextual enrichment
* Structural organization
* Output specifications
* Role assignment where beneficial
* **Features:**
* Real-time prompt improvement in chat interface
* Visual indicator for improved prompts
* Improvement metadata tracking
* Optional usage guidance
***
## Improvements
### SQL Agent Performance
* **Connection Speed Optimization**: Significantly improved SQL agent connection and query performance
* **Technical Improvements:**
* Lazy table reflection to skip pg\_catalog queries on initialization
* Custom table schemas bypass expensive metadata queries
* NullPool connection strategy for better resource management
* Comprehensive timing instrumentation for performance monitoring
* SecureSQLDatabase with query-level validation
* Optimized connection string building
* **Impact:**
* Faster initial connections to SQL databases
* Reduced latency for SQL operations
* Better scalability for projects with many tables
### Agent Builder Enhancements
* **JSON Builder Integration**: Moved JSON builder directly into the agent builder interface
* **Benefits:**
* Streamlined workflow - no need to switch between pages
* JSON configurations accessible within agent settings
* Embedded JSON editor in the agent customization panel
* Better context when configuring agent responses
* Unified agent configuration experience
***
## Additional New Features
### Import/Export System
* **Project Portability**: Comprehensive import/export functionality for entire projects
* **Capabilities:**
* Export complete projects including agents, knowledge base, workflows, and smart tables
* Import projects with automatic ID remapping and conflict resolution
* Export custom tools (workflows) with dependencies
* Agent export with toolkit configurations
* Knowledge base folder download/upload
* Smart Table schema export/import
* Interface configurations export
* JSON documents (output templates) portability
* **Benefits:**
* Easy project migration between environments
* Project templates and backups
* Workflow sharing across teams
* Faster project setup with pre-built configurations
### New Toolkits
#### Confluence Toolkit
* **Atlassian Integration**: Manage Confluence spaces, pages, and content
* **Features:**
* OAuth 2.0 authentication with Atlassian
* Read and write Confluence content
* Search across spaces and pages
* Page creation and updates
* Space management
* Token refresh support
* **Benefits:**
* Automated documentation workflows
* Team collaboration integration
* Knowledge base synchronization
#### Image Generation Toolkit
* **AI Image Creation**: Generate images from text prompts using DALL·E
* **Features:**
* DALL·E 3 model support
* Multiple image sizes (1024x1024, 512x512, 256x256)
* Quality options (standard or HD)
* Generate 1-4 images per request
* Automatic upload to Supabase storage
* Persistent image URLs
* Images attached to chat messages
* **Configuration:**
* Configurable provider, model, and API settings
* Default size and quality preferences
* Control over image history inclusion
* **Benefits:**
* Visual content creation from text
* Marketing asset generation
* Prototype and mockup creation
#### Microsoft SharePoint Toolkit
* **Enterprise Document Management**: Integration with SharePoint for file operations
* **Features:**
* Production-ready error handling
* File encoding support
* Document library access
* File upload and download
* Auto-save capabilities
* **Benefits:**
* Enterprise document workflow automation
* SharePoint integration for large organizations
* Seamless file management
#### Python Script File Upload
* **Code Execution Enhancement**: Upload Python scripts (.py files) directly to sandbox
* **Features:**
* Script file validation
* Upload to Python sandbox
* File management within sandbox
* Support for multiple file types (txt, csv, json, py, md, pdf, xlsx, docx)
* 10MB file size limit per file
* **Benefits:**
* Complex script execution workflows
* Reusable code modules
* Better organization of Python tools
### Web Search Whitelisted URLs
* **Search Restriction**: Limit web searches to specific trusted domains
* **Features:**
* URL whitelist configuration per agent
* Domain-level filtering
* Support for multiple URLs
* Validation and error handling
* Automatic domain extraction from full URLs
* Batched search with large whitelists
* **Benefits:**
* Control information sources
* Ensure data quality and accuracy
* Compliance with information policies
* Reduce irrelevant search results
***
## Bug Fixes
### User Interface Fixes
* **Theme Consistency**: Resolved theme inconsistencies across the application
* **Table Display**: Fixed center alignment and theme-based colors for tables
* **Sidebar**: Updated sidebar layout and mobile responsiveness
* **Chat Interface**: Fixed message clearing when creating new chats
* **Agent Selection**: Improved agent selector integration in message input
* **Citation Rendering**: Fixed citation counting on rerender bug
* **Link Parsing**: Improved link rendering at token boundaries
* **Resource View**: Adjusted height for better resource display
* **Logs UI**: Enhanced log viewing interface
* **Multiple Chats**: Fixed chat switching and list UI issues
### Authentication & OAuth Fixes
* **Confluence OAuth**: Made site URL optional in OAuth configuration
* **Salesforce OAuth**: Fixed credential resolution in callback
* **Asana OAuth**: Improved login URL generation using ServiceRegistry pattern
* **OAuth Security**: Fixed credentials logging vulnerabilities
* **Chatbot Auth**: Made anonymous authentication more seamless
### Workflow & Automator Fixes
* **Smart Table Referencing**: Improved table mapping in workflow nodes
* **Empty Python Output**: Fixed issue with Python results losing type information
* **Workflow Positioning**: Resolved non-fixed width position handling
* **Scheduler Node**: Fixed database error when adding scheduler to workflow
* **Draft Saves**: Corrected non-null violation in workflow draft saves
* **Loop Node**: Fixed iterator variable display in loop piece
* **Conditional Node**: Improved condition evaluation and edge wiring
* **Unicode Escape**: Fixed unsupported Unicode sequences in published workflows
### Database & Performance Fixes
* **Connection Leaks**: Added fixes for database connection leaks
* **Composite Indexes**: Removed problematic composite indexes
* **GIN Index**: Fixed GIN index configuration
* **Chat Context**: Hotfix for wiping chat context on every new message
* **Agent v2**: Fixed loading context only from Redis issue
* **Documents Table**: Added missing columns to documents table
### Integration Fixes
* **Odoo Integration**: Fixed integration for workflows
* **Teams Bot**: Corrected upload method handling
* **Import/Export**: Fixed agent and workflow references after import
* **Smart Table Export**: Improved default value handling in column export
* **JSON Variable Selector**: Fixed variable selection in JSON fields
* **Malformed Toolkit Configs**: Added validation and error handling
### Project & Team Management Fixes
* **Team Creation**: Fixed Stripe ID conflict when adding users to teams
* **User Management**: Improved user record updates when removing members
* **Duplicate Prevention**: Added checks to prevent duplicate team additions
* **Project Clone**: Added authorization check on project cloning
* **Project Owner**: Fixed privilege escalation in project owner deletion
### Other Fixes
* **File Upload**: Fixed KB pagination check for filtered files
* **Sync Schedule**: Removed invalid minutes and hours options
* **Image Generation**: Corrected configuration for on-premise deployments
* **Transcript Handling**: Improved meeting transcript processing
* **PDF Rendering**: Fixed legacy PDF viewer issues
* **Automator Execution**: Resolved asyncio error in agent manager toolkit
# 1.8.0
Source: https://learn.getodin.ai/changelogs/1.8.0
Released 2026-01-05
## New Features
### Microsoft Teams Integration
Connect your AI agents directly to Microsoft Teams for seamless workplace collaboration. Send messages to channels and group chats, create and manage teams, and add members to conversations—all automated through your agents. Perfect for team collaboration workflows and internal communication automation.
### Dynamics 365 Integration
Enterprise-grade CRM connectivity is here. Your agents can now manage customer records and contacts, access sales and service data, automate CRM workflows, and sync data between systems. Ideal for sales teams and customer service automation.
### Super Admin Analytics Dashboard - OnPrem
Gain powerful insights into platform usage with our new analytics system. Track user activity and engagement, monitor query volume and feature usage, visualize trends over time with interactive charts, and access team-level analytics and reporting. Make data-driven decisions about your platform's growth and adoption.
### Agent Templates Management
Deploy agents faster with pre-built, reusable templates. Create template agents with pre-configured settings, include prompt libraries, configure toolkits and knowledge bases, and share templates across your organization with version control. Achieve consistent configurations and faster deployment times.
### Platform Settings
New centralized configuration options give administrators better control. Configure default behaviors across the platform, set organization-wide preferences, manage platform-level integrations, and control default routing and navigation—all from one location.
### Enhanced Voice Input
Smart microphone functionality with visual feedback. Features include visual waveform display during recording, automatic pause when switching Chrome tabs, and recording stops when switching contexts. This prevents accidental recordings and provides better awareness of recording state.
### VLLM API v0.13.0 Support
Access the latest open-source LLM capabilities. Integration with VLLM v0.13.0 provides a cost-effective alternative to proprietary APIs while delivering optimized inference performance and compatibility with OpenAI API format responses.
***
## Improvements
### Prompt Library Enhancements
Save and organize your best prompts more easily. Add prompts directly from the chat interface with a new "Add to Prompt" button, export and import prompts between projects, and enjoy improved organization with alphabetical ordering and agent filtering.
### Knowledge Base Upgrades
More reliable document management with better visibility. New features include Google Drive file content download, upload progress tracking with detailed status, a dedicated "Failed Files" tab for troubleshooting, multi-KB support with smart selection, and zip file upload support.
### Smart Tables Evolution
Handle more complex data structures. Query smart tables directly from SQL toolkit, perform bulk row deletion, access nested JSON data, and enjoy improved formatting and pagination. Pre-installed pandas library available for workflow integrations.
### Team Activity Tracking
Better visibility into team operations. Click on log entries to view full chat conversations, access improved filtering and date range selection, and view expanded team metrics in the admin dashboard with team visibility across the platform.
### SSO for Chatbot Widget
Enterprise authentication for embedded chatbots. Users can authenticate with your existing SSO system through a seamless popup-based flow, making enterprise deployments more secure with a better login experience.
### Workflow & Automation Updates
More reliable automation execution. Search for specific workflows easily, handle file uploads in triggers and runtime inputs, use nested variable selectors, and benefit from improved workflow builder with better agent selection.
### Improved SSO-Only Login
Cleaner interface for organizations using SSO-only authentication. Streamlined authentication flow with better button styling, dynamic container height adjustment, and less confusion for end users.
***
## Additional Enhancements
### User Experience
Theme-aware colors for better consistency, improved mobile responsiveness, enhanced notification system, smoother navigation, and better citation rendering.
### Performance & Reliability
Faster page load times, more efficient data fetching, better caching strategies, reduced memory usage, and improved error handling throughout the platform.
### Credits & Billing
More accurate team credit usage tracking with improved error handling and reliable credit tracking across the platform for better financial reporting.
***
## Resolved Issues
We have addressed numerous issues to improve your experience, including:
* Enhanced authentication and user management with improved invite functionality
* Better knowledge base access and file handling
* Improved workflow execution reliability
* Enhanced table functionality and data display
* Resolved integration issues with Google Drive and Microsoft services
* Better team and project management
* Improved PDF processing and upload validation
# 1.9.0
Source: https://learn.getodin.ai/changelogs/1.9.0
Released 2026-02-04
## New Features
### Webhook Trigger V2
Enhanced webhook functionality for workflows with improved reliability and configuration options. Trigger workflows from external systems with more flexibility and better error handling.
### File Trigger
New default file trigger capability for workflows. Automatically trigger workflows when files are uploaded, enabling powerful document processing automation workflows.
### Bitbucket Integration
Connect your workflows to Bitbucket repositories. Manage source code, pull requests, and repository operations directly from your agents and workflows.
### Email File Support (.eml & .msg)
Full support for email file formats in chat and knowledge base. Upload, preview, and process .eml and .msg files with dedicated email viewer component. Includes support for email attachments, CC, and BCC fields.
### Multi-Sheet Excel Support
Process Excel files with multiple sheets. Access and work with data across all sheets in your Excel workbooks, with improved preview and table rendering.
### Search in Chats
Quickly find specific conversations with the new chat search functionality. Search through your chat history to locate important discussions and information.
### SMTP Automator V2
Enhanced email automation capabilities with support for attachments, CC, and BCC fields. Send professional emails with file attachments directly from your workflows.
### LinkedIn Toolkit V2
Updated LinkedIn integration with file upload support for media in posts. Create posts with images, videos, and documents using the improved LinkedIn toolkit.
### Team Branding Extensions
Team branding (logo & theme) now extends to the landing page in agent mode. Provide a consistent branded experience across all user touchpoints.
### Prompt Library Enhancements
* **Favorites**: Mark your most-used prompts as favorites for quick access
* **Categories**: Organize prompts with category fields for better management
* **Edit in Project Settings**: Edit prompts directly from project settings
### Email Viewer Component
Dedicated viewer for .eml and .msg email files with proper formatting and attachment handling. Preview email content, headers, and attachments seamlessly.
***
## Improvements
### Authentication & Security
* **SAML Metadata Management**: Super admin can now register and manage SAML metadata configurations (onpremise)
* **Session Management**: Improved session redirection when session expires and page reloads
* **Chat Widget Auth**: Okta login now working inside chat widget
* **Identity Management**: Stopped using user\_metadata as identity source for better security
### Knowledge Base
* **File Format Support**: Added .msg file support to KB uploads
* **.doc File Support**: Allow Word 97-2003 (.doc) files in chat upload
* **Folder Management**:
* Hyphen with space allowed in folder names
* Digit-only folder names now allowed
* Duplicate folder name handling improved
* **KB Sections**: Enhanced KB sections with better organization
### Workflow Builder
* **Progress Bar**: Added progress bar for workflow execution tracking
* **Action Modal**: Show descriptions and defaults in action modal for better clarity
* **Datastore Variables**: Correct array type detection for datastore variables
* **Execution History**: Improved execution history snapshot for file upload trigger
* **Per-Step Configuration**: Configurable settings per workflow step
### Super Admin Dashboard
* **Teams Tab**:
* Added "created at" timestamp to teams
* Improved theme changes in left sidebar
* **File Upload Limits**: UI for managing file upload limits and error tooltip display
* **Project Search**: Improved admin project search placeholder
### Chat Interface
* **File Upload**:
* Resolved file upload size display and duplicate file issues
* Better file picker support for .eml and .msg files
* **HTML Visualization**: Enabled HTML visualization rendering in chat preview using iframe sandboxing
### Credits
Improved tracking entries for more accurate tracking.
### Email & Communication
* Improved forgot password flow with updated email templates
* Option for per-channel settings for Teams bot
### Project & Enterprise
* Timestamp filtering for projects with clampdown
* Improved SAML SSO metadata upload (onpremise)
* Allow defining custom entity id for generic SSO (onpremise)
* Added pagination to enterprise usage endpoint
### Logging & Monitoring
* Unified logs for on-prem and cloud deployments
* Better logging for sensitive operations
***
## Additional Enhancements
### Documentation & Developer Experience
* Improved error messages for signup failures
* Better error surfacing across the platform
* Enhanced debugging capabilities
### Data Management
* Improved handling of nested JSON data
* Better Excel table processing
* Enhanced Smart Table functionality with SQL toolkit integration
# 1.9.1
Source: https://learn.getodin.ai/changelogs/1.9.1
Released 2026-03-08
## New Features
### Get Bot Status Step (Workflow)
New workflow step to wait for an agent or bot to finish before continuing. Set a timeout (e.g. up to 4 hours) and how often to check status (every 30 seconds or more). The step keeps polling until the run completes, succeeds, or times out—ideal for flows that depend on long-running agent tasks.
### Search Slack Channel
Search within channels to find conversations and content quickly. List and search channels so you can locate the right discussions and information.
### SAML Lockdowns & General Access Block
Control who can sign up and access the platform using SAML. The app checks before signup and shows clear feedback when access is blocked. Orphaned or denied signups are cleaned up, and SAML metadata is used to enforce lockdown behavior. Admin SAML flows are supported. Relay state is handled correctly for IdP based on your enterprise and SAML setup.
### New Relic Toolkit
Use New Relic from the agent builder. Configure the connection and use New Relic monitoring and observability in your agents and workflows.
### Zoho People Toolkit
Zoho People is now available in the agent toolkit list. Configure the connection and use the OAuth redirect URL shown in the config panel (with copy-to-clipboard) when setting up the app in the Zoho API Console.
### Metadata-Based Filtering & SharePoint in Knowledge Base
Turn on metadata-based filtering for workflows and knowledge base so you can filter by custom metadata. For SharePoint, document library metadata is captured during ingestion and can be used as the search filter in KB tools. CSV, TSV, and Excel vectorization can use your custom metadata.
### Response Card JSON & Sandbox Downloads
Response cards can render JSON and indicate when content is JSON. Sandbox runs use the correct template when created, and Python dependencies (e.g. requests, pandas) are only installed when the run uses Python. File downloads from sandboxes use reliable hosted URLs so downloads work even after reconnecting.
## Improvements
### Workflow Builder & Execution
* **Auto Convert Types**: A workflow-level setting (in the 3-dot menu) lets you turn automatic type conversion on or off per workflow. It applies to the whole run and to single-step runs. Default is on for existing behavior.
* **Execution Console**: The "Last run" status no longer shows "Running…" when it has already finished. Only real workflow steps are shown as errors; trigger and input entries no longer appear as failures. When you clear execution history, it stays cleared when you reopen the workflow.
* **Multi-Tool Execution**: Optimised running multiple tools in one step. Action names are handled correctly so execution is reliable.
### SQL Database Toolkit
* **Database Toolkit**: The general-purpose query tool in the Database toolkit under Row Management, alongside the granular read/write tools, so you can choose when to use it.
### Jira Toolkit
* **Include All Fields**: A toggle lets you choose between a compact set of fields (fewer tokens) and a full set including display names and all non-empty fields for Jira issue responses.
### Agent Builder & Toolkits
* **Agent Communication**: You can choose which tools to use: Message Agent, Delegate Task, and Agent Status.
* **Send Message to Chat**: A toggle clearly controls whether to send the message to chat.
* **Tool Icons**: Step icons match the toolkit and tool (e.g. Microsoft Teams, ERP, Meetings, ElevenLabs microphone). The toolkit menu uses a consistent icon style.
* **Tool Runs**: When tools run, you get clearer logs and result previews, and failures are reported with specific error details.
### Knowledge Base
* **Unicode & Display Names**: Folder and file names can use Unicode. Display names from the system are used in the UI and in the rename dialog.
* **Folder Sync Status**: The knowledge base view shows folder sync status correctly.
### Chat & Real-Time Updates
* **Connections**: Rapidly switching between chats no longer leaks connections or causes race conditions. Message updates are kept in cache so the right content shows when you switch back.
* **Toasts**: Reduced duplicate "last workflow" toast messages.
### Super Admin & Settings
* **Datastore**: Creating and editing variables use a single dialog and a clearer "Data Store" tab.
* **Toolkits Tab**: The toolkits area has an overview and analytics, with a shared icon set for 40+ toolkits.
### Automator & Sign-In
* **Sign-In**: Automator sign-in goes through the server. Your session is authenticated securely without sending credentials from the browser.
* **Permissions**: Project owners can complete project creation and related actions even before a role is assigned. Role-based checks apply across the app, and the "no role assigned" 403 case is fixed.
### Sandboxes & Integrations
* **Sandbox Uploads**: Uploads from sandboxes use the correct content type so files open correctly in the browser. A dedicated bucket is used for sandbox downloads.
* **Connection**: When using connections in workflows, you can pick the connection from a vault-aware variable selector.
* **M365 Attachments**: Attachment body handling for Microsoft 365 was improved.
* **Data Safety**: Invalid characters in query parameters are sanitized so database errors are avoided.
* **Slack**: Conflicting setup commands for Slack were resolved.
## Resolved Issues
We have addressed numerous issues to improve your experience, including:
* Execution console no longer shows incorrect "Running" or "Failed" when reopening a workflow
* More enhanced behavior when switching between chats quickly
* Agent Communication toolkit now has tool selection
* Knowledge base folder sync status displays the current status
* AWS model invocation fixed (across models)
* Test runs use the latest data when variables are involved
* Sandbox file downloads work after reconnecting
# 2.0.0
Source: https://learn.getodin.ai/changelogs/2.0.0
Released 2026-04-01
## New Features
### Autopilot
Autopilot is the new assistant experience on the dashboard: a dedicated chat-style surface with New Chat, context for what you're working on, and clear status—so you can ask Odin questions and drive work without leaving home. Open it from the floating Autopilot control where your layout supports it (Cmd+Shift+C), or start from your default project when your team is set up that way. Templates help you kick off common Autopilot flows, and the experience is styled consistently across themes—including Odin Composer v2 integration, platform toolkit additions (e.g. YouTube upload/registry for Autopilot), and chat/UI polish (scrolling, navigation, SSE hardening).
### Tool Descriptions in the Builder
Workflow and agent steps can now show richer tool descriptions in the UI, including the trigger config panel, with tool names synced from the backend where applicable.
### Connect Another OAuth Account
For OAuth-based toolkits, use **Connect another account** to link additional identities without replacing your existing connection. Test Connection for OAuth toolkits is also more reliable on both frontend and backend.
### Odin Sign-In, Consent, and Terms
Sign-up and login now support configurable consent copy, SSO for Odin, and shared Odin terms so policies and branding stay aligned with the rest of the product.
### License and Billing Visibility
Team-based license expiry behavior and a license validity view on billing make plan status and limits easier to see.
### Database Toolkit Write Permissions
The database toolkit includes clearer write permission handling for safer automation against your data.
### Vault-Aware Toolkit Configuration
Toolkit connection fields can now use vault-backed secret inputs so sensitive values are not stored or shown as plain text in the UI. Vault-backed variables can feed datastore cache and toolkit connections on the backend.
### Project Export (Modal + KB Skip)
Project export uses a dedicated modal flow, with an option to skip knowledge base export when you only need configuration and metadata. Super Admin template export validation also counts dict-shaped agents correctly.
### Chatbot Widget: Resizable Window & SSO
The embedded chatbot widget adds a resizable window, popup-based SSO, alignment with the main app's SSO checks, and Supabase integration where used for email capture. Public chatbot feedback controls are restored where applicable.
### New and Expanded Toolkits
* **Amazon S3, Trello, and Zoho CRM** toolkit surfaces aligned with backend registration.
* **Google Calendar and Google Forms v2** for Automator, with OAuth reconnect where needed.
* **Facebook Pages, File Helpers, and Odin Tools** migrated toward v2; v2 migrator for Odin Tools.
* **Duplicate Sheet** (Google Sheets), newer Jira toolkits, and Slack UI updates (channel search / message search arguments).
* **Crypto toolkit UI** (HMAC Signature tool) and Notion step UI refinements (custom API call form).
* **Zoho People**: leave management tools and pagination notes on employee listings.
* **Fetch metadata tool** for the KB toolkit; optional metadata-based filtering configuration.
* **GitHub tools**: filters on list pull requests and date filtering.
* **M365 toolkits**: ongoing refactor of remaining tools for consistency.
### Templates & Installation
Project name prompt when installing a template; templates info surfaced in Super Admin; templates info page in the app.
### Images in Chat & Composer
Image upload, paste-to-upload, and images in chat for the Composer and dashboard flows.
### Roles & Permissions
Role UI adds `upload_files` and `run_tools` chat permissions so you can govern file uploads and tool execution per role.
### Per-User Python Sandbox Isolation
Project settings support optional per-user isolation for Python sandboxes (UI + backend), configurable per deployment.
### Project & Team Administration
* Project ownership transfer and related user/project management improvements.
* Team Admin entry on the user dashboard; APIs expose team owner and team admin views; admins can inspect team logs where enabled.
* Restrictive SAML team/project assignment rules, optional continuous SAML-based reassignment, and safer handling when deleting users who own projects or teams (transfer/cleanup).
* Target project ID and workflow request metadata propagated for agent/workflow creation and tracing.
### Analytics & Feedback
* Liked/disliked messages in the analytics feedback tab with backend endpoints and date defaults.
* Agent interactions tab for reviewing agent activity.
* Chat audit UI hooks where the feature flag allows.
### MCP Servers
API key authentication for MCP servers, New Relic quick-add, and backend fixes for MCP OAuth and tool `inputSchema` handling in custom models.
### Knowledge Base: Decryption & Downloads
Definable decryption for KB items (UI + backend endpoints). Direct download flows use new download endpoints without exposing raw storage URLs where applicable.
## Improvements
### Autopilot & Dashboard
* Default project behavior and navigation tuned so Autopilot fits naturally into the dashboard workflow.
* Context-aware search and chat ID / agent ID context in relevant surfaces.
* Sidebar defaults and overflow fixes in v2 layouts; font and personality copy tweaks.
### Chat & Widget
* **Streaming**: Auth stays aligned across multiple chats; latest messages load via the GET chat API for anonymous and signed-in users.
* **SSO**: The widget uses `signInWithToken` where your IdP requires it instead of custom-token sign-in.
* **On-prem**: Fewer cases of empty chat on first login and more reliable agent mode toggles right after sign-in.
* **Project switching**: Less chance of stale chats and agents when changing projects.
* **Citations & PDFs**: `document_id` passed to the document chunks API for tighter filtering; better behavior in long replies; PDFs can use page-based citations where configured.
* **Smart tables**: Right panel limits visible smart-table tabs with a +N more dropdown; ToolEditView and smart table polling improvements; clone/import column alignment fixes.
* **Final output**: Unicode decoding in response data and removal of duplicate blocks.
* **Layout**: Layout lifted in project routes so the sidebar does not unmount on navigation.
### Knowledge Base & Themes
* Optional hide download CTAs for KB items when your theme disables downloads.
* Custom searchable metadata and external link metadata on items; hook to direct download endpoints.
* Crawler can use Crawl4AI (V2) instead of Diffbot (V1) where configured; `delete_crawler` cleans KB entries and session state more reliably.
### Data Store, Builder & Tools
* **Data Store tab**: Flow and run scope, vault download auth, and dependency fixes reduce run-scope fetch loops and broken panels after large merges.
* **Automation Anywhere**: Get Bot Status default timeout increased from 4 hours to 24 hours for very long bot runs; success/failure status constants aligned on the backend.
* **JsonBuilder**: Fewer cursor jumps in the code editor and better Japanese IME in GUI value fields.
* **API tools**: Parameter name casing preserved in action metadata; `ui_form` keys map to parameters case-insensitively on the backend; workflow JSON import unwraps `tool_data` correctly.
* **SQL**: Clearer query input UX and fixes for duplicate response data.
* **Google Sheets**: Variable input for insert row dynamic columns.
* **Python tools**: Auto-detection of parameters when signatures contain `#` comments; path and download URL fixes.
* **MCP**: Attached Tools shows a correct MCP server count on the General tab.
* **Web search toolkit**: Naming and layout aligned with the current toolkit design.
* **Multi-tool runs**: User confirmation path refactored on frontend and backend.
### Security & Privacy
* Agent builder stops exposing download configuration in a way that could leak API keys in exports or previews.
* Reduces sensitive data in URLs and related UI.
* A public project disables restrict chat; you cannot enable both at once, avoiding inconsistent access settings.
* Hardened file handling (SSRF, size limits, streaming) on the backend for YouTube/downloads.
* `SANDBOX_PATH_WHITELIST` and related sandbox path controls on the backend.
### Automator & Custom Models
* Continued migration of the PDF Automator piece toward v2.
* **Custom LLM**: Support for Google AI-style message formats, non-streaming mode, and Anthropic tool-call shapes (including retry behavior) in the UI and backend.
* Automator auth tokens now have a 24-hour expiry on the backend.
* Automator v2 clone behavior, `clone_warning` messaging, and Firebase copy skipped when disabled.
* WhatsApp configuration updates for agent use on the backend.
### Billing & Admin
* **Super Admin**: CSV/XLSX export for LLM metrics and usage dashboards (frontend + export endpoints).
* **Project settings**: HTML preview can be enabled per project (model + API) so HTML-oriented behavior stays consistent in chat and citations.
* Super Admin analytics graphs and provider config modal updates.
### Platform
* **E2B sandboxes**: Reused sandboxes validated before commands; Python step results parsed when stdout is raw JSON; proxy downloads with correct Content-Type; optional template passed when creating sandboxes where supported.
* **Triggers & scheduling**: Invalid timezone values normalize to UTC; Office 365 email triggers handled in scheduler; no infinite retry on unknown `email_office365` types; Outlook attachment double-encoding and HTML body fixes.
* **Tasks & workflows**: Valkyrie async fixes; branch/conditional ordering and port/index fallbacks; nested loop timeouts; `task_retry` and `page_mapping` errors resolved; Smart Table tool name mismatches fixed.
* **Knowledge & search**: Cosine distance for vectors; HTML uploads ingested as markdown; Japanese and non-ASCII KB search; hidden files filtered from KB listings; chunks filterable by `document_id`; image/binary uploads without bogus UTF-8 decode errors.
* **Google & OAuth**: Google Sheets fewer forced logouts on token expiry; narrower scopes for Drive KB connector; Office 365/Outlook/SharePoint OAuth flows aligned including SharePoint folder URLs.
* **SSO / integrations**: Relay state and AAI IdP behavior; custom entity ID for generic SSO; fewer consent loops for Dynamics 365 and Microsoft Teams; Okta unsolicited login handling.
* **Usage & reporting**: Pagination on enterprise usage APIs; token, Valkyrie, and anonymous usage in reports; timestamp filtering and clamps for projects.
* **Credits & extraction**: Extraction overhead removed so totals track model-line usage more directly; credit conversion and formula documentation updated.
* **Security & ops**: Configurable SSRF protection; 403 vs 401 for permissions; impersonation controls and super-admin guardrails; SSE and Supabase Realtime connection fixes; Celery retries and pool updates.
* **Email**: Password reset template updates; Outlook light-theme fixes for headers and CTAs.
### Team Branding on the Landing Page
Team branding (logo and theme) extends to the landing page in agent mode for a consistent first impression.
## Resolved Issues
We addressed additional issues to improve stability and polish, including:
* Chatbot widget SSO popup interval cleanup and token-based sign-in edge cases.
* Data Store and vault file download regressions after large merges.
* Citation and inline citation quirks in certain customer themes; cross-project KB chunk mix-ups mitigated on the backend.
* Document chunks UI infinite loop in edge cases.
* Two-byte / Unicode input in tables and forms.
* Invite link copy when the clipboard API is unavailable.
* CDN/compression blocking SSE streams on the backend.
# 2.0.1
Source: https://learn.getodin.ai/changelogs/2.0.1
Released 2026-05-04
## New Features
### Skills for Agents
Agents now operate with a skills-aware runtime, enabling more structured and context-driven execution. Assigned skills are dynamically incorporated into agent behavior, matched using structured triggers, and managed through an enhanced Skills experience in the agent builder. Trigger configuration is now more flexible with editable tag-based inputs, supporting multiple phrases and advanced matching patterns.
### Skills Manager Toolkit
A new Skills Manager toolkit allows agents to create, update, discover, publish, install, and assign skills within workflows. Teams receive a pre-configured library of system skills automatically during deployment for faster onboarding.
### Ask User Toolkit
Agents can now request structured input from users during execution, enabling workflows that require clarification, approvals, or additional data before proceeding.
### WhatsApp Toolkit Configuration
WhatsApp integration is now supported within the builder, including guided setup, connection management, and action configuration. The experience includes improved validation, clearer status handling, and smoother connection lifecycle management.
### Public Chatbot Attachments
The public chatbot now supports file attachments, with built-in validation, clear attachment previews, and improved message association for a seamless experience.
### Autopilot Chat Controls
Autopilot introduces enhanced interaction controls, including the ability to stop active responses and edit messages, enabling smoother iteration and greater control during conversations.
### Manual MCP OAuth
MCP servers now support manual OAuth for pre-registered clients, including backend callback configuration, secure token exchange, and improved compatibility with external identity providers.
### Team Billing Periods
A standardized team billing period model is now available, including usage tracking, billing cycle alignment, credit reset support, and improved reporting capabilities.
### Team Audit and Security Logs
Enhanced audit and security logging provides improved visibility with advanced filtering across teams, projects, users, and actions, along with export capabilities and clearer identifiers.
### Enhanced Knowledge Base Upload
Knowledge Base uploads now support an improved asynchronous workflow with clearer success and status notifications, better multi-KB handling, and enhanced error visibility.
### V2 Automator Builder Updates
The V2 builder introduces support for Google Docs, improved boolean handling, enhanced toolkit visibility, and continued support for migrated workflows.
### Deployment-Time Frontend Configuration
On-prem deployments now support more configuration at deployment time, allowing safer and more flexible environment management without requiring rebuilds.
## Improvements
### Agent Runtime and Prompting
* Skills are more effectively incorporated into agent behavior with improved guidance on when and how to use them.
* Chart-capable responses are more consistently rendered visually when applicable.
* Support for structured JSON responses enables more predictable and system-friendly outputs.
* Tool output handling and preparation have been enhanced for improved response quality.
### Chat, Autopilot and Debugging
* Chat sessions are preserved more consistently across navigation.
* Debugging visibility has been improved for easier issue diagnosis.
* Workflow execution supports broader compatibility across enterprise environments.
* System state synchronization across modes and sessions is more reliable.
* User session tracking has been enhanced.
* Chat visualization and inspection tools are more accessible during testing and demos.
### Knowledge Base and Smart Tables
* Knowledge Base listing and filtering behavior is more consistent and resilient.
* File browsing across projects and multiple Knowledge Bases is more accurate.
* Smart table execution and recovery behavior has been improved for better consistency.
* Filtering logic for structured data queries has been enhanced.
* Table operations now handle schema changes more dynamically.
### Toolkits and Integrations
* Integration validation and connection handling across supported platforms have been improved.
* OAuth flows and token management are more robust and consistent.
* File processing capabilities have been expanded for supported formats.
* Search and filtering within integrations such as Slack and GitHub have been enhanced.
* Execution reliability across platform toolkits and environments has been improved.
* Crawler configuration and usage visibility have been enhanced.
### Admin, Billing and Permissions
* Credit usage tracking and reporting are more consistent across views.
* Project access validation and cache handling have been improved.
* Team lifecycle management flows are more reliable.
* SAML-based assignment and access control handling have been enhanced.
* Validation processes across datastore and configuration flows are more consistent.
* API key management and role-based visibility have been improved.
### Security and Reliability
* Error handling and logging have been enhanced across sensitive operations.
* File handling and sandbox download safeguards have been strengthened.
* Compatibility with supported model providers has been improved.
* Session management and logout handling provide stronger security.
* Storage and upload workflows handle a wider range of response scenarios.
* Real-time and connection handling behavior is more stable across environments.
* File and media upload handling has improved consistency and visibility.
## Resolved Issues
We delivered a set of improvements across chat, toolkits, knowledge base, admin, and deployment to enhance overall platform stability and consistency, including:
* Improved chat session continuity when navigating between views.
* Enhanced attachment handling to ensure files remain correctly associated with messages.
* More consistent behavior across skills management and library workflows.
* Improved reliability of API responses, form handling, and modal interactions.
* Better alignment between agent/editor modes and project settings.
* Improved accuracy and filtering in audit exports.
* Enhanced visibility into Knowledge Base upload results.
* More consistent smart table execution and recovery behavior.
* Improved compatibility with supported model integrations.
* Strengthened OAuth flows and external integration handling.
* Improved project membership validation and access consistency.
* Enhanced security and reliability for sandbox file handling.
# 2.0.2
Source: https://learn.getodin.ai/changelogs/2.0.2
Released 2026-05-14
## New Features
### Google Cloud Platform Toolkit
Agents and workflows can now connect to Google Cloud Platform using service-account credentials. This adds support for common cloud operations such as querying BigQuery data, inspecting datasets and tables, working with Cloud Run services, interacting with Cloud SQL, and making advanced Google Cloud requests from workflows.
A new guided GCP configuration experience is available in the agent builder, with credential validation and tool selection so teams can choose which cloud actions an agent is allowed to use.
### Freshservice Toolkit
Odin AI Platform now supports Freshservice automation for IT service management workflows. Teams can connect Freshservice using their service desk URL and credentials, then enable tools for ticket creation, ticket updates, ticket search, requester lookup, conversations, notes, replies, groups, agents, and custom Freshservice actions.
### Team Info Toolkit
Agents can now answer questions about project team membership, such as who a team member is or how many people are on the team. The experience is scoped to the project team and is designed to avoid exposing sensitive administrative, billing, authentication, or password-related fields.
A new Team Info configuration panel helps admins connect the right project team before enabling the capability.
### Airtable Workflow Toolkit
The V2 workflow builder now includes Airtable support with personal access token authentication. Workflows can discover bases, tables, and fields, then create, find, update, and delete records. File attachment upload and advanced Airtable actions are also supported.
### Workflow Failure Email Notifications
Workflows can now send email notifications when an execution fails. Admins can configure recipients at the workflow level, choose team members from the UI, and enable or disable failure alerts per workflow.
The notification includes workflow details, the error message, execution context, and a link back to the failed run when available. Odin AI Platform also limits repeated alerts for the same workflow so recipients are not flooded by duplicate failure emails.
### Public Chatbot Tool Calls
Public chatbots can now optionally run approved tools and workflows. This gives teams a way to expose guided actions to website visitors while keeping the capability controlled by project settings, rate limits, and audit visibility.
This capability is opt-in and should be enabled only for public chatbot experiences where tool use is expected and appropriate.
### Locked-Down Viewer API Keys
Project API keys can now be created with viewer-level access. Viewer keys are limited to chat and read-only use, while privileged keys continue to support broader project actions.
The API key creation flow now clearly distinguishes locked-down viewer keys from privileged keys, helping teams issue safer credentials for read-only integrations.
### Team Member Deactivation
Team admins and owners can now deactivate and reactivate team members. Deactivated users are blocked from accessing the product, and status changes are recorded in team and user audit history with actor and target details.
### Enterprise Audit and Security Enhancements
Enterprise administrators get a broader and clearer audit experience:
* SSO configuration changes are recorded in audit history.
* User deletion events are captured more reliably.
* Security logs have improved filtering and export behavior.
* Audit exports better reflect the viewer's local timezone.
* Super Admin audit and security views are reorganized into a more consolidated experience.
* Migration history is easier to review and inspect from the admin interface.
### Skill Curator
A new Skill Curator system skill can help agents create and refine reusable skills. This makes it easier for teams to build structured skill libraries on top of the Skills experience introduced in 2.0.1.
### Additional Web Search Provider Support
Odin AI Platform can now use Tavily as an alternate web search provider. Existing web search behavior continues to work, while deployments can choose the preferred provider and fallback behavior.
### Manual Trigger User Context
Manual workflow triggers can now expose richer user context to the variable picker, including user email, name, tags, metadata, and approved identity-provider fields. A new sample user info panel helps workflow builders preview and use this context more easily.
### Smart Table Credit Visibility
Smart Table credit usage is easier to understand across extraction, autofill, agent-powered columns, and test actions. Usage details now include helpful context such as operation type, model, table, column, row, and token details.
When credits are insufficient, Smart Table actions show clearer guidance so teams know what happened and how to continue.
### Smart Table File Upload and Preview
Smart Tables now have a stronger file experience:
* Upload files directly in table cells.
* View upload progress and validation feedback.
* Preview documents and images inline.
* Use richer file cells for Knowledge Base-connected files.
* Re-run extraction from file cells when needed.
### Evaluation History
Evaluation runs are now saved for later review and comparison. Teams can inspect previous evaluation results and drill into individual runs.
### MCP Server API Key Authentication
The MCP Server setup experience now supports API-key authentication through request headers, in addition to OAuth and no-auth setups. New Relic is also available as a quick-add MCP server with region selection.
### Super Admin Navigation Improvements
Super Admin now has collapsible sidebar groups, clearer icons, better active-page highlighting, and a resizable sidebar that persists between sessions.
### Chunk Enrichment Model Controls
Super Admins can restrict which models are available for chunk enrichment. If a user selects a model that is not allowed, Odin AI Platform now rejects the selection with a clearer message.
### On-Premise CORS Controls
On-premise deployments can opt into a stricter allowed-origin list for browser requests. Primary application URLs are included automatically, reducing setup mistakes.
### HTTP Step Improvements in V2 Workflows
The HTTP step in the V2 workflow builder now supports more request body options, including form URL-encoded data, typed form fields, and file values. JSON and raw text editing have also been simplified.
## Improvements
### Realtime and Streaming Stability
Realtime updates are more resilient when a browser tab, network connection, or client becomes slow or stale. Odin AI Platform is better at dropping stalled realtime listeners without blocking updates for active users.
This improves workflow status updates, chat streaming, tool execution updates, and other realtime views.
### Smart Tables and SQL Tools
Smart Tables and SQL tools received several accuracy and usability improvements:
* Table listing and table description actions now respect row limits.
* Chart aggregation handling is more forgiving and consistent.
* Smart Table error messages are clearer, especially for insufficient credits.
* Large Smart Table datasets are handled more conservatively to improve reliability.
### Toolkits and Integrations
Integration improvements include:
* Google Calendar now uses the calendar account timezone automatically and handles natural-language dates more reliably.
* API request headers and values are validated more clearly before sending.
* Older workflow references to API toolkit actions resolve more reliably.
* SharePoint OAuth callback handling works better behind stricter load balancers and proxies.
* Datastore credential references are recognized more consistently in nested settings.
* Claude Opus 4.7 requests avoid unsupported temperature settings across additional provider paths.
* Custom script toolkit input handling is improved.
* Google Drive OAuth supports the staging redirect flow.
### Admin, Billing, and Permissions
Admin and billing improvements include:
* Credit breakdowns now show cached token usage when applicable.
* Smart Table credit usage is attributed more clearly.
* Super Admins can no longer impersonate blocked users.
* License renewal forms no longer pre-fill bonus credits with a non-zero value.
* Billing banners show clearer usage and recharge or upgrade guidance.
### Security and Reliability
Security and reliability improvements include:
* PII masking no longer produces duplicated brackets in rendered responses.
* Large workflow trigger payloads are handled more reliably to avoid oversized message failures.
* File handling received additional path traversal and extension validation hardening.
* Tracing and observability settings behave more predictably when disabled.
* Auto-confirm workflow actions retain their settings during project export and import.
* Document tag lookup now returns the correct rows.
* Chat and table exports are better protected from spreadsheet formula injection.
## Resolved Issues
This release resolves a wide range of issues across chat, workflows, Knowledge Base, Smart Tables, integrations, billing, exports, and enterprise administration, including:
* Stalled realtime connections causing workflow or chat updates to hang.
* Cloned project agents not being viewable independently.
* Deleting a cloned agent affecting the original project.
* Oversized workflow trigger payloads causing workflow execution failures.
* Blank chat bubbles during streaming responses.
* Google Calendar scheduling events in the wrong month for ambiguous dates.
* Google Calendar asking users for timezone information that Odin AI Platform can infer.
* Datastore credential references failing in some nested fields.
* Smart Table actions showing generic errors instead of actionable reasons.
* Smart Table table-listing actions ignoring limits.
* Legacy API toolkit references failing in workflows.
* SharePoint OAuth callbacks failing behind certain enterprise proxies.
* Document tag lookup returning 404 for valid documents.
* Knowledge Base file picker pagination and search inconsistencies.
* Internal Knowledge Base staging folders appearing in folder listings.
* Confluence folder URLs not syncing descendants correctly.
* Datastore settings tables clipping long values.
* Members table column alignment issues at common laptop widths.
* Billing banners hiding usage and recharge guidance.
* Auto-confirm workflow settings not preserving correctly during export and import.
* Masked PII rendering with duplicated angle brackets.
* Claude Opus 4.7 requests failing for unsupported temperature settings on additional provider paths.
# 2.0.3
Source: https://learn.getodin.ai/changelogs/2.0.3
Released 2026-05-21
## New Features
### [Super Admin Agent Registry](/super-admin/sa-agents)
Super Admins now have a dedicated Agents tab alongside Users and Projects. This gives compliance, operations, and reporting teams one place to review agents across the application.
The registry includes pagination, project and creator filters, memory and prompt-library filters, and search across agent name, project name, and creator name. A details view is available for each agent. Filtered results can also be exported to CSV or XLSX for offline reporting.
### [Multi-Value SAML Attribute Mapping](/super-admin/sa-access-controls)
Enterprise SAML onboarding now handles multi-value identity-provider attributes more reliably. Access-control rules and automated team mappings can support identity providers that send multiple values either as separate SAML values or as a single comma-separated value.
Role and team assignment is now more predictable when multiple rules match. Admins can also configure a default team role, add team-role override rules, and review stored SAML metadata from Super Admin user views.
## Improvements
### Workflow API and HTTP Step
The Workflow HTTP step now supports more real-world API payloads:
* Multipart form-data can include nested JSON fields.
* Form field values preserve useful types such as numbers, booleans, nulls, and embedded JSON instead of converting everything to text.
* File attachments can be selected from workflow variables, prior steps, Knowledge Base documents, or inline file values.
* A dedicated form-urlencoded body mode is now available alongside JSON, multipart form-data, and raw text.
* Migrated workflows keep HTTP body settings more consistently when moving from older workflow versions.
### Agent Communication Toolkit
The Agent Communication toolkit is easier to configure for multi-agent workflows. Helper Agent cards stay expanded, can be edited inline, and make it clear that every configured target agent can participate.
Adding a helper agent now opens the picker with the current project selected, card ordering is more reliable, and modal state resets between sessions so the configuration experience feels cleaner.
### Settings Billing Records
The Settings billing table now loads more records by default and continues loading until the full filtered result is available or the table can scroll. An accessible Load more row is also available as a manual fallback, helping teams review billing activity without being limited by the initial result set.
### Confluence Knowledge Base Sync
Confluence subpage sync is more reliable for spaces and parent pages. The Knowledge Base can now walk both child pages and folders when Extract subpages from URL is enabled.
Links inside synced Confluence resources are also smarter. When a linked page is already synced, the link opens the matching Knowledge Base resource. When the target page has not been synced yet, users see a clear message instead of being sent unexpectedly back to Confluence.
## Resolved Issues
This release resolves issues across:
* Odin AI Get Bot Status polling is more reliable during long or concurrent workflow runs.
* Confluence space URLs can be added successfully again when syncing spaces and their child pages.
* SharePoint OAuth setup provides clearer guidance when a tenant redirect URI does not match the expected connection settings.
* Scheduler jobs improved — crawlers now run on a recurring schedule. Teams can schedule crawls using a simple interval, such as every few days or weeks, or configure a cron schedule with day, time, and timezone controls.
# 2.1.0
Source: https://learn.getodin.ai/changelogs/2.1.0
Released June 1, 2026
## New Features
### [Interfaces V2](/documentation/interfaces-v2)
Interfaces have been expanded into a full app-building experience. Builders can now compose multi-page interfaces with real widgets — chat, agents, actions, analytics, dashboards, documents, Knowledge Base content, meetings, Smart Tables, workflow runs, JSON builders, and execution history — connected to live product behavior instead of static previews.
New controls include:
* **Pages** — compose multi-page interfaces
* **Branding controls** — customize the look of published interfaces
* **Command-palette navigation** — keyboard-driven navigation across the builder
* **Publish controls** — manage draft and live states
* **Access management** — control who can view a published interface
* **Widget primitives** — actions, tabs, buttons, containers, images, charts, and Smart Table views
### [Telegram Bot Toolkit](/agents/toolkits/telegram)
Agents and V2 workflows can now connect to Telegram Bot. The toolkit includes:
* Guided connection setup
* Configurable tools
* A **New Message** trigger
* Sample message capture via `/generate_test_message` for testing trigger payloads
### [Notion Toolkit](/agents/toolkits/notion)
The builder now includes Notion toolkit configuration with OAuth setup and a mapped V2 toolkit experience covering Notion actions and triggers.
### [Workflows V1 Migration Tool](/tools/migrate-v1-workflows)
Workflows V1 is announced for deprecation, with removal planned for **September 7, 2026**.
A [migration tool](/tools/migrate-v1-workflows) is available in the Workflows V1 interface to move existing automations to Workflows V2 in place. See the [Workflows V1 Deprecation](https://ai-kb.automationanywhere.com/changelogs/feature-deprecations/workflows-v1-deprecation) notice for the full timeline, migration guidance, and frequently asked questions.
### [Analytics Report Exports](/project-settings/analytics)
Analytics feedback and reporting views now support export flows for offline review and customer reporting.
### Datastore Add to List
Datastore automation now supports adding values to list fields. Variable resolution also respects the selected scope more consistently, reducing errors when workflows reference datastore values from different contexts.
## Improvements
### Infrastructure Upgrade
The cloud hosting infrastructure has been migrated to a more scalable and resilient container orchestration platform, improving deployment reliability, resource efficiency, and the foundation for future scaling.
### Enhanced Authentication Security
User authentication has been consolidated onto the same unified platform as the core database, improving session reliability across the application.
### Smart Tables Improved Column Name Handling
Column names containing spaces are now handled correctly in LLM and agent computations.
### [Workflow Failure Notifications](/tools/workflow-failure-notification)
Users can now opt in to receive email notifications for workflow failures, providing timely alerts to address issues and maintain automation reliability.
### Public Chatbot Disclaimer
Public chatbots can now display a customizable privacy disclaimer below the message input, reminding users not to share confidential or sensitive information.
### Team Level LLM Keys
Add and manage LLM keys at the Team level for easier sharing and management across projects.
### Tags for Projects
Projects can now be tagged with custom labels for better organization and filtering.
### General Improvements
Generic UI and UX improvements across the product for better consistency, accessibility, and ease of use to the knowledge base, agents, and workflows.
## Resolved Issues
**Interfaces & Chat**
* Markdown rendering is safer for blockquotes, auto-links, embedded HTML, and iframe sandbox handling
* Duplicate memory approval toasts are suppressed
* PII masking refreshes during chat and preserves legacy masked messages more reliably
* Public chatbot reauthentication, chat privacy, and workflow file upload flows are more stable
* JSON responses now return two-byte characters as native UTF-8 characters
**Knowledge Base**
* Tabular CSV, TSV, and Excel uploads now show better Chunks-tab information and are marked synced when vectorization is skipped
* Confluence Knowledge Base links open local synced resources when available and avoid unexpected external navigation
* Knowledge Base folder timestamp handling is more reliable
* URL ingestion now uses bounded retries and tighter HTTP timeouts
**Workflows & Scheduling**
* Schedule triggers can use the platform-configured minimum interval, with safer cron edge-case handling
* The Create Smart Table toolkit action now validates and creates tables correctly
* Editing workflow fields now keeps you in the editor without interruption
# 2.1.1
Source: https://learn.getodin.ai/changelogs/2.1.1
Released June 15, 2026
## New Features
### [Export Project](/project-settings/export-project)
Project export has been enhanced with granular component selection. You can now include any combination of agents, custom tools, Smart Tables, actions, documents, interfaces, output templates, and Knowledge Base content — or export everything at once.
This makes it easier to promote agents and related configuration from one environment to another, whether you need a full project snapshot or a targeted export of only what you want to move.
## Improvements
### [Agent Memory](/agents/memory-managing) Approved Filter
The **All Users** filter on the Approved memories tab now displays user names instead of user IDs, making it easier to review and manage memories by person.
### [Model Deprecation Notices](/agents/models)
Odin AI Platform now announces upcoming model removals more clearly, so teams have advance notice before deprecated models are retired from the model selector.
## Resolved Issues
* Public chatbot disclaimer text field now expands to fit longer statements instead of concatenating text into a single line
* Adding steps in existing workflows is more reliable — new steps align correctly within the flow, the **+** add-step control responds consistently between nodes and at the end of the canvas, and existing steps are no longer unintentionally removed when inserting a new step
* Custom tool version history notes now save correctly
* The Create Smart Table workflow node validates and creates tables correctly
* Long-running workflows no longer fail prematurely when processing exceeds the 20-minute limit
* REST API actions now support sending nested JSON objects and file attachments together in a `multipart/form-data` request body
* Google account connections complete successfully during OAuth setup
## [Deprecations](/changelogs/feature-deprecations/deprecations-overview)
### Claude Sonnet 4 - Retired by Anthropic
Anthropic retired **Claude Sonnet 4** (`claude-sonnet-4-20250514`) from the Claude API on June 15, 2026, following its deprecation announcement on April 14, 2026. The model is no longer available in the Odin AI Platform model selector. Anthropic recommends migrating to **Claude Sonnet 4.6** (`claude-sonnet-4-6`); update any agents, workflows, or Smart Table columns that still reference Sonnet 4. See Anthropic's [model deprecations notice](https://platform.claude.com/docs/en/about-claude/model-deprecations#2026-04-14-claude-sonnet-4-and-claude-opus-4-models) for details.
### [Default Model Change — GPT-5.4 nano](/changelogs/feature-deprecations/default-model-change)
Effective June 15, 2026, **GPT-5.4 nano** is the default system model in Odin AI Platform, replacing **GPT-4.1 mini**. The new default offers stronger reasoning, larger output capacity, improved tool usage, and lower cost per token for most workloads.
No action is required unless you want to keep using GPT-4.1 mini. In that case, set the model explicitly in the agent's **General** tab before June 15, 2026 — otherwise, agents and workflows using the system default will automatically switch to GPT-5.4 nano. See the [Default Model Change](/changelogs/feature-deprecations/default-model-change) notice for cost impact, opting-out steps, and configuration options.
#### System Functionalities Affected by the Default Model Change
**Agents**
If an agent has no model explicitly selected in the model selection option, it will fall back to the system default model. If the default model is changed:
* The agent's behavior and output may differ from previous runs.
* Response quality, tone, and accuracy could vary.
**Recommendation:** Ensure each agent has an explicitly selected model configured beforehand to maintain consistent results.
**Workflows (LLM nodes)**
If a workflow contains an LLM node with no model explicitly selected, it will also default to the system default model. If the default model is changed:
* The LLM node's output may produce different results.
* Downstream nodes that depend on this output may be affected, potentially impacting the entire workflow outcome.
**Recommendation:** Review all LLM nodes across workflows and explicitly assign the appropriate model before the change is rolled out.
**Prompt Suggestion feature**
This feature always uses the system default model and cannot be configured to use a different model. After the model upgrade, the quality of prompt suggestions is expected to improve.
**Prompt Improvement feature**
This feature also relies exclusively on the system default model and cannot be configured to use a different model. After the model upgrade, the quality of prompt improvements is expected to improve.
**Email Creator node (Workflows)**
The Email Creator node uses the system default model to generate structured emails. The instructions provided to the LLM are highly standardized, so no major change in output has been observed during testing. This node cannot be configured to use a different model directly.
**Smart Table LLM columns**
Any Smart Table column whose response is generated by executing a cell or column relies on the system default model and will be impacted by this change. Overall, output quality is expected to improve post-upgrade.
**Workaround if you need to revert to the older model:**
1. Go to Agent Builder and create an agent configured with the older model.
2. In your Smart Table, update the column to use the agent as the response driver (instead of the default LLM).
The column will now use your selected agent — and therefore the older model — to generate responses.
# 2.2.0
Source: https://learn.getodin.ai/changelogs/2.2.0
Released July 6, 2026
## New Features
### Multi-Team Workspaces
Odin AI Platform now supports multi-team workspaces with dedicated team sub-domains. Teams can claim their own sub-domain URL, and users can belong to more than one team at the same time. When a user signs up with a sub-domain or is invited to a team, they are added to the correct team workspace without replacing their original/home team.
Existing users keep their original team for billing and default ownership, while also gaining access to any additional team sub-domains they belong to. Users who are part of multiple teams can now switch between workspaces — either by accessing a team directly from its dedicated sub-domain or by continuing to use the main application.
Team admins can invite existing or new users into their team. Existing users are added as members of the new team without losing their current team access. New users who accept an invite or sign up through an approved team sub-domain are added directly to that team, while users who sign up outside a team sub-domain continue through the original signup flow.
### Workflow Templates
Start new work faster with reusable templates that pre-fill title, description, labels, and assignees. Super admins can configure pre-built workflows for the entire platform.
### [Notion and Airtable Skills](/agents/skills/agent-skills-overview)
Ten pre-built toolkit skills let you query databases, create pages, and update records in Notion and Airtable without writing custom integrations.
**Skills for Airtable**
* **Airtable-record-lookup** — Finds and retrieves records from natural-language criteria, translating intent into Airtable formulas.
* **Airtable-data-entry** — Creates records from structured or unstructured input with correct field-type coercion.
* **Airtable-record-updater** — Finds matching records and bulk-updates fields, with confirmation and safety limits.
* **Airtable-pipeline-tracker** — Manages a deal or project pipeline — advances stages, flags stalled items, and summarizes health.
* **Airtable-report-generator** — Queries a table, groups and aggregates by a field, and produces a structured breakdown report.
**Skills for Notion**
* **Notion-standup-digest**
* **Notion-meeting-notes-creator**
* **Notion-project-status-report**
* **Notion-content-tagger**
* **Notion-knowledge-base-builder**
### Queue Depth Monitoring for Super-Admins (On-Prem)
Super-admins can now see how many background jobs are queued over time, making it easier to spot processing bottlenecks before they affect users.
### [Model Deprecation Tracking](/agents/models)
The system now tracks when AI models are deprecated and surfaces warnings before they're removed, so you can migrate proactively.
Model providers sometimes retire models without notice. You'll now see a clear indicator when a model you've used is no longer available.
## Improvements
### Firebase to Supabase Authentication in Cloud (Internal)
Authentication now runs through the backend. Sign-in and session management moved server-side for better security and reliability. No visible changes to login flows.
### Sign in Directly to Your Team's Workspace
Each team now has its own sub-domain. Sign in once and land on the right workspace automatically, or pick from a list if you're on multiple teams.
### [Control How Many Steps Each Helper Agent Can Take](/agents/toolkits/agent-communication)
Set a per-agent limit on tool calls when one agent delegates to another. Prevents runaway loops and lets you tune cost vs. thoroughness.
### Mark Form Fields as Optional or Required
Forms now support required and optional field validation. Required fields block submission until filled, giving users clearer guidance.
### API Tool Steps Now Retry on Transient Failures
Workflows automatically retry failed API calls up to a configurable limit, surfacing errors only after exhaustion. Retries appear in the step UI.
### Copy Assistant Responses in [Autopilot](/autopilot/autopilot-overview)
A new copy button lets you grab assistant responses with one click. Rich text and code blocks preserve formatting when pasted.
### [Slack Bot](/public-chatbot/chatbot-slack) Can Now Use Tools in Conversations
The Slack bot can call tools during chat when enabled, letting it take actions like searching docs or updating records without leaving the thread.
### Supported File Types Shown During [Knowledge Base Upload](/knowledge-base/upload-files)
The file picker now shows which formats are accepted before you choose a file, saving a round-trip on unsupported types.
### Faster, More Reliable Test Suite
Backend tests now run more efficiently and catch regressions earlier. You won't notice a difference, but deploys are safer.
### [Python Sandbox](/agents/toolkits/python) Improvements
* Files with ampersands and other special characters now process correctly in the Python sandbox without unintended normalization.
* Fixed an issue where Python sandboxes weren't respecting the configured E2B template, causing execution failures in some environments.
## Resolved Issues
* Zip archives now sanitize filenames and metadata — fixed a security issue where malicious zip files could write outside intended directories; also resolved crashes when archive metadata was malformed
* Failed API calls surface their error details instead of silently continuing — execution logs now show what went wrong
* Improved background job reliability by preventing duplicate task execution and ensuring safe acknowledgments
* Enhanced worker autoscaling to better handle traffic spikes and reduce queue backlogs
* Improved worker tracking to accurately manage in-flight tasks, even during worker restarts or crashes
* Long-running workflow executions now retain their full data when the UI polls for updates, fixing a bug where context was lost mid-run
* Knowledge base now accepts `.xls` files in addition to modern `.xlsx` format
* Files beginning with certain character sequences (such as `P1`) no longer trigger false format detection errors in the knowledge base and chat uploads
* Oracle database connection failures when using Oracle service names or the thin driver are resolved — connection strings now validate correctly, and table reflection works consistently across Oracle configurations
* Fixed a pagination bug that caused some records to be missing from large data-type exports
* Confluence sync no longer fails on empty pages — child pages now import correctly when a page has no body content
* Unicode characters in names, descriptions, and other text fields now serialize correctly across all API endpoints
* The public chatbot widget now remembers your conversation when you refresh or return to the page
* Audio and video files uploaded to knowledge base articles now correctly store their duration metadata, fixing playback controls
* LLM-powered compute columns in Smart Tables now properly track and charge credits for each operation
* Files with Korean names in Knowledge Base now download with their original filename instead of a romanized version
* The chatbot disclaimer text now expands correctly when you resize the chat widget taller
* PDF extraction could fail to locate referenced files during processing — file references now resolve correctly
* Decimal values are properly validated for password length — whole numbers like `16.0` work, while fractional lengths are rejected with a clear error
* Fixed a parsing error that prevented certain AWS LLM responses from being processed — requests that previously failed now complete successfully
# Default Model Change — GPT-5.4 nano
Source: https://learn.getodin.ai/changelogs/feature-deprecations/default-model-change
On June 15th, 2026, GPT-5.4 nano becomes the default system model in Odin AI Platform
**Effective date:** June 15th, 2026 · **Previous default:** GPT-4.1 mini · **Action required:** None, unless opting out
## Overview
| | |
| -------------------- | --------------------------- |
| **Change** | Default system model update |
| **New default** | GPT-5.4 nano |
| **Previous default** | GPT-4.1 mini |
| **Effective date** | June 15, 2026 |
| **Action required** | None, unless opting out |
On June 15th, 2026, **GPT-5.4 nano** becomes the default system model in Odin AI Platform. This change provides a more capable, cost-efficient, and future-ready foundation for all AI-powered workflows and agents.
## What's improving
GPT-5.4 nano is part of the latest model family, designed for stronger reasoning and more reliable outputs.
Supports significantly larger responses, enabling more detailed workflows, plans, and results.
Better at multi-step thinking, tool selection, and orchestrating complex agent tasks.
Updated knowledge base leads to better accuracy across modern use cases.
## Cost impact
GPT-5.4 nano is more cost-efficient for most workloads. Some tasks may generate longer outputs due to improved reasoning, but the overall expected impact is **equal or lower cost per execution**.
| Factor | Impact |
| ----------------- | ------------------------------ |
| Cost per token | Lower than GPT-4.1 mini |
| Output length | May increase for complex tasks |
| Expected net cost | Equal or lower per execution |
## Important: opting out
If you have workflows or agents that rely on **GPT-4.1 mini** and do not want them to migrate to the new default, you need to explicitly configure them before June 15th, 2026.
If no action is taken before June 15th, 2026, all agents and workflows using the system default will automatically switch to GPT-5.4 nano.
Set up an agent specifically for the workflows that need to retain the previous model.
In the agent's **General** tab, set the model to **GPT-4.1 mini** explicitly. This overrides the system default and ensures consistent behavior for existing implementations.
## Model configuration options
You can control model usage at multiple levels:
* **Agent level** — Set a specific model in the agent's General tab. This overrides the system default for all workflows using that agent.
* **Workflow level** — Override the model for a specific workflow where required.
For instructions on setting a model at the agent level, see [Predefined and Custom Models](/agents/models).
## Summary
* Better intelligence
* Stronger agent capabilities
* Larger outputs
* Lower cost
Nothing — unless you want to keep using GPT-4.1 mini. In that case, set the model explicitly at the agent level before **June 15th, 2026**.
## Support
For questions about this change or help configuring your agents, contact your Odin AI account manager or open a support ticket through the [Odin AI support portal](https://apeople.automationanywhere.com/).
View the full history of default model changes in Odin AI Platform.
# Upcoming Feature Deprecations
Source: https://learn.getodin.ai/changelogs/feature-deprecations/deprecations-overview
Features scheduled for deprecation in Odin AI Platform. Review this page to plan your transitions before the listed removal dates.
Features listed on this page are scheduled for deprecation. Update your configurations and workflows before the indicated removal date to avoid service disruptions.
## Overview
Odin AI periodically retires features to improve platform performance, security, and maintainability. This page lists features that are currently deprecated or scheduled for deprecation in **Odin AI Platform**.
A deprecated feature is still functional but is no longer actively developed. It will be removed on the indicated date. Odin AI recommends migrating to the suggested replacement as early as possible.
For questions or migration assistance, contact your Odin AI account manager or open a support ticket.
## Deprecation stages
Features move through the following stages before removal:
The deprecation is publicly documented with a planned removal date. The feature remains fully functional.
The feature is flagged in the product UI and API responses. New customers cannot enable it. Existing customers may continue using it until the removal date.
The feature is no longer available. Any workflows or configurations depending on it must have been migrated prior to this date.
## Upcoming deprecations
The following features are scheduled for removal. Rows marked **Deprecated** are in active wind-down; rows marked **Announced** have a confirmed future removal date.
Dates are subject to change.
| Feature | Affected Component | Status | Removal Date | Full Details |
| ----------------------------------- | ------------------------------- | ------------ | ------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Workflows V1 | Workflows | `Announced` | September 7th, 2026 | [Workflows V2](/changelogs/feature-deprecations/workflows-v1-deprecation) |
| Default Model Change — GPT-5.4 nano | Agents, Workflows, Smart Tables | `Removed` | June 15th, 2026 | [GPT 5.4 Nano](/changelogs/feature-deprecations/default-model-change) |
| Gemini 2.0 | Agents, Workflows, Smart Tables | `Removed` | June 1st, 2026 | [Gemini has shutdown Gemini 2.0 Models as of June 1st, 2026](https://ai.google.dev/gemini-api/docs/deprecations#gemini-2.0-models) |
| Claude Sonnet 4 | Agents, Workflows, Smart Tables | `Deprecated` | June 15th, 2026 | [Claude Sonnet 4 Models are schedule to shutdown on June 15th, 2026](https://platform.claude.com/docs/en/about-claude/model-deprecations#2026-04-14-claude-sonnet-4-and-claude-opus-4-models) |
# Workflows V1 Deprecation
Source: https://learn.getodin.ai/changelogs/feature-deprecations/workflows-v1-deprecation
What you need to know about the deprecation of Workflows V1 and how to migrate to Workflows V2
Workflows V1 is being deprecated. The migration tool is live — migrate your workflows to V2 before **September 7, 2026**, when V1 will be removed and unmigrated workflows will stop functioning.
## Overview
| | |
| ---------------------- | ----------------------------------- |
| **Feature** | Workflows V1 |
| **Affected component** | Odin AI Platform |
| **Status** | Migration in progress |
| **Removal date** | September 7th, 2026 |
| **Replacement** | [Workflows V2](/tools/workflows-v2) |
## What's changing
Workflows V1 is the original workflow builder in Odin AI Platform. It is being deprecated following the launch of **Workflows V2** in September 2025, which introduces a redesigned interface, improved performance, and expanded capabilities for building agentic automation workflows.
**Workflows V1 remains fully functional until September 7, 2026. Use the migration tool now to move your workflows to V2.**
## What to expect next
Workflows V1 was announced for deprecation. Existing workflows continued to run normally with no changes required.
The [migration tool](/tools/migrate-v1-workflows) is now live in the platform. A call-to-action (CTA) appears in the Workflows V1 interface allowing you to migrate your existing workflows to V2 in place — without having to rebuild them manually.
On September 7th, 2026, Workflows V1 will be removed from Odin AI Platform. Any workflow that has not been migrated to V2 by this date will stop functioning.
The in-platform [migration tool](/tools/migrate-v1-workflows) is live as of **June 1, 2026 (v2.1.0)**. Migrate your V1 workflows before **September 7, 2026** to avoid disruption.
## Impact
Workflows built in V1 will continue to run until September 7, 2026. Once removed, any workflow that has not been migrated to V2 will stop functioning.
The Migrate Flow tool is live. You can migrate any V1 workflow today — V1 workflows continue to run normally until September 7, 2026.
Any workflow still on V1 after the removal date will stop functioning. Use the [migration tool](/tools/migrate-v1-workflows) to move your workflows to V2 now.
## Why we're making this change
Workflows V2 (Workflow Builder v2) was launched in **Odin AI Platform v1.7.0** and represents the future of workflow building in Odin AI Platform. It replaces the original interface with a more intuitive, visual builder while expanding what's possible for agentic automation.
A redesigned drag-and-drop canvas makes it easier to build, connect, and configure workflow components without navigating complex menus.
Workflows V2 supports four trigger types: **Manual Input**, **File Upload**, **Schedule**, and **Email** — enabling a wider range of automation scenarios.
Drag Agents, Tools, Conditions, and Final Outputs directly onto the canvas and link them visually to build multi-step agentic workflows.
Pass data between steps using the `@` symbol to reference variables, enabling dynamic, connected workflows across components.
The **Executions** log lets you inspect every step of a past run — inputs, outputs, and results — making it easier to identify and fix failures.
Every published workflow saves a version history. You can view previous versions and restore and republish an earlier version at any time.
For a full walkthrough of Workflows V2, see the [Workflow Builder v2 documentation](/tools/workflows-v2).
## Frequently asked questions
Yes. The migration tool is live as of June 1, 2026. Use the **Migrate Flow** button in the Workflows V1 interface to migrate each workflow to V2. Workflows V1 will be removed on September 7, 2026 — any workflow not migrated by then will stop functioning.
No. Migration is not automatic. A CTA in the Workflows V1 interface lets you migrate each workflow to V2 in place. You will need to trigger the migration manually and verify the result.
Any workflow still on V1 after September 7, 2026 will stop functioning. Agents or automations that depend on those workflows will be affected. We strongly recommend completing migration as early as possible.
The in-platform migration tool is designed to carry over your existing workflow configuration to V2. Once migrated, review the workflow in V2 to confirm all steps, triggers, and settings carried over correctly before decommissioning the V1 version.
Yes, until September 7, 2026. If you need to retain V1 workflows beyond that date, contact your Odin AI account manager as early as possible to discuss your options.
## Support
For questions about this deprecation or migration assistance, contact your Odin AI account manager or open a support ticket through the [Odin AI support portal](https://apeople.automationanywhere.com/).
View all upcoming and announced feature deprecations.
# Overview
Source: https://learn.getodin.ai/changelogs/overview
Release history and what changed in each version
Changelogs document new features, improvements, and bug fixes for each Odin AI release. Use **Change Logs** in the sidebar and expand **By version** to see all releases. Open a version to read its full release notes.
**Latest release:** [**2.0.1**](/changelogs/2.0.1) (May 4, 2026) — Skills-aware agent runtime, Skills Manager toolkit, Ask User toolkit, WhatsApp toolkit configuration, public chatbot file attachments, Autopilot chat controls, manual MCP OAuth, team billing periods, enhanced audit logs, improved Knowledge Base uploads, V2 Automator builder updates, and more.
# Chats
Source: https://learn.getodin.ai/chat/chat
Contextual AI Interactions with Flexible Agents
Odin AI **Chats** provide an intuitive way to interact with AI agents, enabling you to generate **highly contextualized responses** tailored to your needs. Instead of a one-size-fits-all assistant, Chats lets you select from different pre-configured agents, each specialized for tasks such as **data analysis, document summarization, content generation, image creation, or web research**.
By combining flexible agent selection with features like **file uploads, Knowledge Base integration, and contextual chat memory**, Chats ensure that responses are both relevant and actionable. Depending on the agent and language model you configured for it, you can:
* Analyze structured or unstructured data
* Summarize and interact with documents in real time
* Retrieve fresh insights from the web via Google search
* Generate creative text or images
Chats give you **customizable, multi-purpose AI workspace** where you control the context, the agent, and the outcome.
## Chat Features
* **Agent Selection**: Choose from a variety of pre-configured agents tailored to different tasks and use cases.
* **File Uploads**: Upload documents or images directly into the chat for analysis (see [Chat with Documents](chat-kb) for more details).
* **Knowledge Base Integration**: Interact with documents and data stored in your Knowledge Base for more informed responses.
* **Contextual Responses**: Agents can provide responses based on the context of your previous messages in the chat.
* **Export Responses**: Export AI responses for further use or sharing.
## Navigating the Chat Interface
The chat interface is designed to be user-friendly and intuitive. Here are the key components of the interface:
### Chat Management
Create, rename, or delete chats from the chat list on the left side of the interface.
1. **All Chats Dropdown** – Filter chats by All Chats or My Chats, to see all shared interactions, or just the ones you created.
2. **New Chat** – Click this button to start a new chat session.
3. **Search** – Use the search bar to quickly find specific chats by name or content.
4. **Chat History** – View and manage your previous chat sessions, categorized as Today, Yesterday, This Week, and Older.
5. **Rename Chat** – Click the pencil icon next to the chat name to rename the chat.
6. **Delete Chat** – Click the trash icon to delete the chat permanently.
### Chat Interface
The main chat area where you interact with the selected agent.
1. **Message Input Box** – Type your messages or queries here.
2. **Document Selection** – You can select documents from your Knowledge Base to provide context for the chat. This feature only works if the selected agent is connected to the Knowledge Base.
3. **File Attachment** – Click the paperclip icon to upload files directly into the chat for analysis. Supported file types include text documents, PDFs, images, and more.
4. **Agent Dropdown** – Select the AI agent you've pre-configured that you want to interact with from the dropdown menu.
5. **Voice Input** – Click the microphone icon to use voice input for your messages.
6. **Send Button** – Click the send button or press `Enter` to submit your message
Learn more about [Chatting with Documents](chat-kb) to understand how to upload and select documents for context.
### Chat Debug Panel
* **Document Context Results** – This tab shows the retrieved Knowledge Base results the agent used to generate its response, including the source name, content snippet, and relevance score. If no relevant information was found, it will state "No results found."
* **Chat Context** – In this tab, you can manually input additional context for the agent to consider in its responses. This can be useful if you want to provide specific information that may not be present in the chat history or Knowledge Base. Make sure to click **Save** after entering context to ensure it is applied to the agent's future responses.
* **Debug Prompt Info** – This tab explains the details on the prompt and context that was sent to LLM on every execution for debugging purposes.
* **Agent Execution** – This tab details the tool calls made by the agent and displays any errors (if any) for debugging purposes.
### Agent Response Actions
In the agent's response, you may see the following elements:
1. **Text**: The main content of the response.
2. **Sources**: If the agent references documents from your Knowledge Base, these will be listed as sources underneath the response text. You can click on them to view more details in the **Document Context Results** tab.
3. **Actions**: For all agent responses, you can do the following:
* **Thumbs Up/Down**: Provide feedback on the response as good or incorrect/unhelpful.
* **Text-to-Speech**: Click the speaker icon to hear the response read aloud.
* **Copy**: Click the copy icon to copy the response text to your clipboard.
* **Save as Q\&A**: Click the **bookmark** icon to save the Q\&A pair to the Knowledge Base for quick retrieval later.
* **Export**: Click the export icon to download the response for further use.
* **Feedback**: Click the Feedback link to provide detailed feedback on the response. Feedback provided through this method will be recorded and displayed on the **Analytics** dashboard.
## Getting Started with Chats
To start using Chats in your Odin AI project, follow these steps:
1. In your Odin AI project, navigate to the **Chat** section from the left-hand menu.
2. Click on the **New Chat** button to create a new chat session.
3. Select an agent from the dropdown menu at the top of the chat interface. The available agents will depend on the ones you have set up in your project.
4. Type your message or query in the chat input box at the bottom of the screen.
5. Press `Enter` or click the **Send** button to submit your message. The selected agent will process your input and generate a response.
6. Continue the conversation by typing additional messages or queries. The agent will take into account the context of the chat history to provide more relevant responses.
## Exporting Chat Responses
You can export the agent's responses for further use or sharing. To do this:
1. After the agent has generated a response, click the **Export** icon located underneath the response text.
2. Choose the desired format for export:
* `txt` – Exports the response as a plain text file.
* `docx` – Exports the response in a Word document format.
* `csv` – Structures the response in a spreadsheet format.
3. Click **Export** to download the file to your computer. The response will be saved in the selected format for easy access and sharing.
# Create Dynamic HTML Views
There are two primary methods used to generate dynamic HTML views based on data inputs: utilizing Prompt Agents and employing Embedded Scripting with Node.js. Both approaches allow for the creation of flexible, data-driven interfaces that adapt to changing information without the need for manual static coding.
## Prompt Agents for Dynamic HTML View Generation
Prompt agents are AI-driven components designed to generate content based on inputs and predefined instructions (prompts). In the context of creating dynamic HTML views, prompt agents take structured data (typically JSON) as input and produce HTML code that represents a visual view of that data.
The key feature of this approach is dynamism: the data provided to the agent can change, and the resulting HTML adapts accordingly. This allows for flexible, data-driven UI rendering without manually coding HTML for every possible data variation.
### Implementation Process
* **Create Agent:** Configure the agent with a specific prompt instructing it to create HTML structures.
* **Input Data:** In a new chat session, select the created Agent and input the data.
* **View Generation:** The response will include a toggle button functionality.
### Output Features
* **HTML View (Toggle On):** Displays the rendered visual representation of the data.
* **HTML Code View (Toggle Off):** Displays the raw source code generated by the agent.
# Chat with Documents
Source: https://learn.getodin.ai/chat/chat-kb
Enhance Interactions with Specific Context
In Odin AI, you can refine how agents respond by working with **specific documents or datasets** instead of searching across the entire Knowledge Base. This makes it easier to focus on the exact context you need–whether that's a single contract, a data set, or a set of referenced files.
You have two options for narrowing your search:
* **Upload documents directly into the chat** for quick, ad-hoc analysis.
* **Select pre-uploaded documents from the Knowledge Base** when you want to work with files that are already stored in your project.
Odin AI supports files up to 1GB each, with a wide range of document, data, and multimedia formats:
* Documents: `pdf`, `docx`, `doc`, `pptx`, `ppt`, `txt`, `md`, `html`
* Data files: `csv`, `xlsx`, `json`
* Multimedia: `MP3`, `MP4`
This flexibility ensures you can bring in the right content at the right time, whether you're sharing a one-off file in a conversation or tapping into resources already in your Knowledge Base.
## Upload Documents in the Chat
Uploading documents or images directly to the chat allows you to quickly share relevant information without needing to upload them to the Knowledge Base.
1. In your Odin AI project, navigate to **Chat**.
2. Click the **Clip** icon at the bottom-left of the chat input box to upload a document or images to the chat.
3. Select the file(s) you want to upload from your computer. You can upload multiple files at once by holding down the `Ctrl` (Windows) or `Cmd` (Mac) key while selecting files. Supported file types include: `.pdf`, `.docx`, `.txt`, `.png`, `.jpg`, and `.jpeg`. The maximum file size for each upload is 1GB.
4. Once the file is uploaded, it will appear in the chat input box. You can add any additional context or questions related to the uploaded document in the chat input box.
5. Click **Send** or press `Enter` to submit your message along with the uploaded document. The selected agent will process the document and provide a response based on its content.
## Select Documents from the Knowledge Base
If you have already uploaded documents to the Knowledge Base, you can select specific documents to interact with in the chat.
1. In your Odin AI project, navigate to **Chat**.
2. Click the **Database** icon at the bottom-left of the chat input box to open the Knowledge Base document selector.
3. In the document selector, you can search for specific documents by name or keyword using the search bar at the top. You can also scroll through the list of available documents to find the ones you want to use.
4. Click on the document(s) you want to select. Selected documents will be listed on the right-hand side. You can select multiple documents if needed.
5. Once you have selected the desired documents, click **Add Selected Files** at the bottom-right corner of the document selector. The selected documents will be linked in the chat input box.
6. You can add any additional context or questions related to the selected documents in the chat input box.
7. Click **Send** or press `Enter` to submit your message along with the selected documents. The selected agent will process the documents and provide a response based on their content.
# Create Custom Interfaces For Your Project
Source: https://learn.getodin.ai/documentation/interfaces-v2
Build custom, multi-page app experiences on top of your project resources using a no-code drag-and-drop builder.
Interfaces is a no-code app builder that lets project admins create custom, multi-page applications on top of existing project resources — agents, chats, smart tables, dashboards, knowledge bases, actions, workflows, documents, and meetings. Instead of the default chat experience, you can build purpose-built interfaces with multiple pages, drag-and-drop widgets, custom branding, and a shareable public URL.
Create interfaces with multiple pages, each serving a different function, organized in a custom navigation.
Build pages using a 12-column grid with a library of AI, data, action, and content widgets.
Customize logos, colors, navigation layout, favicon, and CSS to match your brand.
Publish interfaces via a public URL and control member access.
## Key Concepts
An interface is a collection of pages that together form a complete user experience for a project. Each project can have multiple interfaces.
| Property | Description |
| ------------- | ---------------------------------------------------------------- |
| **Name** | Display name for the interface |
| **Published** | Whether the interface is available to end users via a public URL |
| **Branding** | Custom logo, colors, navigation layout, favicon, and CSS |
A page is a single screen within an interface. Each page has a name, icon, and position in the navigation. Pages are built by dragging widgets onto a canvas and can be created from pre-built templates.
Widgets are the building blocks of a page, placed on a 12-column drag-and-drop grid. See the [Widget Library](#widget-library) section below for the full list.
## Widget Library
| Widget | Description |
| -------------- | ------------------------ |
| **Chat** | AI chat with your agents |
| **Agent Card** | Agent selection card |
| Widget | Description |
| ------------------ | ---------------------------------------- |
| **Smart Table** | Table, review, kanban, or dashboard view |
| **Dashboard** | Smart Table analytics dashboard |
| **Knowledge Base** | Browse and search knowledge |
| **Analytics** | Usage analytics and feedback |
| **Chart** | Data visualization chart |
| **Data Grid** | Tabular data from a Smart Table |
| **Filter** | Dropdown or search filter |
| **Form Field** | Text, number, date, or checkbox input |
| **Record Picker** | Select records from a Smart Table |
| Widget | Description |
| --------------------- | ------------------------------- |
| **Actions** | List of available actions |
| **Action Form** | Single action as a form |
| **Workflow Runs** | Workflow run status and history |
| **Execution History** | Workflow execution history |
| Widget | Description |
| ---------------- | ------------------------------- |
| **Document** | Document viewer and editor |
| **Meetings** | Meeting transcripts and notes |
| **JSON Builder** | Structured JSON editor |
| **Text** | Rich text content |
| **Button** | Interactive button with actions |
| **Image** | Display an image |
| **Number / KPI** | Display a metric or KPI |
## Getting Started
### Creating an Interface
Click **Interfaces** in the project sidebar.
* If no interfaces exist yet, click **+ Create Your First Interface** in the center of the page.
* If interfaces already exist, click **+ New Interface** in the top right.
A **New Interface** modal will appear. Enter a name and click **Create**. You will be taken to the Interface Builder.
### Interface Builder Layout
Once inside the Interface Builder, you'll see three main areas:
| Area | Description |
| ---------------- | -------------------------------------------------- |
| **Left Sidebar** | Page list and Widgets panel |
| **Canvas** | The page editing area — drag widgets here to build |
| **Right Panel** | Configuration settings for the selected widget |
The **top bar** contains the following controls:
Step backward or forward through your changes.
Toggle between Desktop, Tablet, and Mobile previews.
Switch between editing mode and an in-builder preview.
Open the interface in a new tab as end users will see it.
Quick access to builder actions via keyboard.
Save your work or publish the interface to a public URL.
## Building Pages
### Adding a Page
Click **+** next to **PAGES** in the left sidebar.
Filter by category (**All Templates**, **Start**, **Starter**, **Advanced**) and select one of the available templates.
Start from scratch with an empty canvas.
KPI cards, charts, and a recent-activity table.
Centered form for triggering an action.
Full-width data table with header.
Embedded chat with sidebar context.
Grid of agent cards with header and filters.
Searchable grid of all available actions.
Side-by-side chat and data view.
Enter a page name at the bottom of the modal (defaults to the template name).
Click **Create Page**. The page will be added to your interface and opened on the canvas.
### Adding Widgets
In the **Widgets** panel on the left, browse by category or use the search bar.
Drag the widget onto the canvas, or click it to place it automatically.
Move and resize widgets on the 12-column grid to achieve your desired layout.
Select a widget to open its settings in the right panel.
### Managing Pages
To access page options, hover over a page in the sidebar and click the **⋯** (three-dot menu) that appears. This gives you the following options:
Click **Rename** to turn the page name into an inline editable text field directly in the sidebar. Type the new name and confirm.
Click **Change icon** to open an icon picker below the page name. Click any icon to apply it immediately — no save step required.
Click **Add to group** to open an inline panel with a text input. Enter a group name (e.g. "Admin", "Reports") and click **Save** to organize pages under a labeled group in the navigation. To remove a page from its group, leave the field empty and click **Save**.
Click and drag pages in the page list to reorder them. The order determines the navigation order in the published interface.
Click **Delete** to trigger a browser confirmation dialog: "Delete this page? This cannot be undone." Click **OK** to confirm or **Cancel** to abort. An interface must always have at least one page.
## Previewing Your Interface
Use the **Edit / Preview** toggle in the top bar to switch between editing mode and an in-builder preview of the current page. This is useful for checking your layout as you build without leaving the builder.
Click **Full Preview** in the top right to open the interface in a new browser tab exactly as end users will see it. This renders the full interface — including sidebar navigation, branding, and all pages — outside the builder environment.
## Interface Branding
Click the **palette icon** next to the interface name in the top bar to open the **Interface Branding** modal.
| Setting | Description |
| ----------------- | ------------------------------------- |
| **Display title** | Text shown in the sidebar header |
| **Logo URL** | Square image, recommended 256×256 PNG |
**Navigation layout** — controls how end users move between pages:
| Layout | Description |
| ------------ | ------------------------------------------------------------ |
| **Sidebar** | Vertical menu on the left — best for apps with many pages |
| **Top bar** | Horizontal nav above content — great for a landing-page feel |
| **Floating** | Hamburger menu in a drawer — maximizes canvas space |
| **No nav** | Single-page mode — use buttons inside the page to navigate |
**Initial state** — whether the sidebar starts **Expanded** or **Collapsed**.
**Active page indicator** — visual style for the selected page:
* **Pill**: filled background
* **Soft**: tinted background
* **Bar**: left accent line
| Setting | Description |
| ----------------------------- | ------------------------------------------------------------------------------------------- |
| **Primary color** | Used for buttons, links, and active states — enter a hex value or pick from preset swatches |
| **Accent color** *(optional)* | Sidebar accent color; defaults to the primary color |
A **Live Preview** updates in real time as you make changes.
| Setting | Description |
| --------------- | ------------------------------------------------ |
| **Favicon URL** | Browser tab icon — ICO or PNG format |
| **Custom CSS** | Applied to the runtime root for advanced styling |
Click **Save Branding** to apply your changes.
## Publishing
Saving and publishing are separate actions. Always save your changes before publishing. If you open the Publish modal with unsaved changes, a warning banner will prompt you to save first.
Click **Publish** in the top right of the Interface Builder.
Enter the URL slug for your interface. Lowercase letters, numbers, and hyphens only.
Under **Manage Member Access**, review or add the users who should have access to this interface.
Click **Publish to web**. Your interface is now live and accessible at the public URL.
To make an interface unavailable, open the Publish modal and use the unpublish option.
## Command Palette
Press ⌘K (Mac) or Ctrl+K (Windows) — or click the **⌘K** button in the top bar — to open the command palette.
| Command | Shortcut |
| ---------------------- | ------------------------------------ |
| Save changes | ⌘S |
| Publish to web | — |
| Toggle preview | — |
| Open branding settings | — |
| New page from template | — |
| Undo | ⌘Z |
| Redo | ⌘⇧Z |
| Switch to page | Lists all pages for quick navigation |
Type a command, page name, or widget name to search. Press Esc to close.
## Use Cases
**Chat Workspace** — support chat with agent context
**Knowledge Base** — help articles and documentation
**Action Form** — submit a ticket or request
**Analytics Dashboard** — KPI cards and charts
**Table View** — full data table for reviewing records
**Custom Page** — charts and KPI widgets for reporting
**Actions Panel** — browse and execute workflows
**Workflow Runs** — track run status and history
**Analytics Dashboard** — key metrics and execution history
## Troubleshooting
**Possible causes:**
* The interface has not been published yet
* You are viewing the wrong project
* You do not have the required permissions
Check the interface publish status and verify you are in the correct project.
**Possible causes:**
* A widget is misconfigured
* A referenced resource (agent, table, action, etc.) no longer exists or is inaccessible
Review widget settings in the right panel and verify all referenced resources are available.
The **Unsaved changes** indicator appears in the top bar and the **Save** button turns orange when you have pending changes.
Click **Save** before previewing or publishing to ensure your latest changes are applied.
This appears when you attempt to publish with unsaved changes.
Close the modal, click **Save**, then re-open the Publish modal and proceed.
## Next Steps
Configure agents to power your Chat widgets.
Set up Smart Tables for data widgets and dashboards.
Build workflows to use in Action widgets.
Manage your knowledge base for KB widgets.
# Common API Errors
Source: https://learn.getodin.ai/general/api-errors
Troubleshooting Advice For API Errors
This article will help you understand the most common API errors that may be encountered when utilizing Odin AI's cloud platform. You will find details on the various HTTP status codes and specific error codes, providing you with essential troubleshooting steps to resolve these issues effectively. By understanding the error response format and the common pitfalls associated with API usage, you will be better equipped to handle errors and enhance your development experience.
## Error Response Format
All API errors follow a consistent format:
```json theme={null}
{
"status_code": 400,
"error": {
"code": "ERROR_CODE",
"message": "Human-readable error message"
},
"detail": "Additional error details (optional)"
}
```
Some errors may also include:
* `error_id`: Unique identifier for tracking the error
* `invalid_fields`: List of fields that failed validation (for validation errors)
## HTTP Status Codes
### 400 Bad Request
Client-side errors due to invalid input or malformed requests.
**Error Code**: `VALIDATION_ERROR`
**Status Code**: `400`
**Description**: Request validation failed. One or more fields in the request are invalid.
**Common Causes**:
* Missing required fields
* Invalid field format (e.g., invalid email, date format)
* Field values outside allowed range
* Invalid data types
**Example Response**:
```json theme={null}
{
"status_code": 400,
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid input data",
"invalid_fields": ["email", "project_id"]
}
}
```
**Troubleshooting**:
1. Review the `invalid_fields` array to identify problematic fields
2. Check field requirements in the API documentation
3. Verify data types match expected formats
4. Ensure all required fields are provided
**Error Code**: `INVALID_API_KEY`\
**Status Code**: `400`
**Description**: The provided API key is invalid or malformed.
**Troubleshooting**:
1. Verify the API key is correctly copied (no extra spaces)
2. Check if the API key is active in **My Account** > **API Keys**
3. Ensure you're using the correct API key for your environment
4. Regenerate the API key if necessary
**Error Code**: `INVALID_CREDENTIALS`\
**Status Code**: `400`
**Description**: Authentication credentials are invalid.
**Troubleshooting**:
1. Verify email and password are correct
2. Check if account is locked or disabled
3. Try resetting your password
4. Ensure you're using the correct authentication method
**Error Code**: `INVALID_OR_EXPIRED_JWT_TOKEN`\
**Status Code**: `400`
**Description**: The JWT token is invalid, expired, or malformed.
**Troubleshooting**:
1. Refresh your authentication token
2. Log out and log back in
3. Check token expiration time
4. Verify token is being sent in the correct header format
### 401 Unauthorized
Authentication required or authentication failed.
**Error Code**: `AUTHENTICATION`\
**Status Code**: `401`
**Description**: Authentication is required to access this resource.
**Troubleshooting**:
1. Ensure you're logged in
2. Check if your session has expired
3. Verify authentication headers are included in the request
4. Re-authenticate if necessary
**Error Code**: `INVALID_BEARER_TOKEN`\
**Status Code**: `401`
**Description**: The Bearer token provided is invalid.
**Troubleshooting**:
1. Verify the token format: `Bearer `
2. Check if the token has expired
3. Regenerate authentication token
4. Ensure token is not revoked
**Error Code**: `EMAIL_IS_NOT_VERIFIED`\
**Status Code**: `401`
**Description**: Email address has not been verified.
**Troubleshooting**:
1. Check your email for verification link
2. Request a new verification email
3. Verify email address is correct
4. Check spam/junk folder
### 403 Forbidden
Access denied due to insufficient permissions.
**Error Code**: `AUTHORIZATION`\
**Status Code**: `403`
**Description**: You don't have permission to perform this action.
**Troubleshooting**:
1. Verify you have the required role/permissions
2. Check if you're a member of the project/team
3. Contact project/team admin to grant access
4. Ensure you're accessing the correct resource
**Error Code**: `PERMISSION_DENIED`\
**Status Code**: `403`
**Description**: Permission denied for the requested operation.
**Troubleshooting**:
1. Review your user role and permissions
2. Check project/team access settings
3. Verify resource ownership
4. Contact administrator for access
**Error Code**: `DOMAIN_NOT_ALLOWED`\
**Status Code**: `403`
**Description**: Your email domain is not allowed for this operation.
**Troubleshooting**:
1. Verify your email domain is whitelisted
2. Contact administrator to add your domain
3. Use an allowed email address
### 404 Not Found
Requested resource does not exist.
**Error Code**: `ENTITY_NOT_FOUND`\
**Status Code**: `404`
**Description**: The requested resource was not found.
**Common Scenarios**:
* Project not found
* Agent not found
* Document not found
* User not found
**Troubleshooting**:
1. Verify the resource ID is correct
2. Check if the resource was deleted
3. Ensure you have access to the resource
4. Verify you're using the correct project/workspace
**Error Code**: `FILE_NOT_FOUND`\
**Status Code**: `404`
**Description**: The requested file does not exist.
**Troubleshooting**:
1. Verify the file ID or path is correct
2. Check if the file was deleted
3. Ensure the file is in the expected location
4. Verify file permissions
**Error Code**: `FLOW_NOT_FOUND`\
**Status Code**: `404`
**Description**: The requested workflow/flow was not found.
**Troubleshooting**:
1. Verify the flow ID is correct
2. Check if the flow was deleted
3. Ensure you have access to the flow
4. Verify the flow exists in the current project
**Error Code**: `CONFIG_NOT_FOUND`\
**Status Code**: `404`
**Description**: Required configuration was not found.
**Troubleshooting**:
1. Verify configuration exists
2. Check configuration setup in settings
3. Ensure required services are configured
4. Review configuration documentation
### 500 Internal Server Error
Server-side errors that require investigation.
**Error Code**: `ENGINE_OPERATION_FAILURE`\
**Status Code**: `500`
**Description**: An internal engine operation failed.
**Troubleshooting**:
1. Retry the request after a few moments
2. Check system status at `status.getodin.ai`
3. If persistent, contact support with error details
4. Provide error ID if available
**Error Code**: `EXTERNAL_SERVICE`\
**Status Code**: `500`
**Description**: An external service required for this operation failed.
**Common Scenarios**:
* LLM provider API failure
* Third-party integration failure (Google Drive, Slack, etc.)
* External API timeout
**Troubleshooting**:
1. Check external service status
2. Verify API keys/credentials for external services
3. Retry the request
4. Check integration configuration
5. Contact support if issue persists
**Error Code**: `INFRASTRUCTURE`\
**Status Code**: `500`
**Description**: Infrastructure error (database, storage, etc.).
**Troubleshooting**:
1. Retry the request
2. Check system status
3. If persistent, contact support
4. Provide error details and timestamp
**Error Code**: `OPEN_AI_FAILED`\
**Status Code**: `500`
**Description**: OpenAI API call failed.
**Troubleshooting**:
1. Check OpenAI service status
2. Verify API key is valid and has credits
3. Check rate limits
4. Retry with exponential backoff
5. Verify model availability
### 503 Service Unavailable
Service temporarily unavailable.
**Error Code**: `EXECUTION_TIMEOUT`\
**Status Code**: `503`
**Description**: Operation timed out.
**Troubleshooting**:
1. Retry the request
2. Simplify the operation if possible
3. Check if system is under heavy load
4. Break down large operations into smaller ones
5. Contact support if timeout persists
## Business Logic Errors
**Error Code**: `QUOTA_EXCEEDED`\
**Status Code**: `400` or `429`
**Description**: You have exceeded your quota limit.
**Troubleshooting**:
1. Check your current usage in **My Account** > **Dashboard**
2. Review subscription limits
3. Upgrade your plan if needed
4. Wait for quota reset period
5. Contact sales for quota increase
**Error Code**: `FEATURE_DISABLED`\
**Status Code**: `400`
**Description**: This feature is disabled for your account.
**Troubleshooting**:
1. Check your subscription plan
2. Verify feature availability
3. Upgrade plan if feature requires higher tier
4. Contact support for feature access
**Error Code**: `FLOW_IN_USE`\
**Status Code**: `400`
**Description**: The workflow is currently in use and cannot be modified.
**Troubleshooting**:
1. Wait for active executions to complete
2. Cancel active workflow runs
3. Check workflow execution status
4. Retry after executions complete
**Error Code**: `EXISTING_USER`\
**Status Code**: `400`
**Description**: User with this email already exists.
**Troubleshooting**:
1. Try logging in instead of signing up
2. Use password reset if you forgot credentials
3. Use a different email address
4. Contact support if account recovery is needed
## Integration-Specific Errors
**Error Code**: `INVALID_APP_CONNECTION`\
**Status Code**: `400`
**Description**: Invalid or expired app connection (OAuth integration).
**Troubleshooting**:
1. Re-authenticate the integration
2. Check OAuth token expiration
3. Verify integration credentials
4. Reconnect the integration in settings
**Error Code**: `INVALID_SAML_RESPONSE`\
**Status Code**: `400`
**Description**: Invalid SAML response from SSO provider.
**Troubleshooting**:
1. Verify SSO configuration
2. Check SAML metadata URL
3. Ensure SSO provider is accessible
4. Contact support for SSO configuration review
**Error Code**: `RATE_LIMITED` or `ratelimited`\
**Status Code**: `429`
**Description**: API rate limit exceeded.
**Troubleshooting**:
1. Wait for rate limit window to reset
2. Implement exponential backoff
3. Reduce request frequency
4. Check rate limit headers in response
5. Upgrade plan for higher rate limits
## Getting Help
If you encounter an error that's not listed here or need assistance:
1. **Check Error Details**: Note the error code, message, and error\_id
2. **Check System Status**: Visit `status.getodin.ai` for known issues
3. **Review Documentation**: Check relevant API documentation
4. **Contact Support**: Email [Support](support@getodin.ai) with:
* Error code and message
* Error ID (if available)
* Steps to reproduce
* Request/response details (sanitized)
* Timestamp of the error
# Azure AD Single Sign-On (SSO)
Source: https://learn.getodin.ai/general/authentication/azure-ad-sso
Configure SSO Authentication With Azure AD
This article serves as a comprehensive guide for configuring Single Sign-On (SSO) using Azure Active Directory (AD) as your identity provider. By integrating Azure AD with Odin AI, your organization can enhance user authentication by allowing users to access the platform using their existing Microsoft credentials. You will find prerequisites, detailed configuration steps, and troubleshooting tips specifically for Azure AD SSO.
Utilizing Azure AD SSO provides several key advantages:
* **Centralized Authentication** - One login for all enterprise applications.
* **Enhanced Security** - Organization-controlled access.
* **User Management** - Centralized user provisioning and deprovisioning.
* **Compliance** - Meets enterprise security requirements.
* **User Experience** - Seamless authentication experience.
## Azure AD SSO Configuration
This section outlines the steps required to configure Azure AD SSO for your Odin AI instance.
### Prerequisites
Before proceeding, you should have the following or reach out to your respective team for support:
* Azure Portal administrator access.
* Microsoft 365 account with admin access.
* Your Odin AI instance URL.
### Step 1: Azure AD application setup
1. **Go to Azure Portal**\
Visit [portal.azure.com](https://portal.azure.com) and sign in with your administrator account.
2. **Open Enterprise applications**\
In the Azure portal, under **Azure services**, click **Enterprise applications**.
3. **Create enterprise application**\
Click **New application**. On the **Browse Microsoft Entra Gallery** page, click **Create your own application**. In the dialog that opens, enter an application name (e.g., "Odin AI"), select **Integrate any other application you don't find in the gallery (Non-gallery)**, and click **Create**.
4. **Set up single sign-on**\
On the application’s **Getting started** page, click **Set up single sign on** (or **Get started** on that card). On **Select a single sign-on method**, choose **SAML**.
5. **Configure SAML (Basic SAML Configuration)**\
In **Basic SAML Configuration** enter (for Odin AI Cloud use the values below):
* **Identifier (Entity ID)**: `https://api.getodin.ai/user/azure/sso/saml/acs/admin`
* **Reply URL (Assertion Consumer Service URL)**: `https://api.getodin.ai/user/azure/sso/saml/acs/admin`
* **Sign on URL**: Leave empty.
* **Relay State**: `default`
* **Logout URL**: Leave empty.
6. **User attributes & claims**\
In **Attributes & Claims**, ensure the following mappings (click **Edit** to add or change):
* **Unique User Identifier** → `user.userprincipalname`
* **email** → `user.mail`
* **emailaddress** → `user.mail`
* **givenname** → `user.givenname`
* **surname** → `user.surname`
* **name** → `user.userprincipalname`
* **DisplayName** → `user.displayname`
7. **Assign users**\
Go to **Users and groups** > **Add user/group**, select users or groups, and click **Assign**. Assigned users will sign in via SSO once configuration is complete.
### Step 2: Get Azure configuration
1. **Get the Metadata URL**\
In your application, go to **Single sign-on** > **SAML**. In the **SAML Certificates** section, copy the **App Federation Metadata Url** (use the copy icon next to it). Send this URL to Odin AI Support in Step 3.
### Step 3: Submit configuration to Odin AI
Odin AI's support team will configure and test your SSO setup. Please provide the following information:
1. **Send Configuration Details**\
Email [**Support**](mailto:support@getodin.ai) with the following:
* **Provider**: Azure AD (or Azure)
* **Enterprise ID**: Your organization's domain (e.g., `company.com`)
* **Metadata URL**: The App Federation Metadata Url from Step 2
* **SSO Sign-In Only** (Optional): Specify if you want to require SSO for all users with this domain.
2. **Odin AI Configuration**\
Odin AI's support team will configure SSO on your instance and test the connection. You will be notified once configuration is complete.
3. **Testing**\
Odin AI's team will test the SSO connection, and you may be asked to verify that it works. Once confirmed, SSO will be enabled for your organization.
### Troubleshooting Azure AD SSO
In this section, you will find common issues and solutions related to Azure AD SSO.
**Issue**: SAML assertion errors\
**Solutions**:
* Verify Reply URL and Identifier (Entity ID) both match `https://api.getodin.ai/user/azure/sso/saml/acs/admin`.
* Ensure Relay State is `default`; leave Sign on URL and Logout URL empty.
* Ensure user attributes are mapped correctly.
* Verify the certificate is valid and not expired.
**Issue**: User not found after SSO login\
**Solutions**:
* Verify the user is assigned to the application in Azure AD.
* Check email attribute mapping.
* Ensure the user exists in Odin AI.
* Verify the enterprise ID matches the email domain.
## Contact
For SSO configuration questions or issues, contact [Support](mailto:support@getodin.ai).
# Custom Single Sign-On (SSO)
Source: https://learn.getodin.ai/general/authentication/custom-sso
Configure SSO Using Your Custom Provider
This article provides guidance on configuring Custom Single Sign-On (SSO) for Odin AI using any SAML 2.0 compatible identity provider. By integrating a custom SSO solution, your organization can leverage existing authentication systems while ensuring a seamless user experience. You will find prerequisites, detailed configuration steps, and troubleshooting tips specifically for custom SSO implementations.
Implementing Custom SSO offers several benefits:
* **Centralized Authentication** - One login for all enterprise applications
* **Enhanced Security** - Organization-controlled access
* **User Management** - Centralized user provisioning and deprovisioning
* **Compliance** - Meets enterprise security requirements
* **User Experience** - Seamless authentication experience
## Custom SSO Configuration
This section outlines the steps required to configure Custom SSO for your Odin AI instance. Odin AI supports custom SSO providers that are SAML 2.0 compatible, allowing integration with any identity provider that supports SAML.
### Prerequisites
Before proceeding, ensure you have:
* SAML 2.0 compatible identity provider
* Identity provider administrator access
* SAML metadata URL or XML file
### Step 1: Identity Provider Setup
1. **Configure SAML Application**\
In your identity provider, create a new SAML application and configure the following settings:
* **Assertion Consumer Service (ACS) URL**: `https://your-odin-domain.com/user/sso/saml/acs/admin`
* **Entity ID / Audience**: `https://your-odin-domain.com`
* **Name ID Format**: `EmailAddress` or `Unspecified`
* **Attribute Mappings**: Map email, name, and other attributes.
2. **Get SAML Metadata**\
Obtain the SAML metadata URL or XML file, which contains all necessary configuration information.
### Step 2: Submit Configuration to Odin AI
Odin AI's support team will configure and test your SSO setup. Please provide the following information:
1. **Send Configuration Details**\
Email [**Support**](mailto:support@getodin.ai) with the following:
* **Provider**: Your identity provider name (e.g., "PingIdentity", "OneLogin", "Auth0")
* **Enterprise ID**: Your organization's domain (e.g., `company.com`)
* **Metadata URL**: The SAML metadata URL from Step 1
* **Alternative**: Attach the SAML metadata XML file if you have it.
* **SSO Sign-In Only** (Optional): Specify if you want to require SSO for all users with this domain.
2. **Odin AI Configuration**\
Odin AI's support team will configure SSO on your instance and test the connection. You will be notified once configuration is complete.
3. **Testing**\
Odin AI's team will test the SSO connection, and you may be asked to verify that it works. Once confirmed, SSO will be enabled for your organization.
## Contact
For SSO configuration questions or issues, contact [Support](mailto:support@getodin.ai).
# Email-Password Sign-In
Source: https://learn.getodin.ai/general/authentication/email-password
Use Odin Ai's Built-In, Secure, Email-Password Authentication To Sign-In
In this article, you will learn how to authenticate your Odin AI account using the traditional email and password method. This straightforward process allows you to create your account, sign in, manage your password, and ensure your account's security. By following the steps outlined below, you will gain a comprehensive understanding of how to effectively use email/password authentication.
## Email/Password Authentication
Email/password authentication is a widely used method that enables users to create accounts and sign in using their email address and a secure password. This method is standard for most users and provides a reliable way to access your Odin AI account.
### Signing Up
To begin using Odin AI, you must first create an account. The following steps will guide you through the sign-up process:
1. **Navigate to Sign Up**\
Start by clicking **Sign Up** on the login page or visiting the sign-up page directly.
2. **Enter Your Information**\
You will need to provide your email address, create a secure password, and confirm your password if required.
3. **Complete Sign-Up**\
Click **Sign Up** or **Create Account**, verify your email address if necessary, and complete any additional setup steps.
### Signing In
Once you have created your account, you can sign in using the following steps:
1. **Navigate to Login**\
Go to the Odin AI login page and enter your email address and password.
2. **Authenticate**\
Click **Sign In** or **Log In**. After successful authentication, you will be redirected to your dashboard.
### Password Requirements
Odin AI enforces specific password security requirements to protect your account:
* **Minimum Length**: Passwords must meet minimum length requirements.
* **Complexity**: Passwords may include uppercase letters, lowercase letters, numbers, and special characters.
* **Security**: Passwords are securely hashed and salted.
* **Storage**: Passwords are never stored in plain text.
### Password Reset
If you forget your password, follow these steps to reset it:
1. **Request Password Reset**\
Click **Forgot Password** on the login page, enter your email address, and click **Send Reset Link**.
2. **Check Your Email**\
Look for the password reset email and click the reset link provided.
3. **Create New Password**\
Enter and confirm your new password, then click **Reset Password**.
4. **Sign In**\
You can now use your new password to sign in.
### Account Security
To maintain the security of your account, consider these best practices:
* Use a strong, unique password.
* Do not share your password with anyone.
* Change your password regularly.
* Use different passwords for different services.
* Enable two-factor authentication if available.
## Contact
For questions about authentication, please contact [Support](mailto:support@getodin.ai).
# Google Sign-In
Source: https://learn.getodin.ai/general/authentication/google-sign-in
Use Your Google Account To Sign-In
This article will guide you through the process of authenticating your Odin AI account using Google Sign-In. This method allows for a more convenient and secure way to access your account without the need to remember a separate password. You will learn how to sign in with your Google account, the benefits of using Google Sign-In, and troubleshooting tips for common issues.
Google Sign-In enables users to authenticate using their existing Google account, which simplifies the login process by eliminating the need for a separate password for Odin AI. This method leverages Google's security features to provide a secure and efficient sign-in experience.
### Sign-In With Google
To sign in with your Google account, follow these steps:
1. **Click Sign in with Google**\
On the login page, click **Sign in with Google** or the Google Sign-In button.
2. **Select Google Account**\
Choose your Google account from the list or enter your Google email address.
3. **Grant Permissions**\
Review the permissions requested by Odin AI and click **Allow** or **Continue** to grant access.
4. **Automatic Sign-In**\
You will be automatically signed in to Odin AI and redirected to your dashboard.
### Benefits
Using Google Sign-In offers several advantages:
* **No Password Required**: You can use your existing Google account to log in.
* **Quick Access**: This method provides a faster sign-in process.
* **Secure**: It leverages Google's robust security infrastructure.
* **Single Account**: One Google account can be used for multiple services.
* **Automatic Updates**: Your profile information is synced from Google.
### Requirements
To use Google Sign-In, you must meet the following requirements:
* **Google Account**: A valid Google account is necessary.
* **Internet Connection**: An active internet connection is required for authentication.
* **Browser Support**: Ensure you are using a modern browser with JavaScript enabled.
* **Permissions**: You must grant permission to use Google Sign-In.
### First-Time Setup
When signing in with Google for the first time, you may need to complete the following steps:
1. **Account Creation**\
Odin AI will automatically create an account using your Google email, syncing your profile information from Google.
2. **Profile Completion**\
You may be prompted to complete additional profile information and configure some settings.
3. **Access Granted**\
After setup, you will have full access to all features of Odin AI.
### Managing Google Sign-In
**Linking Accounts**: If you already have an email/password account, you can link it to Google Sign-In, allowing you to use either method.
**Unlinking Accounts**: If you wish to unlink your Google account, you will need to set up email/password authentication first.
### Troubleshooting
If you encounter issues, consider the following common problems and solutions:
**Problem**: Google Sign-In button not appearing\
**Solution**: Check your internet connection, clear browser cache and cookies, try a different browser, disable extensions that might block it, and ensure JavaScript is enabled.
**Problem**: Permission denied or error during sign-in\
**Solution**: Verify you are using a valid Google account, ensure your Google account is active, try signing out and back in, and check for pop-up blockers.
**Problem**: Account not created after Google Sign-In\
**Solution**: Verify your email address, check if an account already exists, try signing in with email/password if applicable, and contact [Support](mailto:support@getodin.ai) for assistance.
For additional information on Google Sign-In, you may find the official Google documentation helpful: [Google Sign-In Documentation](https://developers.google.com/identity/sign-in/web/sign-in).
# Okta Single Sign-On (SSO)
Source: https://learn.getodin.ai/general/authentication/okta-sso
Configure SSO Authentication With Okta
This article provides a detailed guide on configuring Single Sign-On (SSO) using Okta as your identity provider. By integrating Okta with Odin AI, your organization can streamline user authentication, allowing employees to access the platform using their existing Okta credentials. You will learn the prerequisites, step-by-step configuration instructions, and troubleshooting tips specifically for Okta SSO.
Using Okta SSO offers several advantages:
* **Centralized Authentication** - One login for all enterprise applications.
* **Enhanced Security** - Organization-controlled access.
* **User Management** - Centralized user provisioning and deprovisioning.
* **Compliance** - Meets enterprise security requirements.
* **User Experience** - Seamless authentication experience.
## Okta SSO Configuration
In this section, you will find the necessary steps to configure Okta SSO for your Odin AI instance.
### Prerequisites
Before you begin, ensure you have:
* Okta administrator access.
* Your Odin AI instance URL.
### Step 1: Okta Application Setup
1. **Log in to Okta Admin Console**\
Visit your Okta admin console and navigate to **Applications** > **Applications**.
2. **Create New Application**\
Click **Create App Integration**, select **SAML 2.0** as the sign-in method, and click **Next**.
3. **Configure General Settings**\
Enter an app name (e.g., "Odin AI"), upload the Odin AI logo if desired, and click **Next**.
4. **Configure SAML Settings**\
In the **SAML Settings** section, enter the following (for Odin AI Cloud use the URLs below):
* **Single Sign On URL**: `https://api.getodin.ai/user/okta/sso/saml/acs/admin`
* **Recipient URL**: `https://api.getodin.ai/user/okta/sso/saml/acs/admin`
* **Destination URL**: `https://api.getodin.ai/user/okta/sso/saml/acs/admin`
* **Audience Restriction**: `https://api.getodin.ai/user/okta/sso/saml/acs/admin`
* **Default Relay State**: `default`
Also set **Name ID format** to `EmailAddress`, **Application username** to `Email`, and **Update application username on** to `Create and update`.
5. **Attribute Statements** (Optional)\
Add attribute mappings as needed (e.g. `email` → `user.email`, `firstName` → `user.firstName`, `lastName` → `user.lastName`).
**How to add attribute statements**
1. In Okta, go to **Applications** > **Your App**.
2. Click the **General** tab > **SAML Settings** > **Edit**.
3. Open the **Configure SAML** section.
4. Scroll to **Attribute Statements** (where you add email, firstName, lastName).
5. Click **Add Another** to add more attributes.
**Adding custom user attributes to SAML (optional)**
To send custom attributes (e.g. `userTags`) in the SAML assertion:
**1. Create the attribute in Okta**
* Go to **Directory** → **Profile Editor** → **User (default)**.
* Click **Add Attribute**.
* Set **Variable name** (e.g. `userTags`) — use camelCase, no spaces.
* Set **Data type**: string (single value) or string array (multiple values).
* Click **Save**.
**2. Assign values to all users (required)**
* Go to **Directory** → **People** → select a user.
* Click **Edit** on their profile.
* Fill in the custom attribute field with a value.
* Click **Save**.
* Repeat for every user who will use SSO.
Okta only sends attributes that have values; empty fields are not included in the SAML response.
**3. Map the attribute in your SAML app**
* Go to **Applications** → \[Your SAML App] → **SAML Settings** → **Edit**.
* In **Attribute Statements**, click **Add Another** and add:
* **Name**: `userTags` (or your attribute name).
* **Value**: `user.userTags` (must match the variable name from step 1).
* Click **Save**.
6. **Group Attribute Statements** (Optional)\
Configure group mappings if needed.
7. **Feedback** (Optional)\
Select feedback options and click **Finish**.
### Step 2: Get Okta Configuration
**Get the Metadata URL**\
Log in to Okta as an admin, go to **Applications** → \[Your App] → **Sign On** tab. Then go to **Settings** → **SAML 2.0** → **Metadata details** → **Metadata URL**. Copy the URL (use the Copy button).
### Step 3: Submit Configuration to Odin AI
Odin AI's support team will configure and test your SSO setup. Please provide the following information:
1. **Send Configuration Details**\
Email [**Support**](mailto:support@getodin.ai) with the following information:
* **Provider**: Okta
* **Enterprise ID**: Your organization's domain (e.g., `company.com`)
* **Metadata URL**: The Okta metadata URL from Step 2
* **SSO Sign-In Only** (Optional): Specify if you want to require SSO for all users with this domain.
2. **Odin AI Configuration**\
Odin AI's support team will configure SSO on your instance and test the connection. You will be notified once configuration is complete.
3. **Testing**\
Odin AI's team will test the SSO connection, and you may be asked to verify that it works. Once confirmed, SSO will be enabled for your organization.
### Troubleshooting Okta SSO
In this section, you will find common issues and solutions related to Okta SSO.
**Issue**: Redirect loop or authentication failure\
**Solutions**:
* Verify the Single Sign On URL, Recipient URL, Destination URL, and Audience Restriction all match `https://api.getodin.ai/user/okta/sso/saml/acs/admin`.
* Ensure Default Relay State is set to `default`.
* Ensure Name ID format is set to EmailAddress.
* Verify metadata URL is accessible.
* Check that the Okta application is active.
**Issue**: User not found after SSO login\
**Solutions**:
* Verify email attribute mapping in Okta.
* Check that the user exists in Odin AI.
* Ensure user provisioning is configured.
* Verify enterprise ID matches the email domain.
## Contact
For SSO configuration questions or issues, contact [Support](mailto:support@getodin.ai).
# Best Practices: Dev to Prod Migration in EK Cloud (Single Tenant)
Source: https://learn.getodin.ai/general/cloud-sdlc-best-practices
Dev-to-prod migration best practices for single-tenant EK Cloud environments.
When working within a single-tenant Odin AI Platform (EK) Cloud environment, it is not possible to have separate development and production tenants by default. This article outlines the recommended approach for managing your development lifecycle and promoting solutions from development to production within the same tenant.
## Recommended Approach: Use Separate Projects for Dev and Prod
The core recommendation is to treat **Projects** in EK as your environment boundary. Rather than building directly in a production project, you should maintain a dedicated development project where all configuration, testing, and iteration takes place before any solution is promoted to production.
### Development Phase
All solution development should happen inside a designated dev project. This includes configuring knowledge sources, building and testing agents, setting up tools and integrations, and defining workflows. Keeping this work isolated in a dev project ensures that your production environment remains stable and unaffected during active development.
Once development is complete, the solution should go through User Acceptance Testing (UAT) within that same dev project. Stakeholders and end users can validate behavior, test edge cases, and sign off on the solution before any promotion takes place. Only after UAT is approved should you proceed to create the production project.
***
## Promoting to Production
EK Cloud provides two methods to promote a dev project to production within the same tenant:
**Option 1 – Export and Import**
Export the dev project from EK and import it as a new project within the same tenant. This gives you a clean production project that mirrors the dev configuration at the time of export.
**Option 2 – Clone and Rename**
Clone the dev project directly within the tenant, then rename the cloned project to reflect its production purpose. Both projects will co-exist in the same tenant, and the dev project is preserved in its current state.
Either method results in a new, independent project that serves as your production environment.
***
## Post-Migration Steps
Regardless of which method you use, several items require manual attention after the production project is created. These do not carry over automatically and must be reconfigured before the solution is live.
### Project Members
Project members are not transferred during either an export/import or a clone operation. All users who need access to the production project must be added manually.
### Third-Party Service Authentication
Any integrations connected to external services — such as cloud storage providers, CRMs, or other SaaS platforms — will need to be re-authenticated in the new production project. Credentials and OAuth connections are scoped to the project they were originally configured in and are not transferred during export/import or cloning.
### API Keys for Tools
If any tools within the solution rely on API keys, those keys must be re-issued and reconnected within the production project. Do not reuse dev API keys in production, both for security reasons and because dev keys may have different rate limits or access scopes.
### Odin AI APA Control Room Connections
If the solution is connected to an Odin AI APA Control Room instance, that connection must be re-established in the production project pointing to the production APA Control Room. Dev and production APA environments are separate, and the connection configured in the dev project will reference the dev APA instance. Failing to update this connection means your production EK solution will continue triggering or communicating with the development APA environment.
***
## Summary
| Step | Action Required |
| -------------------- | ------------------------------------------ |
| Development & UAT | Work entirely within the dev project |
| Promote to Prod | Export/Import or Clone and Rename |
| Project members | Re-add all members to the prod project |
| Third-party services | Re-authenticate in the prod project |
| Tool API keys | Re-issue and reconnect in the prod project |
| AA APA connections | Reconnect to the prod APA Control Room |
***
## Notes
* There is no automated sync between dev and prod projects. Any changes made post-UAT in the dev project must be manually re-promoted.
* It is recommended to maintain the dev project after go-live to support future iterations and testing.
* Project naming conventions should clearly distinguish dev from prod to avoid accidental configuration in the wrong environment (e.g., `MyProject_DEV` and `MyProject_PROD`).
# Credits
Source: https://learn.getodin.ai/general/credits
Understanding How Credits Are Consumed in Odin AI
Odin AI usage is billed in **credits**, a unified currency that abstracts the underlying costs of running AI-powered workflows. Credits cover two types of activity: flat-rate **Platform Action Credits** for discrete operations like uploading documents, sending messages, and invoking tools; and variable **LLM Token Credits** based on how much text is processed and generated by the language model. Together, these two components make up the total cost of any operation in Odin AI.
This page breaks down how each credit type is calculated, walks through real examples, and explains what factors drive usage up or down.
## Core Concepts
### What Are Credits?
Credits are the unit of measurement Odin AI uses to track and bill for platform usage. Rather than billing separately for every underlying resource (compute, API calls, LLM usage), credits provide a single, unified currency that abstracts those costs into a predictable format.
Credits are consumed in two ways:
* **Platform Action Credits** are flat-rate charges tied to specific user actions — uploading a document, sending a chat message, or invoking a tool. These are fixed and predictable regardless of content size or model used.
* **LLM Token Credits** are variable charges based on actual language model usage. Because LLM costs depend on how much text goes in and comes out of the model, these credits fluctuate based on document size, response length, and model selection.
Your total credit consumption for any operation is always the sum of both types.
### What Are Tokens?
Tokens are the unit that Large Language Models use to process text. Before any text is read or generated by an LLM, it is broken down into tokens — small fragments that roughly correspond to words or parts of words.
As a general rule of thumb:
* **1 token ≈ 4 characters**, or roughly **¾ of a word** in English
* A 100,000-word document is approximately **133,000 tokens**
* A short sentence like "Explain this document" is around **4–5 tokens**
LLM providers charge separately for **input tokens** (the text sent to the model — your prompt, retrieved document chunks, system instructions) and **output tokens** (the text the model generates in response). Input and output rates differ, and both contribute to your LLM Token Credit consumption.
In Odin AI, token usage grows when large documents are retrieved into context, many knowledge base chunks are included in a prompt, or the model produces long or structured responses.
## Credit Consumption Table
### A. Knowledge Base (KB) Ingestion
Uploading a document to a Knowledge Base triggers a multi-stage ingestion pipeline. Each stage has its own cost structure, and some stages incur additional LLM Token Credits depending on your project configuration.
**Ingestion Pipeline**
| Stage | Description | Cost |
| :------------------------------- | :--------------------------------------------------- | :--------------------------------- |
| 1. Document Upload | File is received and word count is calculated | 1 credit per 10,000 words |
| 2. LLM Extraction *(optional)* | An LLM parses and extracts content from the document | Input + output tokens × model rate |
| 3. Platform Chunking | Tokenization, splitting, and metadata assembly | Free (platform) |
| 4. Chunk Enrichment *(optional)* | An LLM generates a context prefix for each chunk | Input + output tokens × model rate |
Stages 2 and 4 are only billed when enabled in your Project Settings. Document chunking occurs as part of ingestion and may incur additional costs. See [Section B](#b-document-chunking) for a detailed breakdown.
**Example – 100,000 word document (no optional stages enabled)**
| Item | Credits |
| :------------ | :--------- |
| 100,000 words | 10 credits |
**Example – 100,000 word document (all stages enabled)**
| Item | Credits |
| :---------------------- | :--------------------------- |
| 100,000 words (upload) | 10 credits |
| LLM Extraction tokens | Varies by model |
| Platform Chunking | Free |
| Chunk Enrichment tokens | \~10 credits (see Section B) |
| **Estimated Total** | **\~20+ credits** |
The more optional stages you enable, the higher the per-document ingestion cost. Word-based upload cost is always fixed and predictable.
### B. Document Chunking
Chunking is the step between document extraction and embedding. It takes the cleaned text from an uploaded document and breaks it into smaller pieces (chunks) that are indexed in the vector store and later retrieved for Chat or Agent queries.
Chunking costs fall into two categories:
* **Platform Chunking:** Deterministic operations (tokenization, splitting, metadata assembly) that run locally on the server and are **not** billed as LLM usage.
* **Chunk Enrichment (LLM Token Credits):** Billed only when **Chunk Enrichment** is enabled for the project in Knowledge Base Settings. The LLM generates a short context prefix for each chunk; both input and output tokens are charged.
#### Example: Document Chunking Costs
The following example assumes a moderately sized document with Chunk Enrichment enabled:
* **Document size**: 100,000 words (\~133,000 input tokens, at 4 chars/token)
* **Chunk settings**: `chunk_size=64 tokens`, `chunk_overlap=10 tokens` → \~2,300 chunks
* **Chunk Enrichment**: Enabled with `gpt-4o-mini`
* **Output text** (joined chunks incl. enrichment prefixes): \~140,000 output tokens
* **Model pricing** (example): input `$0.15` per 1M tokens, output `$0.60` per 1M tokens
| Component | Tokens | Cost |
| :---------------------- | :------ | :-------- |
| Input Tokens (document) | 133,000 | \$0.01995 |
| Output Tokens (chunks) | 140,000 | \$0.084 |
| **Total LLM Cost** | 273,000 | \$0.104 |
Therefore, `$0.104` (total LLM cost) / `$0.01` (cost per credit) equals to **10.4 credits**, displayed as \~10 credits.
If the same document were uploaded *without Chunk Enrichment* enabled, chunking would consume 0 LLM Token Credits.
### C. Chat / Agent Interaction
**Fixed platform credits**
| Action | Credits |
| :------------------------ | :--------- |
| User sends a chat message | 1 credit |
| Tool call invoked | 1 per call |
**Variable LLM Token Credits**
LLM credits are calculated as:
(Input Tokens × Input Rate) + (Output Tokens × Output Rate)
Example pricing (Claude 4.5 sample model):
* Input: \$3 per 1M tokens
* Output: \$15 per 1M tokens
### D. Workflow Executions
| Action | Credits |
| :----------------- | :-------------- |
| Workflow execution | 1 per execution |
The cost is 1 credit per execution, regardless of the number of steps involved.
### Full Chat Example
**Scenario**
User asks: "Explain the attached document."
**Platform credits**
| Component | Credits |
| :------------------------------ | :------ |
| Question asked | 1 |
| Tool calls (document retrieval) | 2 |
| **Subtotal** | **3** |
**LLM token usage**
| Type | Tokens | Cost |
| :-------- | :------- | :--------- |
| Input | \~53,634 | \~\$0.161 |
| Output | \~900 | \~\$0.0135 |
| **Total** | — | \~\$0.1745 |
Converted to credits: **17 credits**
**Final total**
| Component | Credits |
| :------------- | :------ |
| Fixed platform | 3 |
| LLM usage | 17 |
| **Total** | **20** |
## Cost Calculation Formula Summary
**Document Upload**
Word Credits = Total Words ÷ 10,000 + LLM Token Credits (Parsing)
**Chat Message**
Fixed Message Credit + Tool Call Credits + LLM Token Credits (Input + Output)
## What Drives LLM Credit Usage?
LLM cost increases when:
▶ Large documents are retrieved into context
▶ Many KB chunks are injected into the prompt
▶ Responses are long or structured
▶ Multiple tool calls are triggered
▶ Higher-cost models are selected
## Important Notes for Customers
✓ Word-based ingestion cost is predictable.
✓ Chat costs vary significantly depending on document size and the number of tokens used.
✓ Model pricing is configurable in Super Admin.
✓ LLM credits are consumption-based and cannot be flat-rated.
✓ Final credit total = Platform Credits + LLM Credits.
# On-Premise SDLC Best Practices
Source: https://learn.getodin.ai/general/on-premise-sdlc-best-practices
Best Practices on SDLC and Promotion of Odin AI Platform from Non-Production to Production (On-Premise)
This article defines recommended best practices for:
* Promoting the Odin AI Platform platform (application) from **Non-Production to Production**
* Promoting **Odin AI Platform projects and AI use cases** from Non-Production to Production
* Clearly defining **roles and responsibilities** for each promotion activity, including updates, testing, configuration, and approval
The approach is designed for **On-Premise environments** and aligns with **common SDLC, security, and operational governance standards**. This approach:
* Clearly defines **roles and responsibilities during promotion**
* Accounts for **environment-specific configuration updates**
* Aligns with **enterprise On-Premise SDLC and security models**
* Maintains **strict Production access control**
* Enables **repeatable and auditable promotions**
***
## Environment Model (On-Premise)
Your team maintains separate **On-Premise Non-Production and Production environments** for Odin AI Platform. These environments are:
* Logically and physically isolated
* Promoted via **controlled, manual processes**
Both **platform updates** and **project promotions** are governed under a single SDLC framework.
***
## SDLC Phases and Promotion Overview
### Phase 1 – Design & Build (Non-Prod)
* Use cases are designed and configured in **Odin AI Platform Non-Prod**
* Prompts, workflows, and integrations are iterated and tuned
* Test data is used where possible
**Owner:** Business Team / SMEs\
**Support:** Odin AI Platform (AA)
### Phase 2 – Testing & Validation (Non-Prod)
* Functional testing and UAT
* Accuracy, performance, and security validation
* Business sign-off confirming readiness for promotion
**Owner:** Business Team / SMEs
### Phase 3 – Promotion Readiness
Before any promotion:
* Change approvals are obtained
* Firewall and network requirements are reviewed
* Production access and RBAC approach is confirmed
* Environment-specific configuration values are identified
***
## Promotion Mechanisms
### Platform (Environment) Promotion
Platform promotion includes:
* Odin AI Platform version upgrades
* Security patches
* Platform-level configuration changes
#### High-Level Flow
1. Update applied in **Non-Prod**
2. Platform testing and validation
3. Change approval and scheduling
4. Deployment to **Production**
5. Post-deployment validation
### Project / Use Case Promotion
Odin AI Platform supports promotion via a **project export/import mechanism** between On-Premise environments.
#### Included in Promotion
* Project configuration
* Workflows and agents
* Prompts and rules
#### Excluded from Promotion
* Users and role assignments
* Environment-specific secrets
* Network and firewall settings
This ensures **Production access remains explicitly controlled**.
#### High-Level Flow
1. Project finalized in Non-Prod
2. Export from Non-Prod
3. Import into Production
4. Environment-specific configuration updates
5. Production configuration and access setup
6. Smoke testing and go-live
***
## Roles and Responsibilities for Promotion Activities
This section defines who performs each activity involved in promoting updates and configurations from **Non-Prod to Prod**.
### Platform (Environment) Promotion Responsibilities
| Activity | Business Team | Run / Middleware Team | Odin AI Platform (AA) |
| ----------------------------- | ------------- | --------------------- | --------------------- |
| Plan platform upgrade | I | C | R |
| Apply upgrade in Non-Prod | I | I | R |
| Run platform regression tests | I | C | R |
| Review test results | I | C | R |
| Change approval & scheduling | I | R | C |
| Deploy upgrade to Production | I | C | R |
| Post-deployment validation | I | C | R |
#### Key Point
**Odin AI Platform (AA)** is responsible for executing platform updates and running platform-level tests.\
**Run / Middleware teams** control approvals, scheduling, and infrastructure readiness.
### Project / Use Case Promotion Responsibilities
| Activity | Business Team | Run / Middleware Team | Odin AI Platform (AA) |
| --------------------------------------- | ------------- | --------------------- | --------------------- |
| Develop & configure use case (Non-Prod) | R | I | C |
| Functional testing & UAT | R | I | C |
| Confirm readiness for promotion | R | I | I |
| Export project from Non-Prod | I | I | R |
| Import project into Production | I | C | R |
| Production smoke testing | R | C | C |
| Go-live approval | R | I | I |
#### Key Point
**Your team’s business stakeholders own validation and approval**, while **Odin AI Platform (AA)** executes the technical promotion steps.
### Post-Promotion Configuration (Production)
These activities occur **after import** to maintain Production controls.
| Activity | Business Team | Run / Middleware Team | Odin AI Platform (AA) |
| ---------------------------- | ------------- | --------------------- | --------------------- |
| Create Production users | I | R | I |
| Assign RBAC | I | R | C |
| Configure firewall / network | I | R | C |
| Validate integrations | R | C | C |
***
## Environment-Specific Configuration Updates (Required During Promotion)
When a project is promoted from **Non-Production to Production**, certain configuration values must be updated to reflect the Production environment. These values are **not carried over automatically** and must be reviewed during promotion.
### RPA Configuration Updates (If Applicable)
For use cases that integrate with **RPA tooling**, the following values typically need to be updated in Production:
* Control Room URL
* Username
* User v2 Token
These values must reference **Production RPA infrastructure and credentials**.
### Odin AI Platform Configuration Updates
Within Odin AI Platform, the following **environment-specific values** must be reviewed and updated after promotion:
* **Base URL**
* Example:
* Non-Prod: `https://nonprod.example.com`
* Prod: `https://prod.example.com`
* **Project ID**
* **Project xApiKey**
* **Project xApiSecret**
* **Smart Table ID(s)**
These values are **unique per environment** and are required for correct runtime behavior in Production.
### Responsibility for Configuration Updates
| Activity | Business Team | Run / Middleware Team | Odin AI Platform (AA) |
| -------------------------------------------- | ------------- | --------------------- | --------------------- |
| Identify required config changes | C | C | R |
| Update RPA Production variables | I | R | C |
| Update Odin AI Platform Production variables | I | C | R |
| Validate configuration changes | R | C | C |
***
## Production Operating Model
### Your Team
* Owns **Production operations**
* Manages **users, RBAC, and monitoring**
* Provides **first-line incident response**
### Odin AI Platform (AA)
* Owns **platform stability and fixes**
* Delivers **platform upgrades and patches**
* Supports **complex configuration issues**
Odin AI Platform **does not act as the Production run team**.
***
## Change Management and Governance
* All Production changes follow **formal change management processes**
* **Non-Prod is the only environment for experimentation**
* Emergency fixes follow **expedited approvals**
Each Production use case should have:
* Business owner
* Defined scope
* Support contacts
* Rollback plan
# On-Premise Troubleshooting
Source: https://learn.getodin.ai/general/on-premise-troubleshooting
L1 diagnostic steps for troubleshooting on-premise Odin AI deployments
This guide provides Level 1 (L1) diagnostic steps for troubleshooting issues in on-premise Odin AI deployments. These steps help identify common problems with containers, databases, services, and system resources.
**Prerequisites**: You need SSH access to the customer's VM/server where Odin AI is deployed, and appropriate permissions to run Docker commands and access container logs.
## Container Status Checks
### Check All Container Status
First, verify which containers are running and their health status:
```bash theme={null}
# Check all containers status
docker ps -a
# Check containers with health status
docker ps --format "table {{.Names}}\t{{.Status}}\t{{.Health}}"
# Check specific container status
docker ps -a | grep
```
**Expected Containers:**
* `web` - Frontend application
* `api` or `fastapi_backend` - Backend API server
* `worker` or `celery_worker` - Celery worker(s)
* `redis` - Redis cache
* `rabbitmq` - RabbitMQ message queue
* `supabase-studio` - Supabase Studio
* `supabase-kong` - Kong API Gateway
* `supabase-auth` - Auth service
* `supabase-db` or `postgres` - PostgreSQL database
* Other Supabase services (storage, meta, etc.)
**What to Check:**
* All containers should be in "Up" status
* No containers should be in "Restarting" or "Exited" state
* Health checks should show "healthy" where applicable
### Restart Failed Containers
If containers are stopped or restarting:
```bash theme={null}
# Restart a specific container
docker restart
# Restart all containers
docker compose restart
# Restart specific service
docker compose restart
```
## Backend Container Logs
### Check API Container Logs
The backend API container logs contain critical information about errors, database connections, and service issues:
```bash theme={null}
# View recent logs (last 100 lines)
docker logs --tail 100 api
# Or for fastapi_backend
docker logs --tail 100 fastapi_backend
# Follow logs in real-time
docker logs -f api
# View logs with timestamps
docker logs -t api
# View logs from specific time
docker logs --since 30m api
# View logs between timestamps
docker logs --since "2024-01-01T00:00:00" --until "2024-01-01T23:59:59" api
```
**What to Look For:**
* Database connection errors
* Redis connection failures
* RabbitMQ connection issues
* Authentication errors
* API endpoint errors (500, 503, etc.)
* Import/export errors
* Knowledge Base processing errors
* Worker task failures
### Check Worker Container Logs
Worker containers handle background tasks (KB processing, embeddings, etc.):
```bash theme={null}
# Check worker logs
docker logs --tail 100 worker
# Or for celery_worker
docker logs --tail 100 celery_worker
# Check all worker instances
docker ps | grep worker
docker logs
```
**What to Look For:**
* Task execution errors
* Memory issues
* Timeout errors
* Database connection errors in workers
* Knowledge Base sync failures
* Embedding generation errors
### Check Web Container Logs
Frontend container logs can reveal UI and API connection issues:
```bash theme={null}
# Check web container logs
docker logs --tail 100 web
# Follow logs
docker logs -f web
```
**What to Look For:**
* Build errors
* API connection failures
* Environment variable issues
* Port binding errors
## Database Status
### Check PostgreSQL/Supabase Database Status
```bash theme={null}
# Check database container status
docker ps | grep -E "(db|postgres|supabase-db)"
# Check database container logs
docker logs --tail 100 supabase-db
# Or for postgres container
docker logs --tail 100 postgres
# Connect to database (if psql is available)
docker exec -it supabase-db psql -U postgres
# Check database connections
docker exec supabase-db psql -U postgres -c "SELECT count(*) FROM pg_stat_activity;"
# Check database size
docker exec supabase-db psql -U postgres -c "SELECT pg_size_pretty(pg_database_size('postgres'));"
```
**What to Check:**
* Database container is running
* No connection errors in logs
* Database is not full (check disk space)
* Active connections are within limits
* No long-running queries blocking operations
### Check Database Connectivity from API
```bash theme={null}
# Test database connection from API container
docker exec api python -c "
import os
from sqlalchemy import create_engine
try:
engine = create_engine(os.environ.get('DATABASE_URL'))
conn = engine.connect()
print('Database connection successful')
conn.close()
except Exception as e:
print(f'Database connection failed: {e}')
"
```
### Check Database Migrations
```bash theme={null}
# Check if migrations are up to date
docker exec api alembic current
# Check migration history
docker exec api alembic history
# View pending migrations
docker exec api alembic heads
```
## Redis Status
### Check Redis Container
```bash theme={null}
# Check Redis container status
docker ps | grep redis
# Check Redis logs
docker logs --tail 100 redis
# Test Redis connection
docker exec redis redis-cli ping
# Should return: PONG
# Check Redis info
docker exec redis redis-cli info
# Check Redis memory usage
docker exec redis redis-cli info memory
# Check connected clients
docker exec redis redis-cli info clients
```
**What to Check:**
* Redis is responding to ping
* Memory usage is within limits
* No connection errors
* No eviction errors (memory full)
### Test Redis from API Container
```bash theme={null}
# Test Redis connection from API
docker exec api python -c "
import redis
import os
try:
r = redis.Redis(host='redis', port=6379, decode_responses=True)
r.ping()
print('Redis connection successful')
except Exception as e:
print(f'Redis connection failed: {e}')
"
```
## RabbitMQ Status
### Check RabbitMQ Container
```bash theme={null}
# Check RabbitMQ container status
docker ps | grep rabbitmq
# Check RabbitMQ logs
docker logs --tail 100 rabbitmq
# Check RabbitMQ management (if accessible)
# Access: http://:15672
# Default credentials: user/password
```
**What to Check:**
* Container is running
* No connection errors
* Queues are processing messages
* No message backlog
### Check RabbitMQ from API
```bash theme={null}
# Test RabbitMQ connection
docker exec api python -c "
import pika
try:
connection = pika.BlockingConnection(
pika.ConnectionParameters('rabbitmq', 5672, '/',
pika.PlainCredentials('user', 'password'))
)
print('RabbitMQ connection successful')
connection.close()
except Exception as e:
print(f'RabbitMQ connection failed: {e}')
"
```
## System Resources
### Check Disk Space
Low disk space can cause database, storage, and container issues:
```bash theme={null}
# Check overall disk usage
df -h
# Check disk usage for Docker volumes
docker system df
# Check specific volume usage
docker volume inspect
# Check directory sizes
du -sh /var/lib/docker/volumes/*
du -sh ./supabase/docker/volumes/*
# Check in-container disk usage (for database)
docker exec supabase-db df -h
```
**What to Check:**
* Root partition has sufficient space (>20% free recommended)
* Docker volumes are not full
* Database data directory has space
* Supabase storage has space
### Check Memory Usage
```bash theme={null}
# Check system memory
free -h
# Check container memory usage
docker stats --no-stream
# Check specific container memory
docker stats --no-stream
```
**What to Check:**
* System has available memory
* Containers are not hitting memory limits
* No OOM (Out of Memory) kills in logs
### Check CPU Usage
```bash theme={null}
# Check CPU usage
top
# or
htop
# Check container CPU usage
docker stats --no-stream
```
## Network Connectivity
### Check Container Network
```bash theme={null}
# Check Docker network
docker network ls
# Inspect network configuration
docker network inspect
# Check if containers can communicate
docker exec api ping -c 3 redis
docker exec api ping -c 3 rabbitmq
docker exec api ping -c 3 supabase-db
```
### Check Port Availability
```bash theme={null}
# Check if ports are in use
netstat -tulpn | grep -E "(3001|8001|6379|5672|5432|8000)"
# Or using ss
ss -tulpn | grep -E "(3001|8001|6379|5672|5432|8000)"
# Check port from container
docker exec api curl -I http://localhost:8001/health
```
## Environment Variables
### Check Environment Configuration
```bash theme={null}
# Check environment variables for a container
docker exec api env | grep -E "(DATABASE|REDIS|RABBITMQ|API)"
# Check .env files (if accessible)
cat ./env/.env.server | grep -v "PASSWORD\|SECRET\|KEY" # Exclude sensitive data
cat ./env/.env.web | grep -v "PASSWORD\|SECRET\|KEY"
# Check environment from docker-compose
docker compose config
```
**What to Check:**
* Database connection strings are correct
* Redis and RabbitMQ hostnames are correct
* API URLs are properly configured
* Required environment variables are set
* No typos in variable names
## File Permissions
### Check File and Directory Permissions
```bash theme={null}
# Check permissions on key directories
ls -la ./alignment-project-server
ls -la ./ai-content-creator
ls -la ./supabase/docker/volumes
# Check Docker socket permissions
ls -la /var/run/docker.sock
# Check certificate files (if using HTTPS)
ls -la ./certs/
```
**What to Check:**
* Application directories are readable
* Docker socket has correct permissions
* Volume mounts have proper permissions
* Certificate files are accessible
## Service-Specific Checks
### Knowledge Base Issues
If Knowledge Base is not updating or processing:
```bash theme={null}
# Check worker logs for KB processing
docker logs --tail 200 worker | grep -i "knowledge\|kb\|embedding"
# Check for embedding model issues
docker logs api | grep -i "embedding\|model"
# Check Supabase storage
docker logs supabase-storage
# Check file upload limits
docker exec supabase-db psql -U postgres -c "
SELECT name, file_size_limit
FROM storage.buckets;
"
```
### Chat/Agent Issues
```bash theme={null}
# Check API logs for agent errors
docker logs --tail 200 api | grep -i "agent\|chat\|llm"
# Check worker logs for agent tasks
docker logs --tail 200 worker | grep -i "agent\|chat"
```
### Authentication Issues
```bash theme={null}
# Check auth service logs
docker logs --tail 100 supabase-auth
# Check database for auth issues
docker exec supabase-db psql -U postgres -c "
SELECT * FROM auth.users LIMIT 5;
"
```
## Common Error Patterns
### Database Connection Errors
**Symptoms:**
* "Connection refused" errors
* "Too many connections" errors
* Timeout errors
**Diagnostic Steps:**
1. Check database container is running: `docker ps | grep db`
2. Check database logs: `docker logs supabase-db`
3. Check connection limits: `docker exec supabase-db psql -U postgres -c "SHOW max_connections;"`
4. Check active connections: `docker exec supabase-db psql -U postgres -c "SELECT count(*) FROM pg_stat_activity;"`
5. Verify DATABASE\_URL in environment variables
### Redis Connection Errors
**Symptoms:**
* "Connection refused" to Redis
* Cache misses
* Session issues
**Diagnostic Steps:**
1. Check Redis container: `docker ps | grep redis`
2. Test Redis: `docker exec redis redis-cli ping`
3. Check Redis logs: `docker logs redis`
4. Verify Redis hostname in environment variables
### Worker Task Failures
**Symptoms:**
* Tasks not completing
* Knowledge Base not syncing
* Background jobs failing
**Diagnostic Steps:**
1. Check worker logs: `docker logs worker`
2. Check worker container status: `docker ps | grep worker`
3. Check RabbitMQ queues: Access RabbitMQ management UI
4. Check for memory issues: `docker stats worker`
### Storage/File Upload Issues
**Symptoms:**
* File uploads failing
* "File too large" errors
* Storage quota exceeded
**Diagnostic Steps:**
1. Check disk space: `df -h`
2. Check Supabase storage logs: `docker logs supabase-storage`
3. Check file size limits in Supabase config
4. Check storage bucket configuration
## Quick Diagnostic Script
Create a diagnostic script to run all checks at once:
```bash theme={null}
#!/bin/bash
echo "=== Odin AI On-Premise Diagnostics ==="
echo ""
echo "1. Container Status:"
docker ps --format "table {{.Names}}\t{{.Status}}"
echo ""
echo "2. Disk Space:"
df -h | grep -E "(Filesystem|/dev/)"
echo ""
echo "3. Memory:"
free -h
echo ""
echo "4. Redis:"
docker exec redis redis-cli ping 2>/dev/null || echo "Redis not responding"
echo ""
echo "5. Database:"
docker exec supabase-db psql -U postgres -c "SELECT version();" 2>/dev/null || echo "Database not responding"
echo ""
echo "6. Recent API Errors (last 20 lines):"
docker logs --tail 20 api 2>/dev/null | grep -i error || echo "No recent errors"
echo ""
echo "=== Diagnostics Complete ==="
```
Save as `diagnostics.sh`, make executable: `chmod +x diagnostics.sh`, and run: `./diagnostics.sh`
## Escalation Information
When escalating to L2 support, provide:
1. **Container Status**: Output of `docker ps -a`
2. **Recent Logs**: Last 100-200 lines from relevant containers
3. **System Resources**: Output of `df -h` and `free -h`
4. **Error Messages**: Specific error messages from logs
5. **Configuration**: Environment variable names (not values) that are set
6. **Timeline**: When the issue started
7. **Impact**: What functionality is affected
**Contact Support**: [support@getodin.ai](mailto:support@getodin.ai)
## Additional Resources
* [On-Premise Installation Guide](/platform-admin/on-premise-installation)
* [Platform Admin Documentation](/platform-admin/on-premise-installation)
* [Docker Documentation](https://docs.docker.com/)
# Security & Compliance
Source: https://learn.getodin.ai/general/security-compliance
Odin AI Supports Industry Standards Of Security And Regulatory Compliance
Odin AI is dedicated to upholding stringent security standards and regulatory compliance, ensuring that your data is protected and managed according to industry benchmarks.
**Certifications we maintain**
* **[HIPAA](https://www.hhs.gov/hipaa/index.html)** — Protection of sensitive patient health information for healthcare organizations.
* **[AICPA SOC 2 Type II](https://www.aicpa.org/)** — Trust service principles (security, availability, processing integrity, confidentiality, privacy) verified by independent audit.
* **[ISO 27001](https://www.iso.org/iso-27001-information-security.html)** — Internationally recognized information security management system.
* **[GDPR](https://gdpr-info.eu/)** — European data protection and privacy rights for individuals.
* **[CCPA](https://oag.ca.gov/privacy/ccpa)** — California consumer privacy rights and transparent data practices.
Details for each certification are outlined below.
## Compliance Certifications
Odin AI has achieved multiple compliance certifications that reflect our commitment to high standards of security and data protection. Each certification serves as a testament to our adherence to specific regulations and best practices that govern how we handle sensitive information.
### HIPAA Compliance
Odin AI is [HIPAA compliant](https://www.hhs.gov/hipaa/index.html), which ensures the protection of sensitive patient health information. This compliance involves:
* **Protected Health Information (PHI) Protection**: Secure handling of healthcare data.
* **Administrative Safeguards**: Policies and procedures for PHI protection.
* **Physical Safeguards**: Security measures for data centers and systems.
* **Technical Safeguards**: Encryption, access controls, and audit logs.
By being HIPAA compliant, we provide assurance to healthcare organizations that their sensitive data is protected according to established regulations.
### AICPA SOC 2 Compliance
The [AICPA SOC 2](https://www.aicpa.org/) certification demonstrates our adherence to trust service principles defined by the American Institute of Certified Public Accountants. This includes:
* **Security**: Protection against unauthorized access.
* **Availability**: Ensuring system performance and uptime.
* **Processing Integrity**: Accurate and complete processing of data.
* **Confidentiality**: Safeguarding confidential information.
* **Privacy**: Responsible handling of personal information.
Odin AI undergoes regular audits by independent third parties, providing enterprise customers with confidence in our security practices.
### [ISO 27001](https://www.iso.org/iso-27001-information-security.html) Certification
The ISO 27001 certification reflects our robust information security management system. This certification involves:
* **Risk Management**: A systematic approach to managing information security risks.
* **Security Controls**: Implementation of comprehensive security measures.
* **Continuous Improvement**: Regular reviews and enhancements of security practices.
This certification demonstrates our commitment to maintaining a secure environment through ongoing improvement.
### GDPR and CCPA Compliance
Odin AI complies with both the General Data Protection Regulation ([GDPR](https://gdpr-info.eu/)) and the California Consumer Privacy Act ([CCPA](https://oag.ca.gov/privacy/ccpa)), ensuring the protection of personal data and consumer privacy. Key aspects include:
* **GDPR**:
* Rights of data subjects to access, rectify, and delete personal data.
* Transparency in data processing activities.
* Built-in data protection measures.
* **CCPA**:
* Consumer rights to know, delete, and opt-out of the sale of personal information.
* Clear disclosure of data collection and usage practices.
* Strong privacy protections for California residents.
These compliance efforts reinforce our dedication to protecting individual privacy rights and ensuring transparent data practices.
## Third-Party Security Tools
Odin AI uses third-party security tools to strengthen our security posture, with continuous monitoring, threat detection, and incident response.
### BlackDuck
* **Open Source Security Scanning** — Comprehensive security scanning of software components
* **Vulnerability Management** — Identification and management of security vulnerabilities
* **License Compliance** — Open source license compliance
## Security Standards & Practices
To ensure robust security measures are in place, Odin AI follows multiple security frameworks. These frameworks guide our security practices and help us remain vigilant against potential threats. Notable frameworks include:
* **[NIST Cybersecurity Framework](https://www.nist.gov/cyberframework)**: A comprehensive approach to managing cybersecurity risks, providing guidelines for organizations to improve their security posture.
* **[OWASP Top 10](https://owasp.org/www-project-top-ten/)**: A list of the most critical security risks to web applications, offering guidelines for protecting against these common vulnerabilities.
* **[CIS Controls](https://www.cisecurity.org/controls/)**: A set of best practices for securing IT systems, designed to help organizations prioritize their cybersecurity efforts.
* **[ISO 27001](https://www.iso.org/iso-27001-information-security.html)**: Internationally recognized standards for information security management systems, outlining requirements for establishing, implementing, maintaining, and continually improving information security.
## Compliance Management
Odin AI maintains continuous compliance through a structured approach that includes regular audits, compliance monitoring, and risk assessments. These practices ensure that we consistently meet regulatory requirements and identify areas for improvement. Continuous compliance is fundamental to our security strategy, enabling us to respond promptly to any compliance issues that may arise.
We provide various compliance reports, including [AICPA SOC 2 Type II](https://www.aicpa.org/interestareas/frc/assuranceadvisoryservices/soc2.html) reports and [ISO 27001](https://www.iso.org/iso-27001-information-security.html) certification documents. These reports are available to enterprise customers upon request, demonstrating our commitment to transparency and accountability. If you require specific compliance documentation, our support team is available to assist you.
## Industry-Specific Compliance
Understanding the unique compliance requirements of different industries is essential for Odin AI. In the healthcare sector, we ensure full compliance with [HIPAA](https://www.hhs.gov/hipaa/index.html) and the [HITECH Act](https://www.hhs.gov/hipaa/for-professionals/privacy/laws-regulations/index.html), which govern the protection of healthcare data. We also adhere to state-specific healthcare regulations to ensure that we meet all relevant legal obligations.
For California residents, our compliance with the [CCPA](https://oag.ca.gov/privacy/ccpa) reinforces our commitment to consumer privacy. This includes supporting consumer rights related to personal information and ensuring transparency in our data practices. By addressing the specific needs of various industries, we can effectively protect sensitive data and foster trust with our clients.
## Data Residency & Sovereignty
Odin AI offers flexible options for data residency and sovereignty to meet regulatory requirements. We provide various data residency options, including regional deployments that comply with local laws. This ensures that data is stored and processed in accordance with applicable regulations, particularly for international clients who must navigate different data protection laws.
Our compliance with GDPR and other regional regulations further emphasizes our commitment to data protection. We have established secure mechanisms for cross-border data transfers, ensuring that data remains protected regardless of its location.
## Compliance Documentation
To ensure transparency and accountability, Odin AI provides various compliance documentation, including security policies, compliance certificates, audit reports, and data processing agreements. If you require specific documentation, our [Support](mailto:support@getodin.ai) team is available to assist you with your requests.
## Contact
For questions about security and compliance or to request compliance documentation, please contact [Support](mailto:support@getodin.ai).
# Security & Data Practices
Source: https://learn.getodin.ai/general/security-data-practices
How Odin AI Protects Your Data and Keeps Your Information Secure
Odin AI is committed to providing a secure platform for your data and AI operations. This article outlines our security measures, encryption standards, and data handling practices. It is crucial for users to understand these practices to appreciate the importance of data protection and the steps we take to ensure the security of their information.
## Multiple Layers of Security
Odin AI implements multiple layers of security to protect your data. This section details the various strategies employed, including encryption in transit and at rest, authentication and access control measures, secure credential management, and comprehensive audit logging. Each of these components plays a vital role in safeguarding your information from unauthorized access and ensuring its integrity.
### Encryption in Transit
In this section, you will learn about the critical role of **Transport Layer Security (TLS)** protocols in safeguarding your data during transmission. Understanding how TLS works is essential for ensuring the confidentiality and integrity of the information exchanged between clients and servers. Odin AI employs **TLS 1.2** and the latest **TLS 1.3**, each offering robust security features and performance enhancements. This knowledge will provide you with a comprehensive understanding of how TLS/SSL encryption protects your data in transit.
#### Supported Encryption Protocols
* **TLS 1.2**: An industry-standard encryption protocol that provides strong encryption for data in transit and supports modern cipher suites.
* **TLS 1.3**: The latest TLS protocol version, offering enhanced security, improved handshake processes, and reduced latency compared to TLS 1.2.
#### Encryption Features
Odin AI ensures that data transmission is secure through various encryption features, including automatic protocol negotiation, strong cipher suites, certificate validation, and perfect forward secrecy. These features work together to prevent man-in-the-middle attacks and ensure that your data remains confidential.
#### Configuration
For on-premise deployments, TLS/SSL can be configured using valid SSL/TLS certificates and specific environment variables. This allows for tailored security settings that meet the unique needs of your deployment.
### Encryption at Rest
Protecting sensitive data stored in databases is paramount to prevent unauthorized access. In this section, you will learn how our encryption strategies safeguard this information. We cover the use of AES-256-CBC encryption for securing credentials and secrets, as well as the importance of effective encryption key management. Understanding these practices will clarify how encryption at rest protects your data and the measures in place to ensure its security.
#### Credential Encryption
Odin AI employs AES-256-CBC encryption, which is widely recognized for its robustness against brute-force attacks. This encryption method is essential for protecting credentials and secrets, ensuring that unauthorized access to sensitive information is effectively mitigated. By using AES-256-CBC, we maintain the confidentiality and integrity of your data.
#### Sensitive Data Handling
All sensitive data, including API keys, OAuth tokens, and user credentials, is securely encrypted. This section outlines how each type of sensitive data is handled to ensure that it remains protected at all times.
### Authentication and Access Control
In this section, you will learn about the various authentication methods and access control measures employed by Odin AI. Understanding these mechanisms is vital for recognizing how we manage user access and ensure that only authorized individuals can interact with sensitive data.
#### Authentication Methods
Odin AI supports multiple authentication methods, including secure password-based authentication, OAuth 2.0, Single Sign-On (SSO), and optional Two-Factor Authentication (2FA). These methods work together to enhance security and protect user accounts.
#### Access Control
Our role-based access control (RBAC) system allows for granular permissions based on user roles, ensuring that access to sensitive information is limited to authorized personnel. This section will detail how project-level access, team permissions, and resource-level permissions contribute to a secure environment.
### Data Handling Practices
This section provides an overview of how Odin AI handles data, including secure storage, data processing, and data transmission practices. Understanding these practices is essential for recognizing how we ensure the safety and integrity of your data throughout its lifecycle.
#### Data Storage and Retention
Odin AI employs secure storage solutions, regular backups, and configurable data retention policies to safeguard your information. We also implement secure data deletion procedures to ensure that data is permanently removed when no longer needed.
#### Data Processing and Transmission
Sensitive data is processed in secure memory, and all data transmitted is done over encrypted channels. This section highlights the importance of secure data processing and transmission in maintaining data integrity and confidentiality.
### Compliance and Standards
Odin AI adheres to industry best practices and standards, including modern encryption protocols and secure coding practices. This section emphasizes our commitment to compliance and the measures taken to protect your data privacy.
### Security Monitoring
Continuous security monitoring is essential for detecting unusual activities and responding to potential threats. This section outlines our audit logging practices and monitoring systems, which provide comprehensive oversight of security-related events.
### Best Practices for Users and Administrators
This section provides actionable recommendations for users and administrators to enhance security. By following these best practices, you can contribute to a safer environment for your data and operations.
### Support and Reporting
If you discover a security vulnerability, please report it to our [support](mailto:support@getodin.ai) team. We follow responsible disclosure practices and are committed to addressing security issues promptly. This section provides information on how to contact us for security-related questions or concerns.
# Status Monitoring
Source: https://learn.getodin.ai/general/status-monitoring
Monitor live system status and track issues in real-time
Odin AI provides a real-time status page where you can monitor system health, track ongoing issues, and stay informed about platform availability and performance.
## Overview
The Odin AI status page (`status.getodin.ai`) provides:
* **Real-Time Status** - Live monitoring of all platform services
* **Incident Tracking** - Current and historical incidents
* **Service Status** - Individual service health indicators
* **Maintenance Updates** - Scheduled maintenance notifications
* **Performance Metrics** - System performance and uptime statistics
## Accessing the Status Page
### Direct Access
Visit the status page directly:
**URL:** [https://status.getodin.ai](https://status.getodin.ai)
### From Documentation
The status page can be accessed from:
* Status page link in the documentation
* Support resources
* System notifications
## Understanding the Status Page
### Service Status Indicators
The status page displays the current operational status of each service:
**Operational (Green)**
* Service is functioning normally
* No known issues affecting the service
* Full availability and performance
**Issues Detected**
* Service is experiencing problems
* Some functionality may be impacted
* Team is working on resolution
The status page clearly indicates whether each service (App, API, Database Health, Chat API) is operational or experiencing issues.
### Monitored Services
The status page monitors the following services:
**App**
* Main application service
* User interface availability
* Application functionality
**API**
* REST API endpoints
* API availability and performance
* API response times
**Database Health**
* Database connectivity
* Database performance
* Data availability
**Chat API**
* Chat service endpoints
* Real-time chat functionality
* Chat API response times
## Monitoring Live Issues
### Current Status
The status page provides real-time updates on service availability:
* **Service Status** - Current operational status of each service
* **Real-Time Updates** - Live status information
* **Service Health** - Quick view of overall platform health
### Active Incidents
When incidents occur, the status page displays:
* **Incident Information** - Details about ongoing issues
* **Affected Services** - Which services are impacted
* **Status Updates** - Real-time updates on incident resolution
* **Timeline** - Chronological updates on the incident
## Historical Incidents
### Incident History
The status page maintains a log of past incidents:
* **Past Service Disruptions** - Historical incidents and their impact
* **Incident Details** - Information about what happened during each incident
* **Resolution Information** - How incidents were resolved
* **Service Impact** - Which services were affected by each incident
### Incident Archive
Review detailed information about:
* **Incident Timeline** - When incidents occurred and their duration
* **Affected Services** - Which services were impacted
* **Resolution Status** - How and when issues were resolved
* **Lessons Learned** - Improvements made after incidents
## Scheduled Maintenance
### Upcoming Maintenance
View scheduled maintenance windows:
* **Maintenance Window** - Date and time of maintenance
* **Affected Services** - Services that will be unavailable
* **Expected Duration** - How long maintenance will take
* **Impact** - What functionality will be affected
### Maintenance Notifications
Stay informed about:
* Maintenance announcements
* Schedule changes
* Completion updates
* Post-maintenance status
## Performance Metrics
### Uptime Statistics
View platform uptime metrics:
* **30-Day Uptime** - Uptime percentages for each service over the past 30 days
* **Service-Specific Uptime** - Individual service availability metrics
* **Reliability Assessment** - Evaluate service reliability based on uptime data
* **Historical Trends** - Track uptime trends over time
### Response Times
Monitor system performance:
* **API Response Times** - Response time metrics for the API service
* **Chat API Response Times** - Response time metrics for the Chat API
* **Performance Insights** - Understand service performance levels
* **Performance Monitoring** - Track response time trends
## Best Practices
### Regular Monitoring
1. **Check Status Page** - Regularly check for active incidents
2. **Monitor During Critical Operations** - Check status before important tasks
3. **Review Historical Data** - Understand past issues and patterns
### Incident Response
1. **Check Status First** - Verify if issue is platform-wide
2. **Review Incident Updates** - Check for known issues and workarounds
3. **Monitor Resolution** - Track incident resolution progress
4. **Report Issues** - Report issues not listed on status page
### Integration
1. **Monitor Integration** - Integrate status page into your monitoring
2. **Automated Alerts** - Set up automated alerts for incidents
3. **Dashboard Integration** - Add status widgets to dashboards
4. **API Integration** - Use status API for programmatic monitoring
## Status API
### API Access
Access status information programmatically:
**API Endpoint:** `https://status.getodin.ai/api`
### Available Endpoints
* **Status Summary** - Overall platform status
* **Service Status** - Individual service status
* **Active Incidents** - Current incidents
* **Historical Incidents** - Past incidents
* **Scheduled Maintenance** - Upcoming maintenance
### API Documentation
For detailed API documentation, visit the status page API section.
## Troubleshooting
### Status Page Not Loading
**Problem:** Status page is not accessible
**Solutions:**
1. Check your internet connection
2. Try accessing from a different network
3. Clear browser cache
4. Try a different browser
5. Check if status page itself is experiencing issues
### Not Receiving Notifications
**Problem:** Not receiving status update emails
**Solutions:**
1. Check spam/junk folder
2. Verify email subscription is active
3. Check email notification preferences
4. Re-subscribe if needed
5. Verify email address is correct
### Status Shows Operational But Issues Persist
**Problem:** Status shows green but you're experiencing issues
**Solutions:**
1. Check if issue is specific to your account
2. Review recent incident updates
3. Check for regional issues
4. Contact support with specific error details
5. Check service-specific status indicators
## Related Resources
* **Support** - Get help with platform issues
* **Security & Data Practices** - Learn about platform security
* **Platform Admin** - Administrative documentation
Learn about platform security and data practices
Contact support for assistance
## Contact
For questions about status monitoring or to report issues not listed on the status page, contact [support@getodin.ai](mailto:support@getodin.ai).
# Create Your First AI Agent
Source: https://learn.getodin.ai/getting-started/create-first-agent
Create a project in Odin AI Platform and configure your first custom AI Agent with models, toolkits, and prompts.
Use this guide after you are familiar with **[Welcome to Odin AI Platform](/)**. Here you will create a **project**, then set up a **custom agent** with an LLM, toolkits, and a prompt so you can try it in **Chat**.
## Start a New Project
[Sign in to Odin AI Platform](https://app.getodin.ai/?signup=true) to get started!
1. Select Create New Project.
2. Enter a name for your Project.
3. Select the Create button.
Your first project is up and running with three built-in chat agents available by default. In the next section you’ll build your first AI Agent just as quickly and easily!
## Create a Custom Agent
The Custom Agents Settings section of the Agents page is where you create and keep your Custom Agents. Below are the instructions to create your own Custom Agent.
1. Select **+ Create Custom Agent**.
2. In the **Agent Name** field, give your Agent a name.
3. Choose one of the many popular LLM models for your Agent to use.
4. Update the **Personality Prompt** to define how your Agent will operate and **save your changes.**
5. Choose one or more **Toolkits** from the Toolkits page on the left navigation menu. *Note that some Toolkits, such as Gmail and Jira require additional configuration details, such as access credentials, to be connected.*
6. After your Toolkits are added and configured, **save your changes** and select **General** to go back to the Agent’s prompt.
7. Update the prompt by typing the ‘**@**’ **symbol**. This opens a menu where you can select a **Tool** from your available **Toolkits** and tell your Agent how to use it.
8. **Save your changes** and go to the Chat page to test your Agent!
Once your AI Agent is running, you can set it as the Default Agent for all Chats on the Agents page.
## Agent Templates
The **Agents** page includes **23 pre-built Agent Templates** organized by executive role — **CFO**, **CPO**, **CLO**, **CHRO**, and **CIO**. Use the filter tabs to browse by category or view all templates at once.
Examples by role:
* **CFO:** Budget Planning Assistant, Invoice Processing Agent, Financial Reporting Assistant
* **CPO:** Spend Analysis Agent, Vendor Onboarding & Due Diligence Agent
* **CLO:** Contract Review AI, NDA Review Agent, Regulatory Compliance Agent
* **CHRO:** Employee Assistant, Resume Ranking Assistant
* **CIO:** Extraction Assistant, IT Ops & Incident Resolution, Cloud Cost Optimizer
To add a template to your project, select it, choose the AI model you want it to use, then click **Create**. Each template includes a pre-configured personality prompt and toolkits — customize both in **General Settings** after creation.
For the full template catalog, deployment steps, and personality prompt guidance, see **[Agent Templates](/agents/agent-templates)**.
> **Enterprise / firewall note:** If your organization restricts traffic, your IT team may need to allowlist Odin AI Platform’s static egress IP addresses (when Odin AI Platform connects to your systems) and ensure users can reach Odin AI Platform over HTTPS. For cloud Odin AI Platform regions and IPs—and how to validate connectivity—see **[Overview](/offerings/cloud/overview#regional-hosting-and-static-egress-ip-addresses)**.
# Overview
Source: https://learn.getodin.ai/knowledge-base/connectors
Connect and sync data from third-party applications and databases
The **Connectors** tab in Knowledge Base Settings allows you to connect and sync data from third-party applications and databases. Connectors automatically fetch and sync content from external sources into your knowledge base.
## Overview
Connectors enable integration with:
* **Cloud Storage** - Google Drive, SharePoint
* **Documentation Platforms** - Confluence, Zoomin
* **Databases** - MySQL, Microsoft SQL Server, Oracle, Generic SQL
* **Business Systems** - Odoo
## Accessing Connectors
1. Navigate to **Knowledge Base** in the sidebar
2. Go to the **KB Data** section
3. Click the **Settings** icon (gear icon)
4. Select the **Connectors** tab
## Available Connectors
### Google Drive
Connect your Google Drive account to sync files and folders.
**Features:**
* Sync files and folders from Google Drive
* Automatic updates when files change
* Support for Google Docs, Sheets, Slides, PDFs, and more
* Folder-level sync configuration
Learn how to set up Google Drive connector
### SharePoint
Connect your SharePoint site to sync documents and files.
**Features:**
* Sync documents from SharePoint sites
* Support for Office documents
* Automatic sync on schedule
* Site-level and folder-level configuration
### Confluence
Connect your Confluence workspace to sync pages and spaces.
**Features:**
* Sync Confluence pages and spaces
* Support for Confluence Cloud and On-Premise
* Automatic updates when pages change
* Space-level sync configuration
Learn how to set up Confluence connector
### Zoomin
Connect your Zoomin documentation site to sync content.
**Features:**
* Sync documentation from Zoomin
* Automatic content updates
* Support for Zoomin documentation structure
### Odoo
Connect your Odoo instance to sync business data and documents.
**Features:**
* Sync documents from Odoo
* Support for Odoo modules
* Automatic sync configuration
### MySQL
Connect your MySQL database to sync data and documents.
**Features:**
* Query and sync data from MySQL databases
* Support for custom SQL queries
* Automatic sync on schedule
* Table-level configuration
### Microsoft SQL Server
Connect your SQL Server database to sync data and documents.
**Features:**
* Query and sync data from SQL Server
* Support for custom SQL queries
* Automatic sync configuration
* Database and table-level access
### Oracle
Connect your Oracle database to sync data and documents.
**Features:**
* Query and sync data from Oracle databases
* Support for custom SQL queries
* Automatic sync configuration
* Schema-level access
### Generic SQL
Connect any SQL-compatible database to sync data.
**Features:**
* Support for any SQL-compatible database
* Custom connection configuration
* Flexible query support
* Automatic sync on schedule
## Managing Connectors
### Adding a Connector
1. Go to the **Connectors** tab
2. Find the connector you want to add
3. Click **Connect** or **Add Connection**
4. Follow the authentication flow
5. Configure sync settings
6. Save the connection
### Viewing Connected Connectors
Connected connectors are displayed with:
* Connection name or account
* Last sync time
* Sync status
* Connection type
### Editing Connector Settings
1. Find the connected connector
2. Click **Settings** or **Configure**
3. Update sync configuration
4. Modify sync schedule if needed
5. Save changes
### Disconnecting a Connector
1. Find the connected connector
2. Click **Disconnect** or **Remove**
3. Confirm the disconnection
4. Connection is removed and syncing stops
Disconnecting a connector will stop syncing and may remove synced content from your knowledge base.
## Sync Configuration
### Manual Sync
Manually trigger a sync for a specific connector:
1. Find the connector
2. Click **Sync Now** or **Manual Sync**
3. Wait for sync to complete
4. Check sync status
### Automatic Sync
Configure automatic syncing:
1. Go to **Sync & Schedule** tab
2. Configure sync schedule for connectors
3. Set sync frequency
4. Save schedule
Learn about sync scheduling
## Best Practices
### Connector Setup
1. **Use Specific Folders** - Connect specific folders rather than entire accounts
2. **Set Appropriate Schedules** - Balance freshness with system load
3. **Monitor Sync Status** - Regularly check sync success/failures
4. **Test Connections** - Verify connections work before relying on them
### Security
1. **Use Service Accounts** - Prefer service accounts over personal accounts
2. **Limit Permissions** - Grant only necessary permissions
3. **Regular Audits** - Review connected accounts periodically
4. **Secure Credentials** - Never share connection credentials
### Performance
1. **Selective Sync** - Sync only necessary content
2. **Schedule Wisely** - Avoid peak usage times
3. **Monitor Resources** - Watch for performance impacts
4. **Optimize Queries** - For database connectors, use efficient queries
## Troubleshooting
### Connection Failures
**Problem:** Connector fails to connect
**Solutions:**
1. Verify credentials are correct
2. Check network connectivity
3. Ensure permissions are granted
4. Review connector-specific requirements
### Sync Failures
**Problem:** Content not syncing
**Solutions:**
1. Check sync schedule configuration
2. Verify connector is still connected
3. Review sync logs for errors
4. Try manual sync to test connection
### Missing Content
**Problem:** Expected content not appearing
**Solutions:**
1. Verify sync completed successfully
2. Check folder/query configuration
3. Ensure content matches sync criteria
4. Review sync filters and settings
## Related Features
* **Settings** - Configure chunking and processing
* **Crawlers** - Automatically fetch web content
* **Sync & Schedule** - Manage sync schedules
Learn about knowledge base settings
Learn about web crawlers
Learn about sync scheduling
# Confluence
Source: https://learn.getodin.ai/knowledge-base/kb-connectors-confluence
Sync Confluence Pages with the Knowledge Base
With the Confluence connector, you can seamlessly bring pages, spaces, and documentation into Odin AI’s Knowledge Base. Once connected, Odin AI keeps your Confluence content synced, making it fully searchable and accessible for AI agents. This integration ensures that important knowledge stored in Confluence is always up to date, empowering your team to retrieve answers, surface insights, and build workflows directly from your existing Confluence content.
## Connecting to Confluence
Follow these steps to set up a Google Drive connection to the Knowledge Base:
1. In your Odin AI project, navigate to the **Knowledge Base**.
2. At the top-right corner, click the **gear** icon to access the Knowledge Base Settings.
3. Navigate to the **Connectors** tab.
4. Find the *Confluence* option and click **Connect**.
5. A pop-up appears. Select the **Connection Type** based on the type of deployment:
* **Confluence Cloud** – If you select this option, you'll be redirected to Atlassian to authenticate into your account and provide all the necessary permissions for Odin AI to access your Confluence account.
* **Confluence On-Premise** – If you select this option, you'll be required to the **Confluence Server URL** and **Bearer Token**.
6. Once connected, you should see your Confluence account listed under the Confluence connection. Now you're ready to sync pages from Confluence into the Knowledge Base!
## Adding Pages from Confluence
1. Navigate to **Knowledge Base** > **KB Data**.
2. Click **+ New** and select **URL Upload**.
3. In the pop-up that appears, paste the URL of the Confluence space or page you want to add to the Knowledge Base.
4. After you paste the URL, the **Extract Subpages from URL** option will appear underneath it. This option allows us to extract the nested pages in the provided link. Disabling it results in only extracting only the provided page. Once files are added, you'll receive the below confirmation message. You can find the Confluence pages with their **page ID** as the document name.
# Google Drive
Source: https://learn.getodin.ai/knowledge-base/kb-connectors-google-drive
Sync Google Drive Files with the Knowledge Base
With the **Google Drive connector**, you can seamlessly bring documents, spreadsheets, presentations, and other files into Odin AI’s Knowledge Base. Once connected, Odin AI automatically syncs content from your Google Drive, making it searchable and accessible for your AI agents. This integration ensures that your most up-to-date files are always available, empowering your team to retrieve insights, answer questions, and build AI-driven workflows directly from your existing Google Drive data.
## Connecting to Google Drive
Follow these steps to set up a Google Drive connection to the Knowledge Base:
1. In your Odin AI project, navigate to the **Knowledge Base**.
2. At the top-right corner, click the **gear** icon to access the Knowledge Base Settings.
3. Navigate to the **Connectors** tab.
4. Find the *Google Drive* option and click **Connect**. You'll be redirected to Google's login page.
5. Authenticate into your Google account and provide all the necessary permissions for Odin AI to access your Google account.
6. Once connected, you should see your Google account listed under the Google Drive connection. Now you're ready to sync files from Google Drive into the Knowledge Base!
## Adding Data from Google Drive
1. Navigate to **Knowledge Base** > **KB Data**.
2. Click **+ New** and select **URL Upload**.
3. In the pop-up that appears, paste the URL of the Google Drive file or folder you want to add to the Knowledge Base and click **Add URL**.
Once files are added, you'll receive the following confirmation message:
# Web Crawler
Source: https://learn.getodin.ai/knowledge-base/kb-crawler
Index Web Pages for Smart AI Search
With **Web Crawlers**, you can gather information from a website automatically using the website's domain URL. Any discoverable page within the domain will be automatically added to the Knowledge Base. For websites where content is frequently updated, you can schedule periodic crawls to add the latest information and content from any newly added pages to the Knowledge Base. Additionally, you can specify certain keywords or paths within the crawl pattern to extract only specific sections of your website.
## Crawling Patterns
**Patterns** enable quick and easy restrictions on pages crawled or processes based on simple URL string matches. For instance, to crawl only pages wihin the "sports" category at [http://www.example.com/sports/heres-a-sports-article.html](http://www.example.com/sports/heres-a-sports-article.html), you can specify a crawl pattern of `/sports/` (including slashes ensures precision and avoids matching a "sports" string elsewhere in the URL).
By using a crawl pattern, you can limit crawling to a particular subdomain. For example, on a crawl starting at a specific domain, you can enter a crawl pattern to prevent crawl from unwanted links.
In a Web Crawl configuration, you can enter multiple patterns to match multiple strings by placing each individual pattern on a new line.
These are the available crawling patterns:
Use the caret character (`^`) to restrict pattern matches to the beginning of a URL. For example, a processing pattern of `^https://example.com` will limit processing only to pages which URLs begin with `https://example.com`.
Use the exclamation point (`!`) for a "negative match" to explicitly exclude pages from being crawled or processed.
With multiple patterns, negative matches will override other crawl patterns (except for Regex, those would take precedence over any other pattern).
For precise control over your crawling or processing URL matches, you can create a regular expression (regex) to exclusively crawl or process URLs that match your defined expression. For example, to process pages at `https://example.com/` under the "`/crawl`" path and containing the term "regex", you could use a processing regex similar to: `\/crawl.*?regex`.
The crawlbot employs a custom regular expression engine for optimal performance while evaluating pages. In terms of character class syntax, commmonly used in Crawlbot parsing, the crawlbot supports all ASCII processing characters and most Perl/Tcl shortcuts.
Crawling and processing regex cannot be used simultaneously with other crawling patterns. If both are provided, regex will override other crawl patterns.
The crawl allows for limiting processed pages based on HTML processing patterns, which will only examine the raw source and does not execute JavaScript/AJAX during crawl time. However, the downside of this option is the crawl speed.
If you'd like a faster crawling speed, you should use regex crawling and processing.
## When to Use a Crawler
The crawler is designed for extracting structured, high-value information from the web. It works best in scenarios where data is publicly available and regularly updated.
### Best Use Cases
* **News and Media** – Extract articles from sites like BBC News
* **Financial Data** – Collect market insights from stock sites such as NASDAQ
* **E-Commerce** – Gather product listings, reviews, and pricing from marketplaces
* **Knowledge Resources** – Capture blog posts, forum discussions, or FAQ content to enrich your Knowledge Base.
### When Not to Use the Crawler
Avoid crawling in these situations to prevent errors or compliance issues:
* **Authentication Required** – Websites that require login credentials (e.g., LinkedIn).
* **Highly Dynamic Dashboards** – Real-time dashboards (such as live stock tickers) may not yield complete results.
* **Excessive Site Load** – Respect each site's usage policies–always review the `robot.txt` file before crawling.
## Create a New Crawler
1. In your Odin AI project, navigate to the **Knowledge Base**.
2. In the Knowledge Base, click the **gear** icon at the top-right corner.
3. Go to the **Crawlers** tab.
4. Click **+ Create New**.
5. In the **Input** section:
**a**. Enter a **name** for your crawler.
**b**. Provide the **Seed URL**, the link to the website you want to crawl. This is the initial link that is accessed by the crawler. From there, the crawler explores the web pages and links available within the website.
6. In the **Crawler Settings** section:
* **Limit to Root Domain** – This sets the crawler to focus solely on the root domain, streamlining relevant information extraction.
* **Download Files** – Enable this option with you want the crawler to download and process files found during crawling.
* **Max Pages to Crawl** – Set the maximum number of pages to crawl, to optimize resource usage and efficiency.
* **Max Depth** – Set the maximum depth to crawl from the seed URL (i.e., how many links deep to follow).
* **Crawl Strategy** – Choose how the crawler prioritizes which pages to visit first.
* **Best First** – If you select this option, you need to configure the keywords the crawler should use to find these pages and the weight of these keywords.
* **Keywords for Best First** – Pages containing the keywords configured in this text box will be crawled first. Enter one keyword per line.
* **Keywords Weight** – Configure the keyword weight for keyword matching; the higher the value, the more it prioritizes keyword matching.
* **Breadth First** – This method prioritizes visiting all directly linked pages from a current page before delving deeper.
* **Depth First** – This method prioritizes exploring as deeply as possible along a single path of links before backtracking and exploring other paths.
* **Limit to Domains** – Restrict the crawler to specific domains instead of crawling all subdomains within the root domain. Enter one domain per line or leave blank to crawl all subdomains.
* **Limit to Patterns** – Enter the crawling patterns you'd like the crawler to use. Enter one crawling pattern per line. If you're using multiple crawling patterns, this is the hierarchy: 1. Regex 2. Negative Matches 3. All other patterns.
7. In the **Scheduling** section, define the frequency and time for scheduled crawls:
* **Crawling Enabled** – Enable this option to set the crawling schedule.
* **Repeat Every n Days** – Set the number for days in which you'd like the crawl to run. For example:
* **Daily** = `1`
* **Weekly** = `7`
* **Bi-weekly** = `14`
* **Monthly** = `30`
* **Next Schedule** – Depending on the number of days you enter, you'll see the next crawl date.
8. Once you're done configuring your web crawl, click **Crawl Now** to start the first crawl. You'll be redirected to the new crawler's configuration page with the following tabs:
* **Overview** – This is where you can see the crawl request information and status.
* **Settings** – This is where you can edit the crawler's settings. You can edit these settings even after a crawl has ran.
* **Crawled Report** – This tab provides real-time updates on the pages being crawled.
Now your crawler is configured and running its first crawl!
## Best Practices
Following these best practices ensures your crawler runs efficiently, avoids unnecessary duplication, and brings only the most relevant data into your Knowledge Base.
### 1. Use Clear and Concise Seed URLs
Choose URLs that point directly to the section of a website you want to extract..
* **Good Example**: `https://www.example.com/news` (targets only the "news" section)
* **Bad Example**: `https://www.example.com?user=1234` (Using dynamic parameters can cause errors or redundant crawling)
Always ensure:
* the URL is accessible and relevant to the data you want to extract.
* use subpages when you want to restrict crawling to a specific section.
### 2. Restrict to Domains and Subdomains
Keep your crawl focused to avoid pulling in unnecessary or unrelated data.
* **Limit to Root Domain** – Crawling `example.com`captures only that domain and ignores external links (e.g., otherwebsite.com).
* **Limit to Domain** – Crawling `blog.example.com` won't include other subdomains like `shop.example.com`.
#### Example
Crawling `https://www.bbc.com`, with **Limit to Root Domain** enabled ensures only BBC content is included–not external news sources linked on the site.
### 3. Use Crawling and Processing Patterns
Patterns let you fine-tune what the crawler fetches and processes.
* **Crawling Patterns** – Define which URLs should be crawled.
* **Processing Patterns** – Specify which content should be extracted into your Knowledge Base.
Both use a simplified regex syntax:
* **Implied Wildcard** – Entering `products` matches any URL containing "products."
* **Negation(`!`)** – `!products` matches any URL *without* "products."
* **Starts with (`^`)** – `^https://example.com/products/` matches URLs beginning with that path.
* **Ends with(`$`)** – `products/$` matches URLs ending in "products."
#### Example
* **Crawling Pattern** – `https://example.com/products/*` > crawls all product pages.
* **Processing Pattern** – `https://example.com/products/*reviews` > extracts only reviews from product pages.
### 4. Enable Scheduled Crawls (When Needed)
For dynamic websites, schedule crawls to keep your Knowledge Base up to date.
#### Example
Track stock prices on `https://www.nasdaq.com` by enabling daily crawls.
### 5. Use Sitemaps for efficiency
If a site offers a sitemap (e.g., \`[https://example.com/sitemap.xml](https://example.com/sitemap.xml)), leverage it to guide the crawler and ensure complete coverage.
#### Example
A news website with a sitemap listing all recent articles guarantees no articles are missed.
# Overview
Source: https://learn.getodin.ai/knowledge-base/kb-overview
Centralized Repository for Your AI Agents
The Odin AI **Knowledge Base** is the centralized repository where you can upload, store, and search through information from files and links. The Knowledge Base supports fetching information through via file uploads, web crawls, and integrations with third-party applications like Google Drive, SharePoint, Confluence, Zoomin, and directly to your database with MySQL, Microsoft SQL, Oracle, and Generic SQL.
# Navigation
The Knowledge Base can be accessed from the left-hand sidebar by clicking on **Knowledge Base**.
The Knowledge Base is organized into four main sections. Navigate through the following accordions to learn more about each section.
**KB Data** acts as the main repository where all retrieved information is stored. You can view, manage, and organize your knowledge base data here. This section includes uploaded documents, web crawls, and data fetched from third-party integrations.
Let's explore the key features of the KB Data section:
* **Main Directory**: The main directory displays all the knowledge base data in a structured format. You can see the list of documents, their types, and other relevant details.
1. **+New**: Click this button to add new knowledge base data. You can upload files or folders, initiate web crawls, upload data from a URL, or create a document.
2. **Search Bar**: Use the search bar to quickly find specific documents or information within your knowledge base.
3. **Storage & Word Count**: This section shows the total storage used and the word count of your knowledge base data.
4. **Settings**: Click the settings icon to configure how your knowledge base processes and embeds documents, which affect how content is chunked, embedded, and retrieved. You can also manage the Connectors (i.e., third-party integrations), crawlers, and the sync & schedule of the Knowledge Base with the connected third-party apps from this section.
5. **Download All**: Click this button to download all the knowledge base data as a ZIP file.
6. **File Filter**: Use the file filter to view documents by type: PDF, Word, Excel, PowerPoint, Text, CSV, and more.
7. **Create Folder**: Click this button to create a new folder to organize your knowledge base data.
8. **File List**: This section displays the list of files and folders in your knowledge base. You can click on a file to view its content and metadata, and you can right-click on a file or folder to access additional options such as:
* **Create Folder**: Create a new folder within the current directory.
* **Chat with Document**: Open a chat interface to interact with the content of the selected document.
* **Delete**: Remove the selected file or folder from the knowledge base.
* **Sync**: Manually sync the selected file or folder to reprocess the content in the file.
* **Attach Data Type**: This option allows you to attach a data schema to the selected file, enabling structured data extraction and querying capabilities.
* **Download**: Download the selected file to your local device.
* **Knowledge Base Settings**: Here are the key settings you can configure:
1. **Chunking Strategy**: Configure how documents will be divided into chunks for processing. Select between these options:
* **Sentence Chunking**: Divides text into chunks based on sentence boundaries, ensuring that each chunk contains complete sentences. This option uses the sentence tokenizer for natural language boundaries.
* **Semantinc Chunking**: Divides text into semantically meaningful chunks, which may not align with sentence boundaries. This option uses the semantic tokenizer for natural language boundaries.
* **Chunk Configuration**: This configuration appears when you select *Sentence Chunking*. Here you can configure the chunk size and overlap for sentence-based chunking.
* **Chunk Size**: Specify the maximum of each chunk in tokens/characters. The default is `64`. The recommendation is between `64` to `512` tokens for most use cases. Larger chunks preserve context but may be less precise for retrieval.
* **Chunk Overlap**: Specify the number of overlapping words between consecutive chunks. This helps maintain context across chunk boundaries. The default is `16`. The recommendation is between 10 to 20% of the set chunk size.
* **Chunk Enhancement Settings**: Enable this setting to enhance chunking with additional context for better retrieval. When enabled, you can select an LLM model for chunk enrichment and content analysis.
2. **Connectors**: Manage third-party integrations like Google Drive, SharePoint, Confluence, and Zoomin.
3. **Crawlers**: Create new web crawlers to fetch data from your website's domain URL. Any page the crawler can discover within the website will be automatically crawled and added to the Knowledge Base. You can also set a sync schedule for automatic crawling that adds the latest information from any newly added pages.
4. **Sync & Schedule**: Manage the sync and schedule settings for your Knowledge Base. Here you can view and manage the sync schedules for your third-party integrations, as well as run a manual sync to fetch the latest data.
**Templates** can be pairs of Q\&As, response templates and examples you can pre-define to help guide your AI agents in generating more accurate and contextually relevant responses using these templates, rather than searching for the answer in full documents, making resposes faster. You can create, manage, and organize templates to suit your specific use cases. For FAQ-style templates, you can also associate a file from the Knowledge Base to provide additional context for the AI agent.
Let's explore the key features of the Templates section:
1. **Search Bar**: Use the search bar to quickly find specific templates within your knowledge base.
2. **Add Template**: Click this button to create a new template. You can define the type (FAQ, Template, or Example), content, and associate a file from the Knowledge Base for additional context.
In the **Documents** section, you can create new text-based files directly within the Knowledge Base without needing to upload them. This feature enables seamless documentation, editing, and integration with AI-driven knowledge retrieval.
Let's explore the key features of the Documents section:
1. **Search Bar**: Use the search bar to quickly find specific documents.
2. **Filter**: Use the filter to view documents by: `Last Updated`, `Created Date`, `Title`, or `Word Count`.
3. **Create New Document**: Click this button to create a new document.
## Smart Tables
**Smart Tables** are dynamic, spreadsheet-like tables built to store, organize, and extract structured data – especially from unstructured sources like PDFs, DOCX, and scanned documents. They're more than just tables; they are intelligent workspaces where you can upload documents, extract key data using AI, and structure the data in a way that makes decision-making and automation seamless. The applications are endless!
Let's explore the key features of the Smart Tables section:
1. **Navigation** – On the left hand side, we have the **+ New Smart Table** button and the list of Smart Tables you've created before. If you hover over the button, it will show a few options to create a new table:
* **Create Empty Table**
* **Import from File**
* **Create from Template**
2. **Table tab** – This is the main page where you can see all the data in your Smart Table with a spreadsheet-style view. Here you can see all your rows and fields clearly; ideal for organizing and editing data directly.
3. **Review tab** – This view is designed for the human-in-the-loop process, which is useful when validating or moderating extracted data before approval.
4. **Dashboard** – Here you can create a dashboard to visualize your data with charts, counts, and statistics.
5. **Automation** – In Smart Tables, you can create columns with a task to calculate a value or even use an AI agent or LLM to perform an evaluation or find information based on the information in your table. The Automations tab is where you configure column execution order and history tracking for automated computations of those columns.
6. **Extraction** – This tab is the powerhouse for AI-driven document extraction. Here you can configure what data to pull, map it to your table columns, and configure how the data is extracted.
[Learn more about Smart Tables](/knowledge-base/smart-tables)
## Document Viewing Interface
When you click on a document in the Knowledge Base, it opens the document viewing interface. Here, you can read and manage the document's metadata and related information. The interface is divided into two main sections: the document content area and the metadata sidebar.
1. **Document Content Area**: This is where the main content of the document is displayed. At the top of the screen, there's buttons to copy the file name or download the file. **There are three tabs in this area**:
**a**. **View**: Displays the content of the file as uploaded.
**b**. **Content**: Displays the text content extracted from the file. This is the content that the AI agent will use for retrieval and answering questions.
**c**. **Chunks**: Displays the individual chunks of text created based on the chunking strategy configured in the Knowledge Base settings. Each chunk is a smaller segment of the document that can be independently retrieved by the AI agent.
2. **Details Sidebar**: This sidebar provides additional information and options, including:
**d**. **File Details**: Displays information about the file, such as the file name, upload date, upload user, file size, file type, and characters count.
**e**. **Document Data Filter**: Allows you to assign a Smart Table to the document for structured data extraction, based on the schema of the Smart Table.
**f**. **Custom Metadata**: Allows you to add custom metadata fields to the document for improved document categorization and AI-based retrieval, such as: Author name, Version, Pages, Resolution, Dimensions, Content Creator, Keywords, or any other relevant information.
**g**. **Access Tags**: Allows you to add access tags to the document to control who can view or interact with the document. You can create new tags from the **Super Admin Dashboard**.
3. **Associated Questions**: The Associated Questions tab allows you to add related commonly asked questions that can be answered by the content of the document. This helps improve the AI agent's ability to provide accurate and relevant answers based on the document's content.
## Troubleshooting
This section covers common issues users encounter with the Knowledge Base and Level 1 (L1) diagnostic steps to help identify and resolve them.
### Knowledge Base Not Updating
**Symptoms:**
* New documents uploaded but not appearing in search results
* Changes to existing documents not reflected in AI responses
* Connector data not syncing
**L1 Diagnostic Steps:**
1. **Check Sync Status**
* Navigate to **Settings** > **Sync & Schedule**
* Verify if automatic sync is enabled and check the last sync timestamp
* Look for any error messages or failed sync attempts
2. **Verify Document Processing**
* Open the document in the Knowledge Base
* Check the **Content** tab to ensure text was extracted correctly
* Review the **Chunks** tab to verify chunking was completed
* Look for processing errors in the document metadata
3. **Check Embedding Model Consistency**
* Go to **Settings** > **Settings** tab
* Verify the embedding model used for indexing matches the one used for querying
* Ensure the embedding model hasn't been changed after documents were indexed
4. **Manual Sync**
* Right-click on the document or folder
* Select **Sync** to manually trigger reprocessing
* Wait for the sync to complete and check if the issue is resolved
5. **Review Connector Status**
* If using connectors (Google Drive, SharePoint, etc.), check connector status in **Settings** > **Connectors**
* Verify authentication is still valid
* Check for any connection errors or rate limit warnings
### Search Mismatch
**Symptoms:**
* Search queries not returning relevant documents
* AI agent not finding information that exists in the Knowledge Base
* Incorrect or irrelevant search results
**L1 Diagnostic Steps:**
1. **Verify Document Content**
* Open the document and check the **Content** tab
* Ensure the text content is accurate and complete
* Check if the document was processed correctly (no extraction errors)
2. **Check Chunking Configuration**
* Review **Settings** > **Settings** > **Chunking Strategy**
* Verify chunk size and overlap settings are appropriate for your content
* Consider if chunk size is too large (may miss specific information) or too small (may lose context)
3. **Review Embedding Model**
* Confirm the embedding model in use is suitable for your content type
* Check if the model supports the language of your documents
* Verify embedding model consistency between indexing and querying
4. **Test Search Query**
* Try different phrasings of the same query
* Use keywords that appear in the document content
* Check if the search works better with exact phrases vs. keywords
5. **Check Document Metadata**
* Review custom metadata and tags assigned to documents
* Ensure documents are properly categorized and tagged
* Verify access tags aren't restricting visibility
6. **Review Chunks**
* Open the **Chunks** tab for the document
* Verify chunks contain the expected information
* Check if relevant information is split across multiple chunks
### Data Not Visible
**Symptoms:**
* Documents not appearing in the Knowledge Base list
* Files uploaded but not showing up
* Connector data not visible after sync
**L1 Diagnostic Steps:**
1. **Check File Filters**
* Review the file type filter at the top of the KB Data page
* Ensure the filter isn't excluding your document type
* Try clearing all filters to see all documents
2. **Verify Upload Status**
* Check if the upload completed successfully
* Look for any error messages during upload
* Verify file size and format are supported
3. **Review Folder Structure**
* Check if documents are in a subfolder
* Navigate through folders to locate the document
* Use the search bar to find the document by name
4. **Check Access Permissions**
* Verify you have access to view the document
* Check if access tags are restricting visibility
* Ensure you're logged in with the correct account
5. **Review Processing Status**
* Documents may still be processing after upload
* Check the document status in the file list
* Wait a few minutes and refresh if processing is in progress
6. **Verify Connector Configuration**
* If using connectors, check connector settings
* Verify the correct folders/files are selected for sync
* Check if sync schedule is configured correctly
### Additional Troubleshooting Tips
* **Clear Browser Cache**: Sometimes UI issues can be resolved by clearing browser cache
* **Check Browser Console**: Open browser developer tools (F12) and check for JavaScript errors
* **Verify Network Connection**: Ensure stable internet connection for sync operations
* **Review System Logs**: Check Odin AI system logs for any backend errors (requires admin access)
* **Contact Support**: If issues persist after L1 diagnostics, contact [support@getodin.ai](mailto:support@getodin.ai) with:
* Description of the issue
* Steps taken to diagnose
* Screenshots of error messages
* Document/file names affected
# Settings
Source: https://learn.getodin.ai/knowledge-base/settings
Configure chunking strategies, chunk configuration, and chunk enrichment settings
The **Settings** tab in Knowledge Base Settings allows you to configure how your documents are processed and chunked. These settings control how content is divided into chunks, which affects how the AI agent retrieves and uses information from your knowledge base.
## Overview
The Settings tab includes:
* **Chunking Strategy** - How documents are split into chunks
* **Chunk Configuration** - Size and overlap settings for chunks
* **Chunk Enhancement Settings** - Optional AI-powered chunk enrichment
## Accessing Settings
1. Navigate to **Knowledge Base** in the sidebar
2. Go to the **KB Data** section
3. Click the **Settings** icon (gear icon)
4. Select the **Settings** tab
## Chunking Strategy
The chunking strategy determines how documents are divided into smaller, processable chunks for embedding and retrieval.
### Sentence Chunking
Divides text into chunks based on sentence boundaries, ensuring that each chunk contains complete sentences.
**Best For:**
* Natural language documents
* Preserving sentence context
* General-purpose content
**Configuration:**
* Uses sentence tokenizer for natural language boundaries
* Ensures chunks contain complete sentences
* Maintains readability and context
### Semantic Chunking
Divides text into semantically meaningful chunks, which may not align with sentence boundaries.
**Best For:**
* Complex documents
* Preserving semantic context
* Advanced retrieval needs
**Configuration:**
* Automatically determines chunk boundaries
* Preserves semantic meaning
* May not align with sentence boundaries
## Chunk Configuration
Chunk configuration appears when you select **Sentence Chunking**. This allows you to fine-tune how documents are divided.
### Chunk Size
The maximum size of each chunk in tokens/characters.
**Default:** 64
**Recommendation:** 64-512 tokens for most use cases
**Considerations:**
* Larger chunks preserve more context but may be less precise for retrieval
* Smaller chunks are more precise but may lose context
* Balance between context preservation and retrieval accuracy
**How to Configure:**
1. Select **Sentence Chunking** as your chunking strategy
2. Enter the desired chunk size in the **Chunk Size** field
3. Value must be at least 1
### Chunk Overlap
The number of overlapping tokens/characters between adjacent chunks. This helps maintain context across chunk boundaries.
**Default:** 6
**Recommendation:** 10-20% of the set chunk size
**Considerations:**
* Overlap ensures important information isn't split across chunk boundaries
* Too much overlap wastes storage and processing
* Too little overlap may lose context between chunks
**How to Configure:**
1. Select **Sentence Chunking** as your chunking strategy
2. Enter the desired overlap in the **Chunk Overlap** field
3. Value must be non-negative and less than chunk size
**Example:**
* If chunk size is 64, recommended overlap is 6-13 tokens
* If chunk size is 512, recommended overlap is 51-102 tokens
## Chunk Enhancement Settings
Chunk enhancement uses AI to enhance chunks with additional context and metadata for better retrieval.
### Chunk Enrichment
Enable chunk enrichment to enhance chunks with additional context for better retrieval.
**Benefits:**
* Better search accuracy
* Improved context understanding
* Enhanced retrieval quality
**How to Enable:**
1. Toggle the **Chunk Enrichment** switch to enable
2. Select an **LLM Model** for enrichment (required when enabled)
3. Save settings
**Considerations:**
* Increases processing time
* Requires LLM model selection
* Adds computational cost
* Improves search quality
### LLM Model Selection
When chunk enrichment is enabled, you must select an LLM model for chunk enrichment and content analysis.
**Available Models:**
* All predefined models (GPT-4o, Claude, Gemini, etc.)
* Custom models configured in your project
**How to Select:**
1. Enable **Chunk Enrichment**
2. Click the **LLM Model** dropdown
3. Select the desired model from the list
4. Save settings
**Model Selection Tips:**
* Use models with strong reasoning capabilities for better enrichment
* Consider processing time vs. quality trade-offs
* Test different models to find the best fit for your content
## Saving and Applying Settings
### Save Settings
Saves your configuration but only applies to new documents synced or added going forward.
**Steps:**
1. Configure your settings
2. Click **Save Settings**
3. Settings are saved to the database
4. New documents will use these settings
Saved settings only apply to new documents. Existing documents continue using
their original chunking configuration.
### Apply to All Documents
Re-indexes all existing documents in your knowledge base with the current settings.
**Steps:**
1. Configure and save your settings
2. Click **Apply to All Documents**
3. Confirm the action in the modal
4. Monitor progress as documents are re-synced
**What Happens:**
* All documents are re-synced with new settings
* Chunks are regenerated with new configuration
* Embeddings are updated
* Process runs in the background
**Progress Tracking:**
* Real-time updates on document sync status
* Success/failure status for each document
* Total files processed indicator
Applying settings to all documents can take significant time depending on the
number of documents. This process cannot be cancelled once started.
## Best Practices
### Chunking Strategy Selection
1. **Start with Sentence Chunking** - Best for most use cases
2. **Use Semantic Chunking** - For complex or technical documents
3. **Test Both** - Compare retrieval quality for your content
### Chunk Size Configuration
1. **Start with Default (64)** - Good baseline for most content
2. **Increase for Context-Heavy Content** - Documents requiring more context
3. **Decrease for Precise Retrieval** - When exact matches are important
4. **Test Different Sizes** - Find optimal size for your use case
### Chunk Overlap Configuration
1. **Use 10-20% of Chunk Size** - Recommended range
2. **Increase for Critical Information** - When context is essential
3. **Decrease for Storage Efficiency** - When storage is a concern
4. **Balance Context vs. Efficiency** - Find the sweet spot
### Chunk Enrichment
1. **Enable for Complex Content** - When simple chunking isn't enough
2. **Select Appropriate Model** - Use models with strong reasoning
3. **Monitor Performance** - Watch for processing time increases
4. **Test Quality Improvements** - Verify enhanced retrieval quality
## Troubleshooting
### Settings Not Applied
**Problem:** Settings saved but documents not using new configuration
**Solutions:**
1. Click **Apply to All Documents** to re-index existing documents
2. Verify settings were saved correctly
3. Check if new documents are using the settings
4. Wait for background sync to complete
### Poor Retrieval Quality
**Problem:** AI agent not finding relevant information
**Solutions:**
1. Adjust chunk size (try larger chunks for more context)
2. Increase chunk overlap
3. Enable chunk enrichment
4. Test different chunking strategies
### Processing Time Issues
**Problem:** Documents taking too long to process
**Solutions:**
1. Reduce chunk size
2. Disable chunk enrichment
3. Use faster LLM models for enrichment
4. Check document size and complexity
## Related Features
* **Connectors** - Integrate external data sources
* **Crawlers** - Automatically fetch web content
* **Sync & Schedule** - Manage sync schedules
* **Templates** - Create response templates
Learn about connecting external data sources
Learn about web crawlers
Learn about sync scheduling
# Smart Tables
Source: https://learn.getodin.ai/knowledge-base/smart-tables
Learn how to use Smart Tables to store and look up data
## Introduction to Smart Tables
**Smart Tables** are a structured data management feature within the Knowledge Base (KB) that allow you to store, organize, and extract information in a tabular format. Unlike standard spreadsheets, Smart Tables are integrated with AI capabilities, enabling automatic data extraction from documents, relationship mapping between different data sets (Collections), and direct querying via AI Agents.
Key capabilities include:
* **Defining structured schemas** — columns, data types, and formats
* **Extracting data automatically** from uploaded files (e.g., Resumes, Invoices)
* **Visualizing data** through built-in dashboards
* **Querying table data** using natural language via Agents
***
## Accessing Smart Tables
Smart Tables are accessed through the **Knowledge Base (KB)** section of the application. Once created, you can view and manage your Smart Tables by navigating to the **KB Data** section, where all tables are listed and can be opened for viewing or editing.
***
## Creating Smart Tables
There are three primary methods to create a Smart Table within the Knowledge Base. Access these options by clicking the creation menu in the KB interface.
### Method A: Create Empty Smart Table
This option creates a blank table with default system columns (Title, Description, Number). A sidebar configuration panel opens automatically, allowing you to define your custom schema from scratch. You can keep these default fields, modify them, or delete them to create your own structure.
### Method B: Create from Template
You can select from pre-defined templates to quickly set up tables for common use cases. Multiple templates are available for different scenarios. For example, the **Evaluations Template** imports a pre-defined set of columns designed for testing agent responses (Question Text, Expected Answer, Actual Response).
### Method C: Import from File
You can upload a **CSV file** to automatically create a Smart Table. The system will parse the CSV headers to create columns and import the rows as data entries.
***
## Column Types and Configuration
When configuring a Smart Table, each column requires specific definitions to ensure accurate data storage and extraction. A column consists of a **Name**, **Type**, **Format**, and **Tool Source**.
Providing a clear **Description** for each column is critical. This description guides the Large Language Model (LLM) on what specific information to extract or generate for that field.
### Configuring Columns
When creating or editing a Smart Table, use the sidebar panel to configure each column. After setting up a field's properties (Name, Type, Format, Tool, and Description), click **Save Field** to apply the configuration. You can edit existing fields at any time by clicking on the field name in the column configuration panel, making changes, and saving again.
### Field Types and Formats
| Field Type | Description | Format Options |
| ----------------- | --------------------------------------------- | ------------------------------------------------------------------------- |
| **Text** | Standard alphanumeric string | Text, Phone Number, Email |
| **Number** | Numeric values | Number, Decimal, Currency |
| **Single Select** | Select one value from a predefined list | Dropdown with options (e.g., Skill Level: Beginner, Intermediate, Expert) |
| **Multi-select** | Select multiple values from a predefined list | List of options (e.g., Languages: Python, Java, HTML, CSS) |
| **Checkbox** | Boolean values (True/False) | True/False (e.g., Is Female?) |
| **Date** | Calendar dates | Date formats (DD/MM/YYYY, etc.) |
| **User** | Reference to a user in the system | Username or User Email |
| **File** | Attachment field for documents | File upload |
| **Collection** | Link to another Smart Table (relational) | Select target Smart Table |
### Tool Sources
The **Tool** setting defines how the data enters the cell:
* **User Input** — Data is manually entered by the user or extracted directly from a file without modification
* **LLM Generated** — The AI model generates the content based on the column description and context (e.g., summarizing a resume)
* **Agent Generated** — An Agent processes a query and populates this field with the response
* **Comparison** — Compares two fields and determines if they match or calculates similarity scores
***
## Data Extraction (Document Processing)
Smart Tables can automatically populate rows by extracting data from uploaded documents. This is particularly useful for processing standardized documents like resumes or forms. Each uploaded document creates one row in the Smart Table, though multiple documents can be uploaded and processed to create multiple rows in the same table.
### Workflow: Resume Extraction Example
1. **Define Schema** — Create a Smart Table named "Resumes" with columns:
* Name (Text)
* Contact Number (Text with Phone Number format)
* Years of Experience (Number with Decimal format)
* Languages (Multi-select with options: Python, Java, HTML, CSS)
* Is Female (Checkbox)
* Resume File (File)
2. **Upload Document** — Navigate to the Knowledge Base and upload a file (e.g., PDF Resume).
3. **Assign Smart Table** — During upload, select the "Resumes" Smart Table.
4. **Extraction** — The system processes the document and maps content to the defined columns (e.g., finding "3 years" in the text and populating Years of Experience, extracting phone numbers for Contact Number).
5. **Review Results** — Navigate to the Smart Table to view the newly created row with extracted data.
If a file is uploaded without an assignment, it can be assigned later via the document settings. Go to the document, click **Assign Smart Table**, select the target Smart Table, and click **Apply** to trigger the extraction process retroactively.
**Quick Upload:** When uploading a document, enabling **Quick Upload** with a Smart Table assignment will automatically extract and populate the data immediately after the file upload completes.
***
## Collections and Relationships
**Collections** allow for many-to-many mappings between Smart Tables. This is useful when a single row in a main table contains complex list data that requires its own structure.
### Example: Skills Mapping
Instead of storing skills as a simple comma-separated text string (e.g., "Python, Java"), you can create a relational structure with detailed skill information:
1. **Create "Skills" Table** — Define columns:
* Skill Name (Text) — Name of the skill the user possesses
* Skill Level (Single Select) — Options: Beginner, Intermediate, Expert
2. **Configure Main Table** — In the "Resumes" table, create a column named "Skills".
3. **Set Type to Collection** — Set the column type to **Collection** and link it to the "Skills" Smart Table.
4. **Result** — When a resume is processed, the system extracts skills and populates the "Skills" table with detailed rows (e.g., "Python - Expert", "Java - Beginner", "AWS - Intermediate") that are linked back to the specific candidate via the many-to-many relationship.
### Viewing Collection Data
When viewing the main table (e.g., Resumes), the Collection field displays a link to the related entries. Clicking on this field navigates to the linked table (e.g., Skills) where you can see all the detailed skill entries for that candidate. The relationship is bidirectional—you can view which resume each skill belongs to by checking the Content Key in the Skills table.
***
## Data Management
Once data is populated, you have several tools to manage and organize the information.
### Views and Tabs
Smart Tables provide multiple views:
* **Table View** — The default spreadsheet-like view for viewing and editing data rows and columns
* **Dashboard View** — A visualization view where you can create charts and widgets to analyze your data
### Adding and Managing Rows
* **Insert Row** — Click **Add Row** or **Insert Row** to manually add a new blank row
* **Automatic Row Creation** — When a document is uploaded and assigned to a Smart Table, a new row is automatically created and populated with extracted data
### Editing and Re-computing
* **Manual Edit** — Click any cell to manually update the value
* **Execute Cell/Row** — For rows with LLM-generated or Agent-generated fields, click **Execute Cell** or **Execute Row** to compute or refresh just that row's data
* **Re-compute All** — To refresh all rows in the Smart Table simultaneously, use **Re-compute All**. This is useful when you've updated column descriptions or agent configurations and want to re-process the entire dataset
**Content Key:** Each row is automatically assigned a unique **Content Key** identifier that links it back to the source document. This key enables traceability, allowing you to see which document generated which data row and maintain the connection between extracted data and original files.
### Grouping and Organizing
You can group data by specific columns to organize the view. For example, grouping a candidate list by the "Language" multi-select field allows you to see all Python developers grouped together. Columns can also be rearranged by dragging and repositioning them in the table view.
### Renaming Smart Tables
To rename a Smart Table, click on the table name at the top and enter a new name. This helps organize multiple tables with descriptive identifiers (e.g., "Resumes", "Skills", "Evaluations").
### Deleting Fields and Rows
* **Delete Column** — When editing a column configuration, select **Delete Field** to remove the column entirely
* **Delete Row** — Click on a row and select **Delete** to remove individual entries
***
## Dashboards and Visualization
Smart Tables include a built-in **Dashboard** view to visualize the stored data.
### Creating Widgets
1. Navigate to the **Dashboard** tab within the Smart Table
2. Click **Add Widget**
3. **Configure Chart:**
* **Widget Title** — Provide a descriptive title (e.g., "Total Candidates by Gender")
* **Chart Type** — Select from Pie Chart, Bar Chart, Line Chart, and others
* **X-Axis (Category)** — Select the grouping field (e.g., Is Female)
* **Y-Axis (Value)** — Select the metric to measure. You can choose aggregation functions like Count, Sum, Average, or other statistical measures
* **Y-Series Column Name** — Optionally customize the label for the data series shown in the chart legend
4. Save the widget to add it to the dashboard
Smart Tables support multiple visualization types including Pie Charts, Bar Charts, Line Charts, and more. Select the chart type that best represents your data relationships and insights.
***
## Querying Smart Tables via Agents
One of the most powerful features of Smart Tables is the ability to query the structured data using natural language through an **Agent**.
### Setup Process
1. **Create Agent** — Go to the Agent builder
2. **Configure Toolkits** — Add the **Database Manager** toolkit to the agent
3. **Select Smart Tables** — In the toolkit settings, select one or multiple Smart Tables that the agent should have access to. This allows the agent to query across multiple related tables simultaneously
4. **Configure Query Options** — In the Database Manager settings, deselect unnecessary options like "Database Query" or "Database Schema" if you only want the agent to access Smart Table data specifically
5. **Save and Test** — Open the agent chat and ask questions using natural language, for example:
* "How many candidates have more than 5 years of experience?"
* "List all Python experts"
* "How many rows are there in the Resumes table?"
The agent executes a query against the Smart Table and returns the answer in natural language.
***
## Templates
Templates accelerate the setup of complex tables by providing pre-configured column structures for common use cases. You can select from existing templates but cannot create custom templates through the UI.
### Evaluation Template
This template is designed for testing Agent performance and validating AI responses. It includes:
* **Question Text** — The input prompt for the agent (User Input field)
* **Expected Answer** — The ground truth or correct answer (User Input field)
* **Actual Response** — A field populated by the agent during the evaluation run (Agent Generated field)
* **Evaluation Status** — A comparison/correction field determining if the Actual Response matches the Expected Answer (returns pass/fail percentage)
**Using the Evaluation Template:**
1. Create a Smart Table from the Evaluations Template
2. Add rows with your test questions and expected answers
3. Configure the Agent field to connect to your AI agent
4. Execute individual rows or run **Re-compute All** to test all questions
5. Review the Actual Response and Evaluation Status to assess agent performance
***
## Best Practices
* **Column Descriptions** — Always write clear, descriptive text for columns to guide the LLM during data extraction. For example, instead of just naming a column "Exp", name it "Years of Experience" and add a description: "Total years of professional work experience found in the resume."
* **Data Types** — Use specific data types (Number vs Text) to enable accurate sorting, filtering, and chart creation in Dashboards. Use Number type for "Years of Experience" rather than Text.
* **Format Selection** — Choose appropriate formats for each field type. For phone numbers, use the Phone Number format under Text type. For monetary values, use Currency format under Number type.
* **Collections** — Use Collections for complex lists (like Skills, Certifications, or Education History) to maintain data integrity and allow for deeper analysis. This prevents data duplication and enables better querying.
* **Testing** — When setting up extraction, test with one or two documents first to verify that the column descriptions are guiding the AI correctly before bulk uploading multiple documents.
* **Quick Upload** — Enable **Quick Upload** when uploading documents with Smart Table assignment to immediately extract and populate data without additional manual steps.
* **Re-apply Extraction** — If you modify column definitions or descriptions, you can re-assign the Smart Table to existing documents to re-extract data with the updated configuration.
* **Comparison Fields** — Use Comparison for validation scenarios, such as comparing expected vs actual results in testing or quality assurance workflows.
Smart Tables can also trigger and interact with **Workflows (Actions)**. This allows for advanced logic, such as "If Resume Qualifies, send email." Detailed documentation on configuring Workflows and Actions is covered in the separate Workflow Automation Documentation.
# Sync & Schedule
Source: https://learn.getodin.ai/knowledge-base/sync-and-schedule
Manage sync schedules and automatic updates for your knowledge base
The **Sync & Schedule** tab in Knowledge Base Settings allows you to manage automatic syncing and scheduling for your knowledge base. Configure when and how often your connectors and crawlers should sync to keep your knowledge base up-to-date.
## Overview
Sync & Schedule enables:
* **Automatic Syncing** - Schedule regular syncs for connectors and crawlers
* **Sync Management** - View and manage sync schedules
* **Manual Sync** - Trigger immediate syncs when needed
* **Schedule Configuration** - Set sync frequency and timing
## Accessing Sync & Schedule
1. Navigate to **Knowledge Base** in the sidebar
2. Go to the **KB Data** section
3. Click the **Settings** icon
4. Select the **Sync & Schedule** tab
## Enabling Auto-Sync
### Basic Configuration
1. Toggle **Enable Auto-Sync** to on
2. Select sync mode:
* **Interval** - Sync at regular intervals
* **Cron** - Sync on specific days and times
3. Configure sync settings
4. Save configuration
### Interval Mode
Sync at regular intervals (e.g., every 7 days).
**Configuration:**
* **Interval Amount** - Number of intervals
* **Interval Unit** - Days or weeks
* **Timezone** - Timezone for scheduling
**Example:**
* Interval: 7 days
* Syncs every 7 days from the last sync
### Cron Mode
Sync on specific days and times using cron-like scheduling.
**Configuration:**
* **Days** - Select days of the week (Sunday-Saturday)
* **Time** - Set the time for sync (24-hour format)
* **Timezone** - Timezone for scheduling
**Example:**
* Days: Monday, Wednesday, Friday
* Time: 02:00
* Syncs at 2 AM on selected days
## Managing Sync Schedules
### Viewing Schedules
The Sync & Schedule tab displays:
* Current sync configuration
* Next scheduled run time
* Upcoming sync runs
* Sync history
### Editing Schedule
1. Find the sync schedule
2. Click **Edit** or modify settings
3. Update configuration
4. Save changes
### Disabling Auto-Sync
1. Toggle **Enable Auto-Sync** to off
2. Confirm the action
3. Auto-sync is disabled
Disabling auto-sync will stop all scheduled syncing. Manual syncs can still be triggered.
## Manual Sync
### Triggering Manual Sync
Manually sync connectors or crawlers immediately:
1. Go to **Sync & Schedule** tab
2. Find the connector or crawler
3. Click **Sync Now** or **Manual Sync**
4. Wait for sync to complete
### Manual Sync for Connectors
1. Go to **Connectors** tab
2. Find the connector
3. Click **Sync Now**
4. Monitor sync progress
### Manual Sync for Crawlers
1. Go to **Crawlers** tab
2. Find the crawler
3. Click **Sync Now**
4. Monitor crawl progress
## Sync Status
### Viewing Sync Status
Check sync status for:
* Last sync time
* Next scheduled sync
* Sync success/failure
* Sync progress
### Sync Indicators
* **Success** - Green checkmark or success message
* **Failure** - Red error indicator
* **In Progress** - Spinning indicator or progress bar
* **Pending** - Scheduled but not yet run
### Sync Logs
Review sync logs to:
* Identify sync failures
* Monitor sync frequency
* Track sync performance
* Debug sync issues
## Best Practices
### Schedule Configuration
1. **Balance Freshness and Load** - Sync frequently enough to keep data fresh without overloading the system
2. **Off-Peak Hours** - Schedule syncs during off-peak hours
3. **Time Zone Awareness** - Consider time zones for global teams
4. **Test Schedules** - Verify schedules work as expected
### Sync Frequency
1. **High-Change Content** - Sync more frequently (daily or multiple times per day)
2. **Stable Content** - Sync less frequently (weekly or monthly)
3. **Critical Data** - Sync more frequently for important information
4. **Resource Constraints** - Balance frequency with system resources
### Monitoring
1. **Regular Checks** - Monitor sync status regularly
2. **Error Alerts** - Set up alerts for sync failures
3. **Performance Tracking** - Monitor sync performance over time
4. **Usage Patterns** - Adjust schedules based on usage patterns
## Troubleshooting
### Sync Not Running
**Problem:** Scheduled syncs not executing
**Solutions:**
1. Verify auto-sync is enabled
2. Check schedule configuration
3. Verify timezone settings
4. Check for system errors
### Sync Failures
**Problem:** Syncs failing repeatedly
**Solutions:**
1. Check connector/crawler status
2. Verify credentials are valid
3. Review sync logs for errors
4. Test manual sync to isolate issues
### Incorrect Schedule
**Problem:** Syncs running at wrong times
**Solutions:**
1. Verify timezone configuration
2. Check cron expression or interval settings
3. Review schedule configuration
4. Test with manual sync first
## Related Features
* **Settings** - Configure chunking and processing
* **Connectors** - Connect external data sources
* **Crawlers** - Automatically fetch web content
Learn about knowledge base settings
Learn about connectors
Learn about web crawlers
# Knowledge Base Templates
Source: https://learn.getodin.ai/knowledge-base/templates
Create and manage templates to guide AI agents with FAQs, response templates, and examples
Knowledge Base Templates are pre-defined pairs of questions and answers, response templates, and examples that help guide your AI agents in generating more accurate and contextually relevant responses. Instead of searching through full documents, agents can use these templates to provide faster, more precise answers.
## Overview
Templates serve as a quick-reference guide for your AI agents, enabling them to:
* **Respond Faster** - Use pre-defined templates instead of searching entire documents
* **Improve Accuracy** - Provide exact answers you've curated
* **Maintain Consistency** - Ensure uniform responses across interactions
* **Enhance Context** - Associate templates with specific documents for additional context
## Template Types
Knowledge Base Templates support three types of content:
### FAQ (Frequently Asked Questions)
Question and answer pairs for common queries.
**Use Cases:**
* Customer support questions
* Product information queries
* Policy clarifications
* Common troubleshooting steps
**Example:**
* **Question**: "What is your return policy?"
* **Answer**: "Our return policy allows returns within 30 days of purchase. Items must be in original condition with tags attached. Please contact support to initiate a return."
### Template
Response templates with placeholders for dynamic content.
**Use Cases:**
* Email response templates
* Standardized communication formats
* Form letter templates
* Structured response patterns
**Example:**
* **Template Name**: "Email Response Template"
* **Template Content**: "Dear , Thank you for your inquiry about . We have reviewed your request and . Please let us know if you need any further assistance."
### Example
Code examples, usage patterns, or demonstration content.
**Use Cases:**
* API integration examples
* Code snippets
* Usage demonstrations
* Best practice examples
**Example:**
* **Example Title**: "API Integration Example"
* **Example Content**: "Here's how to integrate with our API: `const response = await fetch('/api/endpoint', { method: 'POST', body: JSON.stringify(data) })`"
## Creating Templates
### Step 1: Access Templates Section
1. Navigate to **Knowledge Base** in the sidebar
2. Click on the **Templates** tab
3. You'll see the templates interface with search and management options
### Step 2: Create New Template
1. Click the **Add Template** button
2. The template creation modal will open
### Step 3: Configure Template
#### Select Content Type
Choose the type of template you want to create:
* **FAQ** - Question and answer pair
* **Template** - Response template with placeholders
* **Example** - Code or usage example
#### Enter Content
**For FAQ:**
* **Question**: Enter the question users might ask
* **Answer**: Provide the exact answer you want the agent to give
**For Template:**
* **Template Name**: Enter a descriptive name for the template
* **Template Content**: Enter the template with placeholders (e.g., `{name}`, `{topic}`)
**For Example:**
* **Example Title**: Enter a descriptive title
* **Example Content**: Enter the example code or content
#### Associate File (Optional)
For FAQ templates, you can associate a file from your Knowledge Base:
1. Click **Associate a File (Optional)**
2. Browse and select a document from your Knowledge Base
3. The file provides additional context for the AI agent
4. Only one file can be associated per template
**Benefits of File Association:**
* Provides context for the template
* Helps agents understand the source material
* Enables better answer generation
* Links templates to source documents
### Step 4: Save Template
1. Review your template content
2. Click **Create Template** to save
3. The template is now available for your agents to use
## Managing Templates
### Viewing Templates
In the Templates tab, you can:
* **Browse All Templates** - See all templates in your knowledge base
* **Search Templates** - Use the search bar to find specific templates
* **Filter by Type** - View templates by type (FAQ, Template, Example)
### Editing Templates
1. Find the template you want to edit
2. Click on the template to open it
3. Modify the question/answer or content
4. Update the associated file if needed
5. Click **Update** to save changes
### Deleting Templates
1. Open the template you want to delete
2. Click the **Delete** button
3. Confirm deletion
4. The template is removed from your knowledge base
Deleting a template will remove it from all agents using it. Make sure no
active agents depend on the template before deleting.
## Auto-Generate Templates
You can automatically generate templates from documents in your Knowledge Base.
### Step 1: Access Auto-Generate
1. Go to the **Templates** tab
2. Click **Auto Generate Templates** (if available)
3. The auto-generate modal will open
### Step 2: Select Document
1. Choose a document from your Knowledge Base
2. Select the content type (FAQ, Template, or Example)
3. Click **Generate Templates**
### Step 3: Review Generated Templates
1. Review the AI-generated templates
2. Edit or refine as needed
3. Save the templates you want to keep
**Auto-Generate Benefits:**
* Quickly create multiple templates from documents
* Extract key information automatically
* Save time on manual template creation
* Generate FAQs from documentation
## How Agents Use Templates
### Template Priority
When an agent receives a query:
1. **Template Matching** - Agent checks if the query matches a template
2. **Template Response** - If matched, agent uses the template answer
3. **Document Search** - If no template matches, agent searches documents
4. **Context Enhancement** - Associated files provide additional context
### Template Matching
Agents use semantic matching to find relevant templates:
* **Question Similarity** - Matches user queries to template questions
* **Content Relevance** - Considers template content and context
* **File Association** - Uses associated files for better matching
### Response Generation
When a template is matched:
* **Direct Answer** - Agent provides the template answer directly
* **Template Filling** - For templates with placeholders, agent fills in values
* **Context Integration** - Combines template with associated file context
* **Citation** - References the template and associated file
## Best Practices
### Template Creation
1. **Be Specific** - Create templates for common, specific questions
2. **Use Clear Language** - Write questions as users would ask them
3. **Provide Complete Answers** - Include all necessary information
4. **Update Regularly** - Keep templates current with your content
### FAQ Templates
* **Common Questions** - Focus on frequently asked questions
* **Clear Answers** - Provide complete, accurate answers
* **Associate Files** - Link FAQs to relevant documents
* **Organize by Topic** - Group related FAQs together
### Response Templates
* **Use Placeholders** - Include `{variable}` placeholders for dynamic content
* **Standardize Format** - Maintain consistent template structure
* **Document Variables** - Explain what each placeholder represents
* **Test Templates** - Verify templates work with different inputs
### Example Templates
* **Real Examples** - Use actual, working examples
* **Include Context** - Explain when and how to use the example
* **Keep Updated** - Update examples as APIs or processes change
* **Add Comments** - Include explanatory comments in code examples
### File Association
* **Relevant Documents** - Associate files that provide context
* **Source Material** - Link templates to source documents
* **Single File** - Only one file can be associated per template
* **Update Associations** - Keep file associations current
## Template Organization
### Search and Filter
* **Search Bar** - Quickly find templates by keyword
* **Type Filter** - Filter by FAQ, Template, or Example
* **Content Search** - Search within template content
### Categorization
Organize templates by:
* **Topic** - Group by subject matter
* **Use Case** - Organize by application
* **Department** - Categorize by team or function
* **Priority** - Mark frequently used templates
## Use Cases
### Customer Support
**Scenario**: Provide consistent support responses
**Templates:**
* FAQ templates for common support questions
* Response templates for standard communications
* Examples of troubleshooting steps
**Benefits:**
* Consistent support experience
* Faster response times
* Accurate information delivery
### Product Documentation
**Scenario**: Answer product-related questions
**Templates:**
* FAQ templates for product features
* Usage examples for product APIs
* Response templates for product inquiries
**Benefits:**
* Quick access to product information
* Standardized product explanations
* Better user experience
### Internal Knowledge
**Scenario**: Share internal processes and procedures
**Templates:**
* FAQ templates for company policies
* Response templates for standard communications
* Examples of internal workflows
**Benefits:**
* Consistent internal communication
* Faster information access
* Standardized processes
## Troubleshooting
### Templates Not Being Used
**Problem**: Agents aren't using templates
**Possible Causes:**
* Query doesn't match template questions
* Template content is too vague
* No associated file for context
**Solutions:**
* Review template questions for clarity
* Ensure questions match user query patterns
* Associate relevant files for better matching
* Test template matching with sample queries
### Incorrect Template Matches
**Problem**: Wrong templates are being matched
**Possible Causes:**
* Similar questions causing confusion
* Template questions too generic
* Multiple templates with similar content
**Solutions:**
* Make template questions more specific
* Review and refine template content
* Consolidate similar templates
* Test and refine matching logic
### Template Updates Not Reflecting
**Problem**: Changes to templates aren't being used
**Possible Causes:**
* Template not saved correctly
* Agent cache needs refresh
* Template not properly associated
**Solutions:**
* Verify template was saved
* Refresh agent configuration
* Check template associations
* Test with a new query
## Related Features
* **Knowledge Base** - Upload and manage documents
* **Agents** - Configure agents to use templates
* **Smart Tables** - Structure data for better retrieval
* **Documents** - Create and edit documents
Learn more about the Knowledge Base
## Support
Need help with Knowledge Base Templates? Contact support at [support@getodin.ai](mailto:support@getodin.ai).
# Uploading Files to the Knowledge Base
Source: https://learn.getodin.ai/knowledge-base/upload-files
How to Upload Files to the Knowledge Base
The Knowledge Base (KB) accepts a variety of file types and offers multiple upload methods to fit different workflows. Before uploading, review the size limits and supported formats below to ensure smooth processing.
## File Size Limit
Each file must be **200 MB or less**. If a file exceeds this limit, split it into smaller segments before uploading.
## Supported File Formats
PDF, DOCX, TXT, MD, HTML
CSV, JSON, XML
MP3, MP4
## Upload Methods
When uploading, you can choose between two processing modes:
* **Regular Upload** — Files enter a processing queue and are handled in order. Best for bulk uploads, large files, or multiple files at once.
* **Quick Upload** — Files are processed immediately, bypassing the queue. Best for **single** small files that need to be available right away.
Quick Upload only supports one file at a time.
## Ways to Upload Files
Choose the method that best fits your workflow:
Drag files from your file explorer directly into the KB upload area.
Drag one or more files from your file explorer into the KB upload area.
Verify the files you want to upload and click **Upload** when ready.
For single-file uploads, you can optionally enable **Quick Upload** for immediate processing.
Your files will be processed and added to the Knowledge Base.
Browse and select files from your device using the file selector.
In the top-left corner, click **New** and select **File Upload** from the dropdown menu.
Browse your device and select the files you want to upload.
Review your selection and click **Upload** when ready.
Your files will be processed and added to the Knowledge Base.
Upload an entire folder while preserving its internal structure.
In the top-left corner, click **New** and select **Folder Upload** from the dropdown menu.
Browse your device and select the folder you want to upload. All files within it will be included.
Review the files to be uploaded and click **Upload** when ready.
Your files will be processed and added to the Knowledge Base, with their original folder structure preserved.
Pull a file directly from the web into your Knowledge Base using a URL.
In the top-left corner, click **New** and select **URL Upload** from the dropdown menu.
Paste the URL of the file you want to import.
Your file will be processed and added to the Knowledge Base.
Crawl and index content from an external website directly into your Knowledge Base.
For full instructions, refer to the [Using Web Crawlers](knowledge-base/kb-crawler) page.
## Best Practices
Confirm files are properly formatted and not corrupted before uploading.
For data-heavy uploads, prefer CSV or JSON — they process more efficiently than unstructured text.
Remove unnecessary metadata or extra formatting that could interfere with AI processing.
Any file exceeding 200 MB must be divided into smaller segments before uploading.
# Account Settings
Source: https://learn.getodin.ai/my-account/account-settings
Configure And Manage Your Project
The **Settings** tab allows you to configure your team’s access, permissions, and collaboration preferences in Odin AI Platform.
***
## Team Information
* **Team Name**\
The name of your organization (e.g., *Odin AI Platform Enterprise*).
* **Team Email Domain**\
Defines the default domain for your organization (e.g., `automationanywhere.com`).\
Any new user with a matching email domain can be automatically added to the team (if the option is enabled).
***
## Security & Access Controls
* **Allow only SSO authentication**\
Restricts logins to your organization’s preferred identity provider (IdP).\
This ensures all users must log in via SSO, improving security and centralized access management.
* **Auto Add Users by Domain**\
Automatically adds users with emails matching your team domain.\
Useful for onboarding employees without requiring manual invites.
***
## Collaboration Controls
* **Disable Meetings**\
Prevents members from creating, joining, or managing meetings within Odin AI Platform.
* **Chat Mode for Members**\
When enabled, members will only have access to the **AI Hub**.\
They can use shared projects but won’t be able to create or edit new ones.
* **Members Can Create Projects**\
Allows team members to create new projects.\
If disabled, only admins and editors can create projects.
***
## Resource Management
* **User Credit Limits**\
Lets admins define a default credit usage limit for all users.\
Limits can also be customized for specific team members when needed.
***
## Updating Settings
Once changes are made, click **Update** to save.\
Your preferences will immediately apply to all team members.
***
✅ The **Settings** tab helps admins maintain security, streamline onboarding, and control project creation and credit allocation across the team.
# API Keys
Source: https://learn.getodin.ai/my-account/api-keys
Manage secure API keys for integrating external applications and automating tasks
The API Keys tab on the Odin AI Platform platform serves as a tool for you to manage secure access for integrating external applications and automating tasks. This feature provides a streamlined interface where you can generate and manage API keys, which are essential for authenticating and facilitating seamless communication between Odin AI Platform and other services. Within the API Keys tab, you can view a list of all their generated keys, each accompanied by details such as the key's name, creation date, and management options. This setup ensures that you can easily identify and control your API keys, enhancing security and efficiency. The API Keys tab also offers direct access to comprehensive documentation, providing setup instructions, example requests, and best practices for secure usage. This makes it an invaluable resource for developers aiming to integrate Odin AI Platform's capabilities into their workflows, automate tasks, and maintain secure connections with external platforms.
***
## API Key List
The main section displays all API keys generated by the user. Each entry includes:
* **Name** – The name assigned to the API key for easy identification.
* **Key** – The actual API key string used for authentication (partially hidden for security).
* **Date Created** – The date and time the key was generated.
* **Delete** – An option to remove the key when it’s no longer needed.
⚠️ If no API keys have been created yet, this section will appear empty.
***
## Create New Key
The **+ Create Key** button in the top-right corner allows you to generate a new API key.
* Provide a name for the key.
* Save the generated key securely, as it may not be shown again in full.
* Use this key to connect Odin AI Platform with other applications or services.
***
## View Documentation
The **Docs** button provides direct access to detailed API documentation.\
This includes:
* Setup instructions
* Example requests
* Best practices for securely using API keys
This documentation is especially useful for developers setting up and integrating the Odin AI Platform API efficiently.
# Dashboard
Source: https://learn.getodin.ai/my-account/dashboard
Overview of your billing, subscription plan, and total credits available
The My Account Dashboard is your central hub for managing and monitoring essential aspects of your Odin AI Platform account. It provides a comprehensive overview of your billing, subscription plan, and credit usage, allowing you to keep track of your team's capacity and available resources. Within the Dashboard, you can view the name of your organization or workspace, the number of active team members, and your current subscription status, whether it's a Free Plan or an Enterprise Plan.
The Plan Details section offers insights into your credit usage, showing the total credits consumed, available credits according to your subscription, any additional bonus credits, and the maximum number of team members allowed under your plan.
This information is crucial for tracking your subscription usage, monitoring credit balances, and understanding team member limits. By using the Dashboard, you can efficiently manage your credits, seats, and subscription details, ensuring that you are well-prepared to make informed decisions about potential upgrades as your usage approaches its limits.
***
## Overview
* **Team Name**\
The name of your organization or workspace (e.g., *Odin AI Platform Enterprise*).
* **Team Members**\
Displays the number of active collaborators in your team.
* **Current Plan**\
Shows your subscription status (e.g., *Free Plan*, *Enterprise Plan*).
* **License Valid Till**
Indicates the expiration date of your current subscription license.
* **Team Owner**
The name of the team owner or administrator responsible for managing the account.
***
## Plan Details
This section provides detailed information about your plan usage:
* **Used Credits**\
Total credits already consumed.
* **Plan Credits**\
Total available credits as per your subscription plan.
* **Extra Credits**\
Any bonus or promotional credits added to your account.
* **Total Seats**\
Maximum number of members allowed under the current subscription plan.
***
✅ Use the Dashboard as your central place to manage **credits, seats, and subscription details**.
# General
Source: https://learn.getodin.ai/my-account/general
The **General tab** in the **My Account** page allows you to manage your profile information, theme preferences, and account actions.
***
## Account Information
Manage your personal details and contact information.
* **Name**\
Displays your account name.
* You can edit your name and click **Update** to save changes.
* **Email**\
Shows the registered email address.
***
## Account Actions
Perform key account management actions.
* **Redeem License Key**\
Activate a purchased license key by clicking the **Redeem License Key** button.
* **Delete Account**\
Permanently delete your account and all associated data.\
⚠️ This action is irreversible and will remove all data and access.
***
## User Profile Summary
At the top of the page, your profile details are shown:
* **Name** – Registered account holder’s name.
* **Email** – Associated account email.
* **Status** – Current account status (e.g., *Active*).
***
## Quick Access
* **API Keys**\
Navigate directly to API Key management via the **API Keys** button in the top-right corner.
# Tags
Source: https://learn.getodin.ai/my-account/tags
Create and manage tags for organizing team members and content
The **Tags** tab lets you create and manage tags for team members and documents in Odin AI Platform.\
Tags help with **organization, filtering, and access control** across your workspace.
***
## Adding a New Tag
* Enter a **tag name** (e.g., `Sales`, `HR`, `Marketing`).
* Click **Add Tag** to save it.
* Once created, tags will appear in the **Current Tags** list.
***
## Current Tags
* Displays all the tags your team has created.
* If no tags are created yet, you’ll see a placeholder message.
***
## How to Use Tags
* **Organize Members**\
Assign tags to team members to categorize by **roles** or **departments**.
* **Tag Documents**\
Apply tags to knowledge base documents for easier organization and retrieval.
* **Filter & Access Control**\
Use tags to quickly filter content or restrict access to specific groups.
* **Permission-Based Tags**\
Create tags like `Admin`, `View-Only`, or `Confidential` to control access levels.
***
✅ Tags provide a flexible way to **organize your workspace** and **manage permissions** efficiently.
# Members
Source: https://learn.getodin.ai/my-account/team-members
Platform-Wide Roles and Permissions for Secure Team Governance
## Team-Level RBAC
Odin AI Platform supports **Team-level Role-Based Access Control (RBAC)**, which defines what users can access and manage across the Odin AI Platform platform as a whole, independent of any individual project. These permissions govern platform-wide capabilities such as creating and managing projects, administering users, configuring team settings, and viewing usage and audit data.
Unlike project-level RBAC, team-level roles are fixed and standardized. Odin AI Platform provides three default team-level roles—**Admin**, **Editor**, and **Member**—and does not support Custom Roles at this level. This approach ensures consistent governance, predictable behavior, and strong security controls across the organization.
Team-level RBAC determines:
* Whether a user can create, edit, or delete projects
* Access to team-wide settings and configurations
* The ability to add, modify, or remove team members
* Visibility into usage metrics, credit consumption, and audit logs
* Access to advanced features such as Agent Mode, depending on team settings
Team-level RBAC works in conjunction with project-level RBAC. A user must first have an appropriate team-level role to access the platform, and then a project-level role to interact with a specific project. For example, a user may be a **Team Member** with limited administrative privileges, while still being assigned an **Admin** or **Editor** role within specific projects.
***
## Team-Level Roles and Permissions
When adding a user to a Team in Odin AI Platform, you must assign one of the available team-level roles. These roles control a user’s platform-wide permissions and do not define what the user can do within individual projects.
### Member
The **Member** role is intended for standard users who primarily work within projects and do not manage the team or platform configuration.
**Members can:**
* Access and work in projects they have been added to, based on their assigned project-level role
* Create new projects if the team setting **“Members Can Create Projects”** is enabled
* Access Agent Mode if the team setting **“Chat Mode for Members”** is enabled
**Members cannot:**
* Manage team settings
* Add, remove, or modify other team members
* View team-wide analytics, logs, or usage data
***
### Editor
The **Editor** role is designed for power users who need broader control over projects but do not require full administrative access at the team level.
**Editors can:**
* Access, edit, and delete projects, subject to their project-level role
* Create new projects
* Access Agent Mode
* Perform all actions available to Members
**Editors cannot:**
* Manage team-wide settings
* Add or remove team members
* Access team-level usage analytics or logs
***
### Admin
The **Admin** role provides full control over the Team and is intended for platform owners and administrators.
**Admins can:**
* Perform all actions available to Editors and Members
* Manage Team Settings
* Add, modify, and remove team members
* View all projects and monitor credit and token usage
* Manage Tags used for users and Knowledge Base documents
* Configure Agent Mode settings
* Access usage analytics, audit logs, and team activity logs
Because Admins have unrestricted access to team-wide configuration and data, this role should be assigned sparingly and only to trusted users.
***
## Best Practices for Team-Level RBAC
* **Limit Admin access:** Assign the Admin role only to users who require full team oversight.
* **Use project-level roles for granularity:** Rely on project-level RBAC to control detailed access within projects.
* **Align roles with responsibilities:** Choose team-level roles based on platform governance needs, not job titles.
* **Review access regularly:** Periodically audit team roles to ensure permissions remain appropriate as responsibilities evolve.
# Usage
Source: https://learn.getodin.ai/my-account/usage
View Your Team's Token Consumption and Usage Analytics
The **Usage** tab is a reporting dashboard that provides visibility into your team's AI resource consumption within Odin AI Platform. Use it to monitor token usage, identify trends, and make informed decisions about AI adoption across your projects and workflows.
The Usage tab is visible to Team Admins only.
## Filtering and Exporting
At the top of the dashboard, use the **date range filter** to scope the report to a specific period — options include preset ranges (e.g., last 7 days, last 30 days) or a custom date range. This lets you track how usage evolves over time and evaluate the impact of workflow changes or shifts in team activity.
The **Export** button next to the filter lets you download the usage data for external reporting or deeper analysis.
## Overview Metrics
Below the filters, four summary cards cover the selected time period:
* **Total Input Tokens** – The number of tokens sent to AI models by your team.
* **Total Output Tokens** – The number of tokens returned by AI models.
* **Total Tool Calls** – The total number of times AI tools were invoked.
* **Avg. Tokens per Call** – The average token consumption per tool call, useful for gauging efficiency.
## Charts
The charts section visualizes token consumption across models and projects for the selected period.
### Tokens by Model *(Pie Chart)*
A proportional breakdown of token usage across AI models (e.g., GPT-4, Claude, Others). Use this to understand which models are driving the most consumption.
### Top Projects by Input Tokens *(Bar Chart)*
A ranked view of projects by total input tokens consumed. Projects at the top are the most AI-intensive on the input side and may be candidates for prompt optimization.
### Top Projects by Output Tokens *(Bar Chart)*
A ranked view of projects by total output tokens generated. High output token counts can indicate verbose model responses or high-volume content generation workflows.
## Tables
### Input and Output Tokens by Project
Lists each project with its total input and output token counts. Use this to drill down into specific projects and understand their individual AI footprint.
### Input and Output Tokens by Model
Breaks down token consumption by AI model, showing input and output totals for each. Use this to evaluate model usage patterns and inform decisions around model selection or cost optimization.
# Cloud Licensing
Source: https://learn.getodin.ai/offerings/cloud/licensing
How Odin AI Platform cloud licenses are issued, how you receive your key, and how to redeem it in the Odin AI Platform portal.
Cloud licenses for Odin AI Platform are issued and managed by **Odin AI’s Orders and License Management** team. After your order is processed, that team sends the **license key** to the contact email on file—typically the person who placed the order or your designated administrator.
## What you should receive
Check your inbox for email from Odin AI. The message includes the **Odin AI Platform cloud license key** you need to activate the product. If your team expected a key but did not receive one, contact your Odin AI account representative or **[support@getodin.ai](mailto:support@getodin.ai)** and reference your purchase or order details.
## Redeem your license key
Before you begin:
* Have your **Odin AI Platform license key** ready (from the email described above).
* If your company restricts network traffic, confirm with IT that **[allowlisting is in place for your Odin AI Platform cloud region](/offerings/cloud/overview#regional-hosting-and-static-egress-ip-addresses)**—including the **static egress IPs** and **HTTPS** access to the **frontend** and **app server** URLs for your region. Without that, you may not be able to reach the portal or complete redemption.
### Step 1: Sign in to the Odin AI Platform portal
Go to [ai.automationanywhere.com](https://app.getodin.ai) and sign up or sign in using your company email address.
If you are creating a new account, you must read and accept the Cloud Automation Agreement (CAA) before proceeding.
### Step 2: Open My Account
From the dashboard, open the user menu in the top-right corner and select **My Account**.
### Step 3: Redeem your license key
On the **My Account** page, scroll to **Account Actions**. Find **Redeem License Key** and choose **Redeem License Key**.
In the **Redeem License** dialog, enter the license key from your email and select **Redeem**.
Your Odin AI Platform Cloud license is now active and linked to your account.
***
For how Odin AI Platform cloud is hosted (regions, URLs, and firewall allowlists), see the Cloud **[Overview](/offerings/cloud/overview)**. For security certifications and compliance, see **[Security & Compliance](/general/security-compliance)**.
# Overview
Source: https://learn.getodin.ai/offerings/cloud/overview
Odin AI Platform cloud overview—AWS regions, static egress IPs, and frontend and app server URLs for firewall and proxy allowlists.
The **cloud license** runs Odin AI Platform as a **managed service** hosted by Odin AI. You subscribe, create projects, and use the product through the standard web experience—without operating the underlying infrastructure yourself.
## Who cloud is for
Organizations that want to **go live quickly**, stay on **continuously updated** releases, and prefer **Odin AI to run and scale** the platform in our secure cloud environment.
## What you get (at a glance)
* **Fast onboarding** — Sign in, create a project, and start with chat, knowledge base, agents, and workflows.
* **Managed operations** — Patching, scaling, and service reliability handled by Odin AI.
* **Enterprise security & compliance** — See **[Security & Compliance](/general/security-compliance)** for certifications and practices.
## Regional hosting and static egress IP addresses
Odin AI Platform cloud is hosted across **four AWS regions**. Use the **frontend** and **app server** URLs for the region where your tenant runs when your IT team configures **HTTPS (port 443)** allowlists or proxy exceptions.
If your organization must **allowlist traffic that Odin AI Platform sends to your own systems** (integrations, webhooks, private APIs, etc.), add the **static egress IP** for that region as a **single host** (typically `/32` in CIDR notation)—or all four if you are unsure which region applies.
### Summary (regions and egress IPs)
| Region | AWS region & location | Static egress IP (allowlist) |
| :------ | :-------------------------------------------------- | :--------------------------- |
| **US** | United States — US East (N. Virginia) (`us-east-1`) | `13.248.244.227` |
| **EU** | Europe — London (`eu-west-2`) | `18.170.141.39` |
| **IN** | India — Mumbai (`ap-south-1`) | `52.66.79.101` |
| **AUS** | Australia — Sydney (`ap-southeast-2`) | `13.210.60.153` |
### Frontend and app server URLs
Open a region to see the **HTTPS** endpoints for allowlists and proxy rules.
* **Static egress IP:** `13.248.244.227`
* **Frontend (web app):** [https://app.getodin.ai](https://app.getodin.ai)
* **App server (API):** [https://ai-api.automationanywhere.com](https://ai-api.automationanywhere.com)
* **Static egress IP:** `18.170.141.39`
* **Frontend (web app):** [https://ai-eu.automationanywhere.com](https://ai-eu.automationanywhere.com)
* **App server (API):** [https://ai-eu.automationanywhere.com/backend](https://ai-eu.automationanywhere.com/backend)
* **Static egress IP:** `52.66.79.101`
* **Frontend (web app):** [https://ai-in.automationanywhere.com](https://ai-in.automationanywhere.com)
* **App server (API):** [https://ai-in.automationanywhere.com/backend](https://ai-in.automationanywhere.com/backend)
* **Static egress IP:** `13.210.60.153`
* **Frontend (web app):** [https://ai-au.automationanywhere.com](https://ai-au.automationanywhere.com)
* **App server (API):** [https://ai-au.automationanywhere.com/backend](https://ai-au.automationanywhere.com/backend)
### How to check that it works
* **People using Odin AI Platform:** Open Odin AI Platform from a regular work computer, sign in, and try something normal (for example Chat or opening a project). If everything loads and responds, your network can reach Odin AI Platform. If not, ask IT to allow **HTTPS** to the **frontend** and **app server** URLs for your region (see **Frontend and app server URLs** above).
* **Odin AI Platform reaching your systems:** After your team adds the static IPs above, run a small real test from Odin AI Platform (such as an integration or connector you rely on). If it works, the allowlist is doing its job. Your IT or security team can double-check using their usual firewall or server logs if needed.
Simple **ping** tests are usually **not** a good check here—many companies block ping even when normal web traffic is fine.
If something still does not work after IT updates the rules, contact [support@getodin.ai](mailto:support@getodin.ai) with your company name and Odin AI Platform link.
# On-Premise Installation Guide
Source: https://learn.getodin.ai/offerings/on-premise/installation
Requirements for installing the Odin AI Platform platform in your environment.
This document outlines the pre-deployment prerequisites, verification steps, and considerations required for the successful On-Premise installation and deployment of the Odin AI Platform product. It is intended to serve as a comprehensive checklist to ensure that the client’s environment is properly configured and meets all necessary requirements before proceeding with the deployment.
## Prerequisites
### Access Requirements
* **Server Access:**
* Confirm access to deployment servers with sudo privileges.
* Verify that all necessary network routes are established via a secure VPN or dedicated network configuration.
* **User Permissions:**
* Ensure that the deployment team has been granted the necessary access rights.
* Validate that any required two-factor authentication (2FA) or security tokens are in place.
### System Requirements
**Operating System:** \
Ubuntu 22 or RHEL 8.10
**Hardware Specifications:** \
For each deployment tier, ensure that the hardware meets or exceeds the following:
| Tier | Cores | RAM (GB) | SSD |
| :--------- | :----- | :------- | :----- |
| **SMALL** | 16 | 64 | 1TB |
| **MEDIUM** | 32 | 128 | 2TB |
| **LARGE** | Custom | Custom | Custom |
* **GPU** (Required when deploying an LLM on the same machine as the Odin AI Platform platform.)
* **SMALL:** \~500 (100 Concurrent) users can be supported by a single VM 16 cores, 64gb ram, 1 TB
* SSD these machines cost \~\$600 per month. This is a minimum size deployment.
* **MEDIUM** \~ 2000 (500 Concurrent) users can be supported by a larger machine 32 cores, 128gb ram, 2 TB
* SSD these machines are around \~\$1,200 per month
* **LARGE:** \~10000 (1000+ Concurrent) users should be deployed across containers so that the infrastructure
* can scale to support the needs, this typically costs a minimum of \$2,000 per month it is
* suggested to calculate \$2,000 per month per additional 1,000 Active Users. This is a fully
distributed deployment.
### Deployment Tools & Software Dependencies
* **Deployment Scripts:**
* Verified and version-controlled Bash deployment scripts.
* **Dependency Management Tools:**
* Python 3
* Git (current version)
* Docker (v27.1.1) or Podman
* **Additional Tools (Optional):**
* Logging and monitoring tools (e.g., ELK Stack, Prometheus, Grafana) as per the client’s monitoring requirements.
### Credentials and Keys
* **Server Credentials:**
* Ensure that all server access credentials are up to date and securely stored.
* **Application API Keys and Licenses:**
* Verify that all application-specific API keys and licenses (e.g., OpenAI, SERP, Sentry) are available and valid.
## Pre-Deployment Checklist
### **Hardware and System Verification**
Ensure that the client’s hardware and system configurations match the specifications:
```
# Check CPU Information
lscpu # Works on both Ubuntu and RHEL
cat /proc/cpuinfo # More detailed CPU information
# Check Memory Usage
free -h # Human-readable format for memory usage
cat /proc/meminfo # Detailed memory information
# Check Storage Usage
df -h # Displays disk usage
lsblk # Lists block devices and partitions
```
#### **3.2 Software and Dependency Verification**
Verify that all necessary software components are installed and correctly versioned:
````
# Check Docker Version
docker --version # Applicable for both Ubuntu and RHEL
# Check Docker Compose Version
docker compose version # For modern Docker setups
docker-compose --version # For older installations
```
# Check Python Version
python3 --version # Preferred check for Python 3
python --version # Alternative if python3 is not available
# Check Git Version
git --version # Valid for both Ubuntu and RHEL
````
#### **3.3 Network and Connectivity Check**
Ensure the network is correctly configured and that there is adequate internet connectivity for external dependencies or updates:
```
# Check Internet Connection Availability
ping -c 4 google.com # Ping Google to verify network connectivity
curl -Is https://www.google.com | head -n 1 # Alternative check using curl
```
#### **3.4 Additional Verifications**
**Services and ports**
| Service | Path | Parameter | Internal ports | External ports |
| :------------------------ | :--------- | :---------------- | :------------- | :----------------------------------- |
| Frontend | / | FRONTEND\_SUFFIX | 3000 | — |
| Nginx | / | — | — | 80, 443 |
| Backend | /backend | BACKEND\_SUFFIX | 8001 | — |
| Automator | /automator | AUTOMATOR\_SUFFIX | 8002 | — |
| Redis | — | — | 6379 | — |
| RabbitMQ | — | — | 5672, 15672 | — |
| Supabase Kong API Gateway | /supabase | SUPABASE\_SUFFIX | 8000, 8443 | 8000, 8443 (admin only) |
| Supabase Postgres | — | — | 6543 | — |
| PostgreSQL (automator) | — | — | 5433 | — |
| Redis (automator) | — | — | 6380 | — |
| Ollama | — | — | 11434 | — (only if deploying Ollama locally) |
**Protocol support**
| Service | HTTP | HTTPS | WebSocket |
| :------------------------ | :--- | :---- | :-------- |
| Frontend | ✓ | ✓ | — |
| Nginx | ✓ | ✓ | — |
| Backend | ✓ | ✓ | — |
| Automator | ✓ | ✓ | — |
| Redis | ✓ | ✓ | — |
| RabbitMQ | ✓ | ✓ | — |
| Supabase Kong API Gateway | ✓ | ✓ | ✓ |
| Supabase Postgres | ✓ | ✓ | — |
| PostgreSQL (automator) | ✓ | ✓ | — |
| Redis (automator) | ✓ | ✓ | — |
| Ollama | ✓ | ✓ | — |
> **Notes:** All internal machines must be able to communicate freely with each other. We recommend using SSL (HTTPS) connections; HTTP is supported during PoCs.
**Firewall and Security Settings:**
Validate that firewall rules or security groups allow for required traffic.
## General Architecture
### Architecture Diagram – On-Premise
Deployment architecture flow for single virtual machine box with mentioned prerequisite resource allocation
### Deployment architecture flow for AWS Cloud deployment
# Odin AI Platform - AWS EKS (Services and Infrastructure) Guide
Source: https://learn.getodin.ai/offerings/on-premise/kubernetes-deployment/aws-architecture
Architecture overview, component descriptions, and data flow for the Odin AI Platform services infrastructure on AWS EKS.
This document provides a comprehensive overview of the AWS architecture for Odin AI Platform services infrastructure. The architecture follows cloud-native patterns with AWS managed services, Kubernetes orchestration, and automated scaling.
***
# AWS Architecture Overview
The architecture follows cloud-native patterns with AWS managed services, Kubernetes orchestration, and automated scaling.
***
## Architecture Diagram
```mermaid theme={null}
flowchart TD
INTERNET["🌐 INTERNET"]
DNS["DNS Provider\n(Route 53 / Cloudflare / etc.)\n──────────────────────────────\n• app.your-domain — Web Frontend\n• api.your-domain — FastAPI Backend\n• automations.your-domain — Automator\n• supabase.your-domain — Supabase Kong\n• signoz.your-domain — SigNoz"]
ALB["APPLICATION LOAD BALANCER\n──────────────────────────────\n• SSL Termination via ACM\n• HTTP → HTTPS Redirect\n• Health Checks & Target Groups\n• Routing by hostname/path"]
subgraph VPC["VPC"]
subgraph PUB["Public Subnets (3 AZs)"]
NAT["NAT Gateway × 3"]
end
subgraph PRIV["Private Subnets (3 AZs)"]
NODES["EKS Worker Nodes"]
end
end
subgraph EKS["EKS CLUSTER"]
KARPENTER["KARPENTER — Dynamic Node Provisioning\n──────────────────────────────\n• Spot prioritisation & consolidation\n• Interruption handling via SQS\n• Node classes: general, compute-intensive, database"]
KEDA["KEDA — Event-driven Pod Autoscaling\n──────────────────────────────\n• CPU / Memory threshold scaling\n• Fast scale-down stabilisation"]
PODS["APPLICATION PODS\n──────────────────────────────\n• Web Frontend (port 3000)\n• FastAPI Backend (port 8001)\n• Celery Workers\n• Automator (port 80)\n• Supabase services (Kong, Auth, Storage…)\n• PostgreSQL Automator (port 5432)"]
SIGNOZ["OBSERVABILITY — SigNoz (optional)\n──────────────────────────────\n• Distributed tracing, metrics, logs\n• k8s-infra agent for cluster metrics"]
end
subgraph DATA["DATA LAYER"]
REDIS["ELASTICACHE\n(Redis)\n──────────\n• Encryption\n• Multi-AZ\n• Port 6379"]
MQ["AMAZON MQ\n(RabbitMQ)\n──────────\n• Async queue\n• AMQP/SSL\n• Port 5671"]
SUPABASE["SUPABASE\n(DB / Auth)\n──────────\nOption A: Cloud\nOption B: Self-hosted\nvia CNPG HA on EKS"]
end
INTERNET --> DNS
DNS --> ALB
ALB --> VPC
PUB --> PRIV
PRIV --> EKS
EKS --> DATA
```
Self-hosted Supabase uses a CloudNativePG-managed HA PostgreSQL cluster (`ha-supabase-db`) with PgBouncer pooling, MinIO for object storage, and the full Supabase application stack deployed via `helm-deployment/supabase-kubernetes-ha`. Supabase Cloud is the alternative if self-hosting is not required.
***
## Key Components
### 1. Networking Layer
#### DNS Provider
* **Purpose:** Domain name resolution; works with any provider (Route 53, Cloudflare, etc.)
* **Domains** (use your own domain, e.g. `example.com`):
* `app.example.com` — Web Frontend
* `api.example.com` — FastAPI Backend
* `automations.example.com` — Automator Service
* `supabase.example.com` — Supabase Kong (self-hosted only)
* `signoz.example.com` — SigNoz observability (optional)
* **SSL Validation:** CNAME records required for ACM DNS validation
#### Application Load Balancer (ALB)
* **Purpose:** SSL termination, load balancing, and hostname-based routing
* **Features:**
* SSL/TLS termination using ACM certificates (wildcard or per-service)
* HTTP → HTTPS redirect
* Health checks for all target groups
* **Managed by:** AWS Load Balancer Controller (Helm chart in `helm-deployment/infrastructure`)
#### VPC
* **CIDR:** Environment-specific (e.g. `10.x.0.0/16`)
* **Availability Zones:** 3 AZs in the chosen region
* **Subnets:** 3 public (NAT Gateways) + 3 private (EKS nodes)
* **Outbound:** NAT Gateway per AZ for node egress
***
### 2. Compute Layer
#### EKS Cluster
* **Version:** Kubernetes 1.33
* **System Node Group:** Managed node group running Karpenter controller (not on Karpenter-managed nodes, per AWS best practice)
* **Add-ons:** EBS CSI Driver, AWS Load Balancer Controller, CoreDNS, kube-proxy
#### Karpenter — Dynamic Node Provisioning
* **Purpose:** Just-in-time node provisioning and cost optimisation
* **Node Classes:**
* **General Purpose:** Spot instances for most workloads
* **Compute Intensive:** High-CPU instances for CPU-bound tasks
* **Memory Intensive:** Memory-optimised instances for large datasets
* **Database:** On-demand instances for stateful/database workloads
* **GPU:** GPU instances for AI/ML workloads (optional)
* **Features:** Spot prioritisation, automatic consolidation, SQS-based interruption handling
#### KEDA — Kubernetes Event-Driven Autoscaling
* **Purpose:** Horizontal pod autoscaling based on resource metrics
* **Targets:**
| Service | Replicas | CPU Threshold | Memory Threshold |
| --------------- | -------- | ------------- | ---------------- |
| Web Frontend | 2–8 | 60% | 80% |
| FastAPI Backend | 2–10 | 70% | 80% |
| Celery Workers | 2–8 | 70% | 80% |
| Automator | 2–8 | 70% | 80% |
* **Scale-down:** 30s stabilisation window for fast response
***
### 3. Application Services
#### Web Frontend
* **Port:** 3000
* **Replicas:** 2–8 (KEDA-managed)
* **Purpose:** React application serving the user interface
#### FastAPI Backend
* **Port:** 8001
* **Replicas:** 2–10 (KEDA-managed)
* **Purpose:** REST API server handling business logic and data access
#### Celery Workers
* **Replicas:** 2–8 (KEDA-managed)
* **Purpose:** Background task processing (queued via RabbitMQ)
#### Automator Service
* **Port:** 80
* **Replicas:** 2–8 (KEDA-managed)
* **Purpose:** Workflow automation and orchestration
#### Supabase Kong
* **Port:** 8000 (internal cluster service)
* **Purpose:** API gateway for all Supabase services
* **Routing:** External traffic reaches Kong via the ALB ingress defined in `odin-services/main-ingress.yaml`
#### SigNoz (optional)
* **Namespace:** `monitoring`
* **Components:** SigNoz platform + k8s-infra DaemonSet agent
* **Purpose:** Distributed tracing, metrics aggregation, log management
* **Enabled by:** `ENABLE_SIGNOZ=true`
***
### 4. Data Layer
#### ElastiCache Redis
* **Purpose:** Caching, session storage, and Celery broker/result backend
* **Configuration:**
* Node type: configurable (e.g. `cache.t3.micro`)
* Port: `6379`
* Encryption at-rest and in-transit
* Multi-AZ for high availability
* **Enabled by:** `ENABLE_AWS_SERVICES=true`
#### Amazon MQ (RabbitMQ)
* **Purpose:** Message queuing for asynchronous task processing
* **Configuration:**
* Engine: RabbitMQ
* Ports: `5671` (AMQP/SSL), `15671` (Management/SSL)
* Deployment mode: single-instance or active/standby
* **Enabled by:** `ENABLE_AWS_SERVICES=true`
#### Supabase — Option A: Cloud (managed)
* **Purpose:** External managed PostgreSQL, Auth, Storage, and Realtime
* **Connection:** Supabase project URL and service role key configured in `values/odin-services.yaml`
#### Supabase — Option B: Self-hosted on EKS
* **Purpose:** Full Supabase stack running inside the cluster
* **Components:**
* CloudNativePG operator (`cnpg-system`) — manages the Postgres cluster lifecycle
* HA Supabase DB (`ha-supabase-db`) — CloudNativePG Cluster resource with PgBouncer pooler
* Supabase application (`supabase` namespace) — Kong, Auth, Storage (MinIO), Meta, Rest, Realtime, Studio
* **Deployment order:** CloudNativePG → HA Supabase DB → Supabase app
* **Enabled by:** `ENABLE_CNPG=true`, `ENABLE_HA_SUPABASE_DB=true`, `ENABLE_SUPABASE=true`
#### PostgreSQL Automator
* **Purpose:** Local PostgreSQL database for the Automator service
* **Port:** 5432
* **Storage:** EBS persistent volume
* **Node affinity:** Database-dedicated nodes
***
### 5. Security & IAM
#### IAM Roles
| Role | Purpose |
| --------------------------------- | ------------------------------------------- |
| EKS Cluster Role | Cluster-level API permissions |
| Node Group Role | EC2 node permissions (ECR, SSM, networking) |
| Karpenter Controller Role | EC2 provisioning, SQS interruption queue |
| AWS Load Balancer Controller Role | ELBv2 and EC2 management |
| EBS CSI Driver Role | EBS volume lifecycle management |
Role names follow the pattern `-` and are created by the EKS Terraform module.
#### Security Groups
* **ALB:** Auto-created by AWS Load Balancer Controller (80/443 inbound)
* **EKS Cluster:** Node-to-node and pod communication
* **Redis:** Port 6379 from VPC CIDR only
* **RabbitMQ:** Ports 5671, 15671 from VPC CIDR only
#### SSL/TLS
* **Termination:** ALB level (pods see plain HTTP internally)
* **Certificates:** ACM certificates — either per-service or a single wildcard
* **Validation:** DNS CNAME validation via your DNS provider
* **Minimum protocol:** TLS 1.2
***
### 6. Infrastructure as Code
#### Terraform Modules
* **`modules/eks`:** EKS cluster, VPC, node groups, Karpenter, IAM, Helm releases
* **State:** S3 bucket with versioning, DynamoDB lock table
#### Terragrunt
* **Environment isolation:** One directory per environment under `terragrunt/environments/`
* **Template:** `env-template-folder` — copy and fill placeholders to create a new environment
* **DRY configuration:** Shared `root.hcl` with per-environment overrides
* **Enable/disable flags:** Services toggled via environment variables (`ENABLE_*`)
#### Helm Charts
| Chart | Namespace | Description |
| ------------------------ | ---------------- | ------------------------------------- |
| `infrastructure` | `infrastructure` | ALB Controller |
| `odin-services` | `default` | Web, API, Workers, Automator, Ingress |
| `aws-ebs-csi-driver` | `kube-system` | EBS volume provisioning |
| `keda` | `keda` | Pod autoscaling |
| `cloudnative-pg` | `cnpg-system` | PostgreSQL operator |
| `ha-supabase-db` | `ha-supabase-db` | HA Postgres cluster + PgBouncer |
| `supabase-kubernetes-ha` | `supabase` | Full Supabase stack |
| `signoz` | `monitoring` | Observability platform |
| `k8s-infra` | `monitoring` | Cluster metrics agent |
***
## Data Flow
### 1. User Request Flow
```
User → DNS → ALB (SSL termination) → EKS Pod (Web Frontend)
→ EKS Pod (FastAPI Backend)
→ EKS Pod (Supabase Kong)
```
1. User accesses `app.example.com`
2. DNS resolves to the ALB
3. ALB terminates SSL and routes by hostname to the correct target group
4. Web Frontend serves the React app and makes API calls to `api.example.com`
5. FastAPI Backend processes requests and reads/writes to data services
### 2. API Request Flow
```
Client → ALB → FastAPI Backend → Redis (cache) / RabbitMQ (queue) / Supabase (DB)
```
1. Client calls `api.example.com`
2. ALB routes to FastAPI pod
3. Backend checks Redis cache; on miss, queries Supabase database
4. Async tasks are enqueued in RabbitMQ and processed by Celery Workers
### 3. Background Processing Flow
```
FastAPI → RabbitMQ → Celery Worker → Supabase DB
```
1. FastAPI enqueues a task in RabbitMQ
2. Celery Worker dequeues and processes the task
3. Results are written back to the Supabase database
### 4. Automator Workflow
```
Automator → PostgreSQL (local) → Redis → External APIs
```
1. Automator receives a workflow request
2. Workflow state is persisted in the local PostgreSQL instance
3. Redis caches intermediate results
4. External APIs are called as part of the automation
### 5. Scaling Flow
```
Metrics → KEDA → Pod scaling → Karpenter → Node provisioning
```
1. KEDA evaluates CPU/Memory metrics against configured thresholds
2. Pods are scaled horizontally within the configured replica range
3. If cluster capacity is insufficient, Karpenter provisions new EC2 nodes (preferring Spot)
4. When load drops, KEDA scales pods down; Karpenter consolidates and terminates idle nodes
### 6. Security Flow
```
Internet → ALB (TLS 1.2+, ACM) → Security Groups → Pods → IAM IRSA roles → AWS APIs
```
1. All external traffic terminates TLS at the ALB
2. Security groups enforce least-privilege network access
3. Pods communicate with AWS services via IRSA (IAM Roles for Service Accounts)
***
## High Availability Summary
| Feature | Implementation |
| ------------------- | -------------------------------------------------------------------- |
| Multi-AZ deployment | 3 AZs for EKS nodes, Redis, subnets |
| Load balancing | ALB with multiple target groups |
| Pod redundancy | Minimum 2 replicas per service |
| Database HA | CloudNativePG cluster with PgBouncer (self-hosted) or Supabase Cloud |
| Cache redundancy | ElastiCache Multi-AZ |
| Node autoscaling | Karpenter with Spot + On-Demand mix |
| Pod autoscaling | KEDA CPU/Memory-based |
| Observability | SigNoz (optional) |
| State management | S3 with versioning + DynamoDB lock |
***
## Cost Optimisation
* **Spot Instances:** Karpenter prioritises Spot for all non-database workloads
* **Node consolidation:** Karpenter automatically reclaims underutilised nodes
* **Pod right-sizing:** KEDA scales pods down during quiet periods
* **On-Demand only where needed:** Database node class uses On-Demand for stability
***
## Maintenance & Operations
### Deployment Process
```bash theme={null}
cd terragrunt/environments/
# Set required ENABLE_* and domain/certificate environment variables
terragrunt apply
# Rolling updates: re-apply after updating image tags or values files
```
See [Terragrunt Deployment Guide](/on-premise/kubernetes-deployment/terragrunt-deployment.mdx) for the full deployment sequence.
### Backup Strategy
* **EBS Snapshots:** Automated snapshots for persistent volumes (Automator DB, Supabase MinIO)
* **CloudNativePG:** Continuous WAL archiving + scheduled base backups (if configured)
* **Supabase Cloud:** Managed daily backups (cloud option)
* **IaC state:** S3 versioned bucket
### Disaster Recovery
* **Multi-AZ:** All stateful services span multiple availability zones
* **CloudNativePG HA:** Automatic failover between Postgres primary and replicas
* **Supabase Cloud:** Cross-region redundancy (cloud option)
* **Terraform state:** S3 versioning allows rollback to any previous state
***
## Additional Resources
* [AWS Load Balancer Controller](https://kubernetes-sigs.github.io/aws-load-balancer-controller/)
* [Karpenter Documentation](https://karpenter.sh/docs/)
* [KEDA Documentation](https://keda.sh/docs/)
* [CloudNativePG Documentation](https://cloudnative-pg.io/documentation/)
* [Supabase Self-hosting](https://supabase.com/docs/guides/self-hosting)
* [SigNoz Documentation](https://signoz.io/docs/)
* [Terragrunt Deployment Guide](/on-premise/kubernetes-deployment/terragrunt-deployment.mdx)
# Disaster Recovery & RTO/RPO Guide
Source: https://learn.getodin.ai/offerings/on-premise/kubernetes-deployment/disaster-recovery-guide
DR strategy, RTO/RPO targets, backup systems, auto-recovery mechanisms, and recovery procedures for the Odin AI Platform AWS/EKS infrastructure.
This document describes the disaster recovery (DR) strategy, Recovery Time Objective (RTO), and Recovery Point Objective (RPO) for the Odin AI Platform AWS/EKS infrastructure. It covers built-in HA capabilities, active backup systems, recovery procedures, and known gaps.
For deployment instructions, see [Terragrunt Deployment Guide](/offerings/on-premise/kubernetes-deployment/terragrunt-deployment).
***
## Architecture & High Availability Summary
### Infrastructure Components
| Component | Implementation | HA Model |
| ---------------------- | ------------------------------------ | ---------------------------------------- |
| Compute | EKS (Kubernetes 1.33) + Karpenter | Multi-AZ nodes, Spot + On-Demand |
| Pod autoscaling | KEDA | CPU/Memory-based, min 2 replicas |
| Ingress / SSL | ALB + ACM | Multi-AZ, health-check routing |
| Cache | ElastiCache Redis (conditional) | Multi-AZ with automatic failover |
| Message queue | Amazon MQ / RabbitMQ (conditional) | Single-instance or active/standby |
| Database (self-hosted) | CloudNativePG HA cluster + PgBouncer | Primary + replicas, auto-failover |
| Database (cloud) | Supabase Cloud | Managed, cross-region by provider |
| Observability | SigNoz + k8s-infra (conditional) | In-cluster, no single point of failure |
| IaC state | S3 (versioned) + DynamoDB lock | Encrypted, versioned |
| Persistent volumes | EBS (via EBS CSI Driver) | Snapshots via AWS Data Lifecycle Manager |
### Current HA Capabilities
| Capability | Recovery Time | Data Loss | Status |
| ------------------------------ | ------------- | ------------- | --------------------- |
| AZ failure (pods) | 0–5 min | None | Active |
| Pod failure / crash | 0–2 min | None | Active |
| ALB health check re-routing | 0–1 min | None | Active |
| Redis Multi-AZ failover | \< 1 min | None | Active (when enabled) |
| Karpenter node replacement | 0–10 min | None | Active |
| EBS snapshot restore | 15–30 min | Up to 24 h | Active |
| CloudNativePG PITR restore | 15–60 min | Up to WAL lag | Active (when enabled) |
| Full infrastructure recreation | 30–60 min | None (IaC) | Via Terragrunt |
***
## RTO / RPO Targets
| Scenario | RTO Target | RPO Target | Current Capability |
| ------------------------ | ---------- | --------------------------- | ----------------------------- |
| Single pod failure | \< 2 min | 0 | Met (KEDA min replicas) |
| Single node failure | \< 10 min | 0 | Met (Karpenter replacement) |
| AZ failure | \< 5 min | 0 | Met (Multi-AZ spread) |
| Redis failure | \< 1 min | 0 | Met (Multi-AZ failover) |
| Postgres primary failure | \< 5 min | 0–seconds WAL lag | Met (CNPG auto-failover) |
| EBS volume loss | 15–30 min | \< 24 h | Partial — DLM snapshots daily |
| Full region failure | > 60 min | Depends on backup frequency | Not currently automated |
***
## Backup Systems
### 1. Terraform / Terragrunt State — S3
**What is backed up:** All infrastructure state (EKS, networking, IAM, Helm releases).
**Implementation:**
* S3 bucket per environment: `ekb-terraform-state-` (bootstrapped via `terragrunt/environments//state/`)
* Versioning enabled — any previous state version can be restored
* Server-side encryption (AES-256)
* DynamoDB table for state locking
**Recovery:** Roll back to any previous state version in S3, then re-run `terragrunt apply`.
**RPO:** Every `terragrunt apply` commit — continuous.
***
### 2. EBS Persistent Volumes — AWS Data Lifecycle Manager
**What is backed up:** EBS volumes attached to pods (Automator PostgreSQL, Supabase MinIO, any stateful workloads).
**Implementation:** AWS Data Lifecycle Manager (DLM) policy targeting environment tags.
```bash theme={null}
# Tag EBS volumes with your environment name, then create a DLM policy:
# - Resource: EBS volumes
# - Target tag: Environment=
# - Schedule: Daily at 02:00 UTC
# - Retention: 7 snapshots
```
**Recovery:**
```bash theme={null}
# 1. Identify the snapshot to restore
aws ec2 describe-snapshots --filters "Name=tag:Environment,Values="
# 2. Create a volume from the snapshot
aws ec2 create-volume \
--snapshot-id snap-xxxxxxxxxxxxxxxxx \
--availability-zone \
--volume-type gp3
# 3. Update the PersistentVolume in Kubernetes to reference the new volume ID
kubectl patch pv -p '{"spec":{"awsElasticBlockStore":{"volumeID":""}}}'
```
**RPO:** Up to 24 hours (daily snapshots). Reduce by increasing DLM schedule frequency.
***
### 3. CloudNativePG (HA Supabase DB) — Barman Cloud Backups
**Applies to:** Environments with `ENABLE_CNPG=true` and `ENABLE_HA_SUPABASE_DB=true`.
**What is backed up:** The CloudNativePG Postgres cluster (`ha-supabase-db`), including continuous WAL (Write-Ahead Log) streaming to S3 or MinIO, and scheduled full base backups via CNPG `ScheduledBackup` CRD.
**Implementation** (configured in `values/ha-supabase-db.yaml`):
```yaml theme={null}
postgres:
backup:
enabled: true # toggle barman-cloud backups
# barmanObjectStore points to S3 bucket or MinIO endpoint
# IRSA / service account must have s3:PutObject, s3:GetObject, s3:ListBucket
retentionPolicy: "30d" # keep backups for 30 days
compression: gzip
```
**Verify backup status:**
```bash theme={null}
# List all backups for the cluster
kubectl get backup -n ha-supabase-db
# Check a specific backup
kubectl describe backup -n ha-supabase-db
# Trigger an on-demand backup
kubectl cnpg backup ha-supabase-db -n ha-supabase-db
```
**Point-in-time recovery (PITR):**
```yaml theme={null}
# Create a new CNPG Cluster restoring from a backup
# (in a new namespace or after removing the original)
apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
name: ha-supabase-db-restored
namespace: ha-supabase-db-restore
spec:
instances: 3
bootstrap:
recovery:
source: ha-supabase-db
recoveryTarget:
targetTime: "2026-03-19T03:00:00.000000+00:00" # target point in time
externalClusters:
- name: ha-supabase-db
barmanObjectStore:
# same S3/MinIO config as the source cluster
serverName: ha-supabase-db
```
**RPO:** Near-zero for WAL-enabled clusters (seconds of lag, bounded by WAL upload interval).
***
### 4. ElastiCache Redis — Multi-AZ Replication
**Applies to:** Environments with `ENABLE_AWS_SERVICES=true`.
Redis is not a primary data store — it holds transient cache and session data. DR focus is on fast failover rather than backup/restore.
**Implementation:**
* Multi-AZ enabled with automatic failover
* Encryption at-rest and in-transit
* A primary node failure promotes a replica automatically (\< 1 min)
**RPO:** Redis data is ephemeral by design. Cache misses after failover are expected; the application re-populates from the database.
***
### 5. Amazon MQ (RabbitMQ) — Message Queue
**Applies to:** Environments with `ENABLE_AWS_SERVICES=true`.
**Implementation:**
* Single-instance (default) or active/standby deployment
* In-flight messages may be lost during a broker restart; design consumers to be idempotent
* Management UI available on port 15671 (SSL)
**RPO:** Single-instance — messages in-flight at time of failure may be lost. Use active/standby deployment mode to reduce this risk.
***
## Auto-Recovery Mechanisms
### Karpenter — Node Provisioning & Recovery
* **Consolidation:** `WhenEmptyOrUnderutilized` — idle nodes are terminated automatically
* **Spot interruption handling:** Listens to SQS interruption events; drains and replaces Spot nodes before termination
* **Node drift:** Nodes using outdated AMIs or configs are replaced automatically when `enable_drift = true`
* **Recovery time:** New node provisioned in 0–10 minutes
### KEDA — Pod Autoscaling
* **Minimum replicas:** 2 for all services (Web, API, Celery, Automator) — prevents single-point-of-failure
* **CPU threshold:** 60–70% triggers scale-out
* **Memory threshold:** 80% triggers scale-out
* **Scale-down stabilisation:** 30 seconds — avoids flapping
* **Recovery time:** Failed pods rescheduled within 0–2 minutes
### Kubernetes Pod Anti-Affinity
All stateless services use `preferredDuringSchedulingIgnoredDuringExecution` anti-affinity on `kubernetes.io/hostname` to spread pods across nodes and AZs.
```yaml theme={null}
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchExpressions:
- key: app
operator: In
values: ["web", "fastapi-backend", "celery-worker", "automator"]
topologyKey: kubernetes.io/hostname
```
***
## Recovery Procedures
### Scenario 1: AZ Failure
**Expected behaviour:** Karpenter provisions replacement nodes in the remaining AZs; KEDA reschedules pods; ALB stops routing to unhealthy targets.
**Verification:**
```bash theme={null}
kubectl get nodes -o wide # confirm nodes are in healthy AZs
kubectl get pods -A -o wide # confirm pods are running
kubectl get ingress # confirm ALB is routing correctly
```
No manual intervention is required under normal circumstances.
***
### Scenario 2: Postgres Primary Node Failure (CloudNativePG)
CloudNativePG automatically promotes a replica to primary.
```bash theme={null}
# Monitor failover
kubectl get cluster ha-supabase-db -n ha-supabase-db -w
# Confirm new primary
kubectl cnpg status ha-supabase-db -n ha-supabase-db
# Check PgBouncer pooler is pointing to new primary
kubectl get svc -n ha-supabase-db | grep pooler
```
Applications reconnect via PgBouncer — no connection string change needed.
***
### Scenario 3: Restore EBS Volume from Snapshot
```bash theme={null}
# 1. Find snapshots for the environment
aws ec2 describe-snapshots \
--filters "Name=tag:Environment,Values=" \
--query 'Snapshots[*].[SnapshotId,StartTime,VolumeSize]' \
--output table
# 2. Create a new volume from the chosen snapshot
aws ec2 create-volume \
--snapshot-id snap-xxxxxxxxxxxxxxxxx \
--availability-zone \
--volume-type gp3 \
--tag-specifications 'ResourceType=volume,Tags=[{Key=Environment,Value=}]'
# 3. Scale down the affected workload
kubectl scale deployment --replicas=0
# 4. Update the PV to reference the new EBS volume, then scale back up
kubectl patch pv -p '{"spec":{"csi":{"volumeHandle":""}}}'
kubectl scale deployment --replicas=2
```
***
### Scenario 4: Full Infrastructure Recreation
Used after catastrophic failure or when rebuilding a region.
```bash theme={null}
# 1. Bootstrap state bucket (if it doesn't exist)
cd terragrunt/environments//state
terragrunt apply
# 2. Recreate the EKS cluster and core infrastructure
cd terragrunt/environments/
terragrunt apply
# 3. Deploy services in order (see Terragrunt Deployment Guide § Phase 6)
ENABLE_CNPG=true terragrunt apply --target='helm_release.local["cloudnative-pg"]'
ENABLE_HA_SUPABASE_DB=true terragrunt apply --target='helm_release.local["ha-supabase-db"]'
ENABLE_SUPABASE=true terragrunt apply --target='helm_release.local["supabase"]'
```
**Estimated RTO:** 30–60 minutes for full cluster; 60–120 minutes if EBS/CNPG data must be restored.
***
### Scenario 5: Terragrunt State Rollback
```bash theme={null}
# List state versions in S3
aws s3api list-object-versions \
--bucket ekb-terraform-state- \
--prefix
# Restore a specific version
aws s3api get-object \
--bucket ekb-terraform-state- \
--key \
--version-id \
terraform.tfstate
# Re-import or apply with the restored state
```
***
## Observability & Alerting (SigNoz)
When `ENABLE_SIGNOZ=true`, SigNoz is deployed to the `monitoring` namespace and provides:
* Distributed tracing for all Odin AI Platform services
* Cluster metrics via the k8s-infra DaemonSet agent (CPU, memory, pod status)
* Log aggregation from all pods
* Alerting — configure alert rules in SigNoz to notify on pod crash loops, high error rates, or node pressure
For DR purposes, SigNoz dashboards are the primary tool for diagnosing and confirming recovery after an incident. SigNoz data itself is stored on EBS PVs and is covered by the EBS snapshot policy.
***
## Gaps & Recommendations
| Gap | Risk | Recommendation |
| ---------------------------------- | --------------------------------------------- | -------------------------------------------------------------------------------------- |
| No cross-region replication | Full region failure = extended RTO | Consider RDS cross-region read replica or S3 cross-region replication for CNPG backups |
| EBS snapshots are daily | Up to 24 h data loss for EBS-backed workloads | Increase DLM frequency to hourly for critical volumes |
| RabbitMQ single-instance (default) | In-flight messages lost on broker failure | Switch to `ACTIVE_STANDBY_MULTI_AZ` deployment mode for production |
| No automated DR drill | Recovery procedures untested until needed | Schedule quarterly recovery drills; test CNPG PITR restore in a staging environment |
| SigNoz on same cluster | Observability lost during cluster failure | Consider a separate lightweight monitoring endpoint or CloudWatch fallback alerts |
# EKS Deployment Prerequisites
Source: https://learn.getodin.ai/offerings/on-premise/kubernetes-deployment/eks-deployment-prerequisites
Pre-deployment checklist to complete and review with the customer before deploying the Odin AI Platform EKS infrastructure on their AWS account.
This checklist must be completed and reviewed with the customer before deploying the Odin AI Platform EKS infrastructure on their AWS account. All items must be confirmed, captured, and signed off prior to deployment.
***
## Checklist
### AWS Account & Access
| Area | Checklist Item | Detailed Requirement | What / Why | Acceptance Criteria | Status | Captured Values / Notes |
| ------- | ---------------------- | -------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ------------------------------------------------------------------ | ------ | ----------------------- |
| Account | AWS Account ID | Valid AWS Account ID must be shared | Required for IAM role creation, billing ownership, tagging, and Terraform backend access | Account ID is correct, billing enabled, and accessible | | |
| Region | AWS Region Selection | Region must support EKS, EC2, VPC, ACM, ElastiCache, Amazon MQ | Some services are region-restricted; unsupported regions break deployment | Region confirmed in AWS console and supports all required services | | |
| CLI | AWS CLI Configured | IAM User with AWS CLI authenticated | Terraform/Terragrunt deployments require programmatic access | `aws sts get-caller-identity` returns expected account | | |
| IAM | Deployment Permissions | Administrator IAM permissions | Deployment spans EC2, EKS, IAM, S3, ACM, Route 53, MQ, ElastiCache, CloudWatch | IAM policy allows create/update/delete on required services | | |
### Service Quotas
| Area | Checklist Item | Detailed Requirement | What / Why | Acceptance Criteria | Status | Captured Values / Notes |
| ----------- | ------------------------------ | --------------------------------------------------------------------------------------- | -------------------------------------------------------------------- | ------------------------------------------------------- | ------ | ----------------------- |
| EC2 | On-Demand vCPU Quota | Minimum 100–150 vCPU quota for On-Demand Standard (A, C, D, H, I, M, R, T, Z) instances | Autoscaling, r6a instances, and Karpenter require high vCPU headroom | Quota increase approved in Service Quotas console | | |
| EC2 | Instance Families Availability | C, M, R family instances available in region | Workloads require compute, memory, and database-optimised nodes | Instance families visible and selectable in EC2 console | | |
| EKS | EKS Cluster Quota | At least 1 EKS cluster allowed based on required environment deployment | Cluster creation blocked if quota insufficient | Quota >= 1 cluster | | |
| VPC | NAT Gateway Quota | 1 NAT Gateway per AZ (recommended 3) | Private subnets require outbound internet access | Quota >= AZ count | | |
| Networking | Elastic IP Quota | Elastic IPs available for NAT Gateways | Each NAT Gateway consumes one Elastic IP | Elastic IP quota sufficient for the number of AZs | | |
| ElastiCache | ElastiCache Quota | At least 2 nodes for Redis cluster (`cache.t3.micro`, Redis 7.0) | Required when `ENABLE_AWS_SERVICES=true` | Quota >= 2 nodes | | |
| Amazon MQ | Amazon MQ Quota | At least 1 broker for RabbitMQ (`mq.m5.large`, RabbitMQ 3.13) | Required when `ENABLE_AWS_SERVICES=true` | Quota >= 1 broker | | |
### Domains & SSL
| Area | Checklist Item | Detailed Requirement | What / Why | Acceptance Criteria | Status | Captured Values / Notes |
| ------------ | ------------------------ | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------- | --------------------------------------------------------------------------- | ------ | ----------------------- |
| Domains | Frontend Domain | Public domain for web frontend (e.g. `app.example.com`) | Used for ALB routing and SSL termination | Domain resolves and ownership confirmed | | |
| Domains | Backend API Domain | Public domain for FastAPI backend (e.g. `api.example.com`) | Required for API access and TLS | Domain documented and approved | | |
| Domains | Automator Service Domain | Public domain for Automator Service (e.g. `automations.example.com`) | Required for API access and TLS | Domain documented and approved | | |
| Domains | Supabase Service Domain | When not using Supabase Cloud — public domain for Supabase (e.g. `supabase.example.com`) | Required for API access and TLS when self-hosting Supabase | Domain documented and approved | | |
| Certificates | ACM Certificates | Wildcard or individual ACM certificates created in the deployment region | TLS termination at ALB requires valid ACM certificates | Certificates in `ISSUED` state and in the same AWS region as the deployment | | |
### Networking
| Area | Checklist Item | Detailed Requirement | What / Why | Acceptance Criteria | Status | Captured Values / Notes |
| ------- | --------------- | ---------------------------------------------------- | ------------------------------------------------------------------- | -------------------------------------------- | ------ | ----------------------- |
| VPC | VPC Strategy | Confirm existing VPC or approve new VPC creation | Defines isolation, routing, and security boundaries | VPC ID or CIDR block approved | | |
| CIDR | CIDR Planning | CIDR must not overlap with on-premises or other VPCs | Overlapping CIDRs break routing and VPN connectivity | CIDR validated against existing networks | | |
| Subnets | Public Subnets | Public subnets per AZ for ALB and NAT Gateways | Required for ingress and egress traffic | Subnets tagged and routable | | |
| Subnets | Private Subnets | Private subnets per AZ for EKS worker nodes | Ensures workloads are not directly internet-exposed | Subnets mapped and reachable via NAT Gateway | | |
| Egress | Outbound Access | Outbound ports 80, 443, 53 allowed from worker nodes | Needed for container image pulls, AWS API calls, and DNS resolution | Firewall/security group rules validated | | |
### Service Configuration
| Area | Checklist Item | Detailed Requirement | What / Why | Acceptance Criteria | Status | Captured Values / Notes |
| ------------- | ------------------- | ---------------------------------------------------------------------------- | ----------------------------------------------------------------------- | --------------------------------------------------------------------- | ------ | ----------------------- |
| Supabase | Supabase Enablement | Confirm self-hosted Supabase (`ENABLE_SUPABASE=true`) or Supabase Cloud | Affects DB provisioning, secrets, ingress, and networking configuration | Decision documented; corresponding `ENABLE_*` flags set in deployment | | |
| AWS Services | Redis Usage | Confirm AWS ElastiCache Redis (`ENABLE_AWS_SERVICES=true`) or external Redis | Affects high availability, cost, and networking design | Decision documented | | |
| AWS Services | RabbitMQ Usage | Confirm Amazon MQ (`ENABLE_AWS_SERVICES=true`) or external RabbitMQ | Impacts messaging reliability and HA | Decision documented | | |
| Load Balancer | ALB Controller | AWS Load Balancer Controller enabled (`ENABLE_ALB_CONTROLLER=true`, default) | Required for ALB ingress provisioning from Kubernetes annotations | Controller pods running in `infrastructure` namespace | | |
### Autoscaling
| Area | Checklist Item | Detailed Requirement | What / Why | Acceptance Criteria | Status | Captured Values / Notes |
| --------- | ------------------- | ------------------------------------------------ | -------------------------------------------------------------------------------------- | ----------------------------------------------------------------- | ------ | ----------------------- |
| Karpenter | Karpenter Installed | Karpenter controller deployed via EKS module | Handles dynamic node provisioning; replaces managed node group autoscaling | Karpenter pods healthy in dedicated node group | | |
| Karpenter | Spot Strategy | Spot vs On-Demand usage defined per node class | Optimises cost while maintaining stability; Spot interruption handling must be enabled | Interruption handling via SQS enabled if Spot instances are used | | |
| KEDA | Pod Autoscaling | KEDA installed via Helm chart (`keda` namespace) | Handles dynamic pod scaling based on CPU/Memory thresholds | KEDA operator pods healthy; ScaledObjects applied to all services | | |
### Storage
| Area | Checklist Item | Detailed Requirement | What / Why | Acceptance Criteria | Status | Captured Values / Notes |
| ---- | -------------- | -------------------------------------------------- | -------------------------------------------------------------------- | --------------------------------------------------- | ------ | ----------------------- |
| EBS | EBS CSI Driver | EBS CSI driver installed (`kube-system` namespace) | Required for dynamic persistent volume provisioning via StorageClass | Driver pods healthy; PVCs provisioning successfully | | |
### Security
| Area | Checklist Item | Detailed Requirement | What / Why | Acceptance Criteria | Status | Captured Values / Notes |
| ---------- | --------------------- | ---------------------------------------------------------------- | ------------------------------------------------------------ | ------------------------------------------------------------------- | ------ | ----------------------- |
| Encryption | Encryption at Rest | EBS volumes, S3 state bucket, and Redis encryption enabled | Protects sensitive data at rest across all storage layers | Encryption confirmed via AWS console for each service | | |
| Encryption | Encryption in Transit | TLS enforced for all external and internal service communication | Prevents data interception in transit | HTTPS endpoints verified; Redis `transit_encryption_enabled = true` | | |
| Audit | Audit Logging | CloudTrail, VPC Flow Logs, and Kubernetes audit logs enabled | Required for incident investigations, compliance, and audits | Logs visible and queryable in CloudWatch / S3 | | |
### Deployment
| Area | Checklist Item | Detailed Requirement | What / Why | Acceptance Criteria | Status | Captured Values / Notes |
| -------- | ----------------- | ---------------------------------------------------- | ------------------------------------------------------------------------ | ----------------------------- | ------ | ----------------------- |
| Schedule | Deployment Window | Deployment date and time window approved by customer | Ensures customer team availability for validation and rollback if needed | Written confirmation received | | |
### Sign-off
| Area | Checklist Item | Detailed Requirement | What / Why | Acceptance Criteria | Status | Captured Values / Notes |
| -------- | ----------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------------- | ------------------------------------------ | ------ | ----------------------- |
| Approval | Customer Approval | Customer formally approves cost estimate, scope, and deployment plan | Formal go-live authorisation required before infrastructure is provisioned | Email or signed document approval received | | |
***
## Service Enable / Disable Flags Reference
Confirm the intended value for each flag with the customer before deployment.
| Environment Variable | Default | Effect |
| ----------------------- | ------- | -------------------------------------------------------------------------- |
| `ENABLE_SUPABASE` | `false` | Deploy self-hosted Supabase stack (Kong, Auth, Storage, Studio) |
| `ENABLE_CNPG` | `false` | Deploy CloudNativePG operator (prerequisite for self-hosted Supabase DB) |
| `ENABLE_HA_SUPABASE_DB` | `false` | Deploy HA PostgreSQL cluster via CloudNativePG (prerequisite for Supabase) |
| `ENABLE_AWS_SERVICES` | `false` | Provision ElastiCache Redis and Amazon MQ RabbitMQ |
| `ENABLE_ALB_CONTROLLER` | `true` | Deploy AWS Load Balancer Controller |
| `ENABLE_SIGNOZ` | `false` | Deploy SigNoz observability platform + k8s-infra agent |
***
## Captured Values Summary
Record final values collected from the customer before deployment.
| Parameter | Value |
| -------------------------------- | ---------------------- |
| AWS Account ID | |
| AWS Region | |
| VPC CIDR | |
| Availability Zones | |
| Frontend Domain | |
| API Domain | |
| Automator Domain | |
| Supabase Domain (if self-hosted) | |
| SigNoz Domain (if enabled) | |
| ACM Certificate ARN(s) | |
| Supabase Mode | Cloud / Self-hosted |
| Redis | ElastiCache / External |
| RabbitMQ | Amazon MQ / External |
| Deployment Date / Window | |
| Customer Approval Reference | |
# Odin AI Platform Terraform Infrastructure
Source: https://learn.getodin.ai/offerings/on-premise/kubernetes-deployment/terraform-infrastructure
Terraform and Terragrunt IaC for managing the Odin AI Platform platform on AWS EKS, with support stubs for GKE, AKS, and bare-metal Kubernetes.
This article contains the Terraform and Terragrunt infrastructure-as-code (IaC) for managing the Odin AI Platform platform on AWS EKS, with support stubs for GKE, AKS, and bare-metal Kubernetes. It includes all Helm chart deployments and environment configuration templates.
***
## Documentation
| Document | Description |
| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------- |
| [Terragrunt Deployment Guide](/offerings/on-premise/kubernetes-deployment/terragrunt-deployment) | Step-by-step guide for creating and deploying a new environment |
| [AWS Architecture Overview](/offerings/on-premise/kubernetes-deployment/aws-architecture) | Architecture overview, component descriptions, and data flow |
| [Disaster Recovery Strategy](/offerings/on-premise/kubernetes-deployment/disaster-recovery-guide) | DR strategy, RTO/RPO targets, backup systems, and recovery procedures |
| [Prerequisites Checklist](/offerings/on-premise/kubernetes-deployment/eks-deployment-prerequisites) | Pre-deployment checklist to complete with the customer |
***
## Repository Structure
```
ekb-terraform/
├── root.hcl # Root Terragrunt config (remote state, provider generation)
│
├── modules/ # Reusable Terraform modules
│ ├── eks/ # AWS EKS cluster, VPC, Karpenter, IAM, Helm releases
│ ├── aws-services/ # ElastiCache Redis, Amazon MQ RabbitMQ
│ ├── helm/ # Generic Helm release module
│ ├── state/ # S3 state bucket bootstrap
│ ├── aks/ # Azure AKS (stub)
│ ├── gke/ # Google GKE (stub)
│ └── baremetal/ # Bare-metal Kubernetes (stub)
│
├── terragrunt/
│ ├── .gitignore
│ └── environments/
│ ├── STATE_MANAGEMENT_README.md
│ └── env-template-folder/ # Template for new environments — copy and fill placeholders
│ ├── terragrunt.hcl # Main environment config (cluster, Helm releases, AWS services)
│ ├── state/
│ │ └── terragrunt.hcl # State bucket bootstrap for this environment
│ └── values/ # Per-chart Helm values (one file per chart)
│ ├── infrastructure.yaml # AWS Load Balancer Controller
│ ├── aws-ebs-csi-driver.yaml # EBS CSI Driver
│ ├── karpenter.yaml # Karpenter NodePool
│ ├── karpenter-nodeclasses.yaml# Karpenter EC2NodeClass
│ ├── karpenter-values.yaml # Karpenter controller values
│ ├── keda.yaml # KEDA autoscaler
│ ├── odin-services.yaml # Odin AI Platform application services
│ ├── cloudnative-pg.yaml # CloudNativePG operator (ENABLE_CNPG)
│ ├── ha-supabase-db.yaml # HA Postgres cluster via CNPG (ENABLE_HA_SUPABASE_DB)
│ ├── supabase.yaml # Supabase application stack (ENABLE_SUPABASE)
│ ├── signoz.yaml # SigNoz observability platform (ENABLE_SIGNOZ)
│ └── signoz-k8s-infra.yaml # SigNoz k8s-infra metrics agent (ENABLE_SIGNOZ)
│
└── helm-deployment/ # Vendored / local Helm charts
├── infrastructure/ # ALB Controller wrapper chart
├── odin-services/odin-services/ # Odin AI Platform platform (Web, API, Celery, Automator, Ingress)
├── cloudnative-pg/ # CloudNativePG operator chart
├── ha-supabase-db/ # HA Supabase DB (CNPG Cluster + PgBouncer + barman backups)
├── supabase-kubernetes-ha/ # Full Supabase application stack
├── signoz/ # SigNoz observability platform
└── k8s-infra/ # SigNoz k8s-infra cluster metrics agent
```
***
## Quick Start
### 1. Install Required Tools
**Terraform**
```bash theme={null}
# macOS
brew install terraform
# Linux
sudo apt update && sudo apt install terraform
```
**Terragrunt**
```bash theme={null}
# macOS
brew install terragrunt
# Linux / macOS (manual)
curl -Lo /usr/local/bin/terragrunt \
https://github.com/gruntwork-io/terragrunt/releases/latest/download/terragrunt_linux_amd64
chmod +x /usr/local/bin/terragrunt
```
**kubectl and Helm**
```bash theme={null}
# macOS
brew install kubectl helm
# Linux
curl -LO "https://dl.k8s.io/release/$(curl -Ls https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
sudo install -m 0755 kubectl /usr/local/bin/kubectl
curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
```
**Verify installation**
```bash theme={null}
terraform --version
terragrunt --version
kubectl version --client
helm version
aws sts get-caller-identity
```
***
### 2. Create a New Environment
New environments are created by copying `env-template-folder` and filling in the placeholders.
See [Terragrunt Deployment Guide](/offerings/on-premise/kubernetes-deployment/terragrunt-deployment) for the full step-by-step process. The high-level flow is:
```bash theme={null}
# 1. Copy the template
cp -r terragrunt/environments/env-template-folder terragrunt/environments/your-env-name
# 2. Fill all placeholders in:
# - terragrunt/environments/your-env-name/terragrunt.hcl
# - terragrunt/environments/your-env-name/state/terragrunt.hcl
# - terragrunt/environments/your-env-name/values/*.yaml
# 3. Bootstrap the state bucket
cd terragrunt/environments/your-env-name/state
terragrunt apply
# 4. Set environment variables and deploy
cd ../
export ENABLE_ALB_CONTROLLER=true
export WEB_DOMAIN="app.example.com"
export WEB_CERTIFICATE_ARN="arn:aws:acm:::certificate/"
# ... (see TERRAGRUNT_DEPLOYMENT_GUIDE.md for full variable list)
terragrunt apply
```
***
## Service Enable / Disable Flags
All optional services are toggled via environment variables. Set them before running `terragrunt apply`.
| Variable | Default | Service |
| ----------------------- | ------- | ----------------------------------------------------------- |
| `ENABLE_ALB_CONTROLLER` | `true` | AWS Load Balancer Controller |
| `ENABLE_AWS_SERVICES` | `false` | ElastiCache Redis + Amazon MQ RabbitMQ |
| `ENABLE_CNPG` | `false` | CloudNativePG operator |
| `ENABLE_HA_SUPABASE_DB` | `false` | HA PostgreSQL cluster (requires `ENABLE_CNPG=true`) |
| `ENABLE_SUPABASE` | `false` | Full Supabase stack (requires `ENABLE_HA_SUPABASE_DB=true`) |
| `ENABLE_SIGNOZ` | `false` | SigNoz observability + k8s-infra agent |
**Supabase Self-Hosted Deployment Order**
Supabase components must be deployed in sequence:
```bash theme={null}
ENABLE_CNPG=true terragrunt apply --target='helm_release.local["cloudnative-pg"]'
ENABLE_HA_SUPABASE_DB=true terragrunt apply --target='helm_release.local["ha-supabase-db"]'
ENABLE_SUPABASE=true terragrunt apply --target='helm_release.local["supabase"]'
```
***
## Helm Charts Reference
| Chart (in `helm-deployment/`) | Namespace | Enabled by | Description |
| ------------------------------- | ---------------- | ----------------------- | ---------------------------------------- |
| `infrastructure` | `infrastructure` | Always | AWS Load Balancer Controller |
| `odin-services/odin-services` | `default` | Always | Web, FastAPI, Celery, Automator, Ingress |
| `aws-ebs-csi-driver` (upstream) | `kube-system` | Always | EBS persistent volume driver |
| `keda` (upstream) | `keda` | Always | Pod autoscaling |
| `cloudnative-pg` | `cnpg-system` | `ENABLE_CNPG` | PostgreSQL operator |
| `ha-supabase-db` | `ha-supabase-db` | `ENABLE_HA_SUPABASE_DB` | HA Postgres + PgBouncer + barman backups |
| `supabase-kubernetes-ha` | `supabase` | `ENABLE_SUPABASE` | Kong, Auth, Storage, Studio, Realtime |
| `signoz` | `monitoring` | `ENABLE_SIGNOZ` | Distributed tracing, metrics, logs |
| `k8s-infra` (upstream) | `monitoring` | `ENABLE_SIGNOZ` | Cluster metrics DaemonSet agent |
***
## Modules Reference
### `modules/eks`
The primary module. Provisions:
* VPC with public/private subnets across 3 AZs
* EKS cluster (Kubernetes 1.33) and managed node group for Karpenter
* Karpenter controller + NodePool + EC2NodeClass
* IAM roles (cluster, node group, Karpenter, ALB controller, EBS CSI driver)
* All Helm releases via the `helm_releases` input map
### `modules/aws-services`
Provisions ElastiCache Redis and Amazon MQ RabbitMQ. Only active when `ENABLE_AWS_SERVICES=true`.
### `modules/state`
Bootstraps the S3 state bucket for a new environment (versioning, encryption, public access block).
### `modules/helm`
Reusable Helm release module supporting both upstream chart repositories and local `chart_path` charts.
***
## Environment Configuration
### Placeholders
Every value in `env-template-folder` that is environment-specific uses a `` placeholder. Run the following to check nothing is left before deploying:
```bash theme={null}
grep -r "`.
### Secrets
Sensitive values (passwords, API keys, certificate ARNs) are **never committed**. They are passed as environment variables consumed by `get_env()` calls in `terragrunt.hcl`, or as `` placeholders in values files that must be filled before deployment.
***
## Troubleshooting
**Verify AWS credentials**
```bash theme={null}
aws sts get-caller-identity
```
**Check cluster access**
```bash theme={null}
aws eks update-kubeconfig --region --name
kubectl get nodes
kubectl get pods -A
```
**Check ALB Controller**
```bash theme={null}
kubectl get pods -n infrastructure | grep aws-load-balancer-controller
kubectl get ingress -A
```
**Check Karpenter**
```bash theme={null}
kubectl get pods -n kube-system | grep karpenter
kubectl get nodepools
kubectl get nodeclaims
```
**Check state lock**
```bash theme={null}
# Force-unlock a stuck state (use the lock ID from the error message)
cd terragrunt/environments/your-env-name
terragrunt force-unlock
```
**Verify no remaining placeholders**
```bash theme={null}
grep -r " -n
helm get values -n
```
***
## Multi-Cloud Support (Planned)
| Platform | Status | Module |
| ---------- | ------ | ------------------- |
| AWS EKS | Active | `modules/eks` |
| Azure AKS | Stub | `modules/aks` |
| Google GKE | Stub | `modules/gke` |
| Bare metal | Stub | `modules/baremetal` |
# Terragrunt Deployment Guide
Source: https://learn.getodin.ai/offerings/on-premise/kubernetes-deployment/terragrunt-deployment
Step-by-step commands for deploying the complete Odin AI Platform EKS infrastructure using Terragrunt, including dry run validation and actual deployment.
This guide walks through the full deployment of the Odin AI Platform EKS infrastructure on AWS using Terragrunt. It covers tool installation, environment setup, and a phased deployment sequence designed to ensure proper dependency ordering across all infrastructure components.
Deployments are organized into nine phases:
1. **State Management** — Bootstraps the S3 bucket used to store Terraform state for the environment.
2. **EKS Infrastructure** — Provisions the VPC, subnets, NAT gateways, IAM roles, and the EKS cluster and managed node groups.
3. **Storage & Load Balancing** — Deploys the EBS CSI driver for persistent volumes and the AWS Load Balancer Controller for ALB ingress.
4. **Karpenter Autoscaling** — Sets up dynamic node provisioning with Spot instance support and interruption handling via SQS and EventBridge.
5. **KEDA Autoscaling** — Deploys KEDA for pod-level autoscaling based on CPU and memory thresholds.
6. **Data Services** — Provisions Supabase (self-hosted or Cloud), ElastiCache Redis, and Amazon MQ RabbitMQ.
7. **Odin Services** — Deploys the Odin AI Platform application stack (Web, FastAPI, Celery, Automator) via Helm.
8. **SigNoz Observability** — Deploys distributed tracing, metrics, and log aggregation via SigNoz and the k8s-infra agent.
9. **Final Deployment** — Runs a full `terragrunt apply` to reconcile any remaining resources.
Before starting, complete the prerequisites checklist with the customer and ensure all `` placeholders in the environment template are filled in. Several values — including the VPC ID, EKS cluster endpoint, and Redis and RabbitMQ endpoints — are only available after specific phases complete, so the guide flags exactly when to capture and apply them.
***
## Prerequisites
* AWS CLI configured with appropriate permissions
* Terraform (>= 1.0)
* Terragrunt (latest version)
* `kubectl` for Kubernetes management
* `helm` for Helm chart management
***
## Installation Guide
### Installing Terragrunt
**macOS (Homebrew)**
```bash theme={null}
brew install terragrunt
```
**Linux (apt)**
```bash theme={null}
# Add HashiCorp GPG key
wget -O- https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg
# Add HashiCorp repository
echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
# Update and install
sudo apt update
sudo apt install terragrunt
```
**Windows (Chocolatey)**
```bash theme={null}
choco install terragrunt
```
### Installing kubectl
**macOS (Homebrew)**
```bash theme={null}
brew install kubectl
```
**Linux**
```bash theme={null}
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
```
**Windows (Chocolatey)**
```bash theme={null}
choco install kubernetes-cli
```
### Installing Helm
**macOS (Homebrew)**
```bash theme={null}
brew install helm
```
**Linux**
```bash theme={null}
curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
```
**Windows (Chocolatey)**
```bash theme={null}
choco install kubernetes-helm
```
### Verifying Installation
```bash theme={null}
terragrunt --version
terraform --version
kubectl version --client
helm version
```
### AWS CLI Configuration
```bash theme={null}
# Install AWS CLI
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install
# Configure AWS credentials
aws configure
# Verify configuration
aws sts get-caller-identity
```
***
## Creating a New Environment
### Step 1: Copy the Environment Template
The `env-template-folder` contains pre-structured files with `` placeholders ready to be filled in. Copy it entirely to create your new environment folder.
```bash theme={null}
# Navigate to the terragrunt environments directory
cd terragrunt/environments
# Copy the full template folder to a new environment (replace 'your-env-name')
cp -r env-template-folder your-env-name
# The folder structure is ready:
# your-env-name/
# ├── terragrunt.hcl # Core cluster configuration
# ├── state/
# │ └── terragrunt.hcl # S3 state bucket configuration
# └── values/
# ├── infrastructure.yaml # AWS Load Balancer Controller
# ├── karpenter-values.yaml # Karpenter controller settings
# ├── karpenter-nodeclasses.yaml # EC2NodeClass definitions
# ├── karpenter.yaml # Karpenter NodePool definitions
# ├── keda.yaml # KEDA autoscaler
# ├── aws-ebs-csi-driver.yaml # EBS CSI driver
# ├── odin-services.yaml # Odin application services
# ├── supabase.yaml # Supabase (if self-hosting)
# ├── ha-supabase-db.yaml # Supabase HA DB (if self-hosting)
# ├── cloudnative-pg.yaml # CloudNativePG operator (if self-hosting)
# ├── signoz.yaml # SigNoz observability (optional)
# └── signoz-k8s-infra.yaml # SigNoz k8s metrics (optional)
```
### Step 2: Verify All Placeholders Are Present
```bash theme={null}
cd your-env-name
# List all placeholders that need to be filled in
grep -r "` convention. The steps below walk through filling them in file by file.
### Step 3: Provision SSL Certificates (AWS ACM)
Before setting environment variables you need the certificate ARNs. Use the AWS Console to request SSL certificates in AWS Certificate Manager (ACM) for all domains your environment will serve.
**Option A: Single wildcard certificate (recommended)**
A single wildcard certificate covers all subdomains with one ARN. For example, if your base domain is `app.example.com`, a single `*.app.example.com` certificate covers:
| Service | Domain |
| --------- | ----------------------------- |
| Web | `app.example.com` |
| FastAPI | `api-app.example.com` |
| Automator | `automations-app.example.com` |
| Supabase | `supabase-app.example.com` |
| SigNoz | `signoz-app.example.com` |
**Option B: Per-service certificates**
Request one certificate per domain if you cannot use a wildcard. Repeat the steps below for each domain: ``, ``, ``, `` (only if `ENABLE_SUPABASE=true`), `` (only if `ENABLE_SIGNOZ=true`).
**Requesting a certificate in the AWS Console**
1. Open the AWS Certificate Manager console
2. Switch to the correct region (top-right) — must match ``
3. Click **Request a certificate** → **Request a public certificate** → **Next**
4. Under **Fully qualified domain name**, enter the wildcard (e.g., `*.app.example.com`) or a specific domain
5. Set **Validation method** to **DNS validation**
6. Click **Request** — the certificate is created in `Pending validation` state
**Adding the DNS CNAME validation record**
ACM generates a CNAME record that you must add to your DNS provider to prove domain ownership. Get the values from the ACM Console by opening the certificate and expanding the domain under **Domains**.
| DNS Field | Value |
| ----------------- | ------------------------------------------------------------------------- |
| Record type | `CNAME` |
| Name / Host | e.g., `_fa187f22ac17bce6f508bf3c56439c61.signoz-app.example.com.` |
| Value / Points to | e.g., `_c7c97325fe38061e168e232d122c7ff3.jkddzztszm.acm-validations.aws.` |
Include the trailing dot (`.`) at the end of the CNAME values if your DNS provider requires it.
**Cloudflare**
1. Log in to Cloudflare → select your domain → go to **DNS** → **Records** → **Add record**
2. Set **Type** to `CNAME`
3. Paste the ACM CNAME name into **Name** and the ACM CNAME value into **Target**
4. Set **Proxy status** to **DNS only** (grey cloud icon) — the certificate will not validate through the Cloudflare proxy
5. Click **Save**
**Route 53**
1. Open the Route 53 console → **Hosted zones** → select your zone → **Create record**
2. Set **Record type** to `CNAME`
3. Paste the ACM CNAME name into **Record name** (subdomain portion only) and the value into **Value**
4. Set TTL to `300` and click **Create records**
In ACM you can also click **Create records in Route 53** to have ACM add the record automatically if the hosted zone is in the same account.
Once DNS propagates (typically 1–5 minutes), the certificate status changes to **Issued**. Copy the ARN from the top of the certificate — it looks like `arn:aws:acm:::certificate/`. Keep the ARN(s) handy for the next step.
### Step 4: Set Environment Variables
Set these shell environment variables before running any Terragrunt commands. They are read directly by `terragrunt.hcl` via `get_env()`.
```bash theme={null}
export AWS_REGION="" # e.g., "eu-west-2", "us-east-2"
export CLUSTER_NAME="" # e.g., "env-template-folder"
# Domain configuration
export WEB_DOMAIN="" # e.g., "app.example.com"
export FASTAPI_DOMAIN="" # e.g., "api-app.example.com"
export AUTOMATOR_DOMAIN="" # e.g., "automations-app.example.com"
export SUPABASE_DOMAIN="" # e.g., "supabase-app.example.com"
export SIGNOZ_DOMAIN="" # e.g., "signoz-app.example.com"
# SSL Certificate ARNs — Option A: Single wildcard certificate (recommended)
export WILDCARD_CERTIFICATE_ARN="arn:aws:acm:::certificate/"
# SSL Certificate ARNs — Option B: Per-service certificates
export WEB_CERTIFICATE_ARN="arn:aws:acm:::certificate/"
export FASTAPI_CERTIFICATE_ARN="arn:aws:acm:::certificate/"
export AUTOMATOR_CERTIFICATE_ARN="arn:aws:acm:::certificate/"
export SUPABASE_CERTIFICATE_ARN="arn:aws:acm:::certificate/"
export SIGNOZ_CERTIFICATE_ARN="arn:aws:acm:::certificate/"
# Service enablement flags
export ENABLE_ALB_CONTROLLER="true"
export ENABLE_AWS_SERVICES="true" # Set to "true" to enable ElastiCache and AmazonMQ
# Supabase stack (self-hosted) — enable all three together if self-hosting Supabase
export ENABLE_CNPG="true" # CloudNativePG operator (namespace: cnpg-system)
export ENABLE_HA_SUPABASE_DB="true" # Supabase HA database (namespace: ha-supabase-db)
export ENABLE_SUPABASE="true" # Supabase application (namespace: supabase)
export ENABLE_SIGNOZ="true" # Set to "true" to enable SigNoz observability
export SSL_TERMINATION="alb"
```
#### Spot Instances & Stateful Workloads
Spot instances are configured per NodePool in `values/karpenter.yaml`, not via environment variables. Each NodePool declares its own capacity strategy:
| NodePool | `workload-type` label | Capacity Type | Rationale |
| ------------------- | -------------------------------------------- | ------------------------- | -------------------------------------------------------------------------- |
| `general` | `general` | Spot → On-Demand fallback | Cost-optimised for stateless batch/background workloads |
| `compute-intensive` | `compute-intensive` | Spot → On-Demand fallback | Cost-optimised for CPU-bound workloads |
| `memory-intensive` | `memory-intensive` | On-Demand → Spot fallback | Stability prioritised for high-memory pods |
| `gpu` | `gpu` | Spot → On-Demand fallback | Cost-optimised for AI/ML batch workloads |
| `application` | `application` | On-Demand only | Stable user-facing services (Supabase, Kong, etc.) — no Spot interruptions |
| `database` | `database` / `node-type: database-dedicated` | On-Demand only | Stateful — Spot interruption is unsafe for databases |
The `application` NodePool uses m/c instance families (generation 5+) with On-Demand only. Supabase service pods are pinned here via `nodeSelector: workload-type: "application"` to guarantee they are never interrupted by a Spot reclamation event.
The `database-dedicated` NodePool never uses Spot. It uses `consolidationPolicy: WhenEmpty` so Karpenter will not evict a node that still has a running pod, making it safe for stateful workloads such as PostgreSQL and CloudNativePG replicas.
**Guidelines for stateful applications on Spot:**
* Do not schedule databases, persistent queues, or any pod with a `PersistentVolumeClaim` on Spot NodePools.
* Use a `nodeSelector` targeting `node-type: database-dedicated` with the matching `database-workload: "true"` toleration for database pods.
* Use `nodeSelector: workload-type: "application"` for user-facing stateless services that must remain available without interruption.
* For background workloads (Web, API, Celery, Automator), the `general` Spot NodePool is appropriate — Karpenter's SQS interruption handler drains Spot nodes gracefully before AWS reclaims them, and KEDA's minimum replica count (≥ 2) ensures availability during node replacement.
* To disable Spot globally, remove `"spot"` from the values list in every NodePool inside `values/karpenter.yaml`.
**How Karpenter handles Spot interruption warnings:**
AWS gives a 2-minute interruption notice before terminating a Spot instance. Karpenter uses EventBridge and SQS to act on this automatically:
```
AWS Spot Interruption Event
│
▼
Amazon EventBridge (CloudWatch Events)
Rule: EC2 Spot Instance Interruption Warning
│
▼
SQS Queue (Karpenter interruption queue)
│
▼
Karpenter Controller (polls SQS continuously)
│
├── Cordons the node (no new pods scheduled)
├── Drains existing pods (respects PodDisruptionBudgets)
├── Provisions a replacement node in parallel
└── Pods reschedule onto the new node before the 2-min window closes
```
This is configured in the `karpenter` block in `terragrunt.hcl`:
```hcl theme={null}
karpenter = {
spot_interruption_handling = true # creates the SQS queue and EventBridge rule
enable_spot_instances = true # allows Spot in NodePool capacity requirements
}
```
### Step 5: Update Environment-Specific File Values
Do a find-and-replace across all files in your new env folder for the following placeholders:
| Placeholder | Description | Example |
| ----------------------- | ----------------------------- | ------------------------ |
| `` | Unique environment identifier | `app-eks-prod` |
| `` | AWS region of the cluster | `eu-west-2`, `us-east-2` |
| `` | 12-digit AWS account ID | `123456789012` |
| `` | Environment tag value | `prod`, `staging`, `dev` |
| `` | Project tag value | `odin`, `ekb` |
```bash theme={null}
# Run from your new env folder to find all remaining placeholders
grep -r "` | Must match EKS cluster name |
| `cluster_region` | `` | AWS region |
| `aws_account_id` | `` | 12-digit account ID |
| `vpc_cidr` | `` | e.g., `192.168.0.0/16` |
| `availability_zones` | `a/b/c` | 3 AZs in your region |
| `tags.Environment` | `` | e.g., `prod` |
| `tags.Project` | `` | e.g., `odin` |
| `aws_services.amazon_mq.rabbitmq.username` | `` | RabbitMQ admin username (only when `ENABLE_AWS_SERVICES=true`) |
| `aws_services.amazon_mq.rabbitmq.password` | `` | Min 12 chars; must include uppercase, lowercase, digits, and special characters |
#### 5.2 `state/terragrunt.hcl` — S3 state bucket
```bash theme={null}
nano state/terragrunt.hcl
```
| Field | Placeholder | Notes |
| ------------- | -------------------------------------- | ----------------------- |
| `bucket_name` | `odin-terraform-state-` | Must be globally unique |
| `region` | `` | Same region as cluster |
#### 5.3 `values/infrastructure.yaml` — AWS Load Balancer Controller
Obtain the VPC ID **after** the EKS cluster is created before deploying the AWS Load Balancer Controller.
```bash theme={null}
# Get VPC ID after EKS cluster is created
aws eks describe-cluster --name \
--query "cluster.resourcesVpcConfig.vpcId" --output text
```
```bash theme={null}
nano values/infrastructure.yaml
```
| Field | Placeholder | Notes |
| ------------------------------------------------------- | ------------------------------------------ | --------------------------- |
| `clusterName` | `` | EKS cluster name |
| `region` | `` | AWS region |
| `vpcId` | `` | Required before ALB deploy |
| `serviceAccount.annotations.eks.amazonaws.com/role-arn` | ``, `` | IAM role for ALB controller |
#### 5.4 `values/karpenter-values.yaml` — Karpenter controller
Obtain the EKS cluster endpoint **after** the EKS cluster is created and before deploying Karpenter.
```bash theme={null}
# Get cluster endpoint after EKS cluster is created
aws eks describe-cluster --name \
--query "cluster.endpoint" --output text
```
```bash theme={null}
nano values/karpenter-values.yaml
```
| Field | Placeholder | Notes |
| ------------------------------------------------------- | ------------------------------------------ | -------------------------------- |
| `serviceAccount.annotations.eks.amazonaws.com/role-arn` | ``, `` | IAM role for Karpenter |
| `env.CLUSTER_NAME` | `` | EKS cluster name |
| `env.CLUSTER_ENDPOINT` | `` | Required before Karpenter deploy |
| `settings.aws.defaultInstanceProfile` | `` | Karpenter node instance profile |
#### 5.5 `values/karpenter-nodeclasses.yaml` — Karpenter node classes
```bash theme={null}
nano values/karpenter-nodeclasses.yaml
```
| Field | Placeholder | Notes |
| ------------------------------------------------ | -------------------- | ----------------------------------- |
| All `kubernetes.io/cluster/` tags | `` | Cluster tag for subnet/SG selectors |
| `user_data` bootstrap cluster name | `` | Node bootstrap script |
| `tags.Environment` | `` | e.g., `prod` |
| `tags.Project` | `` | e.g., `odin` |
#### 5.6 `values/aws-ebs-csi-driver.yaml` — EBS CSI Driver
```bash theme={null}
nano values/aws-ebs-csi-driver.yaml
```
| Field | Placeholder | Notes |
| ------------------------------------------------------------------ | ------------------------------------------ | ------------------------------- |
| `controller.serviceAccount.annotations.eks.amazonaws.com/role-arn` | ``, `` | IAM role for EBS CSI controller |
| `node.serviceAccount.annotations.eks.amazonaws.com/role-arn` | ``, `` | IAM role for EBS CSI node |
| `controller.env.AWS_DEFAULT_REGION` | `` | AWS region |
| `controller.env.AWS_REGION` | `` | AWS region |
| `node.env.AWS_DEFAULT_REGION` | `` | AWS region |
| `node.env.AWS_REGION` | `` | AWS region |
#### 5.7 `values/karpenter.yaml` — Karpenter NodePools
```bash theme={null}
nano values/karpenter.yaml
```
| Field | Placeholder | Notes |
| -------------------------------------------- | -------------------------------------------------------- | ------------------------------ |
| `*.labels.Environment` | `` | Applied to all NodePool labels |
| `*.requirements topology.kubernetes.io/zone` | `["a", "b", "c"]` | AZs for all NodePools |
Node class names (`general`, `compute-intensive`, `memory-intensive`, `gpu`, `database`) must match entries in `karpenter-nodeclasses.yaml`.
#### 5.8 `values/keda.yaml` — KEDA Autoscaler
No environment-specific placeholders required. Resource limits and replica counts are pre-configured with sensible defaults. Review and adjust if needed.
#### 5.9 `values/supabase.yaml` — Supabase application (only if `ENABLE_SUPABASE=true`)
All keys below must be generated consistently and shared with `ha-supabase-db.yaml`. Generate them once and use the same values in both files.
```bash theme={null}
# Generate JWT secret
openssl rand -hex 32
# Generate anon/service role JWTs (requires Supabase CLI)
brew install supabase/tap/supabase
supabase gen-keys
# Generate passwords and tokens
openssl rand -hex 24 # for passwords
openssl rand -base64 64 # for secretKeyBase
```
```bash theme={null}
nano values/supabase.yaml
```
| Field | Placeholder | Notes |
| ------------------------------------- | ------------------------------------------ | ----------------------------------------------------------- |
| `secret.jwt.anonKey` | `` | Must match `ha-supabase-db.yaml` `anonKey` |
| `secret.jwt.serviceKey` | `` | Must match `ha-supabase-db.yaml` `serviceRoleKey` |
| `secret.jwt.secret` | `` | Must match `ha-supabase-db.yaml` `jwtSecret` |
| `secret.db.password` | `` | Must match `ha-supabase-db.yaml` `postgresPassword` |
| `secret.analytics.publicAccessToken` | `` | Internal Logflare token |
| `secret.analytics.privateAccessToken` | `` | Internal Logflare token |
| `secret.dashboard.username` | `` | Studio UI login |
| `secret.dashboard.password` | `` | Studio UI login |
| `secret.realtime.secretKeyBase` | `` | Phoenix secret key |
| `secret.meta.cryptoKey` | `` | `openssl rand -hex 32` |
| `secret.s3.keyId` | `` | Must match `secret.minio.user` (`openssl rand -hex 16`) |
| `secret.s3.accessKey` | `` | Must match `secret.minio.password` (`openssl rand -hex 32`) |
| `secret.minio.user` | `` | Same value as `secret.s3.keyId` |
| `secret.minio.password` | `` | Same value as `secret.s3.accessKey` |
#### 5.10 `values/ha-supabase-db.yaml` — Supabase HA Database (only if `ENABLE_HA_SUPABASE_DB=true`)
Secrets here must match `supabase.yaml`. Use the same generated values for `postgresPassword`, `jwtSecret`, `anonKey`, and `serviceRoleKey`.
```bash theme={null}
nano values/ha-supabase-db.yaml
```
| Field | Placeholder | Notes |
| -------------------------------------- | ---------------------------------- | -------------------------------------------------- |
| `secrets.inline.postgresPassword` | `` | Must match `supabase.yaml` `secret.db.password` |
| `secrets.inline.authenticatorPassword` | `` | Must be identical to `postgresPassword` |
| `secrets.inline.pgbouncerPassword` | `` | Must be identical to `postgresPassword` |
| `secrets.inline.jwtSecret` | `` | Must match `supabase.yaml` `secret.jwt.secret` |
| `secrets.inline.anonKey` | `` | Must match `supabase.yaml` `secret.jwt.anonKey` |
| `secrets.inline.serviceRoleKey` | `` | Must match `supabase.yaml` `secret.jwt.serviceKey` |
Storage class (`ebs-csi-gp2`), instance counts, and resource limits are pre-configured. Adjust `postgres.storage.size` and `postgres.walStorage.size` for your expected data volume.
#### 5.11 `values/cloudnative-pg.yaml` — CloudNativePG Operator (only if `ENABLE_CNPG=true`)
No environment-specific placeholders required. This deploys the CNPG operator controller only. Default settings (3 replicas, resource limits) are suitable for most environments.
#### 5.12 `values/odin-services.yaml` — Odin application services
Redis and RabbitMQ endpoints are only available after Terraform creates those AWS resources. Certificate ARNs must be provisioned in ACM before deployment.
```bash theme={null}
nano values/odin-services.yaml
```
**General settings:**
| Field | Placeholder | Notes |
| ---------------------- | ------------------------------- | ----------------------------------------------------------------------------------------------------- |
| `server` | `` | Main web domain |
| `toolkitEncryptionKey` | `` | Generate: `python -c "from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())"` |
**Supabase (`dataServiceConfig`) — self-hosted (`ENABLE_SUPABASE=true`):**
| Field | Placeholder | Source |
| ---------------------------- | -------------------------------------------------------------------- | -------------------------------------------------- |
| `supabase.projectUrl` | `http://supabase-kong:8000` | Fixed — internal Supabase Kong |
| `supabase.key` | `` | Same as `secret.jwt.serviceKey` in `supabase.yaml` |
| `supabase.postgres.user` | `postgres` | Fixed for self-hosted |
| `supabase.postgres.host` | `ha-supabase-db-postgres-pooler-rw.ha-supabase-db.svc.cluster.local` | Fixed — DB Pool service within the cluster |
| `supabase.postgres.password` | `` | Same as `secret.db.password` in `supabase.yaml` |
| `supabase.projectId` | *(leave empty)* | Not used in self-hosted mode |
**Supabase (`dataServiceConfig`) — Supabase Cloud (`ENABLE_SUPABASE=false`):**
| Field | Placeholder | Source |
| ---------------------------- | ---------------------------------- | --------------------------------------------------------------------------- |
| `supabase.projectUrl` | `` | Supabase dashboard → Project Settings → API |
| `supabase.key` | `` | Supabase dashboard → API → `service_role` key |
| `supabase.postgres.user` | `` | Supabase dashboard → Project Settings → Database |
| `supabase.postgres.host` | `` | Supabase dashboard → Database (e.g., `aws-0-eu-west-2.pooler.supabase.com`) |
| `supabase.postgres.password` | `` | Supabase dashboard → Project Settings → Database |
| `supabase.projectId` | `` | From your Supabase project URL |
**Redis:**
| Field | Placeholder | Notes |
| ------------ | ---------------------------------------------------- | ----------------------------------- |
| `redis.url` | `rediss://:6379?ssl_cert_reqs=none` | After Terraform creates ElastiCache |
| `redis.host` | `` | ElastiCache primary endpoint |
```bash theme={null}
# Get Redis endpoint after Terraform apply
aws elasticache describe-cache-clusters \
--show-cache-node-info \
--query "CacheClusters[?starts_with(CacheClusterId,'')].CacheNodes[0].Endpoint.Address" \
--output text
```
**RabbitMQ:**
| Field | Placeholder | Notes |
| ------------------- | ------------------------------------------------------------------------------------- | -------------------------------- |
| `rabbitmq.url` | `amqps://:@:5671` | After Terraform creates AmazonMQ |
| `rabbitmq.host` | `` | AmazonMQ broker endpoint |
| `rabbitmq.username` | `` | Set in `terragrunt.hcl` |
| `rabbitmq.password` | `` | Set in `terragrunt.hcl` |
```bash theme={null}
# Get RabbitMQ endpoint after Terraform apply
aws mq list-brokers \
--query "BrokerSummaries[?BrokerName=='odin-rabbitmq'].BrokerId" --output text | \
xargs -I{} aws mq describe-broker --broker-id {} \
--query "BrokerInstances[0].Endpoints[0]" --output text
```
**SSL / Certificate ARNs:**
| Field | Placeholder | Notes |
| -------------------------------------------- | ---------------------------------- | ----------------------------------- |
| `ssl.services.web.domain` | `` | e.g., `app.example.com` |
| `ssl.services.web.certificateArn` | `` | ACM certificate ARN |
| `ssl.services.fastapiBackend.domain` | `` | e.g., `api-app.example.com` |
| `ssl.services.fastapiBackend.certificateArn` | `` | ACM certificate ARN |
| `ssl.services.automator.domain` | `` | e.g., `automations-app.example.com` |
| `ssl.services.automator.certificateArn` | `` | ACM certificate ARN |
| `ssl.services.supabase.domain` | `` | e.g., `supabase-app.example.com` |
| `ssl.services.supabase.certificateArn` | `` | ACM certificate ARN |
```bash theme={null}
# List ACM certificates in your region
aws acm list-certificates --region \
--query "CertificateSummaryList[*].[DomainName,CertificateArn]" --output table
```
**Web frontend Supabase keys — self-hosted (`ENABLE_SUPABASE=true`):**
| Field | Placeholder | Source |
| ----------------------------- | ---------------------------------- | -------------------------------------------------- |
| `web.supabase.url` | `https://` | External URL routed via ALB ingress |
| `web.supabase.anonKey` | `` | Same as `secret.jwt.anonKey` in `supabase.yaml` |
| `web.supabase.serviceRoleKey` | `` | Same as `secret.jwt.serviceKey` in `supabase.yaml` |
| `web.supabase.clientanonKey` | `` | Same as `secret.jwt.serviceKey` in `supabase.yaml` |
**Web frontend Supabase keys — Supabase Cloud (`ENABLE_SUPABASE=false`):**
| Field | Placeholder | Source |
| ----------------------------- | ---------------------------------- | --------------------------------------------- |
| `web.supabase.url` | `` | Supabase dashboard → Project Settings → API |
| `web.supabase.anonKey` | `` | Supabase dashboard → API → `anon` key |
| `web.supabase.serviceRoleKey` | `` | Supabase dashboard → API → `service_role` key |
| `web.supabase.clientanonKey` | `` | Same as `service_role` key |
#### 5.13 `values/signoz.yaml` — SigNoz Observability (only if `ENABLE_SIGNOZ=true`)
```bash theme={null}
nano values/signoz.yaml
```
| Field | Placeholder | Notes |
| ---------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ------------------------------ |
| `global.clusterName` | `` | EKS cluster name |
| `signoz.ingress.annotations.alb.ingress.kubernetes.io/certificate-arn` | ``, ``, `` | ACM certificate for SigNoz |
| `signoz.ingress.hosts[0].host` | `` | e.g., `signoz-app.example.com` |
#### 5.14 `values/signoz-k8s-infra.yaml` — SigNoz K8s Metrics (only if `ENABLE_SIGNOZ=true`)
```bash theme={null}
nano values/signoz-k8s-infra.yaml
```
| Field | Placeholder | Notes |
| -------------------- | ----------------- | ------------------------------------ |
| `global.clusterName` | `` | EKS cluster name for metric labeling |
The OTel collector endpoint (`signoz-otel-collector.monitoring.svc.cluster.local:4317`) is pre-configured assuming both SigNoz and k8s-infra are deployed in the `monitoring` namespace. No change needed unless you use a custom release name.
#### Deployment Ordering Reminder
Some values are only available after certain infrastructure has been deployed. Follow this order:
1. **Before any deployment** — Set: ``, ``, ``, ``, ``, ``, all domain names, all certificate ARNs, all Supabase values, ``, RabbitMQ username/password
2. **After EKS cluster created** — Set: `` (`infrastructure.yaml`), `` (`karpenter-values.yaml`)
3. **After `terraform apply` for AWS services** — Set: ``, `` (`odin-services.yaml`)
### Step 6: Verify No Placeholders Remain
```bash theme={null}
grep -r " \
--docker-username= \
--docker-password= \
--docker-email=
# AWS ECR — token expires every 12h; refresh via a CronJob or use ECR pull-through cache
aws ecr get-login-password --region | \
kubectl create secret docker-registry regcred \
--namespace default \
--docker-server=.dkr.ecr..amazonaws.com \
--docker-username=AWS \
--docker-password-stdin
```
**Step 2 — Set the secret name in `values/odin-services.yaml`**
```yaml theme={null}
# values/odin-services.yaml
imagePullSecrets:
- name: regcred # must match the secret name created above
# - name: customer-registry-secret # add additional registries if needed
```
**Step 3 — Update image references**
```yaml theme={null}
web:
image: //web:
fastapiBackend:
image: //server:
```
**Step 4 — Verify pull access before full deployment**
```bash theme={null}
kubectl run registry-test \
--image=//web: \
--overrides='{"spec":{"imagePullSecrets":[{"name":"regcred"}]}}' \
--restart=Never --rm -it -- echo "Pull successful"
```
### 2.2 Deploy EKS Infrastructure
**Step 1: Core Infrastructure**
```bash theme={null}
cd terragrunt/environments/your-env-name
terragrunt apply -target="aws_vpc.main" \
-target="aws_internet_gateway.main" \
-target="aws_subnet.public" \
-target="aws_subnet.private" \
-target="aws_eip.nat" \
-target="aws_nat_gateway.main" \
-target="aws_route_table.public" \
-target="aws_route_table.private" \
-target="aws_route_table_association.public" \
-target="aws_route_table_association.private"
```
After this step, update `vpcId` in `values/infrastructure.yaml` before deploying the AWS Load Balancer Controller.
**Step 2: EKS Cluster and IAM Roles and Policies**
```bash theme={null}
terragrunt apply -target="aws_iam_role.cluster" \
-target="aws_iam_role_policy_attachment.cluster_AmazonEKSClusterPolicy" \
-target="aws_iam_openid_connect_provider.eks" \
-target="aws_iam_role.node" \
-target="aws_iam_role_policy_attachment.node_AmazonEKSWorkerNodePolicy" \
-target="aws_iam_role_policy_attachment.node_AmazonEKS_CNI_Policy" \
-target="aws_iam_role_policy_attachment.node_AmazonEC2ContainerRegistryReadOnly"
```
**Step 3: Node Groups and Addons**
```bash theme={null}
terragrunt apply -target="aws_eks_cluster.main" \
-target="aws_eks_node_group.main" \
-target="kubernetes_secret.regcred"
```
After this step, update `CLUSTER_ENDPOINT` in `values/karpenter-values.yaml` before deploying Karpenter.
**Check EKS Cluster Connectivity**
```bash theme={null}
aws eks update-kubeconfig --region $AWS_REGION --name $CLUSTER_NAME
kubectl cluster-info
kubectl get nodes
kubectl get secret regcred -n default
```
***
## Phase 3: Storage and Load Balancing
**Purpose:** EBS CSI driver for persistent volumes, AWS Load Balancer Controller running on managed node group.
### 3.1 Dry Run — Storage and Load Balancing
**EBS CSI Driver**
```bash theme={null}
cd terragrunt/environments/your-env-name
terragrunt plan -target="aws_iam_role.ebs_csi_driver" \
-target="aws_iam_role_policy_attachment.ebs_csi_driver" \
-target="helm_release.ebs_csi_driver"
```
**AWS Load Balancer Controller**
```bash theme={null}
terragrunt plan -target="aws_iam_role.aws_load_balancer_controller" \
-target="aws_iam_role_policy_attachment.aws_load_balancer_controller" \
-target="aws_iam_policy.aws_load_balancer_controller" \
-target="helm_release.infrastructure"
```
### 3.2 Deploy Storage and Load Balancing
**Step 1: EBS CSI Driver**
```bash theme={null}
cd terragrunt/environments/your-env-name
terragrunt apply -target="aws_iam_role.ebs_csi_driver" \
-target="aws_iam_role_policy_attachment.ebs_csi_driver" \
-target="helm_release.ebs_csi_driver"
```
**Verification**
```bash theme={null}
helm list -n kube-system | grep ebs
kubectl get pods -n kube-system | grep ebs-csi
kubectl get storageclass
aws iam get-role --role-name $CLUSTER_NAME-ebs-csi-driver-role --region $AWS_REGION
kubectl get sa -n kube-system | grep ebs-csi
kubectl describe sa ebs-csi-controller-sa -n kube-system
```
**Step 2: AWS Load Balancer Controller**
```bash theme={null}
terragrunt apply -target="aws_iam_role.aws_load_balancer_controller" \
-target="aws_iam_role_policy_attachment.aws_load_balancer_controller" \
-target="aws_iam_policy.aws_load_balancer_controller" \
-target="helm_release.infrastructure"
```
**Verification**
```bash theme={null}
helm list -n infrastructure
kubectl get pods -n infrastructure | grep aws-load-balancer-controller
kubectl get sa -n infrastructure
kubectl describe sa aws-load-balancer-controller -n infrastructure
aws iam get-role --role-name $CLUSTER_NAME-aws-load-balancer-controller --region $AWS_REGION
kubectl logs -n infrastructure -l app.kubernetes.io/name=aws-load-balancer-controller
kubectl get ingressclass
```
***
## Phase 4: Karpenter Autoscaling
**Purpose:** IAM roles for Karpenter, Spot interruption handling, Karpenter controller and node pools.
### 4.1 Dry Run — Karpenter
**Karpenter IAM Resources**
```bash theme={null}
cd terragrunt/environments/your-env-name
terragrunt plan -target="aws_iam_role.karpenter_controller" \
-target="aws_iam_policy.karpenter_controller" \
-target="aws_iam_role_policy_attachment.karpenter_controller" \
-target="aws_iam_role.karpenter_node" \
-target="aws_iam_role_policy_attachment.karpenter_node_AmazonEKSWorkerNodePolicy" \
-target="aws_iam_role_policy_attachment.karpenter_node_AmazonEKS_CNI_Policy" \
-target="aws_iam_role_policy_attachment.karpenter_node_AmazonEC2ContainerRegistryReadOnly" \
-target="aws_iam_role_policy_attachment.karpenter_node_AmazonEBSCSIDriverPolicy" \
-target="aws_iam_instance_profile.karpenter_node"
```
**EC2 Spot Service-Linked Role (if spot instances are enabled)**
```bash theme={null}
terragrunt plan -target="aws_iam_service_linked_role.ec2_spot[0]"
```
**Karpenter Spot Interruption (if enabled in `terragrunt.hcl`)**
```bash theme={null}
terragrunt plan -target="aws_sqs_queue.karpenter_interruption_queue" \
-target="aws_sqs_queue_policy.karpenter_interruption_queue" \
-target="aws_cloudwatch_event_rule.karpenter_interruption" \
-target="aws_cloudwatch_event_target.karpenter_interruption"
```
**Karpenter Helm Charts**
```bash theme={null}
terragrunt plan -target="helm_release.karpenter"
```
**Karpenter NodePools and EC2NodeClasses**
```bash theme={null}
terragrunt plan -target="kubernetes_manifest.karpenter_nodepool" \
-target="kubernetes_manifest.karpenter_nodeclass" \
-target="kubernetes_config_map.aws_auth"
```
An expected error may appear during plan: `API did not recognize GroupVersionKind from manifest (CRD may not be installed)`. This is safe to ignore — Kubernetes validates resources against the live API at plan time, before CRDs are installed.
### 4.2 Deploy Karpenter
**Step 1: Karpenter IAM Resources**
```bash theme={null}
cd terragrunt/environments/your-env-name
terragrunt apply -target="aws_iam_role.karpenter_controller" \
-target="aws_iam_policy.karpenter_controller" \
-target="aws_iam_role_policy_attachment.karpenter_controller" \
-target="aws_iam_role.karpenter_node" \
-target="aws_iam_role_policy_attachment.karpenter_node_AmazonEKSWorkerNodePolicy" \
-target="aws_iam_role_policy_attachment.karpenter_node_AmazonEKS_CNI_Policy" \
-target="aws_iam_role_policy_attachment.karpenter_node_AmazonEC2ContainerRegistryReadOnly" \
-target="aws_iam_role_policy_attachment.karpenter_node_AmazonEBSCSIDriverPolicy" \
-target="aws_iam_instance_profile.karpenter_node"
```
**Verification**
```bash theme={null}
aws iam get-role --role-name $CLUSTER_NAME-karpenter-controller --region $AWS_REGION
aws iam get-role --role-name $CLUSTER_NAME-karpenter-node --region $AWS_REGION
aws iam get-instance-profile --instance-profile-name $CLUSTER_NAME-karpenter-node --region $AWS_REGION
aws iam list-attached-role-policies --role-name $CLUSTER_NAME-karpenter-node --region $AWS_REGION
```
**Step 2: EC2 Spot Service-Linked Role (if spot instances are enabled)**
The EC2 Spot service-linked role is account-wide (only one per AWS account) and must exist before Karpenter can launch Spot instances.
**Option A: Let Terraform create it (recommended for new deployments)**
```bash theme={null}
terragrunt apply -target="aws_iam_service_linked_role.ec2_spot[0]"
```
**Option B: Import if the role already exists**
```bash theme={null}
# Check if the role exists
aws iam get-role --role-name AWSServiceRoleForEC2Spot --region $AWS_REGION
# If it doesn't exist, create it manually
aws iam create-service-linked-role --aws-service-name spot.amazonaws.com --region $AWS_REGION
# Import into Terraform (replace ACCOUNT_ID with your 12-digit AWS account ID)
terragrunt import 'aws_iam_service_linked_role.ec2_spot[0]' \
arn:aws:iam::ACCOUNT_ID:role/aws-service-role/spot.amazonaws.com/AWSServiceRoleForEC2Spot
```
Troubleshooting Spot Instance Creation Issues
**Check Karpenter logs for Spot-related errors:**
```bash theme={null}
kubectl logs -n kube-system -l app.kubernetes.io/name=karpenter -f | grep -i spot
```
Common errors: `AuthFailure.ServiceLinkedRoleCreationNotPermitted`, `UnfulfillableCapacity`, `InsufficientInstanceCapacity`.
**Verify service-linked role exists:**
```bash theme={null}
aws iam get-role --role-name AWSServiceRoleForEC2Spot --region $AWS_REGION
```
**Verify IAM policy includes Spot permission:**
```bash theme={null}
aws iam get-policy-version \
--policy-arn $(aws iam list-policies --query 'Policies[?PolicyName==`YOUR_CLUSTER_NAME-karpenter-controller`].Arn' --output text) \
--version-id $(aws iam get-policy --policy-arn $(aws iam list-policies --query 'Policies[?PolicyName==`YOUR_CLUSTER_NAME-karpenter-controller`].Arn' --output text) --query 'Policy.DefaultVersionId' --output text) \
--region $AWS_REGION | grep -i "CreateServiceLinkedRole"
```
**Check Spot instance availability:**
```bash theme={null}
aws ec2 describe-spot-price-history \
--instance-types r6a.4xlarge r6a.large \
--product-descriptions "Linux/UNIX" \
--region $AWS_REGION \
--max-items 10
```
**Check NodePool capacity types:**
```bash theme={null}
kubectl get nodepool -o yaml | grep -A 5 "capacity-type"
```
**Verify Spot vs On-Demand nodes:**
```bash theme={null}
kubectl get nodes -o json | jq -r '.items[] | "\(.metadata.name)\t\(.metadata.labels."karpenter.sh/capacity-type")\t\(.metadata.labels."node.kubernetes.io/instance-type")"'
```
**Step 3: Karpenter Spot Interruption (if enabled in `terragrunt.hcl`)**
```bash theme={null}
terragrunt apply -target="aws_sqs_queue.karpenter_interruption_queue" \
-target="aws_sqs_queue_policy.karpenter_interruption_queue" \
-target="aws_cloudwatch_event_rule.karpenter_interruption" \
-target="aws_cloudwatch_event_target.karpenter_interruption"
```
**Verification**
```bash theme={null}
aws events describe-rule --name $CLUSTER_NAME-karpenter-interruption --region $AWS_REGION
aws events list-targets-by-rule --rule $CLUSTER_NAME-karpenter-interruption --region $AWS_REGION
aws sqs get-queue-url --queue-name $CLUSTER_NAME-karpenter-interruption-queue --region $AWS_REGION
```
**Step 4: Karpenter Helm Chart**
```bash theme={null}
terragrunt apply -target="helm_release.karpenter"
```
**Verification**
```bash theme={null}
helm list -n kube-system | grep karpenter
kubectl get pods -n kube-system | grep karpenter
kubectl logs -n kube-system -l app.kubernetes.io/name=karpenter
kubectl describe sa karpenter -n kube-system
```
**Step 5: Karpenter Kubernetes Manifests**
```bash theme={null}
terragrunt apply -target="kubernetes_manifest.karpenter_nodepool" \
-target="kubernetes_manifest.karpenter_nodeclass"
# Import the existing aws-auth ConfigMap
# Note: Use quotes to prevent zsh from interpreting brackets as glob patterns
terragrunt import 'kubernetes_config_map.aws_auth[0]' kube-system/aws-auth
# Then apply
terragrunt apply -target='kubernetes_config_map.aws_auth[0]'
```
**Verification**
```bash theme={null}
kubectl get nodepools -o wide
kubectl describe nodepool general
kubectl describe nodepool application
kubectl describe nodepool database
kubectl get ec2nodeclasses -o wide
kubectl get configmap aws-auth -n kube-system -o jsonpath='{.data.mapRoles}' | grep karpenter-node
kubectl get nodepools -o jsonpath='{range .items[*]}{.metadata.name}{"\t"}{.status.conditions[?(@.type=="Ready")].status}{"\n"}{end}'
kubectl get nodes -l karpenter.sh/nodepool --show-labels
kubectl get events -n kube-system --field-selector involvedObject.name=karpenter --sort-by='.lastTimestamp'
```
***
## Phase 5: KEDA Autoscaling
**Purpose:** KEDA for application-level autoscaling.
### 5.1 Dry Run — KEDA
```bash theme={null}
cd terragrunt/environments/your-env-name
terragrunt plan -target="helm_release.keda"
```
### 5.2 Deploy KEDA
```bash theme={null}
cd terragrunt/environments/your-env-name
terragrunt apply -target="helm_release.keda"
```
**Verification**
```bash theme={null}
helm list -n keda
kubectl get pods -n keda
kubectl get deployment -n keda
kubectl get crd | grep keda
kubectl get validatingwebhookconfigurations | grep keda
kubectl get svc -n keda
```
***
## Phase 6: Data Services
**Purpose:** Supabase (database), ElastiCache (Redis), RabbitMQ (message queue).
Deploy CloudNativePG operator first, then the HA Supabase DB cluster, then the Supabase application. The DB cluster must be ready before Supabase starts.
### 6.1 Dry Run — Data Services
**Step 1: CloudNativePG operator (if enabled)**
```bash theme={null}
cd terragrunt/environments/your-env-name
ENABLE_CNPG=true terragrunt plan \
--target='helm_release.additional_charts["cloudnative-pg"]'
```
**Step 2: HA Supabase DB (if enabled)**
```bash theme={null}
ENABLE_HA_SUPABASE_DB=true terragrunt plan \
--target='helm_release.additional_charts["ha-supabase-db"]'
```
**Step 3: Supabase application (if enabled)**
```bash theme={null}
if [ "${ENABLE_SUPABASE:-false}" = "true" ]; then
ENABLE_SUPABASE=true terragrunt plan \
--target='helm_release.supabase[0]'
fi
```
**Step 4: AWS Services — ElastiCache and RabbitMQ (if enabled)**
```bash theme={null}
if [ "${ENABLE_AWS_SERVICES:-false}" = "true" ]; then
terragrunt plan -target="aws_elasticache_subnet_group.redis" \
-target="aws_security_group.redis" \
-target="aws_elasticache_replication_group.redis" \
-target="aws_security_group.rabbitmq" \
-target="aws_mq_broker.rabbitmq"
fi
```
### 6.2 Deploy Data Services
**Step 1: CloudNativePG operator (if enabled)**
```bash theme={null}
cd terragrunt/environments/your-env-name
ENABLE_CNPG=true terragrunt apply --auto-approve \
--target='helm_release.additional_charts["cloudnative-pg"]'
```
**Step 2: HA Supabase DB (if enabled)**
```bash theme={null}
ENABLE_HA_SUPABASE_DB=true terragrunt apply --auto-approve \
--target='helm_release.additional_charts["ha-supabase-db"]'
```
**Verify PgBouncer pooler and credentials after deployment:**
```bash theme={null}
kubectl get svc -n ha-supabase-db | grep pooler
kubectl get secrets -n ha-supabase-db
kubectl get secret ha-supabase-db-authenticator-credentials -n ha-supabase-db \
-o jsonpath='{.data.username}' | base64 -d && echo ""
```
Use the pooler ClusterIP (or `EXTERNAL-IP` if LoadBalancer) as the `SUPABASE_POSTGRES_HOST` value in `values/odin-services.yaml` and as `secret.db.postgresHost` in `values/supabase.yaml`.
**Step 3: Supabase application (if enabled)**
All Supabase service pods run exclusively on the Karpenter `application` NodePool (On-Demand only) to prevent Spot interruptions.
```bash theme={null}
if [ "${ENABLE_SUPABASE:-false}" = "true" ]; then
ENABLE_SUPABASE=true terragrunt apply --auto-approve \
--target='helm_release.supabase[0]'
fi
```
**Step 4: AWS Services — ElastiCache and RabbitMQ (if enabled)**
```bash theme={null}
if [ "${ENABLE_AWS_SERVICES:-false}" = "true" ]; then
terragrunt apply \
-target="aws_elasticache_subnet_group.redis" \
-target="aws_security_group.redis" \
-target="aws_elasticache_replication_group.redis" \
-target="aws_security_group.rabbitmq" \
-target="aws_mq_broker.rabbitmq"
fi
```
**Verification**
```bash theme={null}
# Get connection details from Terraform outputs
terragrunt output elasticache_endpoint
terragrunt output elasticache_port
terragrunt output rabbitmq_endpoint
terragrunt output rabbitmq_port
# Test Redis connectivity from EKS cluster
kubectl run redis-test --image=redis:7-alpine --restart=Never -- \
sh -c "redis-cli -h -p 6379 --tls --insecure ping && echo 'Redis connection successful'"
kubectl logs redis-test
kubectl delete pod redis-test
# Check Redis encryption status
aws elasticache describe-replication-groups \
--replication-group-id $CLUSTER_NAME-redis \
--region $AWS_REGION \
--query 'ReplicationGroups[0].{AtRestEncryption:AtRestEncryptionEnabled,TransitEncryption:TransitEncryptionEnabled}'
```
Before deploying Odin Services, update `values/odin-services.yaml` with the Redis endpoint, RabbitMQ endpoint, and all certificate ARNs obtained in this phase.
***
## Phase 7: Odin Services
**Purpose:** Application deployment via Helm.
Before deploying, temporarily scale down `fastapiBackend` to a single replica for the initial database migration run — set `replicaCount: 1`, `workers: 1`, and `keda.minReplicas: 1`. Once the migration completes successfully, revert these values to their production defaults before re-deploying.
### 7.1 Dry Run — Odin Services
```bash theme={null}
cd terragrunt/environments/your-env-name
terragrunt plan -target="helm_release.odin_services"
```
### 7.2 Deploy Odin Services
```bash theme={null}
cd terragrunt/environments/your-env-name
terragrunt apply -target="helm_release.odin_services"
```
**Verification**
```bash theme={null}
kubectl get pods
kubectl get ingress # Add the ALB endpoints to your DNS provider
```
***
## Phase 8: SigNoz Observability
**Purpose:** Logs and metrics monitoring.
### 8.1 Dry Run — SigNoz Charts
```bash theme={null}
cd terragrunt/environments/your-env-name
terragrunt plan -target='helm_release.additional_charts["signoz"]'
terragrunt plan -target='helm_release.additional_charts["k8s-infra"]'
```
### 8.2 Deploy SigNoz Charts
```bash theme={null}
cd terragrunt/environments/your-env-name
terragrunt apply -target='helm_release.additional_charts["signoz"]'
terragrunt apply -target='helm_release.additional_charts["k8s-infra"]'
```
**Verification**
```bash theme={null}
kubectl get pods -n monitoring
kubectl get ingress -n monitoring # Add the ALB endpoints to your DNS provider
```
***
## Phase 9: Final Deployment
### 9.1 Complete Deployment
```bash theme={null}
cd terragrunt/environments/your-env-name
terragrunt apply
```
This final apply handles any remaining resources not explicitly targeted in previous phases.
### 9.2 Verify Deployment
```bash theme={null}
# Update kubeconfig
aws eks update-kubeconfig --region us-east-2 --name your-env-name
# Check cluster status
kubectl get nodes
kubectl get pods --all-namespaces
# Check Karpenter
kubectl get pods -n kube-system -l app.kubernetes.io/name=karpenter
kubectl logs -n kube-system -l app.kubernetes.io/name=karpenter
# Check AWS Load Balancer Controller
kubectl get pods -n kube-system -l app.kubernetes.io/name=aws-load-balancer-controller
# Check KEDA
kubectl get pods -n keda
# Check Odin Services
kubectl get pods -n default
kubectl get services -n default
kubectl get ingress -n default
# Check all Helm releases
helm list --all-namespaces
```
***
## Troubleshooting
**State lock issues**
```bash theme={null}
terragrunt force-unlock
```
**Karpenter not working**
```bash theme={null}
kubectl describe nodes
kubectl logs -n kube-system -l app.kubernetes.io/name=karpenter
```
**Load Balancer issues**
```bash theme={null}
kubectl describe ingress -n default
kubectl logs -n kube-system -l app.kubernetes.io/name=aws-load-balancer-controller
```
**Helm chart issues**
```bash theme={null}
helm status -n
helm rollback -n
```
***
## Cleanup
```bash theme={null}
# Destroy infrastructure
cd terragrunt/environments/your-env-name
terragrunt destroy -auto-approve
# Destroy state bucket (use with caution)
cd terragrunt/environments/your-env-name/state
terragrunt destroy -auto-approve
```
***
## Monitoring and Logging
```bash theme={null}
# AWS Resources
aws eks describe-cluster --name your-env-name --region us-east-2
aws ec2 describe-instances --filters "Name=tag:kubernetes.io/cluster/your-env-name,Values=owned"
# Kubernetes Resources
kubectl top nodes
kubectl top pods --all-namespaces
kubectl get events --sort-by=.metadata.creationTimestamp
```
***
## Quick Reference — All Deployment Commands
```bash theme={null}
# Phase 1: State Management
cd terragrunt/environments/your-env-name/state
terragrunt apply
# Phase 2: EKS Infrastructure
cd terragrunt/environments/your-env-name
terragrunt apply -target="aws_vpc.main" -target="aws_internet_gateway.main" \
-target="aws_subnet.public" -target="aws_subnet.private" -target="aws_eip.nat" \
-target="aws_nat_gateway.main" -target="aws_route_table.public" \
-target="aws_route_table.private" -target="aws_route_table_association.public" \
-target="aws_route_table_association.private" -auto-approve
terragrunt apply -target="aws_iam_role.cluster" \
-target="aws_iam_role_policy_attachment.cluster_AmazonEKSClusterPolicy" \
-target="aws_iam_openid_connect_provider.eks" -target="aws_iam_role.node" \
-target="aws_iam_role_policy_attachment.node_AmazonEKSWorkerNodePolicy" \
-target="aws_iam_role_policy_attachment.node_AmazonEKS_CNI_Policy" \
-target="aws_iam_role_policy_attachment.node_AmazonEC2ContainerRegistryReadOnly" \
-auto-approve
terragrunt apply -target="aws_eks_cluster.main" \
-target="aws_eks_node_group.main" -target="kubernetes_secret.regcred" -auto-approve
# Phase 3: Storage and Load Balancing
terragrunt apply -target="aws_iam_role.ebs_csi_driver" \
-target="aws_iam_role_policy_attachment.ebs_csi_driver" \
-target="helm_release.ebs_csi_driver" -auto-approve
terragrunt apply -target="aws_iam_role.aws_load_balancer_controller" \
-target="aws_iam_role_policy_attachment.aws_load_balancer_controller" \
-target="aws_iam_policy.aws_load_balancer_controller" \
-target="helm_release.infrastructure" -auto-approve
# Phase 4: Karpenter Autoscaling
terragrunt apply -target="aws_iam_role.karpenter_controller" \
-target="aws_iam_policy.karpenter_controller" \
-target="aws_iam_role_policy_attachment.karpenter_controller" \
-target="aws_iam_role.karpenter_node" \
-target="aws_iam_role_policy_attachment.karpenter_node_AmazonEKSWorkerNodePolicy" \
-target="aws_iam_role_policy_attachment.karpenter_node_AmazonEKS_CNI_Policy" \
-target="aws_iam_role_policy_attachment.karpenter_node_AmazonEC2ContainerRegistryReadOnly" \
-target="aws_iam_role_policy_attachment.karpenter_node_AmazonEBSCSIDriverPolicy" \
-target="aws_iam_instance_profile.karpenter_node" -auto-approve
# Spot interruption handling (if spot_interruption_handling = true)
terragrunt apply -target="aws_sqs_queue.karpenter_interruption_queue" \
-target="aws_sqs_queue_policy.karpenter_interruption_queue" \
-target="aws_cloudwatch_event_rule.karpenter_interruption" \
-target="aws_cloudwatch_event_target.karpenter_interruption" -auto-approve
terragrunt apply -target="helm_release.karpenter" -auto-approve
terragrunt apply -target="kubernetes_manifest.karpenter_nodepool" \
-target="kubernetes_manifest.karpenter_nodeclass" \
-target='kubernetes_config_map.aws_auth[0]' -auto-approve
# Phase 5: KEDA Autoscaling
terragrunt apply -target="helm_release.keda" -auto-approve
# Phase 6: Data Services
ENABLE_CNPG=true terragrunt apply --target='helm_release.additional_charts["cloudnative-pg"]' -auto-approve
ENABLE_HA_SUPABASE_DB=true terragrunt apply --target='helm_release.additional_charts["ha-supabase-db"]' -auto-approve
if [ "${ENABLE_SUPABASE:-false}" = "true" ]; then
ENABLE_SUPABASE=true terragrunt apply --target='helm_release.supabase[0]' -auto-approve
fi
if [ "${ENABLE_AWS_SERVICES:-false}" = "true" ]; then
terragrunt apply -target="aws_elasticache_subnet_group.redis" \
-target="aws_security_group.redis" \
-target="aws_elasticache_replication_group.redis" \
-target="aws_security_group.rabbitmq" \
-target="aws_mq_broker.rabbitmq" -auto-approve
fi
# Phase 7: Odin Services
terragrunt apply -target="helm_release.odin_services" -auto-approve
# Phase 8: SigNoz (if enabled)
terragrunt apply -target='helm_release.additional_charts["signoz"]' -auto-approve
terragrunt apply -target='helm_release.additional_charts["k8s-infra"]' -auto-approve
# Phase 9: Final Deployment
terragrunt apply -auto-approve
```
Replace `your-env-name` with your actual environment name throughout. Always run dry runs (`terragrunt plan`) first to validate your configuration before applying changes.
# On-Premise Licensing
Source: https://learn.getodin.ai/offerings/on-premise/licensing
How On-Premise licenses are issued, how you receive your key, and how to coordinate installation with Odin AI.
On-Premise licenses for Odin AI Platform are issued and managed by **Odin AI’s Orders and License Management** team. After your order is processed, that team sends the **license key** and related details to the contact email on file—typically the person who placed the order or your designated administrator.
## What you should receive
Check your inbox for email from Odin AI. The message includes what you need to proceed (including your **Odin AI Platform On-Premise license key**). If your team expected that email but did not receive it, contact your Odin AI account representative or **[support@getodin.ai](mailto:support@getodin.ai)** and reference your purchase or order details.
## Coordinate installation with Odin AI
When you are ready to deploy Odin AI Platform in your environment, **raise a support ticket** with Odin AI—for example via **[support@getodin.ai](mailto:support@getodin.ai)** or your established support channel—and request **On-Premise installation**. **Odin AI Support** will coordinate with the **Odin AI Platform team** to initiate the installation process.
**In parallel**, your IT team can start **preparing or provisioning** the On-Premise hosts (hardware, OS, network, access, and related prerequisites) by following the **[On-Premise installation](/offerings/on-premise/installation)** guide. That helps ensure the environment is ready when the Odin AI Platform installation engagement begins.
***
For a broader On-Premise overview, see the **[Overview](/offerings/on-premise/overview)**. For security certifications and compliance, see **[Security & Compliance](/general/security-compliance)**.
# Overview
Source: https://learn.getodin.ai/offerings/on-premise/overview
Odin AI Platform in your environment—who it is for, how it differs from cloud, and links to licensing and installation.
The **On-Premise license** lets you run Odin AI Platform **inside your own infrastructure** (for example, your cloud account or data centers) so you control networking, residency, and integration with internal systems—while still receiving software, updates, and support from Odin AI according to your agreement.
## Who On-Premise is for
Organizations with requirements such as **strict data residency**, **private network-only access**, **custom security zones**, or **alignment with existing enterprise Kubernetes and cloud standards**.
## Relationship to cloud
Feature direction and many concepts (projects, knowledge base, agents, workflows) align with the **cloud** experience, but **deployment, upgrades, sizing, and day-two operations** are owned by your team following Odin AI guidance and supported paths.
## Next steps in this documentation
* **[On-Premise licensing](/offerings/on-premise/licensing)** — How your license is issued by Odin AI, raising a support ticket to begin installation, and preparing your environment in parallel using the installation guide.
* **[On-Premise installation](/offerings/on-premise/installation)** — High-level installation and platform context.
For compliance and certifications that apply to the product, see **[Security & Compliance](/general/security-compliance)**.
# Agent Interactions
Source: https://learn.getodin.ai/project-settings/agent-interactions
Per-message debug log of chat interactions with full tool calls and trace details.
The **Agent Interactions** tab provides a per-message debug log of all chat interactions in the project. Expand any row to view full tool calls and trace details, or export the complete dataset for offline analysis.
## Interactions Table
Records are paginated and displayed in reverse chronological order. Use **Previous** and **Next** to navigate between pages. The table scrolls horizontally to reveal all columns:
| Column | Description |
| ------------ | -------------------------------------------------------------------------------------------------- |
| **Time** | The date and time the message was sent. |
| **Chat** | A truncated preview of the chat title, with the chat ID displayed below. |
| **User** | The email of the user who sent the message, with their user ID displayed below. |
| **Agent** | The name of the agent that handled the interaction, with the agent ID displayed below. |
| **Input** | A truncated preview of the user's message. |
| **Output** | A truncated preview of the agent's response. |
| **Model** | The LLM model used to generate the response. |
| **Tokens** | Total tokens consumed by the interaction. |
| **Tools** | The number of tool calls made during the interaction. Displays a count badge when tools were used. |
| **Duration** | The time taken to generate the response. |
## Expanding a Row
Select the **arrow** (›) on any row to expand it and view full debug details for that interaction.
### LLM Traces
Shows the model call details for the interaction:
| Field | Description |
| ----------------- | -------------------------------------------------------------------- |
| **Model** | The LLM model used (e.g. `claude-sonnet-4-6`). |
| **Provider** | The model provider (e.g. `anthropic`). |
| **Tokens** | Breakdown of input tokens, output tokens, and total tokens consumed. |
| **Duration** | Time taken for the model call (e.g. `1665ms`). |
| **Show Response** | Expands to display the full raw model response. |
### Events
A timestamped list of lifecycle events that occurred during the interaction, such as:
* `on_chat_model_start` — The model call was initiated.
* `on_llm_end` — The model call completed.
## Search and Filtering
* **Search** — Use the **Search messages or responses** field to find interactions by keyword in the input or output.
* **Date Range** — Use the **Select date range** button to scope the log to a specific time window.
* **Refresh** — Use the refresh icon to reload the log with the latest data.
## Exporting
Select the **Export** dropdown to download the complete dataset in your preferred format:
| Format | Description |
| ------------------ | ------------------------ |
| **Export as CSV** | Excel-compatible format. |
| **Export as XLSX** | Preserves formatting. |
# Analytics
Source: https://learn.getodin.ai/project-settings/analytics
Monitor project usage, user activity, feedback, and LLM performance metrics.
The **Analytics** page gives you visibility into how your project is being used. It is organized into three tabs: **Overview**, **Feedback**, and **LLM Metrics**. You can filter data by date range and user email across all tabs.
The **Overview** tab provides a high-level summary of project activity and usage patterns across the selected date range.
### Filtering
* Use the **Filter by user email** field and select **Apply** to scope analytics to a specific user.
* Use the **date range picker** in the upper right to adjust the time window.
### Summary Stats
| Stat | Description |
| ------------------------- | -------------------------------------------------------------- |
| **Total Messages** | Total number of messages sent in the project. |
| **Unique Users** | Number of distinct users who have interacted with the project. |
| **Total Queries** | Total number of queries submitted. |
| **Average Response Time** | Average time taken to generate a response. |
| **Images Generated** | Total number of images generated by the agent. |
### Charts
| Chart | Description |
| ----------------------------- | -------------------------------------------------------------------------------------------------------------------------- |
| **Number of Queries Per Day** | Line chart showing daily query volume over the selected date range. |
| **Conversation Per User** | Donut chart showing the distribution of conversations across users. |
| **Unique Users Per Feature** | Bar chart showing distinct users triggering events by feature (e.g. Chat, File Addition, Create Project). |
| **Queries Per Feature** | Pie chart showing document usage split across features. Use the **All Features** dropdown to filter by a specific feature. |
| **User vs Query Activity** | Grouped bar chart comparing user count and query count per feature. |
| **Feedback** | Chart tracking correct answers, incorrect answers, and incorrect source URLs over time. |
### Exporting Overview Data
Available from v2.1.0.
Use the **Export** button to download the current Overview data in your preferred format:
| Format | Description |
| ------------------ | ------------------------ |
| **Export as CSV** | Excel-compatible format. |
| **Export as XLSX** | Preserves formatting. |
The **Feedback** tab shows message-level feedback submitted by users, organized by sentiment.
Use the date range picker in the upper right to filter feedback by time window.
### Message Feedback
A table of all feedback submitted within the selected date range:
| Column | Description |
| ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Users** | The user who submitted the feedback. |
| **Questions** | The question that prompted the response. |
| **Feedback Count** | Number of feedback submissions for that entry. |
| **Created** | Date and time the feedback was submitted. |
| **Actions** | **View Feedback(s)** opens the detailed feedback for that entry. **View in Chat** navigates to the corresponding chat window to review the full conversation. |
### Exporting Feedback
Available from v2.1.0.
The Message Feedback table supports selective or full export. Use the checkboxes to select individual rows, then choose which export to use:
| Option | Description |
| --------------------- | -------------------------------------------------- |
| **All → Export** | Exports all records in the Message Feedback table. |
| **Selected → Export** | Exports only the rows you have checked. |
Both options support **Export as CSV** (Excel-compatible) and **Export as XLSX** (preserves formatting).
### Liked Messages
A table of responses that received a thumbs-up from users, with columns for **User**, **Question**, **Response**, and **Created**.
### Disliked Messages
A table of responses that received a thumbs-down from users, with columns for **User**, **Question**, **Response**, and **Created**.
The **LLM Metrics** tab provides detailed performance data for tool calls made by the agent within the selected date range. Use the **From Date** and **To Date** fields to set the time window.
### Tool Calls
| Stat | Description |
| ----------------------- | --------------------------------------------------- |
| **Tool Calls** | Total number of tool calls made. |
| **Tool Call Responses** | Total number of responses returned from tool calls. |
| **Successful Calls** | Number of tool calls that completed successfully. |
| **Failed Calls** | Number of tool calls that failed. |
### Usage & Performance
| Stat | Description |
| ----------------- | ----------------------------------------------------------- |
| **Total Tokens** | Combined input and output tokens consumed across all calls. |
| **Input Tokens** | Total tokens sent to the model. |
| **Output Tokens** | Total tokens returned by the model. |
| **Success Rate** | Percentage of tool calls that completed successfully. |
### Charts
| Chart | Description |
| ------------------------ | ----------------------------------------------------------------------------------------------- |
| **Tool Usage by Name** | Bar chart showing the most used tools, with successful and failed calls distinguished by color. |
| **Tool Usage Over Time** | Line chart showing the daily tool success and failure rate over the selected date range. |
### Tool Performance Details
A searchable table listing per-tool performance metrics. Use the **Search tools...** field to filter by tool name.
| Column | Description |
| -------------------- | ------------------------------------------------------------ |
| **Tool Name** | The name of the tool called. |
| **Total Calls** | Total number of times the tool was called. |
| **Successful Calls** | Number of calls that completed successfully. |
| **Failed Calls** | Number of calls that failed. |
| **Success Rate** | Percentage of successful calls, displayed as a progress bar. |
# API Keys
Source: https://learn.getodin.ai/project-settings/api-keys
Generate and manage API keys to connect to your project programmatically.
The **API Keys** tab is where you can generate and label API keys to connect to the platform's features programmatically. Use these keys to establish and maintain connections with other services. We recommend regularly reviewing your API keys and deleting any that are no longer needed to protect your project from unauthorized access.
API keys are project-specific and provide access to project resources. Keep them secure and rotate them regularly.
## API Keys List
The API keys list displays all keys created for this project. Use the **Search by name or key** field to find a specific key. Each entry shows the following columns:
| Column | Description |
| ----------- | -------------------------------------------------------------------------------------------------- |
| **Name** | The name assigned to the API key, with a badge indicating its type (**Privileged** or **System**). |
| **API Key** | A truncated preview of the key value. Use the copy icon to copy the full key to your clipboard. |
| **Created** | The date and time the key was created. |
| **Actions** | A **Delete** link for user-created keys. System keys show **Protected** and cannot be deleted. |
## Key Types
When creating a new API key, you must select one of the following key types:
| Type | Description |
| -------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Privileged Key** | Full project access. Can send chats and edit or delete project resources, agents, workflows, and settings. Use this for trusted integrations and server-to-server automation. |
| **Locked-Down Viewer Key** | Read-only project access plus chat runtime (bot interaction). Cannot edit or delete project resources, agents, workflows, or settings. Intended for limited-scope distribution such as Teams or channel bot authentication. |
## Create a New API Key
In the **Settings → API Keys** tab, select the **Create API Key** button.
Choose either **Privileged Key** or **Locked-Down Viewer Key** depending on the level of access required.
Enter a descriptive name in the **Key Name** field that clearly identifies the key's purpose.
Select the **Generate** button. The key will be created and appear in the API keys list.
Copy and securely store your API key immediately after generation. The full key value may not be shown again.
## Delete an API Key
The **Automator Key** is a system key created automatically for every project and cannot be deleted. All other API keys you create can be deleted as needed.
1. In the **Settings → API Keys** tab, select the **Delete** link for the key you want to remove.
2. Confirm the deletion in the popup.
A success message will confirm the deletion and the key will no longer appear in the list.
## Best Practices
1. **Use the right key type**: Use Privileged Keys only for trusted, server-side integrations. Use Locked-Down Viewer Keys for public-facing or channel bot deployments.
2. **Clear naming**: Use descriptive names that clearly indicate a key's purpose and the integration it belongs to.
3. **Rotate regularly**: Delete and regenerate keys periodically to reduce the risk of unauthorized access.
# Billing
Source: https://learn.getodin.ai/project-settings/billing
Monitor credit usage and billing information for your project.
The **Billing** tab gives you visibility into the credits being consumed by your project. It shows the current billing period, the owner responsible for charges, and an itemized log of credit usage by member and action.
All credits used in the project are billed to the team owner. For more information on how credits are consumed, see [Credits](/general/credits).
## Owner
Displays the email address of the team owner to whom all project credits will be billed.
## Current Billing Period
| Field | Description |
| ------------------------------- | --------------------------------------------------------------------- |
| **Started** | The date the current billing period began. |
| **Renews on** | The date the billing period renews. |
| **Credits used (this project)** | Total credits consumed by this project in the current billing period. |
## Credit Usage Log
A detailed, filterable log of every credit-consuming action taken within the project. Use the following tools to refine the results:
* **Search user** — Filter records by member name or email.
* **Filters** — Apply additional filters to narrow down results.
* **Select date range** — Scope the log to a specific time period.
### Log Columns
| Column | Description |
| --------------- | ---------------------------------------------------------------- |
| **Member Name** | The email or name of the member who performed the action. |
| **Role** | The role assigned to the member at the time of the action. |
| **Actions** | The action that consumed credits (e.g. `chat`, `file_addition`). |
| **Credit(s)** | The number of credits consumed by that action. |
| **Date & Time** | The date and timestamp of the action. |
## Best Practices
1. **Monitor Usage**: Regularly check the Billing tab to track credit consumption per member and action.
2. **Set Limits**: Use roles to control who can consume credits.
3. **Review Actions**: Check the credit log for unexpected or high-volume usage.
# Datastore
Source: https://learn.getodin.ai/project-settings/datastore
Manage datastore values and encrypted vault secrets for your project.
The **Datastore** tab allows you to manage variables and encrypted secrets used by your project's workflows. It is split into two tabs — **Datastore** for plain-text variables and **Vault (Encrypted)** for sensitive secrets.
The **Datastore** tab stores non-sensitive plain-text variables used by workflows. Values are scoped to a specific level using the **Scope** dropdown.
### Scope
Use the **Scope** dropdown to filter and manage variables at a specific level:
| Scope | Description |
| ----------- | ------------------------------------------------------------- |
| **Project** | Variables shared across all flows within the project. |
| **Flow** | Variables scoped to a specific workflow. |
| **Run** | Variables that exist only during a single workflow execution. |
### Variables Table
| Column | Description |
| ----------- | ----------------------------------------------------------------------- |
| **Key** | The variable name used to reference the value in workflows. |
| **Value** | The stored value. |
| **Type** | The data type of the value: `string`, `number`, `boolean`, or `object`. |
| **Tags** | Optional tags assigned to the variable. |
| **Actions** | Edit (pencil) or delete (trash) the variable. |
Use the **Search datastore** field to find a variable by key name.
### Add a Variable
1. Select the **+ Add Value** button.
2. Fill in the **Create Variable** form:
| Field | Description |
| --------- | --------------------------------------------------------------- |
| **Name** | The key name used to reference this variable in workflows. |
| **Type** | The data type of the value: String, Number, Boolean, or Object. |
| **Value** | The value to store. |
3. Select **Add** to save the variable.
The **Vault (Encrypted)** tab stores sensitive secrets using **Fernet encryption (AES-128-CBC)**. Secrets stored here can be referenced in workflows and integrations without exposing their raw values.
Typical values stored in the Vault include API keys, authentication tokens, passwords, certificates, and external service credentials.
### Scope
Use the **Scope** dropdown to manage secrets at the appropriate level:
| Scope | Description |
| ----------- | ----------------------------------------------------------- |
| **Project** | Secrets shared across all flows within the project. |
| **Flow** | Secrets scoped to a specific workflow. |
| **Run** | Secrets that exist only during a single workflow execution. |
### Secrets Table
| Column | Description |
| ----------- | ---------------------------------------------------------------------- |
| **Key** | The secret name used to reference the value in workflows. |
| **Value** | Masked for security — the raw value is never displayed after creation. |
| **Type** | The data type of the secret. |
| **Actions** | Edit or delete the secret. |
Use the **Search datastore** field to find a secret by key name.
### Add a Secret
1. Select the **+ Add Secret** button.
2. Fill in the **Create Variable** form:
| Field | Description |
| --------- | --------------------------------------------------------------- |
| **Name** | The key name used to reference this secret in workflows. |
| **Type** | The data type of the value: String, Number, Boolean, or Object. |
| **Value** | The secret value to encrypt and store. |
3. Select **Add** to save the secret.
Vault values are encrypted at rest. Once saved, the raw value cannot be retrieved — only replaced. Store a secure copy of any secrets before saving them here.
## Variable Resolution Order
When a workflow retrieves a variable, the system resolves values according to the following priority:
**Run → Flow → Project**
The most specific scope takes precedence. If the same variable exists at both the Flow and Project level, the Flow-level value will be used.
**Example:**
| Scope | Variable | Value |
| ------- | --------- | --------------------------------- |
| Project | `API_URL` | `https://api.company.com` |
| Flow | `API_URL` | `https://sandbox.api.company.com` |
When the flow runs, it will use the **Flow-level value** since it overrides the Project-level value.
# Export Project
Source: https://learn.getodin.ai/project-settings/export-project
Download a zip archive of your project with configurable components.
The **Export Project** feature lets you download a zip file containing a snapshot of your project. Use it to back up your work, migrate a project to another environment, or share a portable copy of your configuration.
Exports are initiated from the **Data** section on the [General](/project-settings/general) settings page.
## Export a Project
Navigate to your project and open **Settings → General**.
In the **Data** section, find **Export Project** and select the **Export** button.
In the **Export Project** modal, choose which components to include. See [Export Options](#export-options) below for details on each toggle.
Select **Export Project** to start the export. When the process completes, the zip file is downloaded to your browser's default download location.
Depending on the size of your project, the export may take some time to complete. You will receive a notification when the process is finished.
## Export Options
When you select **Export**, the **Export Project** modal opens with options to control what is included in the zip file.
### Quick Export
Enable **Quick Export** to use the streamlined export flow. You can still toggle components on or off before exporting — Quick Export works with any combination of selected components, including a partial selection.
### Ready to Export
Before you export, a status message confirms whether your project is ready. For example, it may show how many items are in the knowledge base and whether the project can be fully exported.
### Knowledge Base
| Option | Description |
| -------------------------- | -------------------------------------------- |
| **Include Knowledge Base** | Includes knowledge base files in the export. |
### Components to Include
Toggle each component on or off to control what is included:
| Component | Description |
| ---------------------------- | ----------------------------------------------- |
| **Include Agents** | Agents configured in this project. |
| **Include Custom Tools** | Custom tools (workflows) built in this project. |
| **Include Smart Tables** | Smart Tables and their data. |
| **Include Actions** | Actions configured in this project. |
| **Include Documents** | Documents created in this project. |
| **Include Interfaces** | Interfaces and their pages. |
| **Include Output Templates** | JSON output templates. |
Only the components you toggle on will be included in the export. Anything left off can be re-added to the imported project later.
Select **Cancel** to close the modal without exporting, or **Export Project** to begin the download.
# General
Source: https://learn.getodin.ai/project-settings/general
Configure your project's name, visibility, sharing, and core settings.
## Project Details
* **Project Name**: The name of your project. Edit it here and select the **Update** button to save your change.
* **Project ID**: The unique ID assigned to your project. Use the copy icon to copy it to your clipboard.
* **Project Description (optional)**: Although optional, we recommend giving your project a clear description that helps your teammates understand its purpose and who might find it useful.
***
## Project Configs
| Setting | Description |
| -------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Make Project Public** | Make your project publicly accessible and visible to others in your Odin AI Platform instance or on-premise installation. |
| **Project Team** | Select which team this project belongs to. Only Project Owners can modify this setting. |
| **Share with Team** | Enables everyone on your team to get visibility and collaborate on this project. |
| **Data Extraction Method** | Select the method used to extract text from documents in the Knowledge Base. The LLM extraction option efficiently handles complex PDFs (with an OCR) for enhanced accuracy. |
| **Mask Personally Identifiable Information (PII)** | Masks PII in your chats before they are sent to the LLM, enhancing the privacy and security of your application. |
| **Inline Citations** | Enables interactive inline citations with pop-ups in your chats. |
| **HTML Preview Always On** | When enabled, agent responses containing HTML content will automatically render as an HTML preview instead of raw markdown. |
| **Hide system prompt in Debug Prompt** | When enabled, the system prompt is hidden inside the Debug Prompt panel for this project. The prompt is still used normally for agent execution. |
| **Hide entire Debug Prompt panel** | When enabled, the entire Debug Prompt panel is hidden for this project. No debug trace data will be visible. This is different from hiding just the system prompt. |
| **Restrict chat access for viewers** | When enabled, requires members to have admin or view all permissions to view chats of other users. |
| **Isolate Python execution per user** | When enabled, each user's workflow Python runs use a separate directory so users cannot access each other's files within this project. Default is project-level isolation only. |
| **Automator V2** | Enables the new workflow automation system. When activated, the legacy Flows and Runs tabs will be hidden, and workflows will operate using the new execution engine with improved capabilities from the **Tools** tab. |
| **Transcription** | Select the default transcription provider for audio and video uploads and meeting transcription. Options are **Deepgram** and **OpenAI Whisper**. |
Select the **Update** button to save any changes made in this section.
## Project Sharing
Generate a shareable invite link to allow others to join this project with the role you select.
1. Select a role from the **Role for invite link** dropdown.
2. Select the **Share** button to copy the invite link to your clipboard.
Anyone who uses the link will automatically be added to the project with the role you selected.
## Data
| Action | Description |
| ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Export Project** | Downloads an export of your project as a zip file to your Downloads folder. See [Export Project](/project-settings/export-project) for configuration options. |
| **Clone Project** | Creates a duplicate of your project, replicating everything from this project in a new one. |
Depending on the size of your project, the export and cloning processes may take some time to complete. You will receive a notification when the process is finished.
## Danger Zone
The actions in this section are irreversible or significantly impact project access. Proceed with caution.
| Action | Description |
| ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
| **Leave Project** | Removes you from the project. You will no longer be a member or able to access it. Other members will retain access. |
| **Transfer Ownership** | Transfers project ownership to another project member. You will remain a member with your current role. |
| **Delete Project** | Permanently deletes the project and all its data. No one will be able to access the project after deletion and it cannot be restored. |
# History
Source: https://learn.getodin.ai/project-settings/history
View, filter, and export a record of all chat interactions within your project.
The **History** tab provides a complete record of chat interactions that have taken place within your project. You can search, filter, group, and export the history log for review or analysis.
## History Log
The log displays chat messages in reverse chronological order with the following columns:
| Column | Description |
| ------------------ | --------------------------------------------------------------------- |
| **User** | The email of the member who sent the message. |
| **Created** | The date and time the message was sent. |
| **Chat Message** | A truncated preview of the message content. |
| **Role** | The role of the member who sent the message. |
| **Documents Used** | The number of Knowledge Base documents used to generate the response. |
Clicking any row in the log will take you to the corresponding chat window, where you can review the full conversation.
## Filtering and Navigation
### Search
Use the **Search user** field to filter the log by member email.
### Filters
Select the **Filters** button to apply additional filters:
| Filter | Description |
| ------------------ | ------------------------------------------------------------------------ |
| **Document Count** | Filter records by the number of documents used in the response. |
| **Chat Message** | Search for records containing specific keywords within the chat message. |
Select **Apply Filters** to apply, or **Clear** to reset.
### Group By
Use the **Group by** dropdown to group records by time period:
| Option | Description |
| --------- | ------------------------------------------------- |
| **None** | No grouping — all records listed chronologically. |
| **Day** | Group records by day. |
| **Week** | Group records by week. |
| **Month** | Group records by month. |
### Date Range
Use the **Select date range** button to scope the log to a specific time window.
### Refresh
Use the **refresh** icon to reload the log with the latest data.
## Exporting History
Select the **Export** dropdown to download the history log in your preferred format:
| Format | Description |
| ------------------ | ------------------------ |
| **Export as CSV** | Excel-compatible format. |
| **Export as XLSX** | Preserves formatting. |
# Integrations
Source: https://learn.getodin.ai/project-settings/integrations
Manage the authenticated apps and services connected to your project.
The **Integrations** page lets you view and manage the external apps and services authenticated for your project. It is accessible from **Settings → Integrations** in the left navigation menu.
Integrations are created when you authenticate with a third-party service — such as Salesforce, Slack, Google, or GitHub — while working within a project. Once connected, they appear here and become available for use across your project's agents and tools.
## Connected Integrations
Each connected integration is displayed as a card and includes:
* **Service name and logo** — Identifies the connected app.
* **Integration type badge** — Indicates whether the integration is scoped to this project or shared globally (see [Integration Types](#integration-types) below).
* **Scope** — For applicable services, the specific API scopes granted during authentication are listed beneath the service name.
* **Connected status** — A green dot confirms the integration is active.
* **Delete button** — Removes the integration from the project.
## Integration Types
Integrations are categorized into two types:
| Type | Description |
| ----------- | ----------------------------------------------------------------------- |
| **Project** | Specific to this project only. |
| **Global** | Legacy integrations shared across all projects. These will be migrated. |
Global integrations are being phased out. When you re-authenticate with a service in this project, a new project-specific integration will be created in its place.
## Empty State
If no integrations have been set up yet, the page displays a **No integrations found** message. Integrations will appear here once you authenticate with a supported service while working in the project.
## Refresh
Use the **Refresh** button in the top right corner to reload the integrations list and reflect any recent changes.
# Connect Confluence to the Knowledge Base
Source: https://learn.getodin.ai/project-settings/kb-settings/kb-connections/kb-confluence
Sync Confluence pages and spaces with the Knowledge Base.
With the Confluence connector, you can bring pages, spaces, and documentation directly into the Knowledge Base. Once connected, Odin AI Platform keeps your Confluence content synced and fully searchable, making it accessible to your AI agents. This ensures that knowledge stored in Confluence is always up to date — empowering your team to retrieve answers, surface insights, and build workflows from your existing content.
## Connecting to Confluence
In your Odin AI Platform project, navigate to **Settings** in the sidebar.
Select the **Connections** tab and find the **Confluence** tile under **Cloud Storage & Documentation**.
Click the **Confluence** tile. A popup appears with the option to sync your team's Confluence documentation into the Knowledge Base. Click **+ Add Connection**.
The **Choose Connection Type** popup appears. Select the option that matches your Confluence deployment:
| Connection Type | Description |
| ---------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
| **Confluence Cloud** | Connect via OAuth authentication. You will be redirected to Atlassian to authenticate and grant Odin AI Platform the necessary permissions. |
| **Confluence On-Premise** *(Beta)* | Connect via server URL and token. You will be required to provide your **Confluence Server URL** and **Bearer Token**. |
**Confluence Cloud**
You will be redirected to Atlassian, where Odin AI requests access to your Atlassian account. Review the requested permissions and click **Accept** to complete the OAuth flow.
**Confluence On-Premise**
Enter your **Confluence Server URL** and **Bearer Token**, then click **Connect**.
You can generate a Bearer Token from your Confluence account settings.
Once authenticated, you will be returned to the Connections page. The **Confluence** tile will display a green dot and a count of your active Confluence connections.
You're now ready to sync pages from Confluence into the Knowledge Base!
## Adding Pages from Confluence
In your Odin AI Platform project, navigate to **Knowledge Base** > **KB Data**.
Click **+ New** and select **URL Upload**.
In the popup that appears, paste the URL of the Confluence space or page you want to add to the Knowledge Base.
After pasting the URL, the **Extract Subpages from URL** option will appear. Enable this option to also extract nested pages from the provided link. Disabling it will import only the page at the provided URL.
Once added, you'll receive a confirmation message. Confluence pages will appear in the Knowledge Base with their **page ID** as the document name.
# Connections
Source: https://learn.getodin.ai/project-settings/kb-settings/kb-connections/kb-connections
Connect and sync data from third-party applications and databases into your knowledge base.
The **Connections** tab allows you to connect external data sources to your knowledge base. Connected sources are automatically indexed so your agents can search and retrieve content without copying data into the platform.
Connectors are organized into four categories: **Cloud Storage & Documentation**, **Databases**, **Business Applications**, and **Cloud Platforms**.
## Cloud Storage & Documentation
Link Drive so agents can search Docs, Sheets, and files you allow. Content is indexed into the knowledge base; originals stay in Google.
Connect SharePoint Online sites and document libraries. Team files become searchable without copying them out of M365.
Sync spaces and pages from Confluence Cloud or Data Center. Wikis, specs, and runbooks stay available to your project AI.
Ingest structured product documentation from Zoomin. Ideal for manuals, release notes, and technical publications.
## Databases
Attach MySQL or MariaDB with host, database, and credentials. Choose tables or views to index for grounded answers.
Connect SQL Server on-premises or on Azure SQL. Index only the schemas and objects you authorize for search.
Connect Oracle Database over JDBC with your service account. Bring selected tables into the knowledge base for AI retrieval.
Use a connection string for Snowflake, Postgres, Redshift, and more. Use when there is no dedicated connector tile for your warehouse.
## Business Applications
Connect Odoo ERP for CRM, inventory, accounting, and more. Expose approved records so agents answer with live business data.
## Cloud Platforms
Run BigQuery, invoke Cloud Run services and functions, and query Cloud SQL. Authenticated via service-account JSON; share access by adding IAM roles.
## Best Practices
### Connector Setup
1. **Use Specific Folders** — Connect specific folders rather than entire accounts.
2. **Set Appropriate Schedules** — Balance content freshness with system load.
3. **Monitor Sync Status** — Regularly check sync success and failures.
4. **Test Connections** — Verify connections work before relying on them in production.
### Security
1. **Use Service Accounts** — Prefer service accounts over personal accounts for stability and security.
2. **Limit Permissions** — Grant only the permissions necessary for indexing.
3. **Regular Audits** — Review connected accounts periodically and remove unused connections.
4. **Secure Credentials** — Never share connection credentials.
### Performance
1. **Selective Sync** — Sync only the content your agents actually need.
2. **Schedule Wisely** — Avoid scheduling syncs during peak usage times.
3. **Monitor Resources** — Watch for performance impacts after enabling new connectors.
4. **Optimize Queries** — For database connectors, use efficient queries to limit the data retrieved.
## Troubleshooting
**Problem:** Connector fails to connect.
**Solutions:**
1. Verify credentials are correct.
2. Check network connectivity.
3. Ensure the required permissions have been granted.
4. Review connector-specific requirements.
**Problem:** Content is not syncing.
**Solutions:**
1. Check sync schedule configuration in the **Sync & Schedule** tab.
2. Verify the connector is still connected in the **Connections** tab.
3. Review sync logs for errors.
4. Try a manual sync using the **Sync Now** button to test the connection.
**Problem:** Expected content is not appearing in the Knowledge Base.
**Solutions:**
1. Verify the sync completed successfully.
2. Check folder or query configuration for the connector.
3. Ensure the content matches the sync criteria and filters.
4. Review sync filters and settings.
# Connect Generic SQL to the Knowledge Base
Source: https://learn.getodin.ai/project-settings/kb-settings/kb-connections/kb-generic-sql
Connect to Snowflake or other SQL databases using a connection string.
With the Generic SQL connector, you can connect to Snowflake, Postgres, Redshift, and other SQL databases using a connection string. Use this connector when there is no dedicated connector tile for your database.
## Connecting to Generic SQL
In your Odin AI Platform project, navigate to **Settings** in the sidebar.
Select the **Connections** tab and find the **Generic SQL** tile under **Databases**.
Click the **Generic SQL** tile. A popup appears with the option to connect to Snowflake or other SQL databases. Click **+ Add Connection**.
Enter the following details:
**Server**
| Field | Required | Description |
| ------------------- | -------- | -------------------------------------------------------------------- |
| **Connection Name** | Yes | A display name for this connection (e.g. `My Generic Connection`). |
| **Connect String** | Yes | The connection string for your database (e.g. `sqlite:///:memory:`). |
**Database**
| Field | Required | Description |
| ---------- | -------- | ---------------------------------------------------------------- |
| **Tables** | Yes | The tables to index. Enter each table name separated by a comma. |
Click **Save**. Odin AI Platform will authenticate using the details provided. If successful, the **Generic SQL** tile on the Connections page will display a green dot and a count of your active Generic SQL connections.
You're now ready to use your database in the Knowledge Base!
# Google Cloud Platform Connection
Source: https://learn.getodin.ai/project-settings/kb-settings/kb-connections/kb-google-cloud-platform
Connect a GCP service account for BigQuery, Cloud Run, and Cloud SQL access.
The **Google Cloud Platform** connection allows your agents to authenticate with GCP services using a service-account JSON key. Once connected, agents can access BigQuery, Cloud Run, and Cloud SQL based on the IAM roles granted to the service account.
## Adding a GCP Connection
1. Go to **Settings → Connections** in the left navigation menu.
2. Under **Cloud Platforms**, click the **Google Cloud Platform** card.
3. Click **+ Add GCP Connection**.
4. Fill in the form and click **Add Connection**.
## Connection Form
| Field | Required | Description |
| ------------------------ | -------- | ---------------------------------------------------------------------------------------------------------- |
| **Connection Label** | Yes | A display name for this connection (e.g. `Production GCP`). |
| **Service-account JSON** | Yes | Paste the contents of your service-account JSON key, or click **Upload .json file** to upload it directly. |
| **GCP Project ID** | No | The GCP project ID. Defaults to the `project_id` in the service-account JSON if left blank. |
| **Default Region** | No | The default region for Cloud Run and Cloud SQL operations (e.g. `us-central1`). |
| **BigQuery Location** | No | The BigQuery dataset/job location (e.g. `US`, `EU`). |
Credentials are tested against Google IAM before saving, and the key is stored encrypted in the integrations table. Only the `client_email` and project are surfaced to agents.
## How to Get a Service-Account JSON Key
1. Open the [Google Cloud Console → Service Accounts](https://console.cloud.google.com/iam-admin/serviceaccounts).
2. Pick or create a service account and grant it the roles it needs (e.g. `BigQuery Data Viewer`, `Cloud Run Invoker`, `Cloud SQL Client`).
3. Open the **Keys** tab → **Add key** → **Create new key** → select **JSON**.
4. Paste the downloaded JSON into the **Service-account JSON** field, or upload the file directly.
## Managing Connections
To view, edit, or remove existing GCP connections, go to **Settings → Connections** and click the **Google Cloud Platform** card. From there you can add additional connections or delete ones that are no longer needed.
To use a GCP connection with an agent, go to the agent's **Toolkits**, add the **Google Cloud Platform** toolkit, and select the connection from the **Select GCP Connection** dropdown. For more details, see [Google Cloud Platform Toolkit](/gcp-toolkit).
# Connect Google Drive to the Knowledge Base
Source: https://learn.getodin.ai/project-settings/kb-settings/kb-connections/kb-google-drive
Sync Google Drive files with the Knowledge Base.
With the **Google Drive connector**, you can bring documents, spreadsheets, presentations, and other files directly into the Knowledge Base. Once connected, Odin AI Platform automatically syncs content from your Google Drive, making it searchable and accessible to your AI agents. This ensures your most up-to-date files are always available — empowering your team to retrieve insights, answer questions, and build AI-driven workflows from your existing Google Drive data.
## Connecting to Google Drive
In your Odin AI Platform project, navigate to **Settings** in the sidebar.
Select the **Connections** tab and find the **Google Drive** tile.
Click the **Google Drive** tile. A popup appears with the option to connect your Google Drive to sync files into your Knowledge Base. Click **+ Connect Google Drive**.
You will be redirected to Google's sign-in page. Authenticate with your Google account and grant Odin AI Platform the necessary permissions to access your files.
Once connected, your Google account will appear listed under the Google Drive connection in the **Connections** tab.
You're now ready to sync files from Google Drive into the Knowledge Base!
## Adding Data from Google Drive
In your Odin AI Platform project, navigate to **Knowledge Base** > **KB Data**.
Click **+ New** and select **URL Upload**.
In the popup that appears, paste the URL of the Google Drive file or folder you want to add to the Knowledge Base and click **Add URL**.
Once files are added, you'll receive the following confirmation message:
# Connect Microsoft SQL to the Knowledge Base
Source: https://learn.getodin.ai/project-settings/kb-settings/kb-connections/kb-microsoft-sql
Connect to SQL Server databases to make your data accessible to AI agents.
With the Microsoft SQL connector, you can connect your SQL Server databases directly to the Knowledge Base. Once connected, Odin AI Platform indexes the tables you specify, making your database content searchable and accessible to your AI agents for grounded, data-driven responses.
## Connecting to Microsoft SQL
In your Odin AI Platform project, navigate to **Settings** in the sidebar.
Select the **Connections** tab and find the **Microsoft SQL** tile under **Databases**.
Click the **Microsoft SQL** tile. A popup appears with the option to connect to SQL Server databases. Click **+ Add Connection**.
Enter the following details:
**Server**
| Field | Required | Description |
| ------------------- | -------- | ----------------------------------------------------------------- |
| **Connection Name** | Yes | A display name for this connection (e.g. `My MsSQL Connection`). |
| **Host** | Yes | The hostname or IP address of your SQL Server (e.g. `localhost`). |
| **Port** | Yes | The port your SQL Server is listening on. Default is `3306`. |
**Authentication**
| Field | Required | Description |
| ------------ | -------- | ------------------------------------- |
| **Username** | Yes | The SQL Server user (e.g. `root`). |
| **Password** | Yes | The password for the SQL Server user. |
**Database**
| Field | Required | Description |
| ----------------------- | -------- | ----------------------------------------------------------------------- |
| **Database** | Yes | The name of the database to connect to (e.g. `mydb`). |
| **Schema** | Yes | The schema to use (e.g. `dbo`). |
| **Tables** | Yes | The tables to index. Enter each table name separated by a comma. |
| **Always Trust Server** | No | Enable this toggle to bypass SSL certificate validation for the server. |
Click **Save**. Odin AI Platform will authenticate using the details provided. If successful, the **Microsoft SQL** tile on the Connections page will display a green dot and a count of your active Microsoft SQL connections.
You're now ready to use your Microsoft SQL data in the Knowledge Base!
# Connect MySQL to the Knowledge Base
Source: https://learn.getodin.ai/project-settings/kb-settings/kb-connections/kb-my-sql
Connect to MySQL databases to make your data accessible to AI agents.
With the MySQL connector, you can connect your MySQL or MariaDB databases directly to the Knowledge Base. Once connected, Odin AI Platform indexes the tables you specify, making your database content searchable and accessible to your AI agents for grounded, data-driven responses.
## Connecting to MySQL
In your Odin AI Platform project, navigate to **Settings** in the sidebar.
Select the **Connections** tab and find the **MySQL** tile under **Databases**.
Click the **MySQL** tile. A popup appears with the option to connect to MySQL databases. Click **+ Add Connection**.
Enter the following details:
**Server**
| Field | Required | Description |
| ------------------- | -------- | ------------------------------------------------------------------- |
| **Connection Name** | Yes | A display name for this connection (e.g. `My MySQL Connection`). |
| **Host** | Yes | The hostname or IP address of your MySQL server (e.g. `localhost`). |
| **Port** | Yes | The port your MySQL server is listening on. Default is `3306`. |
| **Database** | Yes | The name of the database to connect to (e.g. `mydb`). |
**Authentication**
| Field | Required | Description |
| ------------ | -------- | -------------------------------- |
| **Username** | Yes | The MySQL user (e.g. `root`). |
| **Password** | Yes | The password for the MySQL user. |
**Database**
| Field | Required | Description |
| ---------- | -------- | ---------------------------------------------------------------- |
| **Tables** | Yes | The tables to index. Enter each table name separated by a comma. |
Click **Save**. Odin AI Platform will authenticate using the details provided. If successful, the **MySQL** tile on the Connections page will display a green dot and a count of your active MySQL connections.
You're now ready to use your MySQL data in the Knowledge Base!
# Connect Odoo to the Knowledge Base
Source: https://learn.getodin.ai/project-settings/kb-settings/kb-connections/kb-odoo
Connect Odoo ERP for business data access.
With the Odoo connector, you can bring your Odoo ERP data directly into the Knowledge Base. Once connected, Odin AI Platform makes your business data — including CRM records, inventory, accounting, and more — accessible to your AI agents, enabling them to answer questions and build workflows from your live Odoo data.
## Connecting to Odoo
In your Odin AI Platform project, navigate to **Settings** in the sidebar.
Select the **Connections** tab and find the **Odoo** tile under **Business Applications**.
Click the **Odoo** tile. A popup appears with the option to connect Odoo ERP for business data access. Click **+ Add Odoo Connection**.
Enter the following details:
| Field | Required | Description |
| -------------------- | -------- | --------------------------------------------------------------------- |
| **Connection Label** | Yes | A display name for this connection (e.g. `Production Odoo`). |
| **Server URL** | Yes | The URL of your Odoo instance (e.g. `https://your-company.odoo.com`). |
| **Database Name** | Yes | The name of your Odoo database (e.g. `your_database`). |
| **Username** | Yes | Your Odoo username (e.g. `admin`). |
| **API Key** | Yes | Your Odoo API key. See below for instructions on how to generate one. |
Click **Update Connection** to save. Once authenticated, the **Odoo** tile on the Connections page will display a green dot and a count of your active Odoo connections.
You're now ready to use your Odoo data in the Knowledge Base!
## How to Get Your Odoo API Key
1. Log into your Odoo account.
2. Go to **Settings → Users & Companies → Users**.
3. Select your user and click **Preferences**.
4. Under **Account Security**, click **New API Key**.
5. Give it a name and copy the generated key.
Copy the API key immediately after generating it — Odoo will not display it again after you close the dialog.
# Connect Oracle to the Knowledge Base
Source: https://learn.getodin.ai/project-settings/kb-settings/kb-connections/kb-oracle
Connect to Oracle databases to make your data accessible to AI agents.
With the Oracle connector, you can connect your Oracle databases directly to the Knowledge Base. Once connected, Odin AI Platform indexes the tables you specify, making your database content searchable and accessible to your AI agents for grounded, data-driven responses.
## Connecting to Oracle
In your Odin AI Platform project, navigate to **Settings** in the sidebar.
Select the **Connections** tab and find the **Oracle** tile under **Databases**.
Click the **Oracle** tile. A popup appears with the option to connect to Oracle databases. Click **+ Add Connection**.
Enter the following details:
**Server**
| Field | Required | Description |
| ------------------- | -------- | ------------------------------------------------------------------------------------------ |
| **Connection Name** | Yes | A display name for this connection (e.g. `My Oracle Connection`). |
| **Host** | Yes | The hostname or IP address of your Oracle server (e.g. `localhost`). |
| **Port** | Yes | The port your Oracle server is listening on. Default is `1521`. |
| **Database** | Yes\* | The Oracle database name (e.g. `ORCL`). Provide either this or **Service Name**, not both. |
| **Service Name** | Yes\* | The Oracle service name (e.g. `ORCL`). Provide either this or **Database**, not both. |
**Authentication**
| Field | Required | Description |
| ------------ | -------- | --------------------------------- |
| **Username** | Yes | The Oracle user (e.g. `system`). |
| **Password** | Yes | The password for the Oracle user. |
**Database**
| Field | Required | Description |
| ---------- | -------- | ---------------------------------------------------------------- |
| **Schema** | Yes | The schema to use (e.g. `SYSTEM`). |
| **Tables** | Yes | The tables to index. Enter each table name separated by a comma. |
Click **Save**. Odin AI Platform will authenticate using the details provided. If successful, the **Oracle** tile on the Connections page will display a green dot and a count of your active Oracle connections.
You're now ready to use your Oracle data in the Knowledge Base!
# Connect SharePoint to the Knowledge Base
Source: https://learn.getodin.ai/project-settings/kb-settings/kb-connections/kb-sharepoint
Sync SharePoint documents and libraries with the Knowledge Base.
With the Microsoft SharePoint connector, you can bring your organization's SharePoint documents and libraries directly into the Knowledge Base. Once connected, Odin AI Platform keeps your SharePoint content synced and fully searchable, making it accessible to your AI agents without copying files out of Microsoft 365.
## Connecting to SharePoint
In your Odin AI Platform project, navigate to **Settings** in the sidebar.
Select the **Connections** tab and find the **Microsoft SharePoint** tile under **Cloud Storage & Documentation**.
Click the **Microsoft SharePoint** tile. A popup appears with the option to connect your organization's SharePoint to sync documents. Click **+ Connect SharePoint**.
You will be redirected to Microsoft to authenticate. Sign in with your Microsoft account and grant Odin AI Platform the necessary permissions to access your SharePoint.
Once authenticated, you will be returned to the Connections page. The **Microsoft SharePoint** tile will display a green dot and a count of your active SharePoint connections.
You're now ready to sync documents from SharePoint into the Knowledge Base!
# Connect Zoomin to the Knowledge Base
Source: https://learn.getodin.ai/project-settings/kb-settings/kb-connections/kb-zoomin
Connect Zoomin so agents can search product documentation, manuals, and release notes.
With the Zoomin connector, you can bring your structured product documentation — including manuals, release notes, and technical publications — directly into the Knowledge Base. Once connected, Odin AI Platform makes your Zoomin content fully searchable and accessible to your AI agents.
## Connecting to Zoomin
In your Odin AI Platform project, navigate to **Settings** in the sidebar.
Select the **Connections** tab and find the **Zoomin** tile under **Cloud Storage & Documentation**.
Click the **Zoomin** tile. A popup appears with the option to connect Zoomin so agents can search product documentation, manuals, and release notes. Click **+ Add Zoomin Connection**.
Enter the following details:
| Field | Required | Description |
| ---------------- | -------- | -------------------------------------------------------------------------------------------------- |
| **API URL** | Yes | The API endpoint of your Zoomin instance (e.g. `https://api.example.zoomin.com`). |
| **Web URL** | Yes | The web URL of your Zoomin instance (e.g. `https://web.example.zoomin.com`). |
| **Bearer Token** | No | A bearer token for authenticated API access. Required only if your tenant requires authentication. |
Click **Connect** to save. Once connected, the **Zoomin** tile on the Connections page will display a green dot and a count of your active Zoomin connections.
You're now ready to sync documentation from Zoomin into the Knowledge Base!
# Settings
Source: https://learn.getodin.ai/project-settings/kb-settings/kb-settings
Configure how your knowledge base processes and embeds documents.
The **Knowledge Base Settings** tab allows you to configure how your documents are processed and chunked. These settings affect how content is chunked, embedded, and retrieved by your agent.
## Chunking Strategy
Choose how your documents will be divided into chunks for processing.
| Strategy | Description |
| --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **Sentence Chunking** | Uses a sentence tokenizer for natural language boundaries. Best for general-purpose content where preserving sentence context is important. |
| **Semantic Chunking** | Automatically determines chunk boundaries based on semantic meaning. Best for complex or technical documents where semantic context is more important than sentence structure. |
## Chunk Configuration
Configure chunk size and overlap for sentence-based chunking. This section applies when **Sentence Chunking** is selected.
| Setting | Default | Recommendation | Description |
| ----------------- | ------- | -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Chunk Size** | 64 | 64–512 tokens | The maximum size of each chunk. Larger chunks preserve more context but may reduce retrieval precision. Smaller chunks are more precise but may lose context. |
| **Chunk Overlap** | 6 | 10–20% of chunk size | The number of overlapping tokens between adjacent chunks. Helps maintain context across chunk boundaries. Must be non-negative and less than chunk size. |
## Chunk Enhancement Settings
Configure chunk enrichment and LLM model selection for better content processing.
| Setting | Description |
| -------------------- | ---------------------------------------------------------------------------------------------- |
| **Chunk Enrichment** | When enabled, uses AI to enhance chunks with additional context for better retrieval accuracy. |
| **LLM Model** | Select the LLM model to use for chunk enrichment. Required when Chunk Enrichment is enabled. |
If no Chunk Enrichment models are configured in Super Admin, the default model will be used automatically.
Chunk enrichment improves search quality but increases processing time and computational cost. Enable it for complex content where simple chunking isn't sufficient.
## Danger Zone
The actions in this section are irreversible. Proceed with caution.
**Delete All Knowledge Base** — Permanently removes all documents, chunks, and embeddings from your knowledge base. This action cannot be undone.
## Saving and Applying Settings
| Action | Description |
| -------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Save Settings** | Saves your configuration. Applies only to new documents added or synced going forward. |
| **Reset** | Resets the form to the last saved configuration. |
| **Apply to All Documents** | Re-indexes all existing documents in your knowledge base with the current settings. Use this after saving to apply changes to previously uploaded content. |
Applying settings to all documents can take significant time depending on the number of documents in your knowledge base. This process cannot be cancelled once started.
## Best Practices
### Chunking Strategy
* **Start with Sentence Chunking** for most use cases.
* **Switch to Semantic Chunking** for complex or technical documents where sentence boundaries don't align with meaningful content divisions.
### Chunk Size
* Start with the default (64) as a baseline.
* Increase for content that requires more context per chunk.
* Decrease when precise, targeted retrieval is more important than context.
### Chunk Overlap
* Keep overlap at 10–20% of your chunk size.
* Increase overlap when critical information may span chunk boundaries.
### Chunk Enrichment
* Enable for complex content where retrieval quality needs improvement.
* Choose a model with strong reasoning capabilities for best results.
* Monitor processing time after enabling — enrichment adds computational cost.
# Sync & Schedule
Source: https://learn.getodin.ai/project-settings/kb-settings/kb-sync-schedule
Configure automatic syncing and manage your knowledge base updates.
The **Knowledge Base Sync & Schedule** tab allows you to configure automatic syncing for your knowledge base. Use **Sync Now** in the upper right to trigger a manual sync at any time.
## Automatic Sync Configuration
Choose whether to enable or disable automatic syncing for your knowledge base.
| Option | Description |
| --------------------- | ----------------------------------------------------------------- |
| **Enable Auto Sync** | Automatically syncs your knowledge base on a configured schedule. |
| **Disable Auto Sync** | Only syncs when manually triggered using the **Sync Now** button. |
The **Current Status** indicator shows whether auto sync is currently enabled or disabled.
When Auto Sync is disabled, your knowledge base will only update when you manually trigger a sync using the **Sync Now** button.
## Schedule Type
When **Enable Auto Sync** is selected, choose how the sync schedule is defined.
Syncs your knowledge base at a fixed recurring interval.
**Configuration:**
* Set the interval using the **Every** field — enter a number and select a unit (e.g. `7 days`).
**Example:** Every 7 days will sync the knowledge base once per week from the last sync time.
Syncs your knowledge base on specific days and times.
**Configuration:**
* Select the days of the week to run the sync.
* Set the time of day using the time field.
* Select the appropriate timezone.
**Example:** Monday, Wednesday, Friday at 02:00 AM will sync three times per week at that time.
## Next Scheduled Sync
When auto sync is enabled, this panel shows:
| Field | Description |
| ----------------------- | ------------------------------------------------------------------------------------------------------------------------- |
| **Next Scheduled Sync** | The date and time of the next automatic sync run. Displays a pending message while the scheduler populates upcoming runs. |
| **Upcoming Runs** | A list of upcoming scheduled sync occurrences. Displays a pending message shortly after auto sync is first configured. |
## Saving
Select **Enable Auto Sync** or **Disable Auto Sync** at the bottom of the page to confirm and save your configuration.
| Action | Description |
| --------------------- | ---------------------------------------------------------- |
| **Enable Auto Sync** | Saves and activates the configured schedule. |
| **Disable Auto Sync** | Saves and deactivates automatic syncing. Manual sync only. |
## Best Practices
* **Schedule during off-peak hours** — Run syncs when agent usage is low to avoid performance impact.
* **Match frequency to content change rate** — Sync frequently for high-change sources, less often for stable content.
* **Use Sync Now after adding new content** — Trigger a manual sync immediately after uploading or connecting new documents rather than waiting for the next scheduled run.
# Library
Source: https://learn.getodin.ai/project-settings/library
Browse, manage, and export prompts from all levels of your project.
The **Prompt Library** allows you to browse and export prompts from all levels of your project. It is organized into three tabs — **Agent**, **Personal**, and **Project** — each scoping prompts to a different level.
Displays prompts from agents configured in this project.
### Filtering
* **Search prompts** — Search for a prompt by keyword.
* **Agent dropdown** — Filter prompts by a specific agent in the project.
### Prompts Table
| Column | Description |
| ------------ | ------------------------------------- |
| **Title** | The name of the prompt. |
| **Content** | A preview of the prompt content. |
| **Category** | The category assigned to the prompt. |
| **Created** | The date the prompt was created. |
| **Updated** | The date the prompt was last updated. |
Use the **Export** button to download the filtered prompt list.
Displays your personal prompt library, accessible across all projects.
### Filtering
* **Search prompts** — Search for a prompt by keyword.
### Prompts Table
| Column | Description |
| ------------ | ------------------------------------- |
| **Title** | The name of the prompt. |
| **Content** | A preview of the prompt content. |
| **Category** | The category assigned to the prompt. |
| **Created** | The date the prompt was created. |
| **Updated** | The date the prompt was last updated. |
Use the **Export** button to download your personal prompts.
Displays prompts shared across this project for all team members.
### Filtering
* **Search prompts** — Search for a prompt by keyword.
### Prompts Table
| Column | Description |
| ------------ | ------------------------------------- |
| **Title** | The name of the prompt. |
| **Content** | A preview of the prompt content. |
| **Category** | The category assigned to the prompt. |
| **Created** | The date the prompt was created. |
| **Updated** | The date the prompt was last updated. |
| **Actions** | Options to edit or delete the prompt. |
Use the **Export** button to download project-level prompts.
### Add a Project Prompt
Project prompts can be created and shared with all team members. Select the **Add Prompt** button to open the **Create Project Prompt** form and fill in the following fields:
| Field | Description |
| ------------------------------- | --------------------------------------------------------------------------------------------------------------------------- |
| **Prompt Title** *(required)* | A descriptive title for the prompt. Maximum 100 characters. |
| **Prompt Content** *(required)* | The full prompt text. Maximum 5,000 characters. |
| **Category** *(optional)* | Assign a category to help organize the prompt. Available categories: Summarize, Ideate, Draft, Analyze, Compare, Translate. |
Select **Save** to add the prompt to the project library.
# Logs
Source: https://learn.getodin.ai/project-settings/logs
Track and audit all activity within your project using the Logs page.
The **Logs** page provides a full audit trail of actions taken within your project. It is accessible from **Settings → Logs** in the left navigation menu.
Use Logs to monitor user activity, review configuration changes, audit chat interactions, and export records for reporting or compliance purposes.
## Log Table
The log table displays a chronological list of events, with the most recent entries at the top. Each row represents a single logged action and includes the following columns:
| Column | Description |
| ---------------- | -------------------------------------------------------------------------------------- |
| **User** | The email address of the user who performed the action. |
| **Created** | The date and time the action was recorded. |
| **Action/Title** | The type of action performed (e.g., `chat`, `update_project`, `save_new_custom_a...`). |
| **Role** | The role of the user at the time of the action, if applicable. |
| **Credits** | The number of credits consumed by the action, if applicable. |
Not all actions consume credits or carry a role. Rows where these values are not applicable will display a dash (—).
## Toolbar
The toolbar at the top of the Logs page provides controls for searching, filtering, loading, exporting, and refreshing log data.
### Search
Use the **Search user...** field to filter log entries by a specific user's email address.
### Filters
Click **Filters** to open the filter panel, which includes:
* **Type** — A dropdown to filter logs by action type. The options in this dropdown are populated dynamically based on the actions that have been logged in your project.
* **Chat Message** — A text field to search for logs that contain a specific message within a chat interaction.
Click **Apply Filters** to apply your selection, or **Clear** to reset the filter panel.
### Date Range
Click **Select date range** to filter log entries by a specific time window.
### Load More
Click **Load More (20 items)** to load the next batch of log entries into the table. Entries are loaded in increments of 20.
### Refresh
Click the **refresh icon** (↺) to reload the log table and pull in the latest activity.
## Event Details
Some log entries include a **Details** button on the right side of the row. Clicking it opens the **Event Details** modal, which provides additional context about that specific action.
The content of the modal varies depending on the action type:
**Configuration changes** (e.g., `update_project`, `edit_existing_custom_...`)
Displays a **Field Changes** section showing which fields were modified, along with their previous and updated values.
```
Name
FROM 2.0.1 → TO 2.1.0
```
**Chat interactions** (e.g., `chat`)
Displays a summary of the chat event, such as the message content associated with that interaction.
Not all log entries have a Details button. Actions that do not carry additional metadata will not display this option.
## Exporting Logs
Click the **Export** button to download the current log data. Two formats are available:
| Format | Description |
| ------------------ | ------------------------------------------------------------------------------------------ |
| **Export as CSV** | Downloads a comma-separated values file. Compatible with Excel and most spreadsheet tools. |
| **Export as XLSX** | Downloads a formatted Excel workbook. Preserves column formatting. |
Apply filters or a date range before exporting to narrow down the data to the relevant time period or action type.
# Members
Source: https://learn.getodin.ai/project-settings/members
Add, manage, and remove project members and control their access levels.
The **Members** tab allows you to manage and add members to your project, as well as export a list of your project's members. The access levels available on this tab are controlled in the [Roles](/project-settings/project-roles) page.
Only users with appropriate permissions can add or remove members. Project admins have full access to member management.
## Add Member
The **Add Member** feature enables you to invite people to your project by sharing a link that grants them access with the role you assign, or by email. People you invite via email will receive an email notification and an in-app notification when they log in informing them they've been invited to your project.
Select the **Add Member** button and use one of the following methods to invite new members:
1. **Generate Invite Link**: Select a role, then select the **Copy Link** button to copy an invite link to your clipboard. Anyone who uses the link will automatically be added to the project with the role you selected when creating it.
2. **Invite by Email**: Enter an email address, select a role from the dropdown, then select the **Send Invitation** button. Select the plus icon to the right of the role dropdown to add more than one person at a time.
## Modify Member Permissions
1. Find the member whose record you want to modify by browsing or using the search feature.
2. Select the **Access** dropdown on the member's record and select the role you want to assign them.
## Remove a Member
1. Find the member whose record you want to remove by browsing or using the search feature.
2. Select the **Access** dropdown on the member's record and select **Remove**.
3. Select the **Remove** button in the Remove Member confirmation popup to remove the user's access to your project.
After completing these steps, the user will no longer have access to your project but will retain access to any other projects they are a member of. This action does not delete their account.
## Export a List of Members
The **Export** feature produces a CSV file with additional details about the members of your project, including user ID, name, email, team ID, pending status, role ID, role name, the ID of the person who invited them, whether they were invited by email, and their last sign-in date.
## Best Practices
1. **Role Management**: Apply the principle of least privilege when assigning roles.
2. **Member Review**: Regularly review and remove inactive members.
# Roles
Source: https://learn.getodin.ai/project-settings/roles
Configure project-level role-based access control to manage what users can view and do within your project.
Odin AI Platform supports a project-level Role-Based Access Control (RBAC) security model, which determines what users can view, create, modify, and manage within a specific project. These permissions apply only to the selected project and do not affect a user's access to other projects or their team-level permissions.
Each project starts with three default roles — **Admin**, **Editor**, and **Viewer** — which provide a baseline level of access. To support more complex collaboration models, project admins can extend these defaults by creating Custom Roles. Custom Roles allow you to define granular permissions for individual features, including chat, actions, agents, knowledge base content, workflows, analytics, settings, and member management.
Project-level roles are evaluated independently from team-level roles. This means a user may have broad permissions at the team level while having limited or highly specific permissions within an individual project, depending on their assigned role.
By using project-level RBAC, organizations can:
* Enforce the principle of least privilege within projects.
* Assign access based on responsibilities rather than job titles.
* Safely collaborate with cross-functional or external users.
* Maintain consistency while still allowing flexibility through Custom Roles.
## Roles List
The Roles list displays all roles available in the project. Use the **Search roles** field to filter by name. Each role shows the following columns:
| Column | Description |
| --------------- | ---------------------------------------------------------- |
| **Role Name** | The name of the role. |
| **Members** | The number of members currently assigned to this role. |
| **Description** | A brief description of the role's permissions. |
| **Created** | The date and time the role was created. |
| **Action** | **Edit** or **Delete** links to modify or remove the role. |
## Default Roles
Every project starts with three default roles:
| Role | Description |
| ---------- | ----------------------------------------------------------- |
| **Admin** | Can do anything within the project. |
| **Editor** | Can do everything except adding members and managing roles. |
| **Viewer** | Can only view the project. |
## Custom Roles
Custom Roles are created by setting the access level for each feature to **View Self**, **View All**, or **Edit**. When neither View All nor Edit is selected, the default is **N/A**, meaning the user will either have access only to their own data or will have no access to that feature. Details on what N/A means for each feature are described below.
### Creating a Custom Role
1. Navigate to **Settings → Roles** and select the **Create New Role** button in the upper-right corner.
2. Enter a name in the **Role Name** field.
3. Select **View Self**, **View All**, or **Edit** for the Chat feature.
* **View Self**: Only allows this role to view their own chats.
* **View All**: Allows this role to view any chat created by any team member of this project.
* **Edit**: Allows this role to edit or delete chats they can view.
4. Set one or more of the following permissions to **View All** or **Edit**. The default will be **N/A** for any feature not configured.
* **Actions**: Controls access to the Actions (Tools/Workflows) feature.
* N/A: Can only access their own Actions.
* View All: Can view all Actions created in the project by any member.
* Edit: Can edit all Actions they have access to.
* **Agents**: Controls access to create or modify Agents.
* N/A: Can only access their own Agents.
* View All: Can view all Agents created in the project by any member.
* Edit: Can edit all Agents they have access to.
* **Knowledge Base**: Controls access to add or modify Knowledge Base content, including Smart Tables.
* N/A: Cannot access the Knowledge Base.
* View All: Can view all content within the Knowledge Base.
* Edit: Can upload, modify, and remove content from the Knowledge Base, including Smart Tables.
* **Documents**: Controls access to the Knowledge Base's Documents section.
* N/A: Cannot access the Documents section of the Knowledge Base.
* View All: Can view all Documents in the Knowledge Base.
* Edit: Can add, edit, and delete Documents in the Knowledge Base.
* **Automator**: Controls access to Workflows.
* N/A: Can only access their own Workflows.
* View All: Can view all Workflows created in the project by any member.
* Edit: Can edit all Workflows they have access to.
* **Public Chatbot**: Controls access to the Public Chatbot feature.
* N/A: Has no access to this feature.
* View All: Can view the Public Chatbot feature.
* Edit: Can edit the settings within the Public Chatbot feature.
* **Analytics**: Controls access to the project Analytics feature.
* N/A: Cannot access the Analytics feature.
* View All: Can view the Analytics page.
* Edit: Can modify the data ranges of the Analytics page.
* **Settings**: Controls access to the project Settings feature.
* N/A: Cannot access the project Settings feature.
* View All: Can view the project's Settings.
* Edit: Can access and modify all project settings.
* **Roles**: Controls access to the Roles feature within project Settings.
* N/A: Cannot access the Roles feature within project Settings.
* View All: Can view Roles within project Settings.
* Edit: Can add, modify, and delete Roles within project Settings.
* **Add Members**: Controls whether the user can add, modify, or remove members from the project.
* N/A: Cannot add, modify, or remove members from the project.
* View All: Can view the project members.
* Edit: Can add, modify, or remove members from the project.
5. Select the **Create** button to save the role. The new Custom Role will appear in the Roles list and in the Roles dropdowns used when adding or modifying members.
### Modifying a Role
1. From the list of Roles, select the **Edit** link for the role you want to modify.
2. Update the name, description, or access controls, then select the **Update** button.
Changes will be reflected immediately on the Roles page.
### Deleting a Role
1. From the list of Roles, select the **Delete** link for the role you want to remove.
2. Select the **Delete User Role** button in the confirmation popup.
## Best Practices
1. **Naming**: Give Custom Roles descriptive names that make it clear what type of user they are or what they have access to.
2. **Documentation**: Document your Custom Roles and their purposes with detailed descriptions.
# Chatbot Configuration
Source: https://learn.getodin.ai/public-chatbot/chatbot-configuration
How to configure your public chatbot within Odin AI
The Public Chatbot configuration interface allows users to customize their chatbot's appearance, behavior, and functionality. This walkthrough will help you navigate through all the available settings and options to equip you with the knowledge to configure each section effectively.
## Accessing the Configuration Interface
To begin configuring your chatbot:
1. Navigate to your Odin AI dashboard and open your Project
2. Go to **Public Chatbot** on the sidebar menu
3. The settings panel has 3 tabs: **Appearance**, **Integrations**, and **Teams App**
## Configuration Sections
### Appearance
#### 1. Content
The **Content** section within the **Appearance** tab allows you to configure basic chatbot settings including its name, welcome message, placeholder text, predefined suggestions, as well as the default agent.
* **Chatbot Name**
* Enter a unique name for your chatbot in this field.
* This name will be displayed in the chat window.
* **Welcome Message**
* Customize the initial greeting message the chatbot sends to users when they open the chat.
* Example: “👋 *Hi! I am Odin AI, your personal assistant. How can I help you?*”
* **Input Placeholder Text**
* This is the placeholder text shown inside the message input box before users type.
* Example: “*Ask Odin AI anything…*”
* **Suggestions**
* Add predefined suggested questions to guide users on what they can ask.
* Each suggestion should be entered on a new line.
* Examples:
* *What is Odin AI?*
* *How can I use this chatbot?*
* **Default Agent**
* This section shows the default AI agent handling the chatbot's responses.
* Click the **Select an agent** dropdown to select a different agent if necessary.
#### 2. Chatbot Preview
The **Chatbot Preview** panel on the right simulates the chatbot's appearance.
Any changes made in the Content and Interface sections reflect here in real time.
Users can test the chatbot's initial behavior before saving changes.
#### 3. Interface
The **Interface** section within the **Appearance** tab allows you to customize the visual appearance or theme of your chatbot.
Configurable theme settings include:
* Font Size (px)
* Adjust the chatbot's text size size for readability
* Example: *Set to 15 px for a standard chat experience.*
* Message Bubble/Header Color
* Customize the chatbot’s message bubble background color using a hex code.
* Example: *Set to #000000 for black color or #FFFFFF for white*
* Display Welcome message above toggle icon (Delay in seconds)
* Set a delay (in seconds) before the welcome message appears above the chatbot icon.
* Enter -1 to disable the auto-show feature.
* Toggle Icon Color
* Define the color of the chatbot toggle button using a hex code.
* Example: *Set to #000000 for black color.*
* Text Color
* Set the font color used in chatbot messages.
* Example: *Set to #000000 for black color.*
* Caret Background Color
* Enable Multiple Chats (toggle switch)
* Enable multiple chats: Allows users to start and manage multiple chat sessions.
* Toggle ON if you want users to switch between different conversations.
* Display Sources (toggle switch)
* Allows users to see the sources of the information they are receiving.
* Toggle ON if transparency about AI responses is needed.
* Pre-Chat Attention Image (image upload)
* Upload an image to display before the chat begins.
* Example: *Upload a logo, mascot, or brand asset.*
* Pre-Chat Image Behavior (dropdown)
* Always show on refresh
* Never show
* Show every 24 hours
* Toggle Button Image (image upload)
* Widget Header Image (image upload)
#### 4. Saving changes
Once all configurations are set, click **Save** to apply them.
If you want to revert to default settings, click **Reset to Default**.
# Integrate Odin AI Chatbot to Google Workspace
Source: https://learn.getodin.ai/public-chatbot/chatbot-google-chat
Bring Odin AI to Google Chat
Integrating the Odin AI Chatbot with Google Workspace enables seamless access to your AI assistant directly within Google Chat. This integration allows your team to interact with Odin AI in real time, whether it's answering questions, automating workflows, or supporting daily operations, all without leaving your workspace.
This article guides you through installing and setting up the Odin AI Chatbot in Google Workspace, enabling your team to collaborate more efficiently and streamline daily tasks.
## Prerequisites
* Your project is **Public**
* You have:
* Pre-configured the appearance of your Odin AI chatbot
* your Project's `project id` at hand
* a set of **API Key + Secret** to setup the Odin AI app in Google Workspace
## Install Odin AI in Google Workspace
1. In your Odin AI project, navigate to **Public Chatbot**.
2. Go to the **Integrations** tab.
3. Scroll down to the **Add to Google Chat** section and click **Add Bot**. You will be redirected to Google Workspace Marketplace.
4. In Google Workspace Marketplace, click **Install**.
5. In the pop-up that appears, click **Continue** to start installing.
6. Another pop-up window appears, requiring you to sign in to your Google Workspace account.
7. After signing in, it will require you to grant permissions to One Realm Inc. to access specific information.
8. Once all required permissions are granted, Odin AI will be installed in your Google Workspace. Click **Done** to close the pop-up.
9. Navigate to **Google Chat** and locate the *Odin AI* app under the **Apps** section.
Now that the Odin AI app is installed in your Google Workspace, you need to
set it up to begin using it!
## Set Up Odin AI in Google Chat
1. Within the Odin AI chat in Google Chat, type `/setup`, click the option that appears above the text box, and click **Send** . This command prompts the Odin AI app setup window to enter project details.
2. In the pop-up that appears, enter the following information and click **Submit**:
a. Project ID
b. API Key
c. API Secret
3. The Odin AI app is not ready to use within Google Chat!
# Integrate Odin AI Chatbot to Your Website & Apps
Source: https://learn.getodin.ai/public-chatbot/chatbot-integration
Seamless Integration, Anywhere You Need
Bring Odin's conversational AI chatbot directly into your digital experience with ease. Whether you want to add it to a website, Next.js, React.js, Angular, or WordPress, the integration process is simple and designed to fit seamlessly into your existing setup. This guide walks you through each option, helping you deliver smarter customer engagement and real-time support right where your users need it.
## Integrate to Your Website
To add the chatbot anywhere on your website, use the HTML script below to add the chatbot in a "new window" format to enhance your website with AI-powered chatbots that can handle visitor inquiries seamlessly.
Add this script to your HTML code.\
Make sure to replace `Your_Project_ID_Here` with your Project's ID.
``` theme={null}
```
To add the chatbot as a chat bubble to the bottom-right of your website, use the HTML script below. This is ideal for providing instant support, allowing users to interact with the Odin AI chatbot easily.
Add this script to your HTML code.
Make sure to replace `Your_Project_ID_Here` with your Project's ID.
```
```
## Integrate to Next.js App
To integrate Odin AI chatbot into your Next.js app as a chat window, follow these instructions:
1. Place the following script in the `rootLayout` or **App file**:
```import Script from "next/script" theme={null}
export default function TalkToOdin() {
return (
Talk to Odin Now
)
}
```
2. Add the following `
` tag in the component where you want the Chat Window to appear.
``
To integrate Odin AI chatbot into your Next.js app as a chat bubble, follow these instructions:
1. Place the following script in the `rootLayout` or **App file**:
```import Script from "next/script" theme={null}
export default function RootLayout({
children,
}: {
children: React.ReactNode
}) {
return (
{children}
)
}
```
2. If you've added the Chatbot as a Chat Window previously, make sure you remove the following `
` tag while using the chat widget.
``
## Integrate to React.js App
1. Add the following script within the `` tag of the index.html file located in the public folder.
```
```
2. Add the following `
` tag in the page or component where you want the Chat Window to appear.
```import React from "react"; theme={null}
export default function Home() {
return (
New Season Arrivals
);
};
```
1. Add the following script within the `` tag of the index.html file located in the public folder.
```
```
2. If you've added the Chatbot as a Chat Window previously, make sure you remove the following `
` tag while using the chat widget.
``
## Integrate to Angular Project
1. Add the following script to the index.html file located in the public folder.
``` theme={null}
Angular
```
2. Add the following `
` tag in the page or component where you want the Chat Window to appear.
```
theme={null}
Odin AI Chatbot
Congratulations! Your app is running. 🎉
```
1. Add the following script to the index.html file located in the public folder.
``` theme={null}
Angular
```
2. If you've added the Chatbot as a Chat Window previously, make sure you remove the following `
` tag while using the chat widget.
``
## Integrate to WordPress Site
To add the chatbot to your WordPress site, you can add the following jQuery script to the page using the `Custom HTML` block in the WordPress editor:
```
```
To add the chatbot as a chat bubble to your WordPress site, you can add the **Chat Window** script, mentioned above, to the page using the `Custom HTML` block in the WordPress editor and then add the following CSS script:
```.opbcb-chat-container { theme={null}
border-radius: 20px;
bottom: 90px;
height: 88% !important;
margin-left: 20px;
margin-right: 20px;
margin-top: 20px;
max-height: 750px;
max-width: 450px;
position: fixed;
right: 5px;
transition: all .3s ease;
width: 100%;
z-index: 999;
top: 30px !important;
}
```
If you want to add the Chat Bubble in the footer of the page, then you need to first add the script in the `Custom HTML` block of the footer along with the CSS code.
# Public Chatbot
Source: https://learn.getodin.ai/public-chatbot/chatbot-public
Create and Brand Your Odin AI Chatbot
Odin AI offers a Public Chatbot feature that lets you create a no-code AI chatbot powered by your data in real time. You can seamlessly integrate it into your website, Slack, Google Chat, Microsoft Teams, and more. By uploading custom data into your Odin Knowledge Base, Odin AI agents generate highly contextual, tailored responses that enhance customer engagement. The chatbot is fully customizable, including options for name, branding (colors and logo), placeholder text, suggestions, and more.
## Make Your Project Public
To enable the Public Chatbot and integrate it into websites and other applications, yyou first need to make your project "Public."
1. In your Odin AI project, go to **Settings**.
2. Under **Project Description**, toggle **Make Project Public**.
3. Scroll down and click **Update** to save changes.
## Configure Your Chatbot
The Public Chatbot includes a range of customization options to help you stay on brand:
* Chatbot Name
* Welcome Message
* Input Placeholder Text
* Suggestions
* Chatbot Appearance:
* Widget Header Image (logo)
* Font size
* Header, Text, Toggle, and Caret Background Colors
* Multiple Chats & Display Sources
* Pre-chat Attention Image and Behavior
* Toggle Button Image
* Default AI Agent Selection
For detailed instructions on customization, visit [Chatbot Configuration](/chatbot-configuration).
# Integrate Odin AI Chatbot to Slack
Source: https://learn.getodin.ai/public-chatbot/chatbot-slack
Bring Odin AI to Slack
Integrating Odin AI with Slack brings intelligent, context-aware chat directly into your workspace, allowing teams to interact with your AI agent without leaving Slack. This guide walks you through installing the Odin AI app in Slack, configuring permissions, and setting up a channel for seamless communication with your AI agent.
Each Odin AI project can only be linked to a single Slack app. You will need to create a new Slack app for each additional Odin AI project you want to connect.
## Prerequisites
* You have:
* your Project's `project id` at hand
* a set of **API Key + Secret** to setup the Odin AI app in Slack
## Install and Set Up Odin AI App in Slack
1. Go to [Slack API Apps](https://api.slack.com/apps). You may need to log in to your Slack workspace.
2. Click **Create an App**.
3. Select **From scratch**.
4. Enter the **App Name** (e.g., "Odin AI Chatbot").
5. Select the **Development Slack Workspace** where you want to install the app.
6. Click **Create App**.
7. In the **Basic Information** section, note down the following values: `App ID`, `Client ID`, `Client Secret`, `Signing Secret`, and `Verfication Token`. You will need these to configure the app in step 11 below.
8. In the left sidebar, click on **OAuth & Permissions**:
a. Click **Add Redirect URL** and enter the following URL:
```
https://api.getodin.ai/slack/oauth
```
b. Click **Add** and then **Save URLs**.
c. Under **Scopes**, add the following **Bot Token Scopes**:
* `app_mentions:read` – to allow the bot to read messages where it is mentioned in conversations the app is in.
* `channels:history` – to allow the bot to view messages and other content in public channels that the app is a member of.
* `channels:manage` – to allow the bot to manage channels, including creating, archiving, and renaming channels.
* `channels:read` – to allow the bot to view basic information about public channels in a workspace.
* `chat:write` – to allow the bot to send messages as the app.
* `commands` – to allow the bot to add slash commands that users can invoke.
* `groups:read` – to allow the bot to view basic information about private channels that the app is a member of.
* `im:history` – to allow the bot to view messages and other content in direct messages that the app is a member of.
* `im:write` – to allow the bot to send direct messages as the app.
* `users.profile:read` – to allow the bot to view user profiles.
* `users:read` – to allow the bot to view people in a workspace.
* `users:read.email` – to allow the bot to view users emails.
9. Click **App Home** in the left sidebar. Under **Show Tabs**, ensure **Messages Tab** is enabled, as well as the checkbox below it.
10. In the left side bar, click **Slash Commands**:
a. Click **Create New Command**.
b. In the **Command** field, enter `/setup`.
c. In the **Request URL** field, enter:
```
https://api.getodin.ai/slack/events
```
d. In the **Short Description** field, enter something like "Channel Setup".
e. Optionally, you can add a longer description in the **Usage Hint** field.
f. Click **Save**.
11. Complete the following API endpoint URL, with the values gathered in step 7:
```
https://api.getodin.ai/slack/custom_install/{client_id}/{client_secret}/{signing_secret}/{verification_token}
```
Replace `{client_id}`, `{client_secret}`, `{signing_secret}`, and `{verification_token}` with the values from your Slack app found in the **Basic Information** section.
12. Open the completed URL in a new browser. This will redirect you to a page with an **Add to Slack** button. Click this button to install the app to your workspace.
13. You will be redirected to a page crequesting permission to access your workspace. Click **Allow** to grant the necessary permissions.
14. You should see a confirmation message indicating that the installation was successful and you'll be redirected to your Slack workspace.
15. Go to your Slack workspace, and you should see the Odin AI app in the list of apps on the left sidebar. App is successfully installed in your Slack workspace! The next step is to run the setup command to configure a channel for Odin AI.
## Set Up a Channel for Odin AI App
To set up a channel for Odin AI, you need to run the `/setup` command in the desired channel. This command will configure the channel to work with Odin AI.
1. Open your Slack workspace and navigate to the channel where you want to set up Odin AI.
2. In the message input box, type `/setup` and press **Enter**.
3. A pop-up will appear, prompting you to enter the following information:
* **Channel** – Select the channel you want to set up for Odin AI. If you want to use the app in direct messages, select your own user name.
* **Project ID**: Enter your Odin AI Project ID.
* **API Key**: Enter your Odin AI API Key.
* **API Secret**: Enter your Odin AI API Secret.
4. Click **Submit** to complete the setup process. The app will validate the information and configure the channel.
5. If the setup is successful, you will see a confirmation message in the channel indicating that Odin AI has been set up successfully.
Odin AI is now set up in your selected channel! You can start interacting with the bot by mentioning it in messages or using the slash commands.
# Integrate Odin AI Platform Chatbot to MS Teams
Source: https://learn.getodin.ai/public-chatbot/chatbot-teams
Bring Odin AI Platform to MS Teams
Integrating Odin AI Platform with Microsoft Teams allows you to bring intelligent, context-aware chat directly into your team's collaboration environment. This guide walks you through the steps to set up the Odin AI Platform chatbot in Microsoft Teams, enabling seamless communication with your AI agent without leaving the Teams interface.
## Prerequisites
* Admin access to Azure to create the bot
* Admin access to Teams Dev Portal
## Setup Steps
### 1. Create the Azure Bot
1. Go to the [Azure dashboard](https://portal.azure.com/).
2. Click **Create Resource**.
3. Type `Bot` in the search bar and select **Azure Bot**.
4. Create a new Azure Bot and set the desired **Display Name**.
### 2. Configure the Bot
5. Go to the **Configuration** tab and update the **Messaging Endpoint** to point to your server URL. **Cloud** customers, please enter `https://api.getodin.ai/teams/events` **On-Premise** customers, please enter `/teams/events`
6. In the **Configuration** tab, copy the **App ID** and **Tenant ID**, then navigate to **Manage Passwords**.
7. Create a new password for the bot and save it for later use.
8. Enable a **streaming endpoint** for the bot in Azure and point it to the URL for that endpoint.
### 3. Enable Teams Channel
9. Click **Channels** on the left side of the Azure portal and enable the **Teams** interaction channel for the bot.
### 4. Register the Bot in Odin AI Platform
Cloud customers, please open a support ticket with AA Support providing your `App ID`, `Tenant ID`, and `App Password` to have the bot registered for you.
10. In Odin AI Platform, navigate to the **Super Admin** page and select **Teams Bots** on the left-hand side.
11. Click **Register Bot**.
12. Enter the **App ID**, **Tenant ID**, and **Password** collected in steps 6–7. Click **Register Bot**.
### 5. Create the App in Teams Dev Portal
13. Go to the [Teams Developer Portal](https://dev.teams.microsoft.com/apps).
14. Click **New App**.
15. Populate the app information:
* **Short Description** — required, cannot be empty.
* **Long Description** — required, cannot be empty.
16. Populate the **App ID** field with the bot's App ID from Azure.
### 6. Configure Bot Features
17. Go to **App Features** and add the bot, providing the **App ID** from Azure.
18. Configure the bot capabilities as follows:
### 7. Deploy
19. Deploy the package following your organization's standard policy for deploying new Teams applications.
20. To configure the bot's access to projects, send it the `!setup` command as a first message.
***
## Recommended Deployment Method
On the app page in the Microsoft Teams Developer Dashboard, scroll to the bottom of the left-hand sidebar. Under **Publish**, select **Publish to org**.
The app will be posted to your Teams instance and may require Administrator consent. Consent can be granted from the [Microsoft Teams Admin Center](https://admin.teams.microsoft.com/dashboard).
After consent is granted, allow a few hours for permissions to propagate before the bot becomes usable. This delay is caused by Microsoft's internal review process for custom applications, even when restricted to a single organization.
***
## Teams Bot Settings Granularity
After completing the initial setup, send the `!setup` command to the bot to begin receiving responses in Microsoft Teams.
### Default Behavior
By default, bot settings have **per-bot, per-Teams-instance** granularity. The project, API key, and secret configured for the bot apply across the entire Teams instance — including all channels, groups, and direct messages.
### Per-Channel Settings (On-Premise Only)
For greater granularity — such as using one bot with multiple projects depending on the channel, group, or user — set the following backend environment variable:
```env theme={null}
TEAMS_USE_PER_CHANNEL_SETTINGS=TRUE
```
This setting is only available for **on-premise customers**. It is not supported for cloud-hosted deployments.
### Agent Selection
In all configurations, the Teams Bot interacts with the project's **currently set default agent**. There is currently no option to select a different agent.
# Chat SDK
Source: https://learn.getodin.ai/sdk/chat
Integrate conversational AI interfaces into your application using the Odin AI Chat SDK.
The ChatSDK is the core component of the Odin AI Content Creator SDK that enables you to build conversational AI applications with ease. It provides comprehensive chat management, message handling, streaming responses, and knowledge base integration. In this article you will learn how to install the SDK and get up and running quickly with our 'Quick Start' example. You can explore the various configuration options, learn about authentication, and the core methods that you can use with this SDK. You will also discover use case examples
## Installation
```bash theme={null}
npm install @odin-ai-staging/sdk
```
## Quick Start
```typescript theme={null}
import { ChatSDK } from '@odin-ai-staging/sdk';
// Initialize the SDK
const chatSDK = new ChatSDK({
baseUrl: 'https://your-api-endpoint.com/',
projectId: 'your-project-id',
apiKey: 'your-api-key',
apiSecret: 'your-api-secret'
});
// Create a chat and send a message
async function quickExample() {
// Create a new chat
const chat = await chatSDK.createChat('My First Chat');
// Send a message
const response = await chatSDK.sendMessage('Hello, how can you help me?', {
chatId: chat.chat_id
});
console.log('AI Response:', response.message);
}
```
## Configuration
### ChatSDKConfig Interface
```typescript theme={null}
interface ChatSDKConfig {
baseUrl: string; // API endpoint URL
projectId: string; // Your project identifier
apiKey?: string; // API key for authentication
apiSecret?: string; // API secret for authentication
accessToken?: string; // Access token for web app usage
}
```
### Configuration Options
* **baseUrl**: The base URL of your API endpoint
* **projectId**: Your unique project identifier
* **apiKey** & **apiSecret**: For server-side authentication
* **accessToken**: For client-side authentication (web apps)
## Authentication
The ChatSDK supports two authentication methods:
### API Key Authentication (Server-side)
```typescript theme={null}
const chatSDK = new ChatSDK({
baseUrl: 'https://api.example.com/',
projectId: 'proj_123',
apiKey: 'your-api-key',
apiSecret: 'your-api-secret'
});
```
### Access Token Authentication (Client-side)
```typescript theme={null}
const chatSDK = new ChatSDK({
baseUrl: 'https://api.example.com/',
projectId: 'proj_123',
accessToken: 'your-access-token'
});
```
## Core Methods
### Chat Management
#### `createChat(name?, documentKeys?)`
Creates a new chat conversation.
```typescript theme={null}
async createChat(
name?: string, // Optional chat name (defaults to "Untitled")
documentKeys?: string[] // Optional document keys for knowledge base context
): Promise
```
**Example:**
```typescript theme={null}
// Create a basic chat
const chat = await chatSDK.createChat('Customer Support Chat');
// Create a chat with knowledge base context
const chatWithDocs = await chatSDK.createChat(
'Product Documentation Chat',
['doc_key_1', 'doc_key_2']
);
```
#### `listChats(cursor?, limit?)`
Retrieve a paginated list of chats in the project.
```typescript theme={null}
async listChats(
cursor?: number, // Optional cursor for pagination
limit?: number // Number of chats to return (default: 30, max: 100)
): Promise
```
**Example:**
```typescript theme={null}
// Get first 10 chats
const chats = await chatSDK.listChats(undefined, 10);
// Get next page using cursor
if (chats.next_cursor) {
const nextPage = await chatSDK.listChats(chats.next_cursor, 10);
}
```
#### `getChatHistory(chatId)`
Retrieve a chat with its complete message history.
```typescript theme={null}
async getChatHistory(chatId: string): Promise
```
**Example:**
```typescript theme={null}
const chatHistory = await chatSDK.getChatHistory('chat_123');
console.log('Messages:', chatHistory.messages);
```
#### `deleteChat(chatId)`
Delete a chat and all its messages permanently.
```typescript theme={null}
async deleteChat(chatId: string): Promise
```
**Example:**
```typescript theme={null}
await chatSDK.deleteChat('chat_123');
```
#### `updateChatName(chatId, newName)`
Update the display name of an existing chat.
```typescript theme={null}
async updateChatName(chatId: string, newName: string): Promise
```
**Example:**
```typescript theme={null}
await chatSDK.updateChatName('chat_123', 'Updated Chat Name');
```
### Message Handling
#### `sendMessage(message, options?)`
Send a message and receive the AI response.
```typescript theme={null}
async sendMessage(
message: string,
options?: SendMessageOptions
): Promise
```
**SendMessageOptions:**
```typescript theme={null}
interface SendMessageOptions {
chatId?: string; // Target chat ID
agentType?: AgentType; // Type of AI agent to use
agentId?: string; // Specific agent ID
documentKeys?: string[]; // Knowledge base documents
images?: File[]; // Image attachments
metadata?: Record; // Custom metadata
modelName?: ModelName; // AI model to use
useKnowledgebase?: boolean; // Enable knowledge base
isTest?: boolean; // Test mode flag
googleSearch?: boolean; // Enable web search
formatInstructions?: string; // Response format guidance
ignoreChatHistory?: boolean; // Ignore conversation history
exampleJson?: string; // Example JSON for structured responses
skipStream?: boolean; // Disable streaming
}
```
**Example:**
```typescript theme={null}
// Basic message
const response = await chatSDK.sendMessage('What is artificial intelligence?', {
chatId: 'chat_123'
});
// Advanced message with options
const advancedResponse = await chatSDK.sendMessage(
'Analyze this data and provide insights',
{
chatId: 'chat_123',
modelName: 'gpt-4o',
useKnowledgebase: true,
googleSearch: true,
formatInstructions: 'Provide response in bullet points'
}
);
```
#### `sendFeedback(messageId, chatId, feedback)`
Provide feedback on an AI response.
```typescript theme={null}
async sendFeedback(
messageId: string,
chatId: string,
feedback: boolean // true = thumbs up, false = thumbs down
): Promise
```
**Example:**
```typescript theme={null}
// Positive feedback
await chatSDK.sendFeedback('msg_123', 'chat_123', true);
// Negative feedback
await chatSDK.sendFeedback('msg_123', 'chat_123', false);
```
## Streaming Support
### `sendMessageStream(message, options)`
Send a message with real-time streaming response.
```typescript theme={null}
async sendMessageStream(
message: string,
options: SendMessageOptions & StreamCallbacks
): Promise
```
**StreamCallbacks:**
```typescript theme={null}
interface StreamCallbacks {
onChunk?: (chunk: string) => void; // Text chunks
onMessageObject?: (messageObject: any) => void; // Structured data
onComplete?: (message: Message) => void; // Final message
onError?: (error: Error) => void; // Error handler
onChatNameUpdate?: (chatName: string) => void; // Chat name changes
onDocumentChunk?: (chunk: string) => void; // Document processing updates
onMessageEnd?: () => void; // Stream completion
}
```
**Example:**
```typescript theme={null}
await chatSDK.sendMessageStream(
'Tell me about machine learning',
{
chatId: 'chat_123',
onChunk: (chunk) => {
// Display text as it streams in
console.log('Chunk:', chunk);
updateUI(chunk);
},
onComplete: (message) => {
console.log('Complete message:', message);
finalizeUI(message);
},
onError: (error) => {
console.error('Stream error:', error);
showError(error.message);
}
}
);
```
## Error Handling
The SDK throws `APIError` objects for API-related failures:
```typescript theme={null}
interface APIError {
message: string; // Error description
status: number; // HTTP status code
detail?: string; // Additional error details
}
```
**Example:**
```typescript theme={null}
try {
const response = await chatSDK.sendMessage('Hello');
} catch (error) {
if (error instanceof APIError) {
console.error(`API Error ${error.status}: ${error.message}`);
if (error.detail) {
console.error('Details:', error.detail);
}
} else {
console.error('Unexpected error:', error);
}
}
```
## Examples
### Basic Chat Application
In this example, you will learn how to build a basic chat application using the Odin AI SDK with simple, non-streaming message exchanges. You start by creating a `SimpleChatApp` class that initializes the ChatSDK with your API credentials pulled from environment variables (base URL, project ID, API key, and secret). The class tracks your current chat session with `currentChatId` and provides three main methods: `startNewChat()` creates a new chat conversation with a custom name, `sendMessage()` sends a message to the AI and returns the complete response (automatically creating a new chat if one doesn't exist), and `getChatList()` retrieves all your existing chat conversations. Unlike streaming implementations, this approach waits for the full AI response before displaying it, making it perfect for simpler use cases where you don't need real-time token-by-token updates. The example uses the GPT-4o-mini model and includes error handling throughout, with console logging to help you track the conversation flow—giving you a straightforward foundation for building basic chatbot functionality without the complexity of streaming callbacks.
```typescript theme={null}
import { ChatSDK } from '@odin-ai-staging/sdk';
class SimpleChatApp {
private chatSDK: ChatSDK;
private currentChatId?: string;
constructor() {
this.chatSDK = new ChatSDK({
baseUrl: process.env.API_BASE_URL,
projectId: process.env.PROJECT_ID,
apiKey: process.env.API_KEY,
apiSecret: process.env.API_SECRET
});
}
async startNewChat(name: string = 'New Chat') {
try {
const chat = await this.chatSDK.createChat(name);
this.currentChatId = chat.chat_id;
console.log(`Created chat: ${chat.name} (${chat.chat_id})`);
return chat;
} catch (error) {
console.error('Failed to create chat:', error);
throw error;
}
}
async sendMessage(message: string) {
if (!this.currentChatId) {
await this.startNewChat();
}
try {
const response = await this.chatSDK.sendMessage(message, {
chatId: this.currentChatId,
modelName: 'gpt-4o-mini'
});
console.log('User:', message);
console.log('AI:', response.message);
return response;
} catch (error) {
console.error('Failed to send message:', error);
throw error;
}
}
async getChatList() {
try {
const chats = await this.chatSDK.listChats();
return chats.chats;
} catch (error) {
console.error('Failed to get chat list:', error);
throw error;
}
}
}
// Usage
const app = new SimpleChatApp();
await app.sendMessage('Hello, how are you?');
```
### Streaming Chat with Real-time Updates
In this example, you will learn how to build a streaming chat interface that connects to the Odin AI API and displays AI responses in real-time. You start by creating a `StreamingChat` class that initializes the ChatSDK with your API credentials and a reference to an HTML element where messages will appear. When you send a message using `sendStreamingMessage()`, you'll set up callback handlers that process the streaming response as it arrives: the `onChunk` callback appends each piece of text to your UI immediately (creating that characteristic "typing" effect), while `onMessageObject` lets you handle rich content like images. You'll also implement error handling with `onError`, update your chat title with `onChatNameUpdate`, and use `onComplete` to add thumbs up/down feedback buttons once the message finishes streaming. This example shows you how to display images dynamically, collect user feedback on AI responses, and configure the chat to use GPT-4o with Knowledge Base integration—giving you everything you need to create a ChatGPT-like interface with real-time streaming responses and interactive features.
```typescript theme={null}
import { ChatSDK, StreamCallbacks } from '@odin-ai-staging/sdk';
class StreamingChat {
private chatSDK: ChatSDK;
private messageElement: HTMLElement;
constructor(messageElement: HTMLElement) {
this.messageElement = messageElement;
this.chatSDK = new ChatSDK({
baseUrl: 'https://your-api.com/',
projectId: 'your-project-id',
accessToken: 'your-access-token'
});
}
async sendStreamingMessage(message: string, chatId: string) {
// Clear previous content
this.messageElement.innerHTML = '';
const callbacks: StreamCallbacks = {
onChunk: (chunk: string) => {
// Append each chunk to the UI
this.messageElement.innerHTML += chunk;
this.messageElement.scrollIntoView();
},
onMessageObject: (messageObj: any) => {
// Handle structured data like images, cards, etc.
if (messageObj.image_urls) {
this.displayImages(messageObj.image_urls);
}
},
onComplete: (message: any) => {
console.log('Message complete:', message);
// Add final styling, enable feedback buttons, etc.
this.finalizeMessage(message);
},
onError: (error: Error) => {
console.error('Streaming error:', error);
this.messageElement.innerHTML = `Error: ${error.message}`;
},
onChatNameUpdate: (chatName: string) => {
// Update chat title in UI
document.title = chatName;
}
};
try {
await this.chatSDK.sendMessageStream(message, {
chatId,
modelName: 'gpt-4o',
useKnowledgebase: true,
...callbacks
});
} catch (error) {
console.error('Failed to send streaming message:', error);
}
}
private displayImages(imageUrls: string[]) {
imageUrls.forEach(url => {
const img = document.createElement('img');
img.src = url;
img.style.maxWidth = '100%';
this.messageElement.appendChild(img);
});
}
private finalizeMessage(message: any) {
// Add feedback buttons
const feedbackDiv = document.createElement('div');
feedbackDiv.innerHTML = `
`;
this.messageElement.appendChild(feedbackDiv);
}
async provideFeedback(messageId: string, isPositive: boolean) {
try {
await this.chatSDK.sendFeedback(messageId, 'chat_id', isPositive);
console.log('Feedback sent successfully');
} catch (error) {
console.error('Failed to send feedback:', error);
}
}
}
```
### Knowledge Base Integration
In this example, you will discover how to build a Knowledge Base-powered chat application that can answer questions based on specific documents you upload to your Knowledge Base. The `KnowledgeBasedChat` class initializes the ChatSDK with your API credentials from environment variables, then uses two key methods to interact with your documents: `createDocumentChat()` sets up a new chat session linked to specific documents by passing an array of documentKeys (unique identifiers for your uploaded documents), and `askDocumentQuestion()` sends questions to the AI with Knowledge Base features enabled. When you ask questions, you'll configure the chat to use `useKnowledgebase: true` and specify `agentType: 'document_agent'` to ensure the AI retrieves relevant information from your documents, while `formatInstructions` tells the AI to include citations for its sources. The response includes a sources property that shows you which documents the AI referenced when generating its answer, making this perfect for building document Q\&A systems, research assistants, or any application where you need AI responses grounded in specific content rather than general knowledge. This enables full transparency into how the AI arrived at its answers.
```typescript theme={null}
import { ChatSDK } from '@odin-ai-staging/sdk';
class KnowledgeBasedChat {
private chatSDK: ChatSDK;
constructor() {
this.chatSDK = new ChatSDK({
baseUrl: process.env.API_BASE_URL,
projectId: process.env.PROJECT_ID,
apiKey: process.env.API_KEY,
apiSecret: process.env.API_SECRET
});
}
async createDocumentChat(documentKeys: string[], chatName?: string) {
try {
const chat = await this.chatSDK.createChat(
chatName || 'Document Q&A',
documentKeys
);
console.log(`Created document chat with ${documentKeys.length} documents`);
return chat;
} catch (error) {
console.error('Failed to create document chat:', error);
throw error;
}
}
async askDocumentQuestion(question: string, chatId: string, documentKeys?: string[]) {
try {
const response = await this.chatSDK.sendMessage(question, {
chatId,
documentKeys,
useKnowledgebase: true,
agentType: 'document_agent',
formatInstructions: 'Provide citations for your sources'
});
// Display sources if available
if (response.message.sources) {
console.log('Sources:', response.message.sources);
}
return response;
} catch (error) {
console.error('Failed to ask document question:', error);
throw error;
}
}
}
// Usage
const kbChat = new KnowledgeBasedChat();
const chat = await kbChat.createDocumentChat(['doc_1', 'doc_2'], 'Product FAQ');
const answer = await kbChat.askDocumentQuestion(
'What are the key features of the product?',
chat.chat_id
);
```
## Best Practices
### Error Handling
Always implement proper error handling for all SDK methods:
```typescript theme={null}
try {
const response = await chatSDK.sendMessage(message, options);
// Handle success
} catch (error) {
if (error instanceof APIError) {
// Handle API errors
console.error(`API Error: ${error.message}`);
} else {
// Handle unexpected errors
console.error('Unexpected error:', error);
}
}
```
### Streaming for Better UX
Use streaming for longer responses to provide real-time feedback:
```typescript theme={null}
// Instead of waiting for complete response
const response = await chatSDK.sendMessage(longQuery);
// Use streaming for better user experience
await chatSDK.sendMessageStream(longQuery, {
onChunk: (chunk) => updateUI(chunk),
onComplete: (message) => finalizeUI(message)
});
```
### Optimize API Calls
* Reuse chat IDs instead of creating new chats for each message
* Use pagination for chat lists
* Implement caching for frequently accessed data
```typescript theme={null}
class OptimizedChatManager {
private chatCache = new Map();
private currentChatId?: string;
async getOrCreateChat(name?: string) {
if (this.currentChatId) {
return this.currentChatId;
}
const chat = await this.chatSDK.createChat(name);
this.currentChatId = chat.chat_id;
return this.currentChatId;
}
async getCachedChatHistory(chatId: string) {
if (this.chatCache.has(chatId)) {
return this.chatCache.get(chatId);
}
const history = await this.chatSDK.getChatHistory(chatId);
this.chatCache.set(chatId, history);
return history;
}
}
```
### Configuration Management
Store configuration securely and use environment variables:
```typescript theme={null}
// Good: Use environment variables
const chatSDK = new ChatSDK({
baseUrl: process.env.ODIN_API_BASE_URL,
projectId: process.env.ODIN_PROJECT_ID,
apiKey: process.env.ODIN_API_KEY,
apiSecret: process.env.ODIN_API_SECRET
});
// Bad: Hardcode credentials
const chatSDK = new ChatSDK({
baseUrl: 'https://api.example.com',
projectId: 'hardcoded-project-id',
apiKey: 'hardcoded-api-key',
apiSecret: 'hardcoded-secret'
});
```
### Memory Management
Clean up resources and avoid memory leaks:
```typescript theme={null}
class ChatApplication {
private activeStreams = new Set