# Apexti Toolbelt Docs (full)> Concatenated Markdown for every published docs page, in nav order.Source: https://docs.apexti.com/llms.txt — regenerate with `npm run generate:agent-docs`. --- --- title: "Overview of Toolbelt" description: "Learn what Apexti Toolbelt is, how it connects your services with AI, and explore the platform's core capabilities." updated: 2026-11-12 --- # Overview of Toolbelt ## About Apexti Toolbelt Apexti Toolbelt — or just Toolbelt — is a platform that connects all of your siloed services together and lets you navigate them with AI. Technically, Toolbelt is a conversational tool that uses a large language model (LLM) and the Model Context Protocol (MCP) to give you a single interface where you can chat your way across otherwise disconnected tools and data. ## Your fastest path to getting started The best guide to Toolbelt is Toolbelt itself. Every assistant already knows how the platform works — so the fastest way to figure out what something does, or how to accomplish a specific goal, is to just ask. Open a new chat with any assistant and try something like this: > *"My goal is [describe what you want to accomplish]. Look at the Toolbelt docs and help me set this up. Ask me any questions you need."* The assistant will walk you through configuration, suggest the right features, and flag anything it needs from you. You don't need to read the entire docs first. > **Tip:** If you're building a new assistant and aren't sure where to start, describe your end goal — not a list of features. Something like "I want an assistant that drafts blog posts in my brand voice and posts them to our CMS" gives the assistant enough context to map out the full setup for you. The written docs (this site) exist as a reference for when you want to understand *why* something works the way it does, or look up a specific detail. Use them as a companion, not a prerequisite. ## How to navigate this documentation Start with the left-hand nav menu for a map of every page. From there, you can open feature, integration, organization, and support topics directly. When viewing the GitHub Pages preview, use the site header links and each page's headings to move through the content. Internal links use portable relative Markdown paths so the same source works in GitHub, GitHub Pages, and assistant retrieval. ## How Toolbelt is organized Everything in Toolbelt lives inside an **organization**. Think of the organization as your team's shared environment — it holds your assistants, connected services, storage, and members in one place. The hierarchy looks like this: **Organization** → **Assistants** → **Services** → **Chats** :::cards 4 ===card title: Organization icon: 🏢 The top-level container. Admins manage members, billing, and permissions here. Every Toolbelt account comes with a personal organization by default. ===card title: Assistants (A.K.A Agents) icon: robot Live inside the organization and are either private (only you) or shared (visible to the whole team). Each assistant has its own instructions, memory, and tool access. ===card title: Services icon: plug Integrations like GitHub, Jira, and Slack are connected within an organization and then selectively enabled on individual assistants. ===card title: Chats icon: message-square Where work actually happens — every conversation belongs to an assistant and inherits its configuration. ::: > **Note:** Every Toolbelt account includes a personal organization by default. The difference is that you cannot invite other Toolbelt users to a personal organization — collaboration and shared assistants require a team organization. See [Managing Organization Assistants](https://docs.apexti.com/features/managing-assistants.md) to learn more. ## Toolbelt Terminology > **Note:** Terminology is evolving rapidly and terms may change frequently. ### Apexti Apexti (legally Apexti Inc) is the company behind Toolbelt. ### Toolbelt Apexti Toolbelt — or Toolbelt for short — is a platform that connects siloed services together and lets you navigate them conversationally with AI. ### Model Context Protocol (MCP) MCP is an open standard that defines how AI models discover and interact with external tools and data sources. Toolbelt uses MCP to connect your services — so your assistant can read a GitHub issue, send a Slack message, or query a database, all through a single conversation. ### Large Language Model (LLM) An LLM is the AI engine that powers your assistant's ability to understand natural language and generate responses. Toolbelt is model-agnostic — you can choose from providers like OpenAI, Anthropic, Google, and others (including local models). ## Platform Capabilities Explore the core building blocks and advanced features of Toolbelt: :::cards 3 ===card title: Services & Tools icon: plug **Services** are integrations with external platforms (GitHub, Slack, Notion, and more). Toolbelt handles authentication (OAuth or API keys) once. **Tools** are the executable functions a service provides — for example, `slack_send_message`. You can toggle individual tools on or off for fine-grained control. ===card title: Assistants icon: robot An assistant is an AI agent configured with specific instructions, memory, and a curated set of tools. - **Context retention:** Built-in memory for project history. - **Model agnostic:** Use your preferred LLM, including local models. ===card title: Organizations & Collaboration icon: users Toolbelt is built for teams, not just individuals. - **Shared organizations:** Create an organization for a shared environment. - **Asset library:** Assistants can be private (testing) or shared (team use). - **Unified governance:** Admins set permissions and view audit trails. ::: :::cards 3 ===card title: Wrenches icon: wrench href: ../features/wrenches.md **Turn "AI magic" into reliable code.** Wrenches distill successful LLM solutions into versioned, deterministic functions. Freeze logic after a successful task completion — for example, extracting FICO scores the same way every time. ===card title: Auto-DuckDB icon: database href: ../features/auto-duckdb.md **Never truncate data again.** Toolbelt intercepts oversized tool outputs and converts them into a queryable DuckDB database with an AI-generated schema. Your assistant then writes SQL to analyze the full dataset. ===card title: Chat & History icon: chart-bar href: ../features/chat-history.md **See the data, don't just read it.** Toolbelt renders rich media directly in chat — Markdown, CSV, HTML, and SVG. Generate interactive ER diagrams, coverage charts, or live reports and pin them as widgets to your dashboard. ::: :::cards 2 ===card title: Toolbelt Bridge icon: bridge href: ../features/bridge.md Connect your local or private infrastructure to the cloud. The Bridge lets you securely expose locally running MCP servers (on your laptop or private server) to your Toolbelt assistants. ===card title: Slack Integration icon: slack href: ../features/slack.md Connect the Slack **workspace for your organization** (**My Organizations → Integrations**), link **your Slack user** under **Integrations → Slack**, then use `/toolbelt` from Slack. - **Organization workspace:** enables assistants to use **`send_external_message`** into Slack (channels/DMs). - **Personal link:** conversational access via DMs, mentions, **`/toolbelt`**, and default-assistant routing. ::: --- --- title: "The Toolbelt Interface" description: "A complete map of the Toolbelt UI — the global sidebar, the top bar, the chat history panel, and the input controls." updated: 2026-10-29 --- # The Toolbelt Interface Before you send your first message, it helps to know what you're looking at. The Toolbelt interface has four main regions: the **global sidebar** on the far left, the **top bar** running across the top, the **chat history panel** inside the Chat tab, and the **chat area** itself. :::cards 2 ===card title: Platform Navigation icon: layout-dashboard Global sidebar and top bar for switching organizations, opening assistants, and navigating between tabs. ===card title: The Conversation Space icon: messages-square The chats list, streaming message thread with expandable tool badges, and the interactive input bar. ::: --- ## The global sidebar The narrow panel on the far left is always present, regardless of which assistant or tab you're in. It gives you access to the top-level areas of Toolbelt: - **Organization switcher** — at the very top. Click it to switch between your personal organization and any organizations you belong to. - **Home** — takes you to the platform home view, which shows recent activity across all your assistants. A red badge appears here when there are unread notifications. - **Assistants** — your list of assistants. A red dot indicates something new or unread. Click any assistant name to open it. - **Services** — manage your connected integrations (GitHub, Slack, Google, and others). Connect new services here before enabling them on an assistant. - **Platform Settings** — account-level settings including billing, API keys, and organization management. --- ## The top bar The top bar spans the full width of the screen. Its contents change depending on what you have open. When you're inside a specific assistant, the top bar shows: - **Back arrow** — returns you to the previous view. - **Assistant name** — the name of the currently open assistant. - **Org pill** — shows which organization this assistant belongs to, and how it was created (for example, "Hired from Documentation-Assistant"). - **Navigation tabs** — on the right side of the top bar, these switch the main content area: - **Home** — a summary overview for this assistant. - **Chat** — the primary conversation view (active by default, shown in red when selected). - **Storage** — files stored in this assistant's organization storage. - **Design** — the capability graph, authored jobs, and visual architecture canvas. See [Assistant Design](https://docs.apexti.com/features/assistant-design.md). - **Configure** — the assistant's settings: name, model, definition prompt, and connected services. --- ## The chat history panel Inside the **Chat** tab, a narrow panel on the left lists your past conversations with this assistant. It has three sub-tabs at the top: - **Personal** — your own private chats with this assistant. - **Shared** — chats that have been shared with your organization. - **Event** — automated chats triggered by scheduled tasks or webhooks. Above the chat list you'll find: - **New Chat** — clears the context window and starts a fresh conversation. - **Select** — enters multi-select mode so you can bulk-delete or bulk-share chats. - **Search** — filters the chat list by keyword. Each entry in the list shows the chat's title (auto-generated from your first message) and the date it was last active. Click any entry to resume that conversation exactly where you left off. ### Collapsing the chats panel A toggle tab sits on the right edge of the chats panel. Click it to collapse the panel and give the message thread more horizontal space. Click it again to expand. The icon shows a chevron pointing left when open and right when closed. > **Tip:** The assistant remembers everything said within a single chat session. Starting a new chat gives it a clean slate — useful when you're switching to a completely different topic. Configured memories, storage files, and services remain available across all sessions. See [Memories](https://docs.apexti.com/features/memories.md) and [Chat & History](https://docs.apexti.com/features/chat-history.md) for details. --- ## The chat area The main content area on the right is where the conversation happens. It has two parts: the **message thread** above, and the **input box** below. ### The message thread Messages from you and the assistant stack up here in chronological order, newest at the bottom: - **Your messages** appear on the right. - **Assistant messages** appear on the left. - **Streaming** — when the assistant is generating a response, text appears word by word. An animated indicator shows the response is in progress. At the bottom right of the thread, a small **usage indicator** shows two live numbers: - **Credits** — how many credits this chat has consumed so far. - **Context** — how much of the model's context window the conversation is currently occupying. This grows with every message and tool result. ### Tool call badges When the assistant uses a connected service — querying a database, reading a storage file, or sending a Slack message — each action appears inline in the thread as an expandable **tool call badge**. Click any badge to expand it and inspect the full request and response: the exact tool name, the inputs sent, and what came back. This gives you complete transparency into the data the assistant accessed. > **Tip:** If an assistant's answer seems unexpected, expand the tool call badges to see the raw output it was working from. That's usually where the explanation lies. ### The input box The input box sits at the bottom of the chat area. It contains three main sections: #### Message field and controls | Control | What it does | |---|---| | **Attach** | Upload a file or image for the assistant to inspect or reason about. | | **Message field** | Type your prompt here. Press `Enter` to send, or `Shift + Enter` for a newline. | | **Send button** | The red circle button on the far right. Submits your message. | | **Stop** | Appears while the assistant is responding. Click it to interrupt generation mid-stream. | | **Send Now** | Appears when you type a new message while the assistant is still responding. Interrupts the current response and sends your queued message immediately. | | **Model selector** | Shows the active AI model (for example, Claude Sonnet 4.5). Click it to change models mid-conversation. See [Model Selection](https://docs.apexti.com/features/model-selection.md) and [Swapping Models](https://docs.apexti.com/features/model-swapping.md). | #### Mode toggles The bottom toolbar contains a row of **mode toggles** — icon buttons that activate optional capabilities for the current session. Active modes are highlighted. You can also click the **Modes** popup button to view and toggle them: | Mode | What it does | |---|---| | **Image Generation** | Generates images inline in the response. | | **Code Execution** | Writes and executes code in a secure sandbox. | | **Browser** | Navigates the live web to find information or inspect pages. | | **Document Search** | Searches documents indexed in organization storage before responding. | | **Interactive Elements** | Includes buttons, forms, and interactive UI components in responses. | | **Assistant Collaboration** | Lets the assistant delegate sub-tasks to other connected assistants. See [Assistant-to-Assistant Communication](https://docs.apexti.com/features/assistant-to-assistant.md). | | **Live Audio** | Starts a real-time speech-to-speech voice session. See [Live Audio Chat](https://docs.apexti.com/features/live-audio.md). | - **Service icons** — icons for each service enabled on this assistant appear along the bottom edge. Click an icon to review the tools it provides. - **Active mode icons** — any currently enabled modes display as quick-action buttons. Clicking one turns that mode off immediately without reopening the popup. > **Note:** Modes appear only if they have been enabled in the assistant's **Configure** tab or platform settings. --- --- title: "Using Toolbelt on Mobile" description: "Access your assistants, monitor automations, and trigger workflows from your phone — no app install required." updated: 2026-06-09 --- # Using Toolbelt on Mobile ## Toolbelt in your pocket Toolbelt is fully browser-based, so it works on any mobile device without installing an app. Open it in Safari or Chrome, add it to your home screen for one-tap access, and you have your full assistant — connected services and all — wherever you are. This page covers the best ways to use Toolbelt from a phone, what works great on mobile, and a few things you'll still want a desktop for. :::cards 3 ===card title: Chat Anywhere icon: message-square Ask questions, trigger tools, and get results in a chat thread. Voice-to-text makes this especially fast on mobile. ===card title: Monitor & Approve icon: bell Check task status, review scheduled run results, and approve pending actions from your phone. ===card title: Slack as Your Mobile Layer icon: slack The Toolbelt Slack integration is often the fastest mobile experience — use `/toolbelt` from the Slack app without opening a browser at all. ::: --- ## Add Toolbelt to your home screen Toolbelt ships with a PWA (Progressive Web App) manifest, which means your browser can install it as a first-class app shortcut on your home screen. This gives you: - A dedicated icon alongside your other apps - Full-screen launch with no browser chrome - Faster access than navigating to a URL each time ### On iOS (Safari): 1. Open Toolbelt in Safari. 2. Tap the **Share** button (the box with an arrow pointing up). 3. Scroll down and tap **Add to Home Screen**. 4. Give it a name and tap **Add**. ### On Android (Chrome): 1. Open Toolbelt in Chrome. 2. Tap the **three-dot menu** in the top-right corner. 3. Tap **Add to Home screen**. 4. Confirm the name and tap **Add**. > **Tip:** Once installed, Toolbelt launches in full-screen mode — no address bar or browser tabs in the way. It behaves like a native app and stays logged in across sessions. --- ## Chatting with your assistants The chat interface is fully responsive and works well on phone-sized screens. A few tips for getting the most out of it: ### Use voice input On both iOS and Android, you can dictate your messages using your keyboard's built-in microphone key. This is the fastest way to compose a long prompt on mobile — especially useful for complex requests where typing would be slow. ### Keep prompts focused A single, well-scoped question works better on mobile than a multi-part prompt you'd craft on a keyboard. If you have a complex task, break it into a short back-and-forth conversation. ### Reading long responses Long responses scroll naturally in the chat thread. Code blocks are horizontally scrollable, so output like JSON or SQL won't overflow the screen. > **Tip:** Tap and hold on any message to copy its text — useful when you want to paste a result into another app on your phone. --- ## Monitoring automations and tasks Mobile is a natural fit for keeping an eye on what your assistants are doing: - Open any chat thread to see the real-time status of a running task. - Check the **Tasks** view to see pending, active, and completed scheduled runs. - If an assistant needs your approval before taking an action, you'll receive a notification (via browser or Slack) and can approve or reject it directly from your phone. > **Note:** If you have the [Slack integration](https://docs.apexti.com/features/slack.md) connected, task notifications can be routed to Slack — which means you get them in the Slack mobile app automatically, without needing to have Toolbelt open in a browser. --- ## Using Slack as your mobile entry point For many users, the Toolbelt Slack integration is the *best* mobile experience. Instead of opening a browser, you interact with your assistant directly from the Slack mobile app. Once Slack is connected: - Use `/toolbelt ` in any channel to send a prompt to your default assistant. - DM the Toolbelt bot to start a private conversation. - Receive task results, alerts, and notifications in whichever Slack channel you choose. > **Tip:** Set your Toolbelt notification channel to a dedicated `#toolbelt-alerts` channel in Slack. You'll get a clean stream of automation results on your phone without any noise. See [Slack Integration](https://docs.apexti.com/features/slack.md) for setup instructions. --- ## Uploading files from your phone You can attach files to a chat message from your phone — including photos taken with your camera. When you tap the attachment icon in the chat input, your device's file picker opens and lets you choose from: - Your camera roll / photos library - Files from iCloud Drive, Google Drive, Dropbox, or other cloud storage apps - A new photo taken in the moment > **Note:** Large file uploads (videos, high-resolution images) may be slower on a mobile connection. For best results, use Wi-Fi when uploading files larger than a few megabytes. --- --- title: "Toolbelt Tutorial" description: "A practical, end-to-end walkthrough for going from zero to a fully automated, purpose-built assistant." updated: 2026-10-29 --- # Toolbelt Tutorial This tutorial walks you through Toolbelt from the ground up using a single, concrete scenario: an ops team at a freight brokerage drowning in a shared inbox. You don't need that exact setup to follow along. The pattern — connect a real data source, find signal in the noise, automate the repetitive part, then share your work with the team — is the same pattern you'll use for any problem you bring to Toolbelt. ## Before you dive in: two things to know Everything in Toolbelt lives inside an **organization**. An organization is a container that holds two things: - **Agents** — built to solve specific problems. - **Services** — connections to the SaaS tools your agents can read and act on (email, calendar, Slack, and more). That's it. One organization, some agents, some services. The rest of the tutorial is just applying those two concepts. By the end, you'll have built: - An assistant that reads live data and answers specific questions on demand. - A live dashboard and a scheduled Wrench that delivers results to Slack automatically. - A shared, catalog-published assistant your whole team can deploy and use. - A purpose-built assistant with a saved identity, scoped services, and recurring reports. :::cards 4 ===card title: Part 1 — Your First Assistant icon: message-square href: ../tutorial/part1/create-an-agent.md Set up your organization, connect a service, and have your first real conversation against live data. ===card title: Part 2 — Find the Signal & Automate It icon: chart-bar href: ../tutorial/part2/ask-for-analysis.md Analyze real data, build a live dashboard, freeze your logic into a Wrench, and schedule it to run every morning. ===card title: Part 3 — Share Your Work icon: share-2 href: ../tutorial/part3/share-with-org.md Share your assistant with the team in one click, then publish it to the Catalog as a versioned, deployable blueprint. ===card title: Part 4 — Purpose-Built Assistant icon: user href: ../tutorial/part4/create-assistant.md Give your assistant a proper identity, connect and scope services, design the output, and save the configuration. ::: --- ## How to use this tutorial Each part is made up of short, focused topics. You can read them in order or jump to the step that matches where you are. Every topic has a clear goal, concrete instructions, and a callout that explains the "why" — not just the "how." > **Tip:** The tutorial builds on itself. If you skip ahead, a "What you need before this step" note at the top of each topic will tell you what to set up first. --- ## What you need to get started - A Toolbelt account (any plan). - Access to at least one connected service. **Email works well** for Parts 1–3. If you'd rather start with something lower-stakes, **Calendar** is a great alternative — the concepts are identical. - About 30 minutes to work through all Parts. - Familiarity with the Toolbelt layout. If you haven't yet, read [The Toolbelt Interface](https://docs.apexti.com/get-started/toolbelt-interface.md) first — it's a two-minute orientation that will make the tutorial instructions much easier to follow. > **Note:** When you create your first agent, it defaults to **Gemini Flash**. This is fine for getting started. Part 1 covers when and how to change models for different tasks. ## Begin the tutorial The tutorial topics are in the left-hand navigation under **Tutorial Part 1 — Your First Assistant** through **Tutorial Part 4 — Purpose-Built Assistant**. Expand a tutorial section in the sidebar to see its pages, or start directly with the first topic below. **Start here:** [Create an Agent](https://docs.apexti.com/tutorial/part1/create-an-agent.md) --- --- title: "Toolbelt for MSPs" description: "How MSPs use Toolbelt to build, host, and manage repeatable AI solutions across every client organization — securely and without rebuilding from scratch each time." updated: 2026-10-05 --- # Toolbelt for MSPs Your customers want AI. The challenge isn't whether to deliver it — it's how to do it at scale, without rebuilding from scratch for every client. :::cards 2 ===card title: The Problem icon: ⚠️ How do you build, host, and manage repeatable AI solutions across **all** of your customers — securely, effectively, and without rebuilding from scratch each time? ===card title: The Answer icon: ✅ **Toolbelt.** One operations layer to deliver AI to every client. Use **any model** — frontier, local, or custom — and **any client interface** to reach it. ::: ## How Toolbelt is structured for MSPs One isolated stack per customer. Every customer lives in its own **Organization** — a fully isolated environment with dedicated controls, agents, service connections, and billing. The hierarchy inside every organization is identical, which means you can templatize it: :::cards 4 ===card title: Organization icon: building-2 The top-level container for a single customer. Each organization has its own members, RBAC, billing, spend limits, storage, memory, and model configuration — completely isolated from every other organization. ===card title: Agents icon: robot Purpose-built AI agents that live inside the organization. Each agent has its own instructions, tool access, scheduled tasks, and chat history. Agents can be private or shared within the customer's team. ===card title: Services icon: plug Integrations (GitHub, Slack, Jira, and others) connected at the organization level and selectively enabled per agent. Service accounts and permissions are scoped to the organization — one customer's credentials never touch another's. ===card title: Chats icon: message-square Where the work happens. Every conversation belongs to an agent and inherits its configuration. Customers interact here directly, or through connected clients like Claude. :::
Organization 1
Organization 2
···
Organization N
Organization Agents Services Chats

Every customer gets the same four-layer stack — Organization, Agents, Services, and Chats — fully isolated. Build it once, then scale it to Organization 1, Organization 2 … Organization N.

## What you control at each layer Toolbelt gives you two levels of governance: **organization-level** controls that apply across all of a customer's agents, and **agent-level** controls that let you tune each agent individually. ### Organization-level controls | Control | What it does | |---|---| | **RBAC** | Role-based access control for every member of the customer's organization. | | **Tool Permissions** | Restrict which MCP tools are available across the organization. | | **Auditing** | Full activity log at the organization level — every tool call, model call, and user action. | | **Billing & Spend** | Set spend limits, view usage, and manage the customer's subscription. | | **Storage** | Organization-scoped cloud storage shared across agents. | | **Memory** | Organization-level long-term memory that agents can read and write. | | **Models** | Set default and allowed models for the entire organization. | ### Agent-level controls Each agent inside the organization gets its own: - **Tool Permissions** — enable only the tools this agent needs. - **Audit trail** — per-agent activity history. - **Storage** — a private file organization. - **Scheduled Tasks** — recurring or one-off automation runs. - **Instructions** — the system prompt that defines what the agent does and how it behaves. ## Client interfaces Toolbelt is the operations layer — the server-side always-on backend. The client interface is flexible: - **Toolbelt native UI** — customers work directly inside Toolbelt's chat interface. - **Mainstream AI clients** — Claude, Gemini, Grok, or any MCP-compatible client can connect to Toolbelt as an MCP server, letting customers use their preferred front-end while your infrastructure runs the tools. - **Custom integrations** — build your own client or embed Toolbelt into a customer-facing product. > **Tip:** The [Agents as MCP Servers](https://docs.apexti.com/features/assistants-as-mcp.md) integration makes it easy to expose a Toolbelt agent to any MCP-compatible client with minimal setup. ## One control plane, isolated per customer
👥 Users / Clients
👤 MSP / Operator Server-side · always on
Client-side
Native
Toolbelt
· · ·
Mainstream
Claude
Slack
Grok
· · ·
Custom
Other
Organization A
Organization-Level
  • RBAC
  • Tool Perms
  • Auditing
  • Billing
  • Spend
  • Storage
Agent-Level
Agent 1
RBAC · Tool Perms · Audit · Spend
Storage · Scheduled Tasks · Chats
Agent 2
RBAC · Tool Perms · Audit · Spend
Storage · Schedules · Chats
MCP Services
Private
Service Accts
Private
Organization B
Organization-Level
  • RBAC
  • Tool Perms
  • Auditing
  • Billing
  • Spend
  • Storage
Agent-Level
Agent 1
RBAC · Tool Perms · Audit · Spend
Storage · Scheduled Tasks · Chats
Agent 2
RBAC · Tool Perms · Audit · Spend
Storage · Schedules · Chats
MCP Services
Private
Service Accts
Private

Each customer lives in its own isolated organization with dedicated controls, agents, and connections — built once, repeated across your whole client base.

## Deploy in four steps :::cards 2 ===card title: 1. Create an Organization per customer Spin up an isolated organization for each client — their own controls, data, and agents. See [Create an Organization](https://docs.apexti.com/features/create-organization.md). ===card title: 2. Connect services & set access controls Wire up the tools each use case needs, with proper security, permissions, and RBAC. See [Services](https://docs.apexti.com/features/services.md). ===card title: 3. Build agents for each use case Scope requirements, then build agents natively in Toolbelt — or connect any client (e.g. Claude) to build against the operations layer. See the [Toolbelt Tutorial](https://docs.apexti.com/get-started/tutorial.md) for a hands-on walkthrough. ===card title: 4. Invite their team & collaborate Add members of each customer to their organization and assign roles. You can work alongside them in real time or hand off entirely. See [Organization Sharing & Permissions](https://docs.apexti.com/features/sharing.md). ::: > **Tip:** Once you've built a working configuration for one customer, use it as a template for the next. The four-layer stack — Organization, Agents, Services, Chats — is identical across every organization, so what you learn on Organization 1 applies directly to Organization N. --- **Next:** [Toolbelt Tutorial](https://docs.apexti.com/get-started/tutorial.md) — A hands-on walkthrough for building your first automated, purpose-built assistant. --- --- title: "Chat & History" description: "Learn how Toolbelt's chat system works, how to manage conversation history, and how to stream responses via the API." updated: 2026-11-16 --- # Chat & History The Chat interface is the primary way you interact with your Toolbelt assistants. It supports streaming responses, multi-modal input (images/text), tool execution, and deep history management. ## The three chat contexts Every assistant in Toolbelt organizes conversations into three distinct contexts. You switch between them using the tabs at the top of the chat list. :::cards 3 ===card title: Personal icon: lock Your private workspace. Only you can see these chats. This is the right place to experiment, test prompts, and iterate before sharing anything with the team. ===card title: Shared icon: users Visible to everyone in your organization with access to this assistant. Use shared chats for collaborative work, demos, or prompts that the whole team should be able to build on. ===card title: Event icon: zap Automatically generated conversations. You'll see entries here when a scheduled task runs, or when another assistant delegates work to this one. Event chats are read-only records of what happened. ::: ### Toggling between Personal and Shared Look for the **lock icon** in the chat header. Click it to move the current chat between your personal workspace and the shared org view: - **Lock closed (purple)** — the chat is personal. Only you see it. - **Lock open** — the chat is shared with the organization. You can also rename a chat by clicking its title in the list. > **Tip:** Before sharing, use your Personal context to make sure the conversation looks the way you want. Once it's in Shared, anyone in the org can see it. ## Chat actions Hover over any chat in the list to reveal four action buttons on the right side of the row. | Action | What it does | |---|---| | **Toggle share** | Moves the chat between your Personal workspace and the Shared org view. The icon shows a closed lock (purple) when the chat is personal and an open lock when it is shared. | | **Share link** | Copies a direct URL to this chat to your clipboard. Anyone in your organization who has access to this assistant can open the link and jump straight to the conversation. | | **Rename** | Opens an inline editor so you can replace the auto-generated title with something more descriptive. Press `Enter` to save or `Escape` to cancel. | | **Delete** | Permanently removes the chat and its message history. This action cannot be undone. | > **Warning:** Deleting a chat is permanent — the full message history is removed and cannot be recovered. If you just want to tidy up the list, consider renaming it instead. ### Forking a shared chat If you find a useful shared chat that you want to continue privately — without affecting what the rest of the team sees — use **Fork**. Forking creates a personal copy of the conversation up to that point. From there, you can take it in any direction without touching the original. Your fork appears in your Personal context. ### What the Event tab is for The Event tab is an automatic record-keeper. You don't create Event chats manually — they appear when: - A **scheduled task** runs and produces a response (for example, a daily briefing prompt). - **Another assistant delegates work** to this one as part of a multi-assistant workflow. Think of the Event tab as your assistant's activity log — a transparent record of everything it did autonomously on your behalf. ## Chat sessions Every conversation in Toolbelt happens within a **Chat Session** tied to a specific assistant. Chat sessions maintain the context window — allowing the AI to remember what was said earlier in the thread. ### Starting a chat When you send a message to an assistant for the first time, a new chat session is automatically created. You can also explicitly create a new session by clicking **New Chat** in the UI, which clears the context window and gives the assistant a fresh start. ### Forking a chat If a conversation goes off track or you want to explore an alternative path without losing your current progress, you can **Fork** a chat. Forking creates a brand new chat session that copies all messages up to the point you selected. The new session is completely independent; continuing the conversation in the fork will not affect the original chat. --- ## Streaming and interaction Toolbelt uses Server-Sent Events (SSE) to stream AI responses in real time. This means you see the assistant's thought process, tool executions, and text generation as they happen. ### Handling tool calls When you ask an assistant to perform an action, it often needs to use one of its connected tools. 1. **Tool selection:** The assistant decides which tool to use based on your prompt. 2. **Execution:** You'll see an indicator in the chat UI showing that a tool is running (e.g., "Fetching issues from GitHub..."). 3. **Response:** The tool returns data to the assistant, which then formulates a final, human-readable response. If a tool returns an exceptionally large dataset (like thousands of rows), Toolbelt automatically intercepts it and converts it into a queryable DuckDB database, prompting the assistant to write SQL to extract the answer instead of overflowing the context window. ### Multi-modal input You can paste or drag-and-drop images directly into the chat input. The assistant can analyze the image and incorporate it into its response (provided the underlying AI model supports vision). --- ## Managing history Toolbelt automatically saves all your chat sessions so you can resume them later or reference past work. ### Finding past chats You can view your recent conversations in the sidebar under your assistant. For a complete list, click **View all history**. The history view allows you to: - **Search** for specific keywords across all past conversations. - **Filter** by date or chat type (e.g., standard chats vs. automated event chats). - **Resume** any past conversation right where you left off. ### Managing & pruning automated event chats When recurring [scheduled tasks](https://docs.apexti.com/features/scheduled-tasks.md) or webhook integrations run frequently (such as every 15 minutes or hourly), event chats can accumulate rapidly. Toolbelt provides automated tools to keep your event history organized: 1. **Marking events as read:** - Unread event chats display a subtle indicator badge. - You can clear all unread badges at once by telling the assistant: *"Mark all event notifications as read"* (uses `mark_events_read`). 2. **Bulk-deleting event logs:** - You can prune obsolete event conversations in bulk without affecting your manual chat history. - Tell your assistant in chat: *"Bulk delete event chats older than 7 days"* or *"Clean up completed event chats from last month"* (uses `bulk_delete_event_chats`). > **Note:** Bulk-deleting event chats removes the conversational transcripts from your chat sidebar, but execution metrics and timestamps remain safely preserved in the task's **Execution History** under [Scheduled Tasks](https://docs.apexti.com/features/scheduled-tasks.md). --- ## API reference The chat system exposes several REST API endpoints for programmatic interaction. All endpoints are mounted under `/api/workspaces/:workspaceId/chats`. ### Create a chat ```http POST /api/workspaces/:workspaceId/chats ``` Creates a new empty chat session. ### Send a message and stream response ```http POST /api/workspaces/:workspaceId/chats/:chatId/stream ``` Sends a message to the assistant and opens an SSE connection to stream the response. Accepts text and base64-encoded images. ### Fork a chat ```http POST /api/workspaces/:workspaceId/chats/:chatId/fork ``` Creates a new chat session copying all messages up to a specified `messageId`. ### List chats ```http GET /api/workspaces/:workspaceId/chats?type=regular ``` Returns a paginated list of chat sessions. The `type` parameter can be `regular`, `events`, or `all`. ### Share to organization ```http POST /api/workspaces/:workspaceId/chats/:chatId/share-to-org ``` Shares a private chat session with the rest of the organization (if the organization belongs to an organization). --- --- title: "Chat as Configuration" description: "Everything you can do in the Configuration tab, you can also do by asking your assistant. This page explains why that matters and how to get started." updated: 2026-10-17 --- # Chat as Configuration Toolbelt has a Configuration tab. It has toggles, dropdowns, and form fields — and it's the first place new users look when they want to change something. That makes sense. Visual controls are familiar. But there's a second way to configure everything, and it's faster: just say what you want in chat. > **Tip:** You don't need to find the right menu. Ask your assistant to create a scheduled task, update your system prompt, rename a board lane, or enable a service — and it does it directly, right now, in the same conversation you're already in. ## Why chat configuration matters The Configuration tab is good for deliberate, one-at-a-time changes. Chat is good for everything else: - **Speed.** A single sentence beats navigating three menus. - **Chaining.** You can create a task, assign it, add a due date, and notify a teammate — all in one message. - **Context.** The assistant already knows what you're working on. It can make decisions your way rather than making you specify every field. - **Discoverability.** You don't need to know which tab a setting lives in. Describe what you want and the assistant finds it. ## What "chat configuration" actually means When you send a message like *"Create a Quick Chat called 'Weekly Digest' that summarizes my Slack messages from the past week,"* your assistant is calling the same internal API that the Configuration tab uses. There's no separate "chat mode" for configuration — it's the same system, with two interfaces. This means everything you configure through chat is reflected immediately in the UI. Create a scheduled task in chat, and it appears in your Scheduled Tasks list. Add a memory, and it shows up under Memories. The two interfaces are always in sync. > **Tip:** Runtime controls — such as your assistant's model, reasoning effort, memory modes, or the **Max tool iterations per response** safety cap (default 25, adjustable from 1 to 200) — can all be updated mid-workflow through chat without navigating into the Configure tab. ## Getting started You don't need to learn any commands or syntax. Just describe what you want in plain language. Some examples to try: | What you want | What to say | |---|---| | Add a one-click prompt to your sidebar | *"Create a Quick Chat called 'Summarize my day' that lists my top tasks and messages."* | | Schedule a recurring report | *"Run a daily GitHub digest every weekday at 8am and post it to Slack."* | | Save something the assistant should always remember | *"Remember that I prefer bullet-point summaries, not paragraphs."* | | Set up a new assistant for a specific job | *"Create a new assistant called 'Support Triage' using Claude Sonnet."* | | Enable an integration | *"Enable my Notion connection on this assistant."* | | Adjust safety limits | *"Set max tool iterations to 50 so you can handle deeper research tasks without pausing."* | ## Where to go next The [Native Toolbelt Tools](https://docs.apexti.com/features/native-toolbelt-tools.md) reference page documents every tool category available through chat — what each one does, what you can manage, and example prompts to try. --- --- title: "Native Toolbelt Tools" description: "A complete reference to every built-in Toolbelt capability your assistant can use through chat — no external services required." updated: 2026-11-23 --- # Native Toolbelt Tools Toolbelt ships with a built-in set of tools your assistant can call directly — no external service connection required. These cover everything from creating assistants to running scheduled tasks, setting tool execution restrictions, managing storage, and firing notifications. They are the same actions behind the Configuration tab, exposed through natural-language chat. This page is a reference catalog. For the concept behind chat-driven configuration, see [Chat as Configuration](https://docs.apexti.com/features/chat-as-configuration.md). > **Tip:** You don't need to invoke these tools by name. Describe what you want in plain language and your assistant selects the right tool automatically. ## In this reference - [Assistants](https://docs.apexti.com/features/native-toolbelt-tools.md#assistants) - [Assistant Design & Architecture](https://docs.apexti.com/features/native-toolbelt-tools.md#assistant-design--architecture) - [Scheduled Tasks](https://docs.apexti.com/features/native-toolbelt-tools.md#scheduled-tasks) - [Quick Chats](https://docs.apexti.com/features/native-toolbelt-tools.md#quick-chats) - [Memories](https://docs.apexti.com/features/native-toolbelt-tools.md#memories) - [Services & Tool Restrictions](https://docs.apexti.com/features/native-toolbelt-tools.md#services--tool-restrictions) - [Version Checkpoints & Backups](https://docs.apexti.com/features/native-toolbelt-tools.md#version-checkpoints--backups) - [Storage, Files & Response Search](https://docs.apexti.com/features/native-toolbelt-tools.md#storage-files--response-search) - [Chat & Event Maintenance](https://docs.apexti.com/features/native-toolbelt-tools.md#chat--event-maintenance) - [Notifications](https://docs.apexti.com/features/native-toolbelt-tools.md#notifications) - [Dashboards](https://docs.apexti.com/features/native-toolbelt-tools.md#dashboards) --- ## Assistants Your assistant can create and configure other assistants — and even configure itself. **What you can do:** - Create a new assistant with a name, system prompt, and model - Update an existing assistant's name, description, or system prompt - Change the AI model or provider - Toggle chat defaults (browser access, image generation, code execution, etc.) - Configure memory modes, compression, and tool iteration limits **Example prompts:** ``` "Create a new assistant called 'Support Triage' using Claude Sonnet with a system prompt focused on categorizing customer issues." "Update this assistant's system prompt to always respond in Spanish." "Switch this assistant to GPT-6 Sol and enable browser access by default." "Set max tool iterations to 50 on this assistant." ``` > **Note:** Updating an assistant's configuration through chat has the same effect as saving changes in the Configure tab. The change takes effect immediately in new conversations. ### Tool iteration safety limit Complex queries often require assistants to chain multiple tool calls together — searching databases, inspecting files, or querying APIs. To protect against runaway loops, recursive retries, and runaway token costs, Toolbelt applies a per-response iteration limit. - **Default:** 25 tool iterations per response. - **Allowed range:** 1 to 200 iterations. - **What happens at the limit:** If an assistant hits the iteration cap before completing its task, it does not fail. Instead, it pauses safely, lists the pending tool calls, and asks if you would like to proceed. Replying *"continue"* grants a fresh iteration budget so the assistant picks up exactly where it left off. You can adjust this limit at any time: - **Through chat:** Say *"Set max tool iterations to 60"* or *"Increase max tool iterations to 100"*. - **In the UI:** Open your assistant's **Configure** tab and adjust the **Max tool iterations per response** field. See [Managing Organization Assistants](https://docs.apexti.com/features/managing-assistants.md) for the full assistant lifecycle. --- ## Assistant Design & Architecture Your assistant can inspect its authored capability graph and attach tools to jobs programmatically. **What you can do:** - Inspect active jobs, capability nodes, and unassigned inventory via `assistant_design_get` - Create new jobs, update job descriptions, and set job status (`active` or `draft`) - Attach or detach wrenches, schedules, workflows, and classifiers to specific jobs via `assistant_design_job` - Assign explicit roles (`triggers`, `runs`, `reads`, `writes`, `displays`) to attached tools **Example prompts:** ``` "What jobs are currently configured on this assistant?" "Create a new job called 'Daily Invoicing' with role 'runs' for the invoice-generator wrench." "Attach our PostgreSQL connection to the 'Nightly Rollup' job with the role 'reads'." "Set the 'Customer Onboarding' job status to active." ``` > **Tip:** When an assistant writes a new wrench or creates a scheduled task during a conversation, it can automatically attach the new resource to the appropriate job, keeping your visual architecture synchronized. See [Assistant Design](https://docs.apexti.com/features/assistant-design.md) for the complete capability graph reference. --- ## Scheduled Tasks Scheduled tasks let your assistant do work on a timer — a daily digest, a weekly report, an hourly batch script, or a one-time alert. **What you can do:** - Create a task with a prompt or a direct Wrench execution - Set custom script timeouts (up to 600 seconds) for batch wrench tasks - Pause or resume a task without deleting it - Update a task's schedule, prompt, or inputs - Trigger a task to run immediately, outside its normal schedule - Delete a task entirely **Recurrence options:** Once, Daily, Weekdays, Weekends, Weekly, Monthly, Every N hours, Every N minutes **Example prompts:** ``` "Every weekday at 8am, pull my top 5 GitHub PRs awaiting review and post a summary to the #dev Slack channel." "Run the 'sync-leads' wrench every hour on weekdays with a timeout of 120 seconds." "Pause the weekly digest task — I'm on vacation next week." "Run the GitHub digest right now so I can test it." ``` > **Tip:** Scheduled tasks can run as an assistant prompt or as a direct Wrench script (`runType: "wrench"`). Direct wrench executions consume zero model tokens. See [Scheduled Tasks](https://docs.apexti.com/features/scheduled-tasks.md) for the full reference, including execution history. --- ## Quick Chats Quick Chats are one-click prompt shortcuts that appear in your sidebar. They're useful for prompts you run repeatedly — morning standup summaries, status checks, draft templates. **What you can do:** - Create a Quick Chat with a name and prompt text - Use `{{variable}}` placeholders for fill-in-the-blank prompts - Update or delete existing Quick Chats **Example prompts:** ``` "Create a Quick Chat called 'Daily Standup' that asks: What did I work on yesterday, what's up today, any blockers?" "Add a Quick Chat called 'Summarize Thread' with a {{url}} variable that fetches and summarizes the Slack thread at that URL." "Delete the 'Old PR Review' Quick Chat — I don't need it anymore." ``` > **Tip:** When you click a Quick Chat that has `{{variable}}` placeholders, Toolbelt prompts you to fill them in before sending. This makes a single Quick Chat reusable across many different inputs. See [Quick Chats](https://docs.apexti.com/features/quick-chats.md) for the full reference. --- ## Memories Memories are facts the assistant stores long-term — things you want it to always know, regardless of which conversation you're in. **What you can do:** - Create a memory (workspace-scoped or personal) - Search memories by content - Update an existing memory's text - Delete a memory **Example prompts:** ``` "Remember that I'm the lead for the Q4 launch and all reports should cc the exec team." "What do you know about my preferences?" "Update the memory about my standup format — I've switched to async updates on Slack instead of a daily call." "Forget the note about the old CRM system." ``` > **Note:** Workspace memories are scoped to this assistant — only this assistant sees them. Personal memories are shared across all your assistants. See [Memories & Persistent Context](https://docs.apexti.com/features/memories.md) for the full reference. --- ## Services & Tool Restrictions Your assistant can look up, enable, and disable the integrations connected to your organization — and govern tool safety rules — without leaving chat. **What you can do:** - List services currently connected to your organization - Enable or disable a service on this assistant - Search the service catalog for new integrations to connect - Get a connection URL to authorize a new service in a browser popup - Inspect available tools on any connected service (`list_service_tools`) - Configure granular tool restrictions (`set_tool_restriction`, `bulk_set_tool_restrictions`) - Enforce parameter-level validation rules (`set_tool_parameter_rule`) ### Tool execution restrictions You can control how freely an assistant calls specific tools on connected integrations: | Level | Behavior | |---|---| | `allow` | Runs automatically without asking for confirmation. | | `ask` | Pauses execution and asks human confirmation in chat before calling the tool. | | `deny` | Blocks the assistant from executing the tool under any condition. | | `disabled` | Completely hides the tool from the assistant's available tool schema. | ### Tool parameter rules Beyond binary allow/deny rules, you can enforce fine-grained constraints on specific tool arguments using `set_tool_parameter_rule`: - **Regex patterns:** Restrict arguments to specific patterns (e.g., blocking pushes to `master|main` branches). - **Allowed values:** Restrict inputs to an explicit whitelist (e.g., only allowing specific recipient domains). - **Numeric & length bounds:** Enforce min/max character lengths or numeric limits. **Example prompts:** ``` "Enable my Notion connection on this assistant." "List all tools available on the GitHub service." "Set the 'delete_repository' tool on GitHub to deny." "Require my confirmation ('ask') before running any write tools on HubSpot." "Add a parameter rule on GitHub 'create_branch' so the branch name must match '^feature/'." ``` > **Note:** Scopes determine where rules apply. `scope: "assistant"` (default) applies only to this assistant. `scope: "service"` applies to all assistants sharing that connection across the organization (requires org admin or connection owner). See [Services](https://docs.apexti.com/features/services.md) for the full reference. --- ## Version Checkpoints & Backups When assistant versioning is enabled, assistants can inspect historical snapshots and restore checkpointed data files using native tools: **What you can do:** - List backed-up data files and DuckDB databases across version checkpoints (`list_version_backups`) - Read line windows from backed-up text files without modifying live storage (`read_version_backup_file`) - Cleanly copy backed-up files from a version checkpoint into live storage (`copy_version_backup_file`) - Run read-only SQL queries on historical DuckDB databases (`query_version_backup_duckdb`) **Example prompts:** ``` "Check what data files are backed up in version checkpoint 4." "Read the first 50 lines of instructions.txt from version checkpoint 2." "Copy schema-backup.sql from version 3 into my live workspace storage." "Run a SQL query on custom.duckdb in version checkpoint 1 to check row count in users." ``` See [Assistant Versioning](https://docs.apexti.com/features/assistant-versioning.md) for the full versioning and rollback reference. --- ## Storage, Files & Response Search Your assistant can organize, relocate, and manage artifacts in both workspace storage and shared organization storage, as well as search indexed tool responses. **What you can do:** - Move files and folders across paths and storage scopes - Rename files and directories in place - Read, write, and patch text files directly - Search indexed documents using semantic retrieval (RAG) - Search compressed tool responses when large outputs exceed context limits (`search_tool_responses`) - Generate short-lived signed URLs for downloads **Example prompts:** ``` "Move 'exports/october-leads.csv' to 'archive/2026/october-leads.csv' in workspace storage." "Rename the folder 'draft-v1' to 'final-v1' in my assistant storage." "Move the style guide 'brand-rules.md' from this assistant's storage into org shared storage so everyone can reference it." "Rename 'output_tmp.json' to 'metrics_snapshot.json'." "Search the previous API response for 'error_code: 429'." ``` > **Tip:** When a tool call produces a massive payload (such as querying thousands of database rows or returning a huge JSON blob), Toolbelt automatically indexes the response into temporary search storage. Your assistant can query `search_tool_responses` to recover exact slices without blowing past your context window. See [Organization & Workspace Storage](https://docs.apexti.com/features/storage.md) for the complete cloud storage reference. --- ## Chat & Event Maintenance Your assistant can clean up, organize, and prune automated chat threads. **What you can do:** - Search and list past conversations by keyword or date - Rename active or historical chats - Mark webhook and scheduled event notifications as read (`mark_events_read`) - Clean up clutter by bulk-deleting automated event chats (`bulk_delete_event_chats`) **Example prompts:** ``` "Rename this chat to 'Q4 Security Audit'." "Mark all unread event notifications as read." "Bulk delete all event chats older than 7 days." "Find the conversation where we discussed the PostgreSQL migration." ``` See [Chat History](https://docs.apexti.com/features/chat-history.md) for more details on managing conversations. --- ## Notifications Your assistant can send you in-app notifications — useful as a signal at the end of a long task, or to flag something for later review. **What you can do:** - Create a notification with a title, message, and priority level - Link a notification to a URL (e.g., a dashboard or external link) - Set a notification type (approval request, task complete, system message, etc.) **Example prompts:** ``` "When you're done with the analysis, send me a notification so I know it's ready." "Send me a high-priority alert: 'Deploy window opens at 5pm.'" ``` > **Tip:** Assistants running [scheduled tasks](https://docs.apexti.com/features/scheduled-tasks.md) can send you a notification at the end of a run — so you're alerted when results are ready even if you've navigated away. See [Notifications](https://docs.apexti.com/features/notifications.md) for the full reference. --- ## Dashboards Your assistant can create and update interactive HTML dashboard pages that display live data from your connected services. **What you can do:** - Create a new dashboard page (interactive HTML or file viewer) - Update an existing page's source or settings - Make a page public with a shareable URL - Preview a page before publishing it **Example prompts:** ``` "Build a dashboard that shows my open GitHub PRs and their review status, refreshed on demand." "Update the Sales Overview dashboard to include MRR for this quarter." "Make the Sprint Board dashboard public so the team can bookmark it." ``` > **Note:** Interactive HTML dashboards use the [Dashboard SDK](https://docs.apexti.com/features/dashboard-sdk.md), which gives pages access to your assistant's live tools and data. Your assistant fetches the SDK rules automatically when building a new page. See [Dashboards](https://docs.apexti.com/features/dashboards.md) and the [Dashboard SDK](https://docs.apexti.com/features/dashboard-sdk.md) for the full reference. --- --- title: "Model selection" description: "Choose the right AI model for your task — understand quality tiers, per-provider options, and how to pick the most cost-effective model for any job." updated: 2026-11-23 --- # Model selection Toolbelt is model-agnostic. You can run any conversation on any supported provider and model — and swap mid-conversation without losing history. This page explains how to choose well. ## Why model choice matters Different models trade off **quality**, **speed**, and **cost** differently. Picking the right model means you get a good answer without paying for more capability than the task needs — and without waiting longer than necessary. The practical approach: start from the quality floor your task requires, then pick the most cost-effective model that clears it. ## Quality tiers | Tier | When to use it | Example tasks | |---|---|---| | **Disposable** | Output that won't be read carefully or kept | Brainstorming lists, quick classifications, throwaway drafts | | **Good enough** | Output that will be read and used, but imperfections are fine | Internal summaries, research notes, iterative coding | | **Polished** | Output that goes to stakeholders or will be read critically | Customer-facing copy, exec summaries, PR descriptions | | **Must-be-correct** | Output where errors have real consequences | Financial analysis, compliance, high-stakes code | ## Current model catalog Use the exact `provider` and `model` pair when you configure an assistant or override a [sub-chat](https://docs.apexti.com/features/sub-chats.md). > **Note:** The active provider options in Toolbelt are `openai`, `gemini`, `anthropic`, `anthropic-vertex`, `xai`, `toolbelt`, and `custom`. (Legacy provider `inception` is deprecated and automatically migrated to `toolbelt`.) ### Toolbelt (Hosted & Free Tier) Provider: `toolbelt` | Model ID | Display name | Best for | |---|---|---| | `qwen3-30b` | Qwen 3 30B | Default zero-credit free tier model | | `crescent-large` | Crescent Large | Stronger reasoning within Toolbelt-hosted models | | `crescent-medium` | Crescent Medium | Routine chat, classification, KB edits, disposable work | | `crescent-small` | Crescent Small | Ultra-fast extraction, high-volume sweeps | These models are native to the Toolbelt platform and incur zero org billing credits. Prefer them for **disposable**-floor work and lightweight sub-chats. ### OpenAI Provider: `openai` | Model ID | Display name | Best for | |---|---|---| | `gpt-6-astra` | GPT-6 Astra | Highest OpenAI capability tier; complex reasoning | | `gpt-6.1-sol` | GPT-6.1 Sol | **OpenAI default.** Strong general reasoning and coding | | `gpt-6.1-terra` | GPT-6.1 Terra | Strong balance of intelligence and cost for everyday complex work, tool routing, and automated workflows | | `gpt-6-luna` | GPT-6 Luna | Fast, cost-efficient GPT-6 tasks, high-volume sweeps | ### Gemini Provider: `gemini` | Model ID | Display name | Best for | |---|---|---| | `gemini-4-carbon` | Gemini 4 Carbon | Premier Gemini tier; deep analytical reasoning, complex code generation, multimodal video and documents | | `gemini-4-argon` | Gemini 4 Argon | Advanced multi-step reasoning, coding, multimodal video and documents | | `gemini-4-neon` | Gemini 4 Neon | High-intensity reasoning with deep thinking tokens, complex STEM and logic analysis, multimodal video and documents | | `gemini-4-hydrogen` | Gemini 4 Hydrogen | **Gemini default.** High-speed, high-depth reasoning with extended thinking, multimodal video and documents | | `gemini-3.8-flash` | Gemini 3.8 Flash | Fast agentic loops, parallel research, sub-chats, multimodal video and live audio | | `gemini-3.1-pro-preview` | Gemini 3.1 Pro | Deep long-context QA and large document analysis | | `gemini-3.5-flash-lite` | Gemini 3.5 Flash Lite | Ultra-budget long-context processing, tool routing, compression | ### Anthropic Provider: `anthropic` or `anthropic-vertex` | Model ID | Display name | Best for | |---|---|---| | `claude-fable-5-2` | Claude Fable 5.2 | Top Anthropic capability tier (requires 30-day retention consent) | | `claude-opus-5-5` | Claude Opus 5.5 | **Anthropic default & premium default for complex work.** Expert SWE, must-be-correct tasks | | `claude-sonnet-5-5` | Claude Sonnet 5.5 | Polished copy, balanced coding, 1M context | | `claude-haiku-5-5` | Claude Haiku 5.5 | Fastest Anthropic tier with 1M context, thinking support, and low latency | ### xAI (Grok) Provider: `xai` | Model ID | Display name | Best for | |---|---|---| | `grok-4.7` | Grok 4.7 | **xAI default.** Deep reasoning with thinking tokens, 500k context | | `grok-4.6` | Grok 4.6 | Fast Grok reasoning alternative | ### Inception Labs (Retired) Provider: `inception` (migrated to `toolbelt`)\n Inception Labs Mercury models (`mercury-2`, `mercury`) have been retired and deprecated. Toolbelt automatically migrates `inception` provider requests and Mercury model IDs to Toolbelt Crescent Medium (`crescent-medium` under provider `toolbelt`). > **Note:** The tables above reflect the active models in Toolbelt's model selector. Older model IDs (such as `gpt-5.6-*`, `claude-sonnet-4-6`, `claude-fable-5-1`, `gemini-3.7-flash`, or `mercury-2`) are retired from the selector but remain supported for backward compatibility; Toolbelt automatically routes pinned configurations to their current counterparts. ## How to choose Use the quality floor to pick a tier, then choose the most cost-effective model within it. - **Must-be-correct** → `claude-opus-5-5` (default), `gpt-6-astra`, `gemini-4-carbon`, `gemini-4-argon`, `gemini-4-neon`, `claude-fable-5-2`, or `grok-4.7` - **Good-enough, long context** → `gemini-4-hydrogen` (default), `gemini-3.8-flash`, `claude-sonnet-5-5`, `claude-haiku-5-5`, or `gemini-3.1-pro-preview` - **Good-enough, short context** → `gpt-6.1-sol`, `gpt-6.1-terra`, or `claude-haiku-5-5` - **Disposable / sub-chat triage** → `qwen3-30b`, `crescent-medium`, `claude-haiku-5-5`, or `gemini-3.5-flash-lite` When the floor is ambiguous, round up. ## When to reach for a more powerful model Most tasks — exploring a new service, drafting a prompt, asking a question — work just fine with the default model. The defaults are fast, reliable, and cost-efficient. Reach for a more advanced model when all of the following are true: - You've already explored the problem and scoped what you need. - The task involves complex multi-step reasoning, nuanced output, or a hard constraint. - You've tried the default model and the output isn't good enough. A useful mental model: **figure out your use case first, then upgrade the model.** Advanced models don't magically clarify a vague goal — they just execute a well-defined goal better. > **Tip:** If you only need deep reasoning at key checkpoints (like reviewing a complex plan, getting unstuck on an error, or running a final sanity check), consider the [Advisor pattern](https://docs.apexti.com/features/sub-chats.md#the-advisor-pattern-second-opinions-from-frontier-models). Instead of running your entire conversation on an expensive model, have your cost-effective assistant spin up a sub-chat to a frontier model for a targeted second opinion. > **Tip:** If you're unsure which model to use, don't over-think it. Start a chat, see if the response is good enough, and swap if it isn't. Model swapping mid-conversation is safe — the assistant carries the full history forward. See [Swapping Models](https://docs.apexti.com/features/model-swapping.md). ## Toolbelt vs. using a model's consumer app When you run a prompt through Toolbelt, you're calling the model's **API directly**. That's meaningfully different from opening ChatGPT.com or Gemini.com and typing the same thing. | | Consumer app (e.g. ChatGPT.com) | Toolbelt (API) | |---|---|---| | **Model version** | May be older or unspecified | The exact version you configure | | **Free tier throttling** | Common — free users often get downgraded models silently | Not applicable; you pay per token at API rates | | **Compute availability** | Provider may silently downgrade under load | Stable; API contracts maintain quality | | **Reproducibility** | Hard to guarantee same model across sessions | Pin the model ID for consistent results | This matters most when you're doing research, benchmarking, or building workflows where you need to know *exactly* which model produced which output. If you're comparing AI responses across models — or tracking how a brand or product appears in AI-generated results — always run through Toolbelt, not a consumer app, so results are comparable. > **Note:** Consumer apps don't always ship the latest model releases immediately. A model that just became available via API may still be running on an older version in the consumer interface for days or weeks. Toolbelt always calls the version you explicitly configure. --- --- title: "Swapping Models" description: "Change an assistant's model at runtime for ad-hoc tasks." updated: 2026-11-23 --- # Swapping Models ## Mechanisms for model selection When assigning a model to a task in Toolbelt, you have three primary mechanisms: 1. **Wrench design-time** — the model is baked into a [Wrench](https://docs.apexti.com/features/wrenches.md) when it is authored. Best for recurring, deterministic tasks such as routing, chunking, and data extraction. 2. **Assistant routing** — a specific model is configured on a specialist assistant, and you delegate the task to it. Best when a specialist already exists for the job. 3. **Runtime model-swap** — temporarily changing a sub-assistant's model for a specific task. Best for ad-hoc work where no specialist exists and you need a particular model's capabilities. --- ## Available models Toolbelt resolves models at runtime from the product's central model config. When you call `toolbelt(update_assistant)` or `toolbelt(create_assistant)`, pass one of the values below, paired with the matching `provider`. > **Note:** Toolbelt-hosted models (`qwen3-30b`, `crescent-small`, `crescent-medium`, `crescent-large`) use provider `toolbelt` and incur zero org billing credits. See [Model Selection](https://docs.apexti.com/features/model-selection.md) for the full catalog and task-based guidance. Older model IDs remain supported at runtime through automatic migration to their current counterparts. ### Toolbelt (Hosted & Free Tier) Provider: `toolbelt` | Model ID | Display name | |---|---| | `qwen3-30b` | Qwen 3 30B | | `crescent-large` | Crescent Large | | `crescent-medium` | Crescent Medium | | `crescent-small` | Crescent Small | ### OpenAI Provider: `openai` | Model ID | Display name | |---|---| | `gpt-6-astra` | GPT-6 Astra | | `gpt-6.1-sol` | GPT-6.1 Sol | | `gpt-6.1-terra` | GPT-6.1 Terra | | `gpt-6-luna` | GPT-6 Luna | **Default for OpenAI:** `gpt-6.1-sol` ### Gemini Provider: `gemini` | Model ID | Display name | |---|---| | `gemini-4-carbon` | Gemini 4 Carbon | | `gemini-4-argon` | Gemini 4 Argon | | `gemini-4-neon` | Gemini 4 Neon | | `gemini-4-hydrogen` | Gemini 4 Hydrogen | | `gemini-3.8-flash` | Gemini 3.8 Flash | | `gemini-3.1-pro-preview` | Gemini 3.1 Pro | | `gemini-3.5-flash-lite` | Gemini 3.5 Flash Lite | **Default for Gemini:** `gemini-4-hydrogen` ### Anthropic Provider: `anthropic` or `anthropic-vertex` | Model ID | Display name | |---|---| | `claude-fable-5-2` | Claude Fable 5.2 | | `claude-opus-5-5` | Claude Opus 5.5 | | `claude-sonnet-5-5` | Claude Sonnet 5.5 | | `claude-haiku-5-5` | Claude Haiku 5.5 | **Default for Anthropic:** `claude-opus-5-5` ### xAI (Grok) Provider: `xai` | Model ID | Display name | |---|---| | `grok-4.7` | Grok 4.7 | | `grok-4.6` | Grok 4.6 | **Default for xAI:** `grok-4.7` ### Inception Labs (Retired) Provider: `inception` (migrated to `toolbelt`) Inception Labs Mercury models (`mercury-2`) are retired. Any request using provider `inception` or model `mercury-2` is automatically mapped to Toolbelt Crescent Medium (`crescent-medium` under provider `toolbelt`). ### Custom models Provider: `custom` For any OpenAI-compatible endpoint (Ollama, LM Studio, etc.), set `provider` to `"custom"` and pass any model string as the `model` value. See [Custom AI Providers](https://docs.apexti.com/features/custom-ai-providers.md). --- ## The runtime model-swap protocol If you need to change an assistant's model dynamically (Mechanism 3), follow the **two-phase protocol**. The most important rule: > **Warning:** Model selection resolves at **execution time**, not delegation-creation time. You cannot fire-and-restore — that is, change the model, assign the task, and immediately change it back. You **must wait for the callback** before restoring the original model. ### Phase 1: before the callback 1. **Read** the assistant's current model and provider using `toolbelt(get_assistant)`. 2. **Write** a restore record (e.g. to `pending-model-restores.json`) with status `pending`. 3. **Swap** — call `toolbelt(update_assistant)`. Always pass both `provider` and `model` together. 4. **Delegate** — assign the task using `manage_delegations(create)`. Store the correlation ID. 5. **Stop** — wait for the delegation response. Do not proceed until the task completes. ### Phase 2: after the callback 1. **Process** the delegation response and use the output. 2. **Restore** — call `toolbelt(update_assistant)` with the original `provider` and `model` saved in Phase 1. Do this even if the delegated task failed. 3. **Update** the restore record to status `restored`. ### Example: swap to Claude Opus 5.5 for a high-stakes task ```sh # Phase 1 — read, save, swap, delegate GET toolbelt(get_assistant, { assistantId: "asst_abc123" }) # → { provider: "gemini", model: "gemini-4-hydrogen" } # Save: { assistantId, originalProvider: "gemini", originalModel: "gemini-4-hydrogen", status: "pending" } POST toolbelt(update_assistant, { assistantId: "asst_abc123", provider: "anthropic", model: "claude-opus-5-5" }) POST manage_delegations(create, { targetAssistantId: "asst_abc123", content: "..." }) # → { correlationId: "dlg_xyz" } # STOP — wait for callback # Phase 2 — process, restore, update POST toolbelt(update_assistant, { assistantId: "asst_abc123", provider: "gemini", model: "gemini-4-hydrogen" }) # Update restore record: { status: "restored" } ``` ### Example: swap to GPT-6.1 Sol for a multi-step agentic workflow ```sh # Phase 1 GET toolbelt(get_assistant, { assistantId: "asst_def456" }) # → { provider: "anthropic", model: "claude-sonnet-5-5" } POST toolbelt(update_assistant, { assistantId: "asst_def456", provider: "openai", model: "gpt-6.1-sol" }) POST manage_delegations(create, { targetAssistantId: "asst_def456", content: "..." }) # → { correlationId: "dlg_uvw" } # STOP — wait for callback # Phase 2 POST toolbelt(update_assistant, { assistantId: "asst_def456", provider: "anthropic", model: "claude-sonnet-5-5" }) ``` --- ## Reasoning effort Supported GPT, Gemini, Claude, and xAI models accept `reasoningEffort` when you swap to a thinking-capable model. | Value | Effect | |---|---| | `none` | No thinking tokens | | `minimal` | Fastest, lightest reasoning | | `low` | Light reasoning pass | | `medium` | Balanced — organization default | | `high` | Deep, thorough reasoning | | `xhigh` | Extra high reasoning pass | | `max` | Maximum reasoning depth | For Gemini models, `reasoningEffort` maps to `thinkingLevel`. For OpenAI and xAI models, it maps to `reasoning_effort` in the Chat Completions / Responses request. --- ## Anti-patterns to avoid - ❌ **Swapping mid-conversation** — don't change models during an active user chat. Swaps are for discrete, background tasks. - ❌ **Fire-and-restore** — reverting the model before the assigned task finishes will cause it to run on the wrong model or fail. - ❌ **Forgetting to restore** — always restore the original model. Leaving a high-cost model active on a general assistant disrupts other workflows. - ❌ **Overriding system assistants** — avoid swapping core system assistants (like the Task Assessor) unless conditions are tightly controlled. - ❌ **Mismatched provider/model pairs** — always pass `provider` and `model` together. Setting `model: "claude-opus-5-5"` without `provider: "anthropic"` will fail or fall back to an unexpected model. --- --- title: "Token Usage" description: "Understand your AI token consumption across assistants and models — and how Toolbelt automatically keeps your conversations within limits." updated: 2026-11-23 --- # Token Usage ## What is token usage? Every AI model charges by the token — roughly, a token is about four characters of text. Toolbelt tracks token consumption at multiple levels (per-message, per-chat, per-assistant, and per-user) so you always know what you're spending and where. Beyond tracking, Toolbelt includes **automatic conversation management** that keeps your conversations within each model's context window — without interrupting your flow. --- ## Viewing your token usage Navigate to **Settings → Token Usage** in the Toolbelt dashboard. The overview shows: - **Total tokens used** — your lifetime count (input + output combined) - **By assistant** — a ranked list of assistants sorted by usage - **Recent usage by model** — the last 30 days of activity broken down by AI provider and model Token counts are updated in real time as you chat. --- ## Usage breakdown Toolbelt tracks three token categories: | Category | Description | | --- | --- | | **Input tokens** | Tokens sent to the model (your messages + conversation history + system prompt + tool definitions) | | **Output tokens** | Tokens generated by the model in response | | **Total tokens** | Input + output combined | > **Note:** If your model supports prompt caching, Toolbelt automatically subtracts cached tokens from your input count so the number reflects what you're actually being charged. --- ## Automatic conversation management Long conversations can exceed a model's context window. Rather than throwing an error, Toolbelt automatically trims the conversation before sending it to the AI — preserving your most important context. ### How trimming works 1. **System messages are always kept.** Your assistant's instructions are never trimmed. 2. **The last 10 messages are always kept.** Recent context is the most important. 3. **Tool call/response pairs are never split.** If a tool call is included, its corresponding response stays with it — or both are removed together. 4. **Older messages are scored and selected.** Messages in the middle of the conversation are ranked by importance: - Role weight: system > user > assistant > tool - Presence of tool calls - Message length - Important keywords (errors, success states, etc.) - Recency within the middle section When trimming occurs, you'll see a notification in the chat: ``` 💡 Conversation Optimized Your conversation was getting long (1,120,400 tokens), so I've intelligently trimmed it to stay within GPT-6.1 Sol's limits. Optimized: 54 → 26 messages Tokens: 1,120,400 → 680,210 (limit: 1,050,000) I kept the most important messages and recent context to maintain conversation quality. ``` ### Large tool response compression When a tool returns a very large response (over 5,000 tokens), Toolbelt compresses it before adding it to the conversation history. The compressed version preserves actual data structure and values — it's not just a generic description. A full expandable view remains available in the chat. --- ## Model-aware token limits Toolbelt automatically detects the model you're using and applies the correct limits. A 20,000-token safety buffer is applied to all models to reduce the chance of limit errors. | Model family | Context window | | --- | --- | | OpenAI GPT-6 & GPT-6.1 (Astra, Sol, Terra, Luna) | 1,050,000 tokens | | Anthropic Claude (Sonnet 5.5, Haiku 5.5, Fable 5.2) | 1,000,000 tokens | | Anthropic Claude Opus 5.5 | 200,000 tokens | | Google Gemini (Gemini 4 Carbon, Argon, Neon, Hydrogen; Gemini 3.8 Flash, 3.1 Pro, 3.5 Flash Lite) | 1,000,000 tokens | | xAI Grok (4.7, 4.6) | 500,000 tokens | | Toolbelt Crescent (Large, Medium, Small) | 262,144 tokens | | Toolbelt Free (Qwen 3 30B) & Fallback default | 128,000 tokens | > **Note:** Retired Inception Labs Mercury models (`mercury-2`) are automatically routed to Toolbelt Crescent Medium (`crescent-medium`) with a 262,144-token context limit (or 128,000 tokens on legacy budgeting). --- ## API reference ### Get user token usage ```http GET /api/token-usage/user ``` Returns your lifetime token totals, a per-assistant breakdown, and recent usage by model/provider. **Example response** ```json { "user": { "totalTokensUsed": 1240000, "inputTokensUsed": 830000, "outputTokensUsed": 410000, "lastTokenUsageDate": "2026-03-22T18:00:00Z" }, "assistants": [ { "id": "ws_abc123", "name": "Research Assistant", "totalTokensUsed": 740000, "inputTokensUsed": 500000, "outputTokensUsed": 240000 } ], "recentUsage": [ { "provider": "openai", "model": "gpt-6.1-sol", "inputTokens": 620000, "outputTokens": 310000, "totalTokens": 930000 } ] } ``` ### Get organization token usage ```http GET /api/token-usage/organization/:workspaceId ``` Returns token usage statistics for a specific assistant (organization), including a recent breakdown by model. > **Note:** Organization members can access usage stats for shared organizations they have permission to view. --- --- title: "Quick Chats" description: "Save prompt shortcuts as one-click buttons below the chat input — so repetitive tasks take one click instead of re-typing." updated: 2026-09-01 --- # Quick Chats Quick Chats are saved prompt shortcuts that appear as buttons directly below the chat input bar. Click one and the full prompt fires immediately — no typing required. They're ideal for anything you find yourself asking repeatedly: summarizing context, recovering from a bad response, kicking off a standard workflow, or orienting a new team member. :::cards 3 ===card title: One-click shortcuts icon: zap Turn any prompt you type often into a labeled button that fires it instantly. ===card title: Configured per assistant icon: user Quick Chats belong to a specific assistant. Everyone who uses that assistant sees the same set of buttons. ===card title: Self-configurable icon: sparkles Ask the assistant to create or update its own Quick Chats in plain language — no settings panel required. ::: ## How to add a Quick Chat 1. Open the assistant's **Configure** panel. 2. Scroll to the **Quick Chats** section. 3. Enter a **label** — this is the button text users will see. 4. Enter the **prompt** — the full message that gets sent when the button is clicked. 5. Click **Save**. The button appears below the chat input in all conversations with that assistant. > **Tip:** You can also ask the assistant to add Quick Chats for itself. In any chat, say something like: *"Add a Quick Chat that summarizes our conversation and prepares a handoff for the next session."* The assistant will update its own configuration directly. ## How to edit a Quick Chat 1. Open the assistant's **Configure** panel. 2. Scroll to the **Quick Chats** section. 3. Click the Quick Chat you want to change — the label and prompt fields become editable inline. 4. Make your changes and click **Save**. ## How to delete a Quick Chat 1. Open the assistant's **Configure** panel. 2. Scroll to the **Quick Chats** section. 3. Click the delete icon (🗑️) next to the Quick Chat you want to remove. The button is removed from the chat immediately. ## How to use Quick Chats Once Quick Chats are set up, a row of labeled buttons appears below the message input in every chat with that assistant. Click any button to send its prompt. The message lands in the conversation just as if you had typed and submitted it yourself. ## Common use cases | Button label | What it does | |---|---| | **Summarize & hand off** | Produces a summary of the current conversation to carry context into a new session. | | **Slow your roll** | Asks the assistant to pause, review its plan, explain whether it's still on track, and correct course if needed. Useful when the assistant starts drifting. | | **What can you do?** | Produces a quick overview of the assistant's capabilities, services, and instructions — handy for onboarding new team members. | | **Start fresh** | Sends a prompt to clear context and restart the task from a clean state. | > **Note:** Quick Chats are configured per assistant and are visible to everyone who uses that assistant — including in shared organization contexts. Name buttons in a way that makes sense to your whole team, not just yourself. --- --- title: "Custom AI Providers" description: "Point any Toolbelt assistant at your own OpenAI-compatible endpoint — Ollama, LM Studio, or any self-hosted model." updated: 2026-06-09 --- # Custom AI Providers ## Overview By default, Toolbelt assistants use Anthropic or OpenAI models configured at the platform level. If you need to use a different model — whether that's a locally hosted Ollama instance, LM Studio, or any third-party provider with an OpenAI-compatible API — you can configure that at the organization level. Each organization can point to its own AI provider independently. One assistant can use Claude, another can use a local Llama model — they coexist without conflict. --- ## When to use a custom provider - You're running **local models** via Ollama or LM Studio for privacy or cost reasons - Your organization requires models to stay **on-premises** - You want to test a **specific model version** not available through the default providers - You're integrating with a **third-party OpenAI-compatible service** --- ## Configuration ### Via the UI 1. Open your organization **Settings** 2. Go to the **AI Provider & Model** section 3. Select **"Custom (OpenAI-Compatible)"** from the Provider dropdown 4. Fill in the fields that appear: | Field | Required | Description | |---|---|---| | **Base URL** | ✅ | Your OpenAI-compatible API endpoint (e.g. `http://localhost:11434/v1`) | | **Model Name** | ✅ | The model identifier your endpoint expects (e.g. `llama2`, `local-model`) | | **API Key** | Optional | Required only if your endpoint enforces authentication | 5. Save your settings. The organization will use your custom endpoint for all subsequent conversations. ### Via the API ```javascript PUT /api/workspaces/:workspaceId { "provider": "custom", "customOpenAIBaseURL": "http://localhost:11434/v1", "customOpenAIModel": "llama2", "customOpenAIApiKey": "your-api-key" // optional } ``` --- ## Examples ### Ollama (local) ```javascript { "provider": "custom", "customOpenAIBaseURL": "http://localhost:11434/v1", "customOpenAIModel": "llama2", "customOpenAIApiKey": null // Ollama doesn't require a key } ``` ### LM Studio (local) ```javascript { "provider": "custom", "customOpenAIBaseURL": "http://localhost:1234/v1", "customOpenAIModel": "local-model", "customOpenAIApiKey": null // LM Studio doesn't require a key } ``` ### Third-party OpenAI-compatible service ```javascript { "provider": "custom", "customOpenAIBaseURL": "https://api.example.com/v1", "customOpenAIModel": "custom-model-name", "customOpenAIApiKey": "your-actual-api-key" } ``` --- ## How it works When an organization has `provider` set to `"custom"`, Toolbelt: 1. Checks that both `customOpenAIBaseURL` and `customOpenAIModel` are set 2. Creates a new OpenAI client instance pointed at your endpoint 3. Uses that client for all chat processing in this organization If either required field is missing, the organization falls back to the platform default provider. > **Note:** Internally, the custom provider is treated as `"openai"` for compatibility. This means it fully supports tool calling and streaming wherever the standard OpenAI client does. --- ## Fallback behavior If `provider` is not set to `"custom"`, or the required fields are missing, the organization uses the platform's default configuration — either OpenAI or Anthropic, depending on how Toolbelt is deployed. --- ## Security considerations - **API keys are stored in the database.** For production deployments, consider encrypting sensitive fields at rest. - **Validate Base URLs** before saving. Only connect to endpoints you trust. - Access to organization settings should be restricted to organization admins. --- --- title: "Sub-Chats" description: "Spawn parallel tasks in other assistants and get their responses delivered back to your conversation automatically." updated: 2026-11-16 --- # Sub-Chats ## Overview Sub-chats let one assistant delegate a task to another assistant — or even to itself — and receive the response directly in the originating conversation. The delegated work runs in its own context, in parallel if needed, and the response is automatically delivered when it's done. This is how you build multi-agent workflows in Toolbelt: one orchestrating assistant, many specialized workers, all coordinated through sub-chats. > **Note:** If you're new to assistant-to-assistant communication, start with [Assistant-to-Assistant Communication](https://docs.apexti.com/features/assistant-to-assistant.md) for an overview of when to use sub-chats versus conversational delegation or the Collaboration mode toggle. --- ## Why sub-chats? Some tasks are too large or too specialized for a single assistant to handle well in one go. Sub-chats let you: - **Parallelize work** — kick off multiple tasks simultaneously and wait for all of them - **Specialize** — delegate to an assistant that's configured specifically for the task (e.g., a code reviewer, a data analyst) - **Keep the main conversation clean** — heavy lifting happens in a sub-chat; only the result comes back --- ## How it works 1. Your assistant calls `create_sub_chat` with a target assistant ID and the task content 2. The target assistant receives the task and processes it in its own chat context 3. When the target finishes, its response is automatically posted back to your originating conversation 4. Your assistant can create multiple sub-chats and wait for all of them before proceeding > **Note:** Sub-chats use Toolbelt's delegation infrastructure under the hood. The response is delivered automatically — you don't need to poll for it. --- ## Creating a sub-chat Use the `create_sub_chat` toolbelt action: | Parameter | Required | Description | |---|---|---| | `targetAssistantId` | ✅ | The ID of the assistant to delegate to | | `content` | ✅ | The task or message to send | | `priority` | Optional | Task priority: `"low"`, `"normal"` (default), `"high"`, or `"urgent"` | | `provider` | Optional | AI provider: `"openai"`, `"gemini"`, `"anthropic"`, `"anthropic-vertex"`, or `"toolbelt"`. Use `"gemini"` for Google AI (never `"google"`); use `"toolbelt"` for Crescent. | | `model` | Optional | Specific model version. See [Model selection](https://docs.apexti.com/features/sub-chats.md#model-selection) below. | **Returns:** ```json { "correlationId": "abc-123", "status": "created", "targetAssistantId": "...", "message": "Sub-chat created successfully" } ``` Save the `correlationId` — you'll use it to match responses when multiple sub-chats are in flight. --- ## Model selection Use the `model` parameter to tune the sub-chat for the task at hand. As a rule of thumb: | Use case | Recommended model | |---|---| | Formatting, extraction, classification | `gemini-3.8-flash`, `claude-sonnet-5-5`, `gpt-6.1-terra`, or Crescent (`provider: "toolbelt"`, e.g. `crescent-medium`) | | Research, drafting, multi-step reasoning | `claude-opus-5-5`, `gemini-4-argon`, or `gemini-3.8-flash` | If you omit `model`, Toolbelt uses the default model configured for the target assistant. See [Model selection](https://docs.apexti.com/features/model-selection.md) for the full catalog. --- ## Waiting for responses After creating one or more sub-chats, use the `sleep` toolbelt action to wait for completion: ``` create_sub_chat → sleep (15–60s, wakeOnAnyComplete: true) → handle response ``` When `sleep` returns with `wokeReason: "sub_chat_complete"`, the response is in `subChats[].lastMessage`. Use it directly — no need to call `get_pending_sub_chats`. If `sleep` times out before all sub-chats complete, call `get_pending_sub_chats` to check status. --- ## Running sub-chats in parallel You can call `create_sub_chat` multiple times before calling `sleep`. All sub-chats run concurrently. Your main conversation is blocked until all of them complete. ``` create_sub_chat (task A) ─┐ create_sub_chat (task B) ─┼─→ sleep → all responses arrive → continue create_sub_chat (task C) ─┘ ``` Use `wakeOnAnyComplete: true` if you want to process results as they arrive rather than waiting for all of them. --- ## Delegating to the same assistant You can set `targetAssistantId` to your own assistant ID (or workspace ID). This is useful for parallelizing work within a single assistant — each sub-chat gets its own isolated context and tool access. --- ## The Advisor pattern: Second opinions from frontier models Running an assistant entirely on a frontier reasoning model (like `claude-opus-5-5` or `gemini-4-carbon`) gives you top-tier judgment, but burns credits on every single turn, routine data fetch, and simple tool call. The **Advisor pattern** gives you near-frontier judgment while keeping your everyday credit burn low: 1. **Run everyday work on a fast, cost-effective model** (such as `claude-sonnet-5-5`, `gemini-3.8-flash`, or `crescent-medium`). 2. **Consult a frontier model only at high-stakes checkpoints** (before committing to a complex plan, when stuck on a tough error, or before declaring a critical task finished). 3. **The assistant spawns a sub-chat** to get that second opinion, incorporates the feedback, and keeps working. You get top-model guidance where it counts, paying frontier token rates for only one or two turns instead of twenty. ### Method 1: Set it in the assistant's instructions (Automated) To have your assistant automatically seek a second opinion on tough jobs, paste a rule like this into its **System Prompt** (under **Configure → Instructions**): > **Advisor Rule:** > You handle day-to-day execution and tool operations. When handling complex, multi-step, or high-stakes tasks: > > 1. **Plan review:** Before executing any multi-step plan, draft your proposed steps and spawn a sub-chat to a frontier model (such as `claude-opus-5-5` or `gemini-4-carbon`). Ask it to critique your plan for blind spots, security issues, and edge cases. > 2. **Unsticking:** If a tool fails twice or you hit an unexpected roadblock, consult the advisor model via sub-chat for an alternative strategy. > 3. **Final sanity check:** Before marking a critical task complete, ask the advisor model to review your final output against the user's original requirements. > > Review the advisor's response, adjust your approach, and continue in the main conversation. ### Method 2: Ask for it ad-hoc in chat (Conversational) You don't have to change your assistant's permanent settings to use this. You can prompt for an advisor review on the fly during any conversation: > *"Draft a migration plan for this database, but before running anything, spin up a sub-chat with Claude Opus to get a second opinion on the steps."* Or when debugging: > *"Take our current error logs and ask Gemini 4 Carbon in a sub-chat what we might be missing."* Because the assistant has native access to sub-chats, it packages the conversation context, queries the stronger model, and reports back the advice directly in your thread. ### When to use this pattern | Moment | What the advisor does | |---|---| | **Forming a plan** | Spots overlooked dependencies, potential race conditions, or destructive side effects before any tool runs. | | **Breaking loops** | Offers a fresh perspective when the primary model is stuck repeating a failing tool pattern. | | **Pre-delivery review** | Catches subtle omissions or tone mismatches before handoff to human stakeholders. | --- ## Calling from an external MCP client When you connect a Toolbelt assistant to an external MCP client — such as Claude Desktop, Cursor, or Windsurf — that assistant's full instruction context comes along for the ride. Any tool calls the assistant makes, including `create_sub_chat`, work exactly the same as they do inside Toolbelt. This means you can use a Toolbelt assistant as an **orchestrator** from inside your IDE or AI client of choice. The assistant spawns specialized sub-chats, waits for results, and surfaces a consolidated answer — all driven by a single prompt from you. > **Tip:** When building orchestration flows from an external client, give each sub-chat a focused, single-purpose task. Smaller scope means faster completion and cleaner results to aggregate. --- ## Example use case An orchestrating assistant needs to document four new features simultaneously: 1. Calls `create_sub_chat` four times, each with a different documentation task 2. Calls `sleep` with `wakeOnAnyComplete: false` and `timeoutSeconds: 60` 3. When all four sub-chats complete, receives four draft documents 4. Reviews and assembles the final output This is faster than running the four tasks sequentially and keeps each sub-chat's context focused on a single feature. --- ## When a sub-chat times out Long-running sub-chats can legitimately take several minutes, especially for multi-step agentic or coding tasks. A timeout from `sleep` does **not** mean the sub-chat has failed — it means it hasn't finished yet. Treat it accordingly. ### Timeout is not an error When `sleep` returns with `wokeReason: "timeout"`, the sub-chat is still running. Call `get_pending_sub_chats` to check its current status, then sleep again. Keep waiting until the patience budget for the task type is spent. ### Patience budget by task type Scale how long you wait to the complexity of the work: | Task type | Suggested poll rounds | |---|---| | Formatting, extraction, classification | 2–3 rounds | | Coding, research, drafting | 5–8 rounds | | Heavy multi-step agentic workflows | More, as long as status keeps advancing | A "poll round" is one `sleep` call (typically 30–60 seconds) followed by a `get_pending_sub_chats` check. ### Liveness before verdict Only declare a sub-chat stuck after the patience budget is exhausted **and** the status has stopped advancing between polls. Never terminate a sub-chat that is still making progress, even if it is slow. ### What to do when a sub-chat is genuinely stuck If a sub-chat's status has not advanced across multiple poll rounds and the patience budget is spent: 1. Tell the user what is hung and for how long. 2. Offer options: **keep waiting**, **retry** (optionally on a faster model such as `gemini-3.8-flash`), or **proceed with partial results** from sub-chats that have already completed. > **Tip:** Never discard the results of sub-chats that finished successfully just because one laggard is stuck. Collect completed work as it arrives and apply the patience treatment only to the sub-chat that hasn't responded. ### Parallel insulation When multiple sub-chats are in flight, completed ones are independent of slow ones. Process finished sub-chats as they land. Only the laggard gets the patience treatment — the rest of the work moves forward normally. --- ## Limitations - Sub-chat responses are delivered to the **originating chat only** — they don't appear as new top-level conversations - Sub-chats cannot create further sub-chats that route back to themselves (no circular delegation) - The target assistant must be accessible to your organization (same organization) --- --- title: "Assistant-to-Assistant Communication" description: "A guide to the ways Toolbelt assistants collaborate: conversational delegation, Collaboration mode, structured delegations, and sub-chats." updated: 2026-11-16 --- # Assistant-to-Assistant Communication Toolbelt gives you several ways to get one assistant to work with another. They're related, but they serve different purposes. This page explains each one, when to use it, and how they connect to each other. ## At a glance :::cards 3 ===card title: Conversational Delegation icon: messages-square You ask an assistant in plain language to hand off work to a specialist. No setup required — just a clear instruction. ===card title: Collaboration Mode icon: users-round A toggle in the chat input bar (and in Configure) that explicitly enables an assistant to delegate tasks during a session. ===card title: Sub-Chats & Delegations icon: git-branch The underlying mechanisms. Used in Wrenches, Workflows, or assistant instructions for parallel, multi-step orchestration. ::: --- ## Conversational delegation **When to use it:** You're in a chat, you want one assistant to pull in help from another, and you don't need to configure anything. This is the simplest form of assistant-to-assistant communication. You prompt the hub assistant in plain language: > *"Hand this off to the Writer assistant and bring back the draft."* The assistant interprets your instruction, routes the work to the target assistant, waits for the result, and delivers it back — all in the same thread. **What you need:** The hub assistant needs **Collaboration mode enabled** (either always-on in its Configure settings, or switched on for this session using the mode toggle). The target assistant must be shared within your organization. > **Tip:** If you're not sure whether Collaboration mode is on, look at the mode toggles in the input bar. The users icon is highlighted when it's active. --- ## The Collaboration mode toggle **When to use it:** You want to explicitly enable or disable an assistant's ability to delegate work to other assistants, either for a session or permanently. The **Collaboration mode** toggle appears in two places: | Where | What it does | |---|---| | **Chat input bar → mode toggles** | Enables Collaboration mode for the current session only. Toggling it off returns the assistant to normal chat behavior. | | **Configure → assistant settings** | Sets the *default* for every new chat session with this assistant. | When Collaboration mode is **off**, the assistant won't create sub-chats even if you ask it to. It treats delegation instructions as plain conversation and responds directly. When Collaboration mode is **on**, the assistant can route tasks to specialist assistants automatically, based on its system instructions or your in-session prompts. > **Note:** Collaboration mode is a *capability gate*, not a guarantee. The assistant still needs instructions that tell it *which* specialists exist and *when* to use them. See [Managing Organization Assistants](https://docs.apexti.com/features/managing-assistants.md) for how to configure the hub's system prompt. ### Setting up a hub-and-spoke relationship 1. Open the hub assistant's **Configure** panel. 2. Find the **Collaboration** section and enable it. 3. In the hub's **System Prompt**, describe the specialist assistants and the conditions under which to delegate. Example: > *"When a task requires writing or editing, delegate it to the Writer assistant (ID: ``). Wait for the output before continuing."* 4. The hub can now route work automatically during any chat session. --- ## Structured Delegations (`manage_delegations`) When building complex agentic pipelines, assistants often need formal lifecycle tracking for handoffs rather than simple ephemeral replies. Toolbelt provides the native `manage_delegations` tool to coordinate peer-to-peer work: - **Lifecycle tracking:** Supports explicit `create` / `delegate`, `status` polling, and `complete` stages. - **Payload isolation:** Packages input schemas, intermediate artifacts, and output summaries cleanly between assistants. - **Supersedes legacy tasks:** `manage_delegations` replaces the older `manage_assistant_tasks` tool with lighter overhead and first-class status tracking. ``` [ Hub Assistant ] ───▶ manage_delegations (action: create) ───▶ [ Specialist Assistant ] │ │ ▼ ▼ manage_delegations (action: status) ◀─── (completed) ◀─── manage_delegations (action: complete) ``` --- ## Sub-chats (programmatic) **When to use it:** You're building a Wrench, a Workflow, or a multi-step assistant instruction set that needs precise, concurrent execution over delegation. Sub-chats are the lightweight, concurrent delegation primitive. The pattern is always the same: ``` create_sub_chat → sleep (wait for completion) → read response from subChats[].lastMessage ``` This gives you: - **Parallel execution** — fire multiple sub-chats before calling `sleep`, and they all run concurrently. - **Model overrides** — specify a different AI model for a given task without changing the target assistant's default. - **Cross-organization delegation** — route work to assistants in other Toolbelt organizations. For the full reference — parameters, response format, timeout handling, and parallel fan-out patterns — see [Sub-Chats](https://docs.apexti.com/features/sub-chats.md). --- ## Choosing the right approach | Situation | Use | |---|---| | Ad-hoc: "Get the Writer to draft this" | Conversational delegation (Collaboration mode on) | | Long-running, tracked handoff with status checks | Structured delegation (`manage_delegations`) | | Concurrent fan-out or model overrides in a script | Sub-chats directly (`create_sub_chat`) | | You want delegation always available for an assistant | Enable Collaboration mode in Configure | | You want delegation off by default, on when needed | Leave Configure default off; toggle on per session | | Multi-org orchestration | Sub-chats directly | | Using Toolbelt from Claude, Cursor, or Windsurf | Sub-chats via the `toolbelt` MCP tool | --- ## Related pages - [Managing Organization Assistants](https://docs.apexti.com/features/managing-assistants.md) — How to configure the hub's system prompt for delegation. - [Sub-Chats](https://docs.apexti.com/features/sub-chats.md) — Full reference for `create_sub_chat`, `sleep`, and `get_pending_sub_chats`. - [Inter-Organization Communication](https://docs.apexti.com/features/inter-organization-communication.md) — Fan-out patterns across multiple organizations. - [Assistants as MCP Servers](https://docs.apexti.com/features/assistants-as-mcp.md) — Using Toolbelt assistants from Claude, Cursor, or Windsurf. --- --- title: "Live Audio Chat" description: "Real-time speech-to-speech voice conversations with assistants, live tool execution, the Toolbelt Concierge, and Dashboard SDK integration." updated: 2026-10-23 --- # Live Audio Chat Live Audio Chat turns your assistant into a real-time conversational partner. Instead of typing prompts and waiting for text blocks to stream back, you talk naturally through your browser microphone and hear spoken responses with sub-second latency. Because speech runs over a bidirectional audio stream, you can interrupt the assistant at any moment—just start speaking, and the assistant stops talking immediately to listen. :::cards 3 ===card title: Low-Latency Voice icon: radio-tower Bidirectional WebSocket streaming with instant interruption handling (barge-in). ===card title: Live Tool Calling icon: wrench Assistants execute DuckDB queries, run Wrenches, and call MCP tools mid-conversation. ===card title: Dashboard SDK Support icon: code-2 href: features/dashboard-sdk.md Embed conversational voice directly into custom web apps using `sdk.liveAudio`. ::: ## How Live Audio Works Live Audio uses a real-time audio pipeline engineered for conversational flow: 1. **Microphone capture:** Your browser captures audio in 16-bit, 16kHz mono PCM using an `AudioWorklet`. 2. **Streaming WebSocket:** Raw audio frames stream directly to the Toolbelt backend over `/live-audio` in real time. 3. **Speech-to-speech model:** The engine processes your speech, manages conversation turns, and invokes tools when needed. 4. **Gapless playback:** Spoken responses stream back as 24kHz mono PCM and schedule gaplessly through the Web Audio API. 5. **Instant barge-in:** If you speak while the assistant is replying, Toolbelt flushes the playback queue instantly and shifts the model back into listening mode. ## Starting a Voice Session You can start a voice conversation from any assistant chat view: 1. Open an assistant workspace. 2. In the chat input bar, click the **microphone button** (**Start voice mode**). 3. Allow browser microphone access when prompted. 4. When the session connects, an audio control bar appears above the input field. ### Audio Bar Controls & Indicators While a session is active, the audio bar displays real-time status: - **Pulse indicator:** Glows red while listening for your speech and blue while the assistant is speaking. - **Session timer:** Tracks total elapsed time (`M:SS`). - **Token counter:** Displays cumulative token usage for the active session (prompt, response, and tool tokens). - **Tool badge:** Displays the name of any tool currently running (for example, `query_database` or `fetch_slack_thread`) with an execution spinner. - **Stop button:** Closes the WebSocket connection and concludes the voice session. > **Note:** Assistant voice sessions automatically time out after 15 minutes of continuous connection to prevent runaway token usage. ## Running Tools During Voice Calls Voice assistants in Toolbelt are not limited to idle chatter. They retain full access to your assistant's capabilities: - **Connected MCP services:** Query Google Drive, search Slack, pull GitHub issues, or check database records. - **Workspace tools:** Read and write files in organization storage, execute SQL against DuckDB tables, and run saved Wrenches. When an assistant needs a tool to answer your question (for example, *"What was our total revenue last month?"*), you will hear a brief pause while the tool badge shows the tool executing. As soon as the tool returns results, the assistant incorporates the data into its spoken reply. ## Configuring Voice & Audio Settings You can customize voice personality, playback rate, and model behavior for each assistant: 1. Navigate to your assistant and select **Configure** (the gear icon). 2. Expand the **Live Audio** section (`cfg-live-audio`). 3. Adjust your settings and click **Save Changes**. ### Provider & Voice Selection Toolbelt supports two live audio engines: | Provider | Default Model | Voices Available | Description | |---|---|---|---| | **Gemini Live** (Default) | `gemini-3.8-live-extended-thinking` | 30 voices | Google's multimodal audio engine with low latency and deep tool support. | | **OpenAI Realtime** | `gpt-realtime-2.1` | 10 voices | OpenAI's realtime speech-to-speech engine. | #### Available Voices - **Gemini Live (30 voices):** Zephyr (*Bright*), Puck (*Upbeat*), Charon (*Informative*), Kore (*Firm*), Fenrir (*Excitable*), Leda (*Youthful*), Orus (*Firm*), Aoede (*Breezy*), Callirrhoe (*Easy-going*), Autonoe (*Bright*), Enceladus (*Breathy*), Iapetus (*Clear*), Umbriel (*Easy-going*), Algieba (*Smooth*), Despina (*Smooth*), Erinome (*Clear*), Algenib (*Gravelly*), Rasalgethi (*Informative*), Laomedeia (*Upbeat*), Achernar (*Soft*), Alnilam (*Firm*), Schedar (*Even*), Gacrux (*Mature*), Pulcherrima (*Forward*), Achird (*Friendly*), Zubenelgenubi (*Casual*), Vindemiatrix (*Gentle*), Sadachbia (*Lively*), Sadaltager (*Knowledgeable*), and Sulafat (*Warm*). - **OpenAI Realtime (10 voices):** Marin (*Recommended*), Cedar (*Recommended*), Alloy (*Neutral*), Ash (*Warm*), Ballad (*Expressive*), Coral (*Friendly*), Echo (*Clear*), Sage (*Calm*), Shimmer (*Bright*), and Verse (*Dynamic*). > **Tip:** Click the **Play button** next to the voice dropdown in workspace settings to hear a short audio sample before saving. ### Playback Speed Use the **Playback Speed** slider to adjust speech output from `0.5x` to `2.0x` (in `0.1x` increments). Your chosen speed is saved to the workspace configuration and applied automatically to every voice session. ### Advanced Gemini Features When using Gemini Live, you can enable advanced dialog controls: - **Affective Dialog:** When enabled, the model analyzes your vocal expression and emotional tone, adjusting its inflection and conversational style to match. - **Proactive Audio:** Allows the model to decide whether an utterance warrants a spoken response or whether it should remain silent (useful for background listening or collaborative environments). - **Thinking Budget:** Controls reasoning depth for complex tool orchestration. Set to `1` (low), `2` (medium), or `3` (high). Leave empty for automatic tuning, or set to `0` to switch to the faster `gemini-3.8-live` model without extended thinking. ## The Toolbelt Concierge The **Concierge** is a hands-free meta-assistant available from the Toolbelt central hub and sidebar navigation. Powered by the exclusive "Kore" voice, the Concierge acts as your voice-activated operating system inside Toolbelt. With the Concierge, you can: - **Navigate the app:** Say *"Take me to the Sales workspace"* or *"Open scheduled tasks"*. - **Switch organizations:** Say *"Switch to the Acme Corp team workspace"*. - **Manage assistants:** Ask the Concierge to create a new assistant, update system instructions, or enable integrations by voice. - **Triage notifications:** Say *"Read my unread notifications"* and *"Dismiss all notifications"*. - **Handoff sessions:** Ask the Concierge to transfer you to any assistant. The Concierge hands off your audio connection directly to the chosen workspace without reconnecting. ## Embedding Live Audio in Dashboards & Web Apps You can embed full conversational live voice chat into your custom dashboard applications using the [Dashboard SDK](https://docs.apexti.com/features/dashboard-sdk.md): ```javascript // Launch voice session from your custom dashboard app await sdk.liveAudio.start({ instructions: "You are guiding the user through quarterly server maintenance.", voice: "Kore", greeting: "Hello! I am ready to review your server maintenance checklist.", pageName: "Server Maintenance" }); // Subscribe to real-time events sdk.liveAudio.on("transcript", ({ role, text }) => console.log(`${role}: ${text}`)); sdk.liveAudio.on("state", ({ state }) => console.log("State:", state)); // End the call await sdk.liveAudio.stop(); ``` When embedded in dashboards: - The parent Toolbelt window manages microphone access, AudioWorklet encoding, and playback. - For public dashboards, voice access requires enabling the **Live voice chat** (`liveAudio`) capability toggle in publishing settings. Connection minutes are billed to the workspace owner. - See [Dashboard SDK](https://docs.apexti.com/features/dashboard-sdk.md) for full method definitions and event payloads. ## Transcripts & History Voice conversations are not ephemeral. As you speak: 1. Real-time speech-to-text transcribes your words into the chat thread. 2. The assistant's spoken response streams into the chat view in text form alongside the audio. 3. Tool calls and results appear inline with full inspection details. 4. Total prompt and completion tokens are recorded and attributed to your organization's token usage. When you finish or disconnect, the full conversation remains in your assistant's chat history for future reference, sub-chat delegation, or export. --- --- title: "Services" description: "Connect third-party integrations and MCP servers to Toolbelt, then enable them on your assistants to give them access to external tools." updated: 2026-11-16 --- # Services Services are the integrations that give your assistants their tools — GitHub, Slack, Notion, a Toolbelt Bridge, a Custom MCP Server, and so on. Managing services happens in two distinct steps: first you **connect** a service to your account, then you **enable** it on a specific assistant. Understanding the difference between these two steps is key to understanding how Toolbelt works. ## Connecting vs. enabling **Connecting** a service means authenticating it with your Toolbelt account — providing credentials, completing an OAuth flow, or supplying an API key. A connected service is available to your account but not yet active on any assistant. **Enabling** a service means turning it on for a specific assistant. Only enabled services are available to that assistant during a conversation. This separation lets you connect a service once and choose which assistants have access to it, rather than re-authenticating for every assistant. > **Tip:** Think of connecting as adding a service to your library, and enabling as putting it on a specific assistant's shelf. ## Connect a service 1. In the Toolbelt UI, navigate to **Services**. 2. Search the catalog for the service you want to add. 3. Click **Connect** and follow the authentication prompts — OAuth, API key, or configuration form depending on the service. 4. Once authenticated, the service appears in your connected services list. > **Note:** Some services are shared at the organization level. If a teammate has already connected a service and shared it with the organization, it may already be available for you to enable without re-connecting. ## Enable a service on an assistant 1. Open the assistant you want to configure. 2. Navigate to its **Services** settings. 3. Find the service you want to enable — use the search if needed. 4. Toggle it on. The assistant immediately has access to that service's tools. Disabling a service is the same process in reverse — toggle it off and the assistant loses access until you re-enable it. --- ## Tool Execution Policies & Restrictions Each service exposes a set of tools — for example, a GitHub service might expose `create_issue`, `list_pull_requests`, `read_repository`, and `delete_repository`. Rather than treating tools as simple on/off switches, Toolbelt supports three granular **Execution Policies** to help you enforce the principle of least privilege: :::cards 3 ===card title: Auto icon: zap **Autonomous execution.** The tool runs immediately whenever the assistant calls it. Best for safe, read-only tools like queries, listings, or metric lookups. ===card title: Permission icon: shield-alert **Human-in-the-loop confirmation.** The assistant prepares the tool call and pauses, displaying the action and parameters in chat. The tool executes only after you click **Approve**. Best for mutations, emails, and ticket updates. ===card title: Blocked icon: ban **Completely disabled.** The tool is stripped from the assistant's runtime prompt. The model cannot see or call the tool under any condition. Best for destructive actions like account or repository deletion. ::: ### Configuring tool policies in the UI 1. Open your assistant's **Configure** tab and select **Services**. 2. Locate the enabled service and click to expand its tool list. 3. Use the dropdown next to each tool to select **Auto**, **Permission**, or **Blocked**. ### Configuring tool policies through chat You can also inspect and configure tool policies conversationally without touching the settings UI: ``` "List all tools available on the GitHub service." "Set the 'delete_repository' tool on GitHub to blocked." "Require my permission before running any write or update tools on HubSpot." "What are the current restriction levels for our Jira integration?" ``` Your assistant uses built-in management tools (`list_service_tools`, `set_tool_restriction`, `bulk_set_tool_restrictions`) to adjust policy mappings instantly. --- ## Remove a service from your account Removing a service disconnects it from your account entirely. Any assistants that had it enabled will lose access. 1. Navigate to **Services**. 2. Find the connected service and open its detail view. 3. Click **Remove** or **Disconnect** and confirm. > **Warning:** Removing a service cannot be undone without re-connecting and re-authenticating. Make sure no critical assistants or automations depend on it before proceeding. ## Related topics - [Native Toolbelt Tools](https://docs.apexti.com/features/native-toolbelt-tools.md#services--tool-restrictions) — Reference for conversational service management. - [Custom MCP Servers](https://docs.apexti.com/features/custom-mcp-servers.md) — Build and deploy your own MCP server inside Toolbelt. - [Toolbelt Bridge](https://docs.apexti.com/features/bridge.md) — Connect MCP servers running on your local machine or private infrastructure. - [Transfer & Reclaim Services](https://docs.apexti.com/features/transferred-services.md) — Share or reclaim service connections within your organization. --- --- title: "Custom MCP Servers" description: "Build, deploy, and manage your own MCP servers directly inside Toolbelt — no infrastructure required." updated: 2026-08-28 --- # Custom MCP Servers Custom MCP Servers let you write JavaScript code that runs inside Toolbelt's secure execution environment and exposes tools your assistants can call. Think of them as purpose-built integrations: wrap an internal API, combine calls from multiple services, or implement custom business logic — all without leaving Toolbelt. Once deployed, a Custom MCP Server behaves exactly like any other connected service. Your assistants discover its tools automatically and can call them in the same way they call any other MCP tool. > **Tip:** Whenever you connect a new MCP server or integration, open a chat and ask: *"What can this connection do?"* The assistant will enumerate all available tool calls, explain use cases, and often suggest how to combine this service with other Toolbelt features like Wrenches or Scheduled Tasks. It's the fastest way to go from "connected" to actually useful. > **Note:** Custom MCP Servers are for *building* new integrations from scratch. If you want to connect an existing MCP server running somewhere else, use [Toolbelt Bridge](https://docs.apexti.com/features/bridge.md) instead. --- ## Why build a Custom MCP Server? :::cards 2 ===card title: Wrap internal APIs icon: plug Connect tools and systems that don't have a pre-built Toolbelt integration — internal databases, proprietary APIs, homegrown services. ===card title: Combine multiple services icon: layers Merge logic from several integrations into a single tool call. Fetch a GitHub issue, look up the author in your CRM, and return a unified summary — one call, one result. ===card title: Implement custom business logic icon: settings-2 Encode rules, transformations, or workflows that are specific to your organization — things no off-the-shelf integration would know to do. ===card title: No infrastructure required icon: zap Everything runs inside Toolbelt's execution environment. No servers to provision, no deploys to manage outside the platform. ::: --- ## How to create a Custom MCP Server 1. **Open the MCP Servers section:** Navigate to your assistant's **Services** settings and click **Custom MCP Servers**, then **New Server**. 2. **Name your server:** Give it a short, descriptive name (for example, `crm-lookup` or `internal-docs`). 3. **Write your code:** The editor opens with a starter template. Your code must export a `run` function and define at least one tool. Use the built-in `callTool` helper to call other connected services from inside your custom server. 4. **Use AI Edit (optional):** Click **AI Edit** and describe what you want the server to do in plain English. Toolbelt generates or modifies the code for you, producing a new version you can review before applying. 5. **Save and deploy:** Click **Deploy**. Toolbelt loads your script into its secure VM runner. The server is now live. 6. **Connect to an assistant:** Navigate to your assistant's **Services** settings and enable your Custom MCP Server. The assistant will immediately discover the server's tools. --- ## Versioning Every time you save a Custom MCP Server script, Toolbelt creates a new **immutable version**. You can: - **Switch the active version** at any time — changes take effect on the next deployment. - **Delete old versions** you no longer need (you cannot delete the currently active version). - **Use AI Edit** to iteratively refine your server code; each AI edit produces a new version for you to review before applying. Versioning means you can experiment freely without losing your working baseline. --- ## AI-assisted editing Toolbelt provides two AI-assisted workflows for Custom MCP Server code: - **Generate from description** — Provide a plain-English description of what you want the server to do. Toolbelt generates a working implementation. - **AI Edit** — Open an existing server and describe a change. Toolbelt modifies the code and creates a new version for review. Both workflows produce reviewable versions before anything is applied. You stay in control. --- ## Security and execution Custom MCP Server code runs in Toolbelt's **secure VM sandbox**: - Code is isolated per organization — your server cannot access another organization's data or tools. - Network access is restricted to the services and endpoints you explicitly configure. - Execution is logged. You can review invocation history and output in the audit log. > **Warning:** Do not hard-code secrets (API keys, passwords) directly in server code. Use Toolbelt's secret management to inject credentials at runtime. --- ## Limits | Limit | Value | |---|---| | Max execution time per call | 30 seconds | | Max response size | 1 MB | | Max versions per server | 50 | If your use case requires longer execution or larger payloads, consider breaking the work into multiple tool calls or using a Wrench to post-process the output. --- --- title: "Headless Browser Tools" description: "Equip your assistant with a headless Chromium browser to navigate live websites, execute JavaScript, take visual screenshots, and extract structured web content." updated: 2026-11-16 --- # Headless Browser Tools Modern websites rarely serve raw static HTML. Between single-page application (SPA) frameworks, client-side data fetching, and dynamic JavaScript rendering, basic HTTP requests often return blank shells or empty loading spinners. **Browser Tools** solve this by provisioning your assistant with a fully functional, headless Chromium browser powered by Playwright. Your assistant can browse the live web just like a human: executing JavaScript, waiting for content to render, taking high-resolution visual screenshots, clicking buttons, and extracting readable Markdown or structured data. :::cards 3 ===card title: Visual Screenshots icon: camera Capture full-page or element-level screenshots of live web pages and local HTML dashboards stored in workspace storage. ===card title: Interactive Navigation icon: mouse-pointer-click Click links, fill out forms, press keys, wait for selectors, and navigate multi-step flows on dynamic web pages. ===card title: Structured Scraping icon: file-text Extract clean Markdown, rendered plain text, or structured CSS arrays from modern client-rendered applications. ::: --- ## Why use Browser Tools? Connecting an assistant to a headless browser bridges the gap between static text and the interactive web: 1. **JavaScript execution:** Many documentation sites, blogs, and SaaS platforms render their text via client-side JavaScript. Browser Tools run the page's scripts before extracting content. 2. **Visual layout verification:** When vibe coding dashboard pages, interactive widgets, or report templates, the assistant can render the HTML, capture a screenshot, and visually inspect styling, fonts, and responsive layouts before delivering them. 3. **Overcoming dynamic walls:** Assistants can click accordions, dismiss non-blocking overlays, select dropdown filters, and paginate through search results. --- ## Enabling Browser Tools You can enable browser access per assistant or activate it on the fly during a conversation. ### 1. Default assistant configuration To grant an assistant persistent browser access: - **In the UI:** Open the assistant's **Configure** tab and toggle **Browser** under **Chat Defaults**. - **Through chat:** Tell the assistant: *"Enable browser access by default on this assistant."* ### 2. On-demand deferred loading (`load_browser_tools`) Toolbelt uses **deferred loading** for browser capabilities to keep conversation prompts lean. Rather than loading heavy browser tool schemas on every single message turn, the assistant calls `load_browser_tools()` when a browsing task begins. Once invoked, the dedicated browser tools become available on the assistant's very next step. --- ## The Browser Tool Suite When browser tools are loaded, your assistant gains access to five core actions: | Tool | Purpose | Primary Inputs | |---|---|---| | `browser_screenshot` | Captures a PNG screenshot of a web page or storage HTML file. | `url`, `selector`, `fullPage` | | `browser_interact` | Performs actions: navigate, click, fill, press key, scroll, wait. | `action`, `selector`, `text`, `key` | | `browser_get_text` | Extracts rendered plain text from the page or a target selector. | `selector`, `url` | | `browser_get_markdown` | Converts rendered DOM elements into clean, readable Markdown. | `selector`, `url` | | `browser_scrape` | Extracts structured arrays of elements matching a CSS selector. | `selector`, `url`, `attributes` | --- ## Visual Verification & Dashboard Vibe Coding One of the most powerful workflows for Browser Tools is closed-loop visual design verification for HTML dashboards and web apps. ``` [ Write HTML to Storage ] ───▶ [ Generate Signed URL ] ───▶ [ browser_screenshot ] ───▶ [ Inspect Visuals & Patch ] ``` ### The visual feedback loop 1. **Generate the app:** The assistant writes an HTML dashboard file (e.g., `apps/sales/index.html`) to workspace storage. 2. **Capture the render:** The assistant generates a signed URL for the storage file and calls `browser_screenshot`. 3. **Inspect the image:** The AI model inspects the captured screenshot to verify spacing, font contrast, chart rendering, and color alignment. 4. **Iterate:** If elements overlap or styles fail, the assistant uses `patch_text_file` to fix the CSS and captures a follow-up screenshot to confirm the correction. > **Tip:** You can ask your assistant at any time: *"Take a screenshot of the dashboard page you just wrote and verify that the layout looks clean on mobile."* --- ## Common Use Cases ### 1. Researching live documentation When researching third-party libraries, API references, or release announcements where content is rendered on the client side: ``` "Use browser tools to visit https://docs.example.com/changelog and summarize the breaking changes released this week." ``` The assistant navigates to the page, executes the client-side JavaScript, converts the DOM into Markdown via `browser_get_markdown`, and delivers an accurate summary. ### 2. Scraping structured tables and lists Extracting tabular data from web pages that don't offer public APIs: ``` "Scrape the pricing table at https://example.com/pricing and save the tiers and monthly rates into a DuckDB table." ``` The assistant uses `browser_scrape` targeting the table selector, parses the returned attributes and text, and loads the structured data into DuckDB with SQL. ### 3. Multi-step web interaction Navigating paginated catalogs or interacting with filter forms: ``` "Navigate to the developer blog, click the 'Next Page' button, and get the titles of the articles listed on page 2." ``` The assistant executes `browser_interact` with action `click` targeting the pagination selector, waits for the DOM update, and reads the updated article list. --- ## Best Practices & Safety - **Keep prompts focused:** Point the assistant to specific URLs and specify what data or selectors you want extracted to minimize unnecessary page hops. - **Respect rate limits and robots.txt:** Browser Tools run with standard desktop User-Agent headers. Avoid rapid-fire navigation loops against rate-limited endpoints. - **Bot mitigation & CAPTCHAs:** Headless browsers cannot solve interactive CAPTCHAs or Cloudflare challenge pages. If a target site enforces CAPTCHA verification, use an official API or connected service instead. - **Resource cleanup:** Headless browser sessions automatically close and recycle memory at the end of the assistant's tool-iteration turn. --- --- title: "Slack Integration" description: "Connect your organization's Slack workspace for outbound messaging, and link your personal Slack account to chat with assistants directly from Slack." updated: 2026-10-05 --- # Slack Integration Toolbelt connects to Slack in two distinct ways. Each has its own settings screen, and each serves a different purpose. Understanding the difference before you start will save you time. ## Which screen do you need? | | **My Organizations → Integrations** | **Integrations → Slack** | | --- | --- | --- | | **What it connects** | Your **organization** to a Slack workspace | Your **personal Toolbelt account** to your Slack user | | **Who sets it up** | Organization owners or admins | Every individual who wants to chat from Slack | | **What it enables** | Assistants in that organization can send outbound messages via the `send_external_message` tool — to channels, users, or DMs | You can use `/toolbelt`, DMs, and channel mentions; set a default assistant; and receive notifications addressed to you personally | | **How to remove it** | Click **Disconnect** — removes the organization's Slack workspace link | Click **Unlink Slack Account** — removes only your personal link | > **Important:** Completing organization setup does **not** automatically link your personal account. Unlinking your personal account (**Integrations → Slack**) does **not** disconnect the organization's Slack workspace. --- ## Set up the organization connection Use this to let assistants in your organization send Slack messages via `send_external_message`. > **Who should do this:** Organization owners or admins. You need permission to install apps in your Slack workspace. 1. In Toolbelt, go to **My Organizations** and select the organization you want to connect. 2. Open the **Integrations** tab for that organization (this is different from the top-level **Integrations** item in the sidebar). 3. Under **Slack Integration**, click **Install Slack App** to run the full OAuth flow, or click **Connect to ``** if you have already linked your personal Slack account and want to share that workspace with this organization. 4. Authorize Toolbelt in the Slack OAuth screen that opens. If you don't have permission to install apps, Slack will prompt you to request approval from a workspace administrator. Once connected, the panel shows **Connected** with an **Owner** badge and a **Disconnect** button. Assistants in this organization can now call `send_external_message` with `provider: "slack"` to post to channels or DM users. ### Sharing a Slack workspace across multiple organizations A single Slack workspace can serve more than one Toolbelt organization. When connected, the integration panel shows an **Organizations sharing this Slack workspace** list. The organization that owns the installation appears with an **Owner** badge; other organizations appear as connected entries. Owner-admins can remove a non-owner organization from the shared workspace by clicking **Remove** next to its name. Removing an organization prevents its assistants from being reached via the shared Slack workspace, but does not affect that organization's personal assistant access via DM with the Toolbelt bot. --- ## Reinstall the Slack app Reinstalling re-runs the Slack OAuth flow to grant updated permissions — for example, the `*:history` channel history scopes that enable mention-free thread replies. It does **not** disconnect your organization, affect existing chats, or unlink personal accounts. **When to reinstall:** If you see a yellow **Reinstall recommended** warning in the integration panel, Toolbelt has detected that the current installation is missing one or more thread-history permissions. Without these scopes, Toolbelt must be @mentioned in every message to continue a thread conversation. To reinstall: 1. Go to **My Organizations → Integrations → Slack Integration**. 2. Click **Reinstall** in the warning banner, or open **How it works** and click **Reinstall app** at the bottom. 3. Complete the Slack authorization screen. > **Tip:** If thread replies stop working and there is no warning banner, try a manual reinstall. The `*:history` scope is required for Toolbelt to read and reply in threads without being re-mentioned. --- ## Link your personal Slack account Use this so you can chat with assistants from Slack and receive notifications addressed to you personally. > **Who should do this:** Everyone who wants to use `/toolbelt`, DMs, or channel mentions in Slack. ### Option A: From Toolbelt 1. In the sidebar, go to **Integrations → Slack**. 2. Follow the on-screen prompts until the page shows **Connected! Your Slack account is linked to Toolbelt.** 3. Optionally, set a **Default Assistant** — messages that don't `@mention` a specific organization will route to this assistant automatically. ### Option B: From Slack 1. In any Slack channel or DM, type `/toolbelt`. 2. In the **Welcome** dialog, follow the link to generate a verification code. 3. Paste the code back into Slack to complete the link. Once linked, you can: - Use `/toolbelt hello` to chat with your default assistant - Use `/toolbelt @assistant_name hello` to target a specific assistant - Mention the Toolbelt bot in any channel > **Note:** Slack threads are capped at 25 messages per conversation. When a thread reaches this limit, start a new thread or DM the Toolbelt bot directly to continue. --- ## Sending messages from an assistant After the organization connection is in place, any assistant in that organization can send Slack messages with `send_external_message`. ```text provider: "slack" channel: "#general" // channel name or ID message: "Deploy complete." ``` You can also send to a specific user by their Slack user ID or by looking them up with `slackUserId`, `slackUserEmail`, or `slackUserName`. --- ## Troubleshooting **`send_external_message` returns an error even though Slack shows Connected** The organization-level connection may have been revoked from Slack's side. Go to **My Organizations → Integrations** and reconnect. **Toolbelt stops replying in threads unless I @mention it** The installation is missing the `*:history` channel scope. Reinstall the app from **My Organizations → Integrations → Slack Integration**. A yellow warning banner will appear if Toolbelt detects this automatically. **`/toolbelt` doesn't respond to me** Your personal account may not be linked. Go to **Integrations → Slack** and check the connection status. **I unlinked my personal account and now no one can use Slack** Your personal unlink only affects you. The organization connection is managed separately under **My Organizations → Integrations**. **I see a "Connect to ``" button alongside "Install Slack App" — what's the difference?** **Install Slack App** runs a full OAuth flow and installs the Toolbelt bot in a new Slack workspace. **Connect to ``** is a shortcut that links your organization to the Slack workspace already associated with your personal account — no reinstall needed, and it appears only when your personal account is already linked to a Slack workspace. --- --- title: "Toolbelt Bridge" description: "Run local MCP servers and local LLMs (Ollama, LM Studio, vLLM) on your machine and connect them securely to Toolbelt in the cloud." updated: 2026-10-02 --- # Toolbelt Bridge Toolbelt Bridge lets you connect private tools, internal databases, local filesystems, and locally hosted AI models on your own computer or private infrastructure to your Toolbelt assistants in the cloud. Because the Bridge establishes an **outbound-only encrypted WebSocket connection**, you never need to open inbound firewall ports, configure reverse proxies, or expose your local machine to the public internet. :::cards 3 ===card title: Single Native Binary icon: bridge Runs as a self-contained executable on macOS, Linux, and Windows. No Node.js runtime required to run the bridge itself. ===card title: Local LLM Runtimes icon: cpu Auto-detects Ollama, LM Studio, and vLLM models running on your machine and tunnels chat inference directly through the bridge. ===card title: Outbound-Only Tunnel icon: shield Connects outbound to Toolbelt over WebSocket. Your machine stays completely protected behind your local firewall or NAT. ===card title: Multi-Organization Support icon: building-2 Pair a single bridge installation with multiple organizations simultaneously, keeping access control isolated. ===card title: Local & Remote Management icon: sliders Manage servers and runtimes from the built-in local web dashboard (`http://127.0.0.1:4747`) or directly within the Toolbelt UI. ===card title: Team Sharing Controls icon: share-2 Exposed tools and models are private to you by default. Toggle organization sharing whenever you want teammates to use them. ::: ## How the Bridge Works When you run Toolbelt Bridge on your computer, it establishes an outbound TLS WebSocket connection to `wss://toolbelt.apexti.com/bridge`. 1. **Local MCP servers:** The bridge manages child processes running stdio-based MCP servers (e.g., via `npx`, `uvx`, or local binaries). When an assistant invokes a tool, Toolbelt routes the request through the WebSocket tunnel, the bridge invokes the process locally, and the response streams back to the cloud. 2. **Local AI models:** The bridge continuously polls local inference runtimes (such as Ollama or LM Studio). When you choose a local model in Toolbelt's chat picker, streaming inference requests are tunnelled over the WebSocket connection straight to your local hardware. > **Note:** Because all network traffic is initiated outbound by the bridge on your computer, it works seamlessly across standard home Wi-Fi networks, corporate VPNs, and strict enterprise firewalls without IT network changes. --- ## Installation & Download The Bridge is distributed as a single native binary with zero external runtime dependencies. ### Download options You can download the binary for your platform in two ways: 1. **Inside Toolbelt:** Go to **Bridges** in the global navigation and click **Download bridge**. The download card automatically highlights the asset matching your operating system. 2. **GitHub Releases:** Visit the [`apexti/toolbelt-bridge` releases page](https://github.com/apexti/toolbelt-bridge/releases) to download any release asset directly. | Operating System | Architecture | Binary Name | |---|---|---| | **macOS** | Apple Silicon (M1/M2/M3/M4) | `toolbelt-bridge-macos-arm64` | | **macOS** | Intel (x64) | `toolbelt-bridge-macos-x64` | | **Linux** | x64 | `toolbelt-bridge-linux-x64` | | **Linux** | ARM64 | `toolbelt-bridge-linux-arm64` | | **Windows** | x64 | `toolbelt-bridge-windows-x64.exe` | ### Running the Bridge Make the binary executable (on macOS/Linux) and launch it: ```sh chmod +x toolbelt-bridge-macos-arm64 ./toolbelt-bridge-macos-arm64 ``` When started, the bridge launches its background daemon and opens the local management UI in your browser at `http://127.0.0.1:4747`. > **Tip (macOS quarantine):** If macOS prevents the downloaded binary from opening, remove the quarantine attribute in your terminal before launching: > ```sh > xattr -d com.apple.quarantine ./toolbelt-bridge-macos-arm64 > ``` --- ## Pairing with Toolbelt Instead of manually generating and copying API keys, Toolbelt uses a fast, secure pairing code workflow. ### Pair an organization 1. In the Toolbelt web UI, navigate to the organization you wish to connect (or your **Personal** space). 2. Click **Bridges** in the main navigation. 3. Click **Pair a bridge**. Toolbelt displays a 6-character pairing code, a pair URL, and an equivalent CLI command (valid for 10 minutes). 4. Complete the pairing using either method: - **Local Web UI:** Open `http://127.0.0.1:4747` in your browser and paste the pair URL into the pairing dialog. - **Command Line:** Run the generated pair command in your terminal: ```sh toolbelt-bridge pair "https://toolbelt.apexti.com/bridge/pair?code=ABC123" ``` 5. The bridge automatically claims the code, obtains an org-scoped access token, and connects. In Toolbelt, your bridge card transitions to **Online**. > **Tip:** You can pair the same bridge installation with multiple organizations. Repeat the steps above while switched into each organization in Toolbelt. In the local bridge dashboard, you will see each paired organization listed independently. --- ## Managing Local MCP Servers Once your bridge is paired, you can run and manage local MCP servers directly on your machine. ### Adding a server You can add a server either from the local dashboard (`http://127.0.0.1:4747`) or remotely from the Toolbelt web UI: 1. In Toolbelt, go to **Bridges** and click on your bridge card to open the detail drawer. 2. Under **MCP servers**, click **Add server** (or **Browse registry** to pick from public catalog servers). 3. Specify the server configuration: - **Key:** Unique alphanumeric identifier (e.g. `filesystem` or `sqlite-db`). - **Command:** The executable to run (e.g. `npx`, `uvx`, `python`, `node`, or a direct binary path). - **Arguments:** Arguments passed to the executable (e.g. `-y @modelcontextprotocol/server-filesystem /Users/me/Documents`). - **Environment:** Optional environment variables in `KEY=VALUE` format. - **Working Directory:** Optional root folder for process execution. 4. Click **Add to bridge**. ### Runtime prerequisites The bridge launches your servers as local child processes: - Servers running via `npx` require **Node.js** installed on your machine. - Python servers running via `uvx` require **uv** installed. - Check the **Prerequisites** section of the local web dashboard (`http://127.0.0.1:4747`) to see what runtimes the bridge detected. ### Process monitoring & logs - **Automatic recovery:** The bridge monitors running server processes. If a server crashes, the bridge automatically restarts it (up to 5 times within a 10-minute window). - **Log inspection:** Server output and error streams are written to disk at `/logs/.log`. - **Remote control:** You can start and stop individual servers at any time from Toolbelt's detail drawer. --- ## Local AI Models (Ollama, LM Studio, vLLM) Toolbelt Bridge automatically discovers locally hosted LLMs on your machine, enabling your cloud assistants to run inference against your local GPU with zero API token costs and complete data privacy. ### Supported runtimes The bridge automatically probes local loopback endpoints every 30 seconds: | Runtime | Default Port | Auto-detected? | |---|---|---| | **Ollama** | `http://localhost:11434` | ✅ Automatic | | **LM Studio** | `http://localhost:1234` | ✅ Automatic | | **vLLM** | `http://localhost:8000` | ✅ Automatic | | **OpenAI-Compatible** | Custom | Configurable via local UI with Base URL & API Key | ### Exposing and selecting local models 1. Ensure your local LLM runtime (e.g. Ollama) is running on your machine. 2. In the bridge's local UI at `http://127.0.0.1:4747`, open **Local models**. 3. You will see a list of discovered models. Check the box for each organization where you want the model to be accessible. 4. In Toolbelt, open the model dropdown in any chat. Your local models appear under **Organization Models** (or personal models) tagged with their runtime (e.g. `Ollama`, `LM Studio`) and capability badges (such as image support). 5. When you prompt the assistant, the request streams through the bridge to your local hardware. > **Tip:** If you download a new model in Ollama or LM Studio while the bridge is already running, click **Refresh** in Toolbelt's Bridges drawer or wait up to 30 seconds for the next automatic poll. --- ## Organization Privacy & Sharing Toolbelt Bridge provides granular security controls over who can see and run your local resources: | Context | Visibility & Permissions | |---|---| | **Personal Space** | All exposed servers and models are strictly private to you. They never appear to other users. | | **Organization Space (Default)** | When exposed to an organization, servers and models are **owner-only**. Teammates cannot see them, call their tools, or run chat queries through them. | | **Organization Space (Shared)** | When you toggle **Share** on an MCP server or local model in the bridge detail drawer, it becomes available to **all members** of that organization. | ### Sharing a server or model 1. Open **Bridges** in Toolbelt while in your organization. 2. Click your bridge to open the detail drawer. 3. Next to any server or model, toggle the **Share** switch. 4. Once shared: - Teammates can enable the bridged MCP server on their assistants under [Services](https://docs.apexti.com/features/services.md). - Teammates can select the local model from their chat model picker. - Teammates **cannot** stop, start, reconfigure, or delete your bridge servers. Administrative control remains solely with you and organization admins. --- ## Updating the Bridge The bridge actively tracks releases published to GitHub to ensure you stay current with protocol and security updates. - **Automatic release checks:** The bridge checks for updates on startup and every 6 hours. - **One-click updates:** When an update is available, the local dashboard displays an **Update & restart** banner. Clicking it downloads the binary, verifies its SHA-256 checksum against `sha256sums.txt`, replaces the executable in-place, and restarts the process with your active arguments. - **Command line update:** You can also run: ```sh toolbelt-bridge update ``` - **Toolbelt UI alerts:** If your bridge is running an outdated version, Toolbelt displays an update badge on the bridge card linking to the latest release instructions. --- ## CLI Reference & Configuration ### Command-line options ```sh # Start the bridge daemon and open the local UI (default) toolbelt-bridge [serve] # Start headless (without launching browser) toolbelt-bridge serve --headless # Use a custom port for the local web UI (default: 4747) toolbelt-bridge serve --port 5000 # Pair using a pair code or full pairing URL toolbelt-bridge pair "https://toolbelt.apexti.com/bridge/pair?code=ABC123" # Update running instance to the latest release toolbelt-bridge update # Inspect bridge status and active connections toolbelt-bridge status # Display version toolbelt-bridge version ``` ### Configuration paths Configuration and org pairing tokens are stored in: - **macOS:** `~/Library/Application Support/toolbelt-bridge/config.json` - **Linux:** `~/.config/toolbelt-bridge/config.json` - **Windows:** `%APPDATA%\toolbelt-bridge\config.json` File permissions are restricted to `0600` because the file stores bridge tokens. You can override the configuration location by setting the `TOOLBELT_BRIDGE_CONFIG` environment variable. > **Note:** If you used the legacy Node-based bridge, you can migrate your existing configuration by passing `--config ` to the executable on first start. --- ## Troubleshooting | Problem | Cause | Solution | |---|---|---| | **Pairing code expired** | Pairing codes expire after 10 minutes | Click **New code** in Toolbelt's pairing dialog to generate a fresh code and URL. | | **Bridge shows "Offline" in Toolbelt** | Daemon was stopped or computer is asleep | Run `./toolbelt-bridge` to restart the daemon. Verify power settings allow background execution. | | **Port 4747 already in use** | Another service or bridge instance is using port 4747 | Pass `--port ` (e.g. `toolbelt-bridge serve --port 4848`). | | **macOS blocks executable** | Gatekeeper quarantine flag set on downloaded binary | Run `xattr -d com.apple.quarantine ` in terminal. | | **Local model not showing up** | Model runtime not running or model not exposed | Verify Ollama/LM Studio is running, then check the model checkbox in `http://127.0.0.1:4747` under **Local models**. | | **Tool execution fails** | Child process runtime missing (e.g. `npx` or `uvx`) | Install Node.js or `uv` on the machine running the bridge. Check the Prerequisites section in the local dashboard. | --- ## Related Topics - [Services](https://docs.apexti.com/features/services.md) — Connect integrations and enable them on your assistants. - [Custom MCP Servers](https://docs.apexti.com/features/custom-mcp-servers.md) — Build and host custom MCP servers directly in Toolbelt. - [Model Selection](https://docs.apexti.com/features/model-selection.md) — Compare model capabilities, speed, and cost tiers. - [Custom AI Providers](https://docs.apexti.com/features/custom-ai-providers.md) — Connect organization-level OpenAI-compatible API endpoints. --- --- title: "Using Toolbelt Assistants as MCP Servers" description: "Connect any Toolbelt assistant to Claude Desktop, Cursor, Windsurf, or other MCP-compatible clients — and run conversations in the full context of the assistant's instructions." updated: 2026-10-29 --- # Using Toolbelt Assistants as MCP Servers ## Overview Every Toolbelt assistant doubles as an MCP server. Connect it to any MCP-compatible client — Claude Desktop, Cursor, Windsurf, or your own tooling — and get immediate access to all the tools that assistant has enabled, governed by its system instructions. This opens up a practical working pattern: stay in your preferred AI client for day-to-day work, while routing tasks through a Toolbelt assistant that's already configured with the right services, memory, and instructions for the job. --- ## Get your MCP connection info Each assistant exposes its connection details from the **MCP Connection Info** panel in its settings. 1. Open the Toolbelt web UI. 2. Navigate to the assistant you want to connect. 3. Open its **Settings**. 4. Expand the **MCP Connection Info** section. You'll see two connection URLs and ready-to-paste config snippets for common clients. Use the **Copy** button to insert your real organization ID; the snippets show where to put your API key. ### Authentication Every MCP request must include your API key in the `Authorization` header: ``` Authorization: Bearer ``` Keep the key out of the URL. Query-string keys can appear in server logs, browser history, and referrer headers. Requests without the header return `401 Unauthorized`. > **Note:** The Toolbelt UI masks your API key by default. Use the eye icon to reveal it when you need to paste it into a client config. --- ## Connection types Toolbelt assistants support three transport options. ### Streamable HTTP (recommended) Implements the MCP spec 2025-03-26. A single endpoint handles JSON-RPC over POST and server notifications over GET (SSE). Use this for any client that supports it. **URL:** ``` https://toolbelt.apexti.com/api/workspaces/{workspace-id}/mcp ``` Send `Authorization: Bearer ` with each request. **Supported clients:** Cursor, Claude Desktop ### SSE (Server-Sent Events) The legacy SSE transport. Supported by a wider range of clients. **URL:** ``` https://toolbelt.apexti.com/api/workspaces/{workspace-id}/sse ``` Send `Authorization: Bearer ` with each request. **Supported clients:** Cursor, and any MCP client that supports the SSE transport ### STDIO Gateway For clients that only support STDIO-based MCP servers — such as Windsurf and Claude Desktop's native config format — use the `supergateway` npm package to bridge the SSE connection. No local install is required; `npx` fetches it on first run. **Supported clients:** Windsurf, Claude Desktop --- ## Client configuration The **MCP Client Configurations** panel in Settings provides ready-to-use snippets. Copy and paste them directly into your client's config file. ### Claude web and desktop Claude's web and desktop apps let you add a Toolbelt assistant directly from the chat interface — no config file editing required. 1. Click the **+** button in the bottom-left corner of the Claude chat window. 2. Select **Connectors**, then choose **Manage Connectors** (not "Add Connector"). 3. Inside the Manage Connectors panel, click the **+ Add Connector** button in the **Web** section at the top. 4. Paste your assistant's **Streamable HTTP URL** into the connection field. > **Tip:** Get your Streamable HTTP URL from your assistant's **Settings** page in Toolbelt. Under **MCP Connection Info**, click **Copy** next to the Streamable HTTP option — it includes your organization ID and API key pre-filled. Once connected, your Toolbelt assistant appears as an available MCP server inside Claude. You can then call any of its tools directly from a Claude conversation. > **Tip:** After connecting, click **Always allow** for all tool permissions using the single button at the top of the permissions prompt. Toolbelt manages its own fine-grained permissions — Claude's per-tool prompts are redundant overhead. > **Note:** Claude locks in the model when you start a chat — you can't switch to a more powerful model mid-conversation, and you can't change providers at all. If you need mid-conversation model switching, run the conversation inside Toolbelt directly where [model swapping](https://docs.apexti.com/features/model-swapping.md) is available. ### Cursor and Claude Desktop (HTTP) Add to your `~/.cursor/mcp.json` or equivalent: ```json "assistant-my-assistant-name": { "type": "http", "url": "https://toolbelt.apexti.com/api/workspaces/{workspace-id}/mcp", "headers": { "Authorization": "Bearer " } } ``` ### Cursor (SSE) ```json "assistant-my-assistant-name": { "url": "https://toolbelt.apexti.com/api/workspaces/{workspace-id}/sse", "headers": { "Authorization": "Bearer " } } ``` ### Windsurf and Claude Desktop (STDIO) For clients that require a STDIO-based connection, use `supergateway` to bridge the SSE transport: ```json "assistant-my-assistant-name": { "command": "npx", "args": [ "supergateway", "--sse", "https://toolbelt.apexti.com/api/workspaces/{workspace-id}/sse", "--oauth2Bearer", "" ] } ``` > The service name is automatically derived from your assistant's name in lowercase with spaces replaced by hyphens (e.g., `My Assistant` becomes `assistant-my-assistant`). The UI generates the exact snippet — just copy it. --- ## What you get in the third-party client Once connected, the client has access to all the tools that assistant has enabled: every service integration, wrench, and built-in Toolbelt capability. The assistant's system instructions are enforced server-side on every call. What you **don't** get is the assistant's chat history or memory within the third-party client. Conversations happen in that client's own thread — Toolbelt's chat history, persistent memory, and conversation context only apply to chats running inside Toolbelt itself. --- ## Running conversations in the assistant's full context If you want a prompt to fully execute *inside* a Toolbelt assistant — with its model, instructions, memory, and chat context — you can delegate to it from any third-party client using the `toolbelt` tool's `create_sub_chat` action. Instead of calling individual tools directly, you send a prompt **to the assistant itself**. It processes the request in its own context and returns the response to your current session. ### How to create a sub-chat Call the `toolbelt` tool with `action: "create_sub_chat"` and the following parameters: | Parameter | Required | Description | |---|---|---| | `targetAssistantId` | Yes | The ID of the Toolbelt assistant to send the message to. Find this in **Settings > General** for that assistant. | | `content` | Yes | The message or task to send. | | `priority` | No | `"low"`, `"normal"` (default), `"high"`, or `"urgent"`. | | `provider` | No | AI provider override: `"openai"`, `"gemini"`, `"anthropic"`, `"anthropic-vertex"`, or `"toolbelt"`. Defaults to the assistant's configured provider. | | `model` | No | Model override. For most tasks: `gemini-3.8-flash`, `claude-sonnet-5-5`, `gpt-6.1-terra`, or Crescent (`toolbelt`). For complex reasoning: `claude-opus-5-5`, `gemini-4-argon`, or `gemini-3.8-flash`. | `create_sub_chat` returns immediately with a `correlationId`. The assistant runs asynchronously. ### Waiting for the response After creating a sub-chat, call `toolbelt` with `action: "sleep"` to wait for it: ```json { "action": "sleep", "params": { "timeoutSeconds": 30, "wakeOnAnyComplete": true } } ``` When `sleep` returns with `wokeReason: "sub_chat_complete"`, the assistant's full response is in `subChats[].lastMessage`. Use it directly — no further polling needed. If `sleep` times out before the sub-chat finishes, call `toolbelt` with `action: "get_pending_sub_chats"` (no params required) to check status and retrieve completed responses. ### What this enables The combination of MCP connectivity and `create_sub_chat` gives you the best of both worlds: - **Your specialized assistants, anywhere.** A code reviewer, data analyst, or documentation writer — accessible from Cursor or Claude, running with their full Toolbelt configuration. - **No context switching.** Stay in your preferred client and get Toolbelt-quality responses inline. - **Responses come back to your session.** The sub-chat runs inside Toolbelt's infrastructure, but the result is delivered to your current conversation thread. > **Note:** Sub-chats created this way don't appear as top-level conversations in the Toolbelt UI. The target assistant must belong to the same Toolbelt organization as the API key you're using. --- ## Related pages - [Sub-Chats](https://docs.apexti.com/features/sub-chats.md) — parallel delegation between assistants inside Toolbelt - [Toolbelt Bridge](https://docs.apexti.com/features/bridge.md) — connect local MCP servers to your Toolbelt assistants - [API Access](https://docs.apexti.com/features/api-access.md) — REST API, API keys, and finding organization IDs --- --- title: "API Access" description: "Use the Toolbelt REST API to authenticate with an API key and integrate organizations, services, and tool management into your own applications." updated: 2026-11-16 --- # API Access The Toolbelt API lets you integrate your Toolbelt account directly into scripts, internal tooling, or external applications. Every operation available in the Toolbelt dashboard—listing connected services, managing organization resources, reading usage logs—is also available through the REST API. This page explains how to generate an API key, authenticate your requests, and make use of the key endpoints. > **Note:** The Toolbelt API is a standard HTTP/JSON REST API. All requests must be made over HTTPS. The base URL for all endpoints is `https://toolbelt.apexti.com`. --- ## Authentication Toolbelt uses **API key authentication** for programmatic access. Every API key is scoped to the user account that generated it. When you include your API key in a request, Toolbelt authenticates the call as that user and applies the same access controls that user has in the dashboard. ### Generate an API key 1. **Open your Account Settings:** Log in to Toolbelt and navigate to **Settings → Account**. 2. **Generate a new key:** Click **Generate API Key**. Toolbelt creates a new 64-character hex key and replaces any previously issued key. 3. **Copy and store your key securely:** The key is displayed once. Copy it immediately and store it in a secrets manager or environment variable. Toolbelt does not display the full key again after you leave the page. > **Warning:** Generating a new API key immediately invalidates your previous key. Any integrations using the old key will stop working. Update all dependent systems before rotating keys. --- ### Authenticate requests Pass your API key in the `Authorization` header using the `Bearer` scheme: ```http GET /api/services Authorization: Bearer ``` Alternatively, the API also accepts a cookie-based session token if you are calling from a browser context (for example, a dashboard page). For server-to-server or script use, always use the `Authorization` header with your API key. --- ## Core Endpoints ### User #### Get current user Returns the authenticated user's profile, their organization memberships, feature flags, and — importantly — the current API key. ```http GET /api/user/me Authorization: Bearer ``` **Response** ```json { "user": { "id": "usr_abc123", "email": "you@example.com", "name": "Your Name", "avatarUrl": "https://...", "apiKey": "a3f8c2d1e94b...", "isVerified": true, "personalOrgId": "org_personal_xyz", "organizations": [ { "id": "org_abc", "name": "Acme Corp", "role": "admin" } ], "featureFlags": ["pipedream", "sandbox-configured"] } } ``` #### Get feature flags Returns a map of enabled feature flags for the authenticated user. ```http GET /api/user/features Authorization: Bearer ``` **Response** ```json { "features": { "pipedream": true, "sandbox-configured": true } } ``` --- ### Services Services are the MCP servers and third-party integrations connected to your Toolbelt account. The services endpoints let you list, connect, and remove services programmatically. #### List services Returns all services authorized for the authenticated user, including whether each service is connected, owned, or shared. ```http GET /api/services Authorization: Bearer ``` **Query parameters** | Parameter | Type | Description | |---|---|---| | `organizationId` | string | Optional. Filter services by organization. Use `personal` for personal services, or provide an organization ID for team organizations. | **Response** ```json [ { "id": "svc_abc123", "name": "github", "serverId": "github", "description": "GitHub MCP server", "type": "apiKey", "authorized": true, "organizationId": "org_abc", "organizationName": "Acme Corp", "isOwned": true, "isShared": false, "isRunning": true } ] ``` > **Note:** The `authorized` field indicates whether the calling user has a connected credential for this service. A service can be visible in the list (as a discovered provider) without yet being authorized. #### List organization services Returns all services belonging to a specific organization. The calling user must be a member of the organization. ```http GET /api/organizations/:organizationId/services Authorization: Bearer ``` #### Connect a service Connects a service to your account by storing the service's API key or configuration. If a service with the same name already exists for the user/organization, this updates it. ```http POST /api/services/connect Authorization: Bearer Content-Type: application/json ``` **Request body** ```json { "serviceName": "github", "apiKey": "ghp_...", "organizationId": "org_abc" } ``` | Field | Type | Required | Description | |---|---|---|---| | `serviceName` | string | Yes | The identifier of the service to connect (e.g., `github`, `slack`). | | `apiKey` | string | One of | The API key for the service. Required if `config` is not provided. | | `config` | object | One of | A JSON configuration object. Required for services that use OAuth or structured config instead of a bare API key. | | `organizationId` | string | No | Organization to associate the service with. Omit for personal services. Use `personal` to explicitly target your personal organization. | **Response** ```json { "success": true, "message": "Successfully connected to 'github'", "service": { ... } } ``` #### Delete a service Removes a connected service. The calling user must own the service. ```http DELETE /api/services/:serviceId Authorization: Bearer ``` **Response** ```json { "success": true, "message": "Successfully deleted service" } ``` #### Toggle organization sharing Shares or un-shares a service with all members of its parent organization. Only the service owner can toggle this setting. The service must already belong to an organization. ```http PATCH /api/services/:serviceId/share-toggle Authorization: Bearer Content-Type: application/json ``` **Request body** ```json { "isOrganizationShared": true } ``` **Response** ```json { "success": true, "message": "Service is now shared with all organization members", "service": { ... } } ``` --- ### Usage Logs #### Get API usage logs Returns up to 100 of the most recent API call logs for the authenticated user. Logs can be filtered by organization context and include organization and chat attribution where available. ```http GET /api/user/logs Authorization: Bearer ``` **Query parameters** | Parameter | Type | Description | |---|---|---| | `organizationId` | string | Optional. Returns logs scoped to the organization. Admins and owners see logs for all organization members. Members see only their own logs (unless `canViewOrgLogs` is enabled on their membership). | **Response** ```json [ { "id": "log_abc123", "timestamp": "2026-04-02T12:00:00.000Z", "action": "POST /api/services/connect", "serviceName": "github", "status": 200, "isShared": false, "source": "workspace_chat", "assistantName": "My Assistant", "chatName": "Build deployment script", "userId": "usr_abc123", "userEmail": "you@example.com" } ] ``` > **Note:** Logs are sorted by timestamp descending and capped at 100 entries per request. This endpoint is read-only; logs cannot be deleted through the API. --- ## Error Responses The API uses standard HTTP status codes. All error responses include an `error` field with a human-readable message. | Status | Meaning | |---|---| | `400` | Bad request — a required field is missing or a parameter has an invalid value. | | `401` | Unauthorized — the `Authorization` header is missing or the API key is invalid. | | `403` | Forbidden — the authenticated user does not have permission to perform this action. | | `404` | Not found — the requested resource does not exist or the user does not have access to it. | | `500` | Internal server error — something went wrong on the Toolbelt side. | **Example error response** ```json { "error": "Service not found or you don't have permission" } ``` --- ## Rate Limits > **Warning:** The Toolbelt API does not currently enforce per-IP or per-key rate limits at the HTTP layer. However, all API calls are logged and monitored. Abnormal call volumes may result in account review or temporary suspension. Build your integrations to be polite: cache responses where possible and avoid polling loops with intervals shorter than 60 seconds. As a practical guideline: - **Read endpoints** (`GET /services`, `GET /user/me`, `GET /user/logs`): safe to call on demand; avoid calling more than once per minute in an automated loop. - **Write endpoints** (`POST /services/connect`, `DELETE /services/:serviceId`): treat these as low-frequency operations; they broadcast real-time updates to connected clients and trigger cache invalidation. --- ## Common Patterns ### Check which services are connected before running automation Before executing a workflow that depends on a specific service (e.g., GitHub), verify it is connected and running: ```javascript const res = await fetch("https://toolbelt.apexti.com/api/services", { headers: { Authorization: `Bearer ${process.env.TOOLBELT_API_KEY}` }, }); const services = await res.json(); const github = services.find( (s) => s.serverId === "github" && s.authorized && s.isRunning ); if (!github) { throw new Error("GitHub service is not connected. Please connect it in Toolbelt."); } ``` --- ### Connect a service during CI/CD setup Automate service connection as part of a CI/CD bootstrap script: ```bash curl -s -X POST https://toolbelt.apexti.com/api/services/connect \ -H "Authorization: Bearer $TOOLBELT_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "serviceName": "github", "apiKey": "'"$GITHUB_TOKEN"'", "organizationId": "'"$TOOLBELT_ORG_ID"'" }' ``` --- ### Retrieve logs for audit reporting Pull the last 100 logs for a team organization and write them to a file: ```javascript const res = await fetch( `https://toolbelt.apexti.com/api/user/logs?organizationId=${ORG_ID}`, { headers: { Authorization: `Bearer ${process.env.TOOLBELT_API_KEY}` }, } ); const logs = await res.json(); // logs is an array sorted most-recent-first, up to 100 entries fs.writeFileSync("toolbelt-audit.json", JSON.stringify(logs, null, 2)); ``` --- ### Rotate your API key safely ```javascript // 1. Generate the new key const res = await fetch("https://toolbelt.apexti.com/api/generate-api-key", { method: "POST", credentials: "include", // Session-based; use the dashboard or a logged-in browser context }); const { apiKey } = await res.json(); // 2. Update your secrets manager with the new key await secretsManager.putSecretValue({ SecretId: "TOOLBELT_API_KEY", SecretString: apiKey }); // 3. The old key is now invalid — update any other consumers before proceeding ``` > **Warning:** The `POST /api/generate-api-key` endpoint requires an active browser session (cookie-based auth), not an API key. Use it from the Toolbelt dashboard, or automate it only from a context where you have a valid session cookie. --- ## Personal vs. Organization Context Many endpoints accept an `organizationId` query parameter or request body field. This controls which resource namespace the operation targets. | Value | Meaning | |---|---| | Omitted | Defaults to the calling user's personal organization. | | `personal` | Explicitly targets personal services and logs. Equivalent to omitting the parameter. | | `` | Targets a specific team organization. The calling user must be a member of that organization. | Your `personalOrgId` is returned as part of the `GET /api/user/me` response. Store it if you need to explicitly target your personal namespace in multi-organization workflows. --- --- title: "Voice & Speech APIs" description: "Programmatic REST endpoints for text-to-speech synthesis, Whisper speech-to-text transcription, and turnkey voice chat." updated: 2026-10-23 --- # Voice & Speech APIs Toolbelt provides dedicated REST endpoints for text-to-speech (TTS), speech-to-text (STT), and conversational voice turns. These APIs let you build voice-enabled automations, transcribe audio recordings, synthesize spoken notifications, or connect hardware clients like IoT devices and smartwatches directly to your assistants. :::cards 3 ===card title: Text-to-Speech (TTS) icon: radio-tower Convert text strings into WAV or MP3 audio buffers using OpenAI or Gemini Flash TTS models. ===card title: Speech-to-Text (STT) icon: file-text Transcribe spoken audio files up to 25MB using OpenAI Whisper. ===card title: Device & IoT Chat icon: smartphone Turnkey voice chat endpoints accepting raw audio from microcontrollers and smartwatches. ::: ## Authentication All voice endpoints require authentication using a standard Toolbelt API key: ```bash Authorization: Bearer ``` Alternatively, pass the key as a query parameter (`?apikey=`). For full details on generating and scoping keys, see [API Access](https://docs.apexti.com/features/api-access.md). ## OpenAI Text-to-Speech (`POST /api/voice/tts`) Converts text into spoken audio using OpenAI TTS models. ### Endpoint ```http POST /api/voice/tts Content-Type: application/json ``` ### Request Parameters | Field | Type | Required | Default | Description | |---|---|---|---|---| | `text` | string | Yes | — | The text to synthesize into speech. | | `voice` | string | No | `alloy` | Voice ID: `alloy`, `echo`, `fable`, `onyx`, `nova`, or `shimmer`. | | `speed` | number | No | `1.0` | Playback speed from `0.25` to `4.0`. | | `format` | string | No | `wav` | Audio format: `wav` (recommended for embedded devices) or `mp3`. | ### Example Request ```bash curl -X POST https://toolbelt.apexti.com/api/voice/tts \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -d '{ "text": "Your scheduled backup task completed successfully with zero errors.", "voice": "nova", "speed": 1.0, "format": "mp3" }' \ --output notification.mp3 ``` ### Response Returns raw binary audio with the appropriate `Content-Type`: - `audio/wav` when `format` is `wav`. - `audio/mpeg` when `format` is `mp3`. ## Workspace Gemini TTS (`POST /api/workspaces/:id/tts`) Generates speech using Google's Gemini Flash TTS models with assistant credit metering, optional multi-speaker dialogue, and automatic file saving to assistant media storage. This is the same backend engine that powers `sdk.tts` in the Dashboard SDK. ### Endpoint ```http POST /api/workspaces//tts Authorization: Bearer Content-Type: application/json ``` ### Request Parameters | Field | Type | Required | Default | Description | |---|---|---|---|---| | `text` | string | Conditional | — | Spoken text (max 5,000 characters in workspaces; 1,500 on public dashboards). Required if `turns` is omitted. | | `voice` | string | No | `Kore` | Prebuilt voice name: `Kore`, `Puck`, `Charon`, `Zephyr`, `Fenrir`, etc. | | `style` | string | No | — | Natural language delivery description (e.g., *"calm and professional"*). | | `model` | string | No | `gemini-3.8-flash-lite-tts` | `gemini-3.8-flash-lite-tts` (fast read-aloud) or `gemini-3.8-flash-tts` (higher fidelity). | | `save` | boolean | No | `false` | When `true`, automatically persists the generated WAV file to assistant media storage. | | `turns` | array | Conditional | — | Dialogue array of `{ speaker, text, style? }`. Required for multi-speaker synthesis. | | `speakers` | array | Conditional | — | Speaker mapping array of `{ speaker, voice }` (supports up to 2 speakers). | ### Example Request (Single Speaker with Storage Save) ```bash curl -X POST https://toolbelt.apexti.com/api/workspaces//tts \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -d '{ "text": "Executive summary: Monthly revenue increased 14 percent. Server uptime remained at 99.98 percent.", "voice": "Kore", "style": "confident and authoritative", "save": true }' ``` ### Response ```json { "mimeType": "audio/wav", "data": "", "dataUrl": "data:audio/wav;base64,", "model": "gemini-3.8-flash-lite-tts", "file": { "path": "media/audio/tts-2026-10-23-abc123.wav", "url": "https://storage.googleapis.com/.../tts-2026-10-23-abc123.wav?..." } } ``` ## Speech-to-Text (`POST /api/voice/stt`) Transcribes audio recordings into text using OpenAI Whisper (`whisper-1`). ### Endpoint ```http POST /api/voice/stt Content-Type: multipart/form-data ``` ### Request Parameters Send multipart form fields: | Field | Type | Required | Description | |---|---|---|---| | `audio` | binary file | Yes | Audio file buffer (WAV, MP3, M4A, etc.). Maximum size is 25MB. | | `language` | string | No | Two-letter ISO language code (e.g., `en`, `es`, `de`). | | `prompt` | string | No | Optional guiding prompt to clarify technical terms or acronyms. | ### Example Request ```bash curl -X POST https://toolbelt.apexti.com/api/voice/stt \ -H "Authorization: Bearer " \ -F "audio=@meeting-clip.wav" \ -F "language=en" ``` ### Response ```json { "transcript": "Let's review the customer onboarding checklist for the staging rollout." } ``` ## Conversational Voice Chat (`POST /api/voice/chat`) A single-turn endpoint that handles transcription, model reasoning, and speech synthesis in one request. You submit an audio recording, and Toolbelt returns a spoken audio response along with base64-encoded transcript headers. ### Endpoint ```http POST /api/voice/chat Content-Type: multipart/form-data ``` ### Request Parameters | Field | Type | Required | Default | Description | |---|---|---|---|---| | `audio` | binary file | Yes | — | The user's spoken audio (WAV). | | `workspaceId` | string | No | — | Target assistant workspace ID to apply its model, instructions, and tools. | | `voice` | string | No | `alloy` | TTS voice to use for the response. | ### How It Works 1. Toolbelt transcribes the uploaded audio using Whisper. 2. If `workspaceId` is provided, Toolbelt applies the assistant's system instructions and model (defaulting to `gpt-4o-mini`). 3. An instruction is automatically appended: *\"Keep responses concise since they will be spoken aloud.\"* 4. The generated text response is synthesized into speech and returned as `audio/wav`. ### Response Headers The audio response binary is accompanied by base64-encoded HTTP headers containing the textual dialogue: - `X-Transcript`: Base64-encoded string of what the user said. - `X-Response-Text`: Base64-encoded string of what the assistant answered. ### Example Request ```bash curl -X POST https://toolbelt.apexti.com/api/voice/chat \ -H "Authorization: Bearer " \ -F "audio=@query.wav" \ -F "workspaceId=" \ -F "voice=nova" \ --output reply.wav ``` To decode the text transcript from the response headers: ```bash # In bash / macOS: echo "" | base64 --decode ``` ## Device & IoT Endpoint (`POST /api/voice/chat/device`) Built specifically for resource-constrained hardware such as smartwatches, ESP32 microcontrollers, and IoT hubs that cannot parse multipart forms or handle complex WebSocket handshakes. ### Characteristics - **Raw binary payload:** Accepts raw `audio/wav` byte streams directly in the HTTP request body (`application/octet-stream` or `audio/wav`). - **Device authentication:** Authenticates via device tokens provisioned through `/api/devices`. - **Ultra-compact response:** Returns raw `audio/wav` (24kHz, 16-bit mono) formatted for direct playback through hardware audio codecs. - **Concise voice prompt:** Enforces strict smartwatch-friendly conciseness in assistant replies. ## Listing Available Voices (`GET /api/voice/voices`) Returns the current catalog of supported TTS voices. ```http GET /api/voice/voices Authorization: Bearer ``` ### Response ```json [ { "id": "alloy", "name": "Alloy", "gender": "neutral" }, { "id": "echo", "name": "Echo", "gender": "male" }, { "id": "fable", "name": "Fable", "gender": "neutral" }, { "id": "onyx", "name": "Onyx", "gender": "male" }, { "id": "nova", "name": "Nova", "gender": "female" }, { "id": "shimmer", "name": "Shimmer", "gender": "female" } ] ``` --- --- title: "Auto-DuckDB" description: "When tool outputs are too large for the model context, Toolbelt materializes them into a DuckDB database so your assistant can query the full dataset with SQL." updated: 2026-06-09 --- # Auto-DuckDB ## What is Auto-DuckDB? Some MCP tools return more data than fits comfortably in a single model context window. **Auto-DuckDB** is a Toolbelt feature that intercepts those oversized tool outputs, loads them into a **DuckDB** database, and uses the model to infer a sensible schema. Your assistant can then run **SQL** against the full result set instead of working from a truncated sample. > **Note:** Auto-DuckDB is about **analyzing large structured outputs** (for example, big JSON or tabular results). It complements [Organization Storage](https://docs.apexti.com/features/storage.md) and the [Dashboard SDK](https://docs.apexti.com/features/dashboard-sdk.md), which handle files and custom HTML dashboards respectively. --- ## How it works 1. A connected tool returns output that would exceed safe context limits. 2. Toolbelt materializes that data into DuckDB with an **AI-generated schema** that matches the shape of the data. 3. The assistant **writes and runs SQL** (for example, filters, aggregations, and joins) to explore the data and answer your questions. You get the full dataset in a queryable form, not a lossy summary forced into a small context window. --- ## Why it matters - **No silent truncation** — the assistant works against the real data volume. - **Familiar interface** — SQL is a stable way to slice large results. - **Repeatable analysis** — the same materialized data can support follow-up questions without re-fetching everything from scratch. --- ## Limitations Behavior and limits (maximum rows, storage duration, and which tool types are eligible) may evolve with the product. If something does not materialize as expected, check the assistant run logs and your organization’s connected tools. --- --- title: "Organization & Workspace Storage" description: "Store files, media, and data artifacts in Google Cloud Storage with conversational file editing and semantic document indexing (RAG)." updated: 2026-11-16 --- # Organization & Workspace Storage Every Toolbelt assistant and organization has access to dedicated cloud storage backed by Google Cloud Storage (GCS). When an assistant generates an image, writes a dashboard app, exports a dataset, or analyzes a document, those artifacts persist in cloud storage. Beyond simple file hosting, Toolbelt storage provides conversational file management tools and built-in **Document Indexing (Ephemeral RAG)**, enabling semantic vector search across large documentation sets, PDFs, and data dumps without consuming conversational context tokens. :::cards 3 ===card title: Scoped Storage icon: folder Separate workspace storage for personal assistant files and organization shared storage for team-wide assets and documents. ===card title: Semantic Indexing (RAG) icon: search Index PDFs, DOCX, CSV, and text files into an ephemeral knowledge index to perform sub-second semantic retrieval during conversations. ===card title: Conversational File Tools icon: wrench Read, write, patch, move, rename, and grep storage files directly in chat without downloading files locally or rewriting entire documents. ::: --- ## Storage Scopes Toolbelt separates storage into two distinct scopes: | Scope | Identifier | Purpose | Access Control | |---|---|---|---| | **Workspace Storage** | `scope: "assistant"` *(default)* | Scoped to a specific assistant. Holds generated dashboards, temporary outputs, DuckDB files, and personal drafts. | Private to the assistant and its authorized users. | | **Organization Shared Storage** | `scope: "org"` | Shared across the entire organization. Holds brand assets, style guides, organization-wide reference docs, and shared datasets. | Accessible by all organization members and shared assistants. | --- ## Document Indexing & Semantic Search (RAG) When working with long documents (such as 100-page policy manuals, technical specifications, or large CSV catalogs), reading the entire file into an LLM context window is slow and expensive. Toolbelt includes native **Document Indexing** that automatically chunks text and document files into a vector index for semantic retrieval. ### How It Works 1. **Index a File:** When you or your assistant calls `index_storage_file`, Toolbelt parses the file (PDF, DOCX, CSV, HTML, TXT, MD), splits it into semantic chunks, and builds a vector index in background storage. 2. **Query the Index:** When asking questions, the assistant uses `search_documents` with a targeted natural-language query. 3. **Context Injection:** Only the top relevant passages (ranked by semantic relevance) are retrieved and injected into the conversation. ### Indexing Actions | Action | Parameters | Description | |---|---|---| | `index_storage_file` | `fileName`, `scope` (`assistant` \| `org`) | Add or re-index a single storage file into the knowledge base. | | `index_storage_files` | `fileNames`, `scope` | Bulk index multiple storage files at once. | | `search_documents` | `query`, `limit` (default: 5) | Perform semantic vector search across indexed documents. | | `list_indexed_documents` | None | List all currently indexed documents in the workspace and shared library. | | `remove_indexed_document` | `fileName`, `scope` | Remove a document and its embeddings from the index. | > **Tip:** You can ask your assistant in plain English: *"Index the Q3 financial report in storage and tell me what the total operating margin was."* The assistant will index the file, search for the relevant passages, and provide the answer. --- ## Conversational File Tools Assistants can inspect, manage, and modify storage files directly during a conversation using native storage tools: - **`list_storage_files`:** Lists files in workspace or organization shared storage. Supports directory navigation via `prefix`, substring filtering via `search`, and pagination limits (`maxResults`). - **`read_storage_file`:** Reads raw text, line windows (`startLine`, `lineCount`), or returns inline images for JPG/PNG/WebP files. For HTML, supports `mode: "skeleton"` for fast structural analysis. - **`write_text_file`:** Writes brand new files or replaces small files in storage. - **`patch_text_file`:** Performs atomic find-and-replace patches on existing source files (`searchBlock` → `replaceBlock`) without rewriting unrelated lines. - **`move_storage_file`:** Moves or renames files and directories across paths and storage scopes. - `source`: The full path of the file or folder to move (e.g., `temp/draft-report.csv`). - `destination`: The full destination path, including the new file name (e.g., `reports/2026/q3-report.csv`). - `scope`: The target storage scope (`assistant` for workspace storage, or `org` for shared organization storage). - **`rename_storage_file`:** Renames a file or folder in place within its current directory. - `fileName`: The current path/name of the file or directory. - `newName`: The new name only (do not include directory slashes). - `scope`: The storage scope (`assistant` or `org`). - **`delete_storage_file`:** Deletes a file from workspace or organization shared storage. - **`grep_storage_file`:** Searches files across storage using regular expressions to locate lines and edit targets. - **`get_storage_file_url`:** Generates short-lived signed URLs for browser downloads, `` tags, or DuckDB queries against remote Parquet/CSV files. - **`upload_file_to_storage`:** Uploads base64-encoded binary or media file content (PDFs, images, ZIPs, datasets) directly to storage. - **`get_storage_file_metadata`:** Inspects file metadata including byte size, MIME content type, line count, and content hash without fetching the entire payload. - **`get_storage_stats`:** Returns storage usage statistics (total file count and consumed byte volume) for workspace or organization storage. - **`read_html_element`:** Extracts specific DOM elements by CSS selector for surgical HTML modifications. --- ## Storage Permissions Storage operations respect organization permission levels: | Role / Permission | Allowed Operations | |---|---| | **Member (View)** | List files, download files, generate signed URLs, search indexed documents. | | **Member (Edit)** | Upload files, write/patch/move/rename files, index documents, delete files. | | **Admin / Owner** | Disable storage, manage organizational quotas, initialize storage buckets. | --- ## API Reference (REST) ### 1. Upload a File ```http POST /api/workspaces/{workspaceId}/storage/upload Content-Type: multipart/form-data file: [binary payload] fileName: "financial-report.pdf" scope: "assistant" ``` ### 2. List Files ```http GET /api/workspaces/{workspaceId}/storage/files?prefix=reports/&maxResults=50 ``` ### 3. Get a Signed URL ```http GET /api/workspaces/{workspaceId}/storage/files/{fileName}/url?action=read&expiresIn=3600 ``` **Response:** ```json { "success": true, "url": "https://storage.googleapis.com/...signed-url...", "expiresIn": 3600 } ``` ### 4. Delete a File ```http DELETE /api/workspaces/{workspaceId}/storage/files/{fileName} ``` --- ## Related Topics - [Dashboard SDK](https://docs.apexti.com/features/dashboard-sdk.md) — Read and render storage images and assets inside custom apps. - [Auto-DuckDB](https://docs.apexti.com/features/auto-duckdb.md) — Query structured CSV and Parquet files in storage using SQL. - [Security & Compliance](https://docs.apexti.com/security/overview.md) — Storage encryption at rest and access control policies. --- --- title: "Dashboards" description: "Build, customize, and share interactive data dashboards directly from your organization." updated: 2026-11-16 --- # Dashboards Dashboards allow you to visualize your organization data, build custom interactive tools, and share them securely with your team or the public. By combining database files, SQL queries, and AI assistance, you can turn raw data into actionable insights in minutes. ## Building Your Dashboard Your dashboard is built on a flexible, drag-and-drop grid system. You can add multiple widgets, drag them into position, and resize them from a compact single column to a full-width row. To get started, toggle **Edit Mode** in the dashboard header. This reveals the widget controls, allowing you to add, move, and configure your layout. ## Available Widgets Toolbelt provides several built-in widgets to handle different types of data and interactions: :::cards 2 ===card title: Data Visualizations icon: chart-simple **Charts, Tables, and Metrics.** Connect these widgets to your organization databases. Write custom SQL queries to render bar charts, line graphs, pie charts, data tables, or single-value KPI metrics. ===card title: Controls & Filters icon: sliders **Interactive Inputs.** Add dropdowns, checkboxes, and date pickers. Controls update URL parameters which can be referenced dynamically in your other widgets' SQL queries using `{{paramName}}`. ===card title: Static Content icon: file-lines **Text & File Viewers.** Embed markdown or HTML directly, or read static content from a file in your organization storage. Use the File Viewer to navigate and display files directly on the dashboard. ===card title: Custom & AI icon: code **Custom JS & Chat.** Write your own Custom Widget using HTML and JavaScript, complete with access to your organization's MCP tools. Add a Chat Widget to provide an ephemeral AI assistant directly on the page. ::: ## AI-Assisted Building You don't need to be a SQL expert or a frontend developer to build complex dashboards. Toolbelt's AI is integrated directly into the widget configuration process: - **AI Query Builder:** When configuring a Chart, Table, or Metric, select your database file and click the AI Query Builder. Describe what you want to see, and the AI will analyze your database schema and generate the correct SQL query for you. - **Custom Code Generator:** When building a Custom Widget, describe the layout and functionality you want. The AI will generate the required HTML and JavaScript, automatically hooking into any enabled MCP tools in your organization. ## Publishing and Sharing Once your dashboard is ready, you can share it outside of your organization using Public Access settings. When you make a dashboard public, Toolbelt generates a secure, unique link. By default, public dashboards are rendered entirely server-side to prevent unauthorized access to your raw organization data. ### The Public Bridge If your public dashboard includes interactive elements—like a Chat widget, or a Custom Widget that needs to run tools or execute SQL—you must configure the **Public Bridge**. The Public Bridge acts as a strict security gateway between public viewers and your private organization. To keep your data secure, you must explicitly configure: 1. **Allowed Domains:** Restrict which websites are allowed to embed your dashboard. 2. **Capabilities:** Individually toggle whether public viewers can use Chat, execute SQL, or run MCP tools. 3. **Allowed Tools & Databases:** Explicitly allowlist *only* the specific MCP tools and database files the public dashboard is permitted to access. 4. **Read-Only SQL:** The bridge automatically intercepts and blocks any SQL queries that attempt to modify data (INSERT, UPDATE, DELETE). > **Warning:** Public dashboards that use the bridge expose organization capabilities to unauthenticated users. Always follow the principle of least privilege: enable only the capabilities and tools the dashboard actually needs. ### Embedding full dashboards To embed your dashboard seamlessly into an existing website or portal, append `/embed` to your public dashboard URL. This removes the Toolbelt navigation headers and watermarks, providing a clean, white-labeled appearance. ### Embedding the Standalone Chat Widget (`/widgets/chat`) In addition to full dashboards, Toolbelt serves an isolated, standalone chat widget at `/widgets/chat`. You can embed this widget as an iframe inside any external web application, static site, Notion page, or internal portal to give users an interactive assistant chat: ```html ``` | Parameter | Type | Description | |---|---|---| | `workspaceId` | string | Target assistant UUID to connect the conversation to. | | `title` | string | Display title rendered in the widget header. | | `config` | JSON string | Optional configuration object, e.g. `{"showSaveButton": false}` to hide the conversation save action. | The standalone widget is styled with Shoelace components, responds gracefully to mobile viewports, and executes within an isolated Content Security Policy (CSP). ### JSON API For programmatic access, append `/json` to your public dashboard URL. This returns the fully rendered dashboard data as JSON, which you can consume in your own applications or scripts. ### Link Expiration You can optionally set an expiration date on your public dashboard link. Once the link expires, it will automatically return a `403 Dashboard Expired` error. This is useful for time-limited reports or temporary client-facing views. --- --- title: "Public Dashboards & Custom Domains" description: "Share interactive dashboards with external users through secure public links or branded custom domains — with fine-grained control over what data, tools, and voice capabilities are exposed." updated: 2026-11-16 --- # Public Dashboards & Custom Domains Every Toolbelt dashboard starts as a private organization tool. But some dashboards are built to be seen by people outside your organization — customers viewing a status page, prospects exploring a live demo, or stakeholders reviewing a report. Public Dashboards let you share interactive HTML apps with anyone through a secure link or your own custom domain, without requiring viewers to log in to Toolbelt. This page explains what Public Dashboards are, how the security model protects your organization, how to configure custom domains with automatic SSL, and how to publish and share your work. :::cards 3 ===card title: External Sharing icon: globe Share a unique link or branded custom domain with anyone — customers, partners, or stakeholders — without requiring a Toolbelt login. ===card title: Custom Domains icon: link Point your own domain (e.g., `dashboards.acme.com`) at Toolbelt with automated DNS verification and zero-touch Let's Encrypt SSL certificates. ===card title: Secure by Default icon: shield-check The Public Bridge enforces a strict allowlist. Every tool, database, SQL write, and audio capability must be explicitly permitted before public viewers can access it. ::: --- ## How Public Dashboards Work When you mark a dashboard page as public, Toolbelt generates a unique, unguessable URL. Anyone with that URL can view the page — but what they can *do* on that page is tightly controlled. Toolbelt draws a clear line between two types of viewers: - **Authenticated viewers** (logged-in team members inside Toolbelt) have full bridge access. They can use all tools, query any database, and chat with the assistant — no extra configuration needed. - **Public viewers** (unauthenticated, visiting via the public URL or custom domain) are restricted by the **Public Bridge** security policy you configure. This distinction means you never weaken security for your team by sharing a dashboard externally. --- ## Security & the Public Bridge The Public Bridge is the security gateway that sits between public viewers and your private organization. It intercepts every request from the dashboard's frontend code and enforces your policy before anything reaches your data. > **Warning:** Public dashboards expose organization capabilities to unauthenticated users. Always follow the principle of least privilege: enable **only** the capabilities and tools the dashboard actually needs. ### Capabilities Capabilities are the top-level switches that control what types of operations a public dashboard can perform. Each capability is independently toggled: | Capability | What it allows | Default | |---|---|---| | `listTools` | Discover available MCP tool names | Off | | `runTool` | Execute MCP tools from the allowlist | Off | | `executeSql` | Run DuckDB SQL queries against allowed databases | Off | | `sqlWrites` | Allow `INSERT`, `UPDATE`, `DELETE`, and DDL statements | Off | | `chat` | Send messages to the organization assistant | Off | | `tts` | Allow `sdk.tts.generate()` (Gemini TTS, max 1,500 chars). Billed to workspace owner. | Off | | `liveAudio` | Allow `sdk.liveAudio.start()` (real-time voice calls). Minutes billed to workspace owner. | Off | If a capability is disabled, the Public Bridge rejects requests of that type — regardless of what the dashboard's code attempts to do. ### Voice & Audio on Public Dashboards When you enable `tts` or `liveAudio` on a public dashboard, external visitors can hear spoken summaries or speak directly with your workspace assistant through their browser: - **Cost and billing:** Public viewers do not authenticate. All TTS synthesis tokens and Live Audio connection minutes are billed directly to the workspace owner's organization credit balance. - **TTS length cap:** Public TTS requests are strictly capped at 1,500 characters per generation (compared to 5,000 characters in private workspaces) to prevent credit exhaustion. - **Single-use audio tickets:** When a public visitor starts a voice conversation with `sdk.liveAudio.start()`, Toolbelt mints a temporary, single-use ticket (`/bridge/live-audio/ticket`) rather than exposing raw API keys or session credentials. ### Allowed Tools (Allowlist) When you enable the `runTool` capability, you must also provide an explicit list of tool names the dashboard is permitted to execute. This is a strict allowlist — any tool not on the list is blocked. ```json "allowedTools": [ "GitHub_search_repositories", "read_storage_file", "get_storage_file_url" ] ``` > **Tip:** If your public dashboard displays images or files from organization storage, add `read_storage_file` and `get_storage_file_url` to the allowlist. These are not inferred automatically from HTML source code — you must include them manually. ### Allowed Databases When you enable the `executeSql` capability, you must specify which DuckDB database files the dashboard can query: ```json "allowedDatabases": [ "analytics.duckdb", "public-metrics.duckdb" ] ``` Only databases on this list are accessible. Queries referencing other files are rejected at the bridge level, before they reach DuckDB. ### SQL Restrictions By default, the Public Bridge blocks **all** mutating SQL statements — `INSERT`, `UPDATE`, `DELETE`, and DDL operations like `CREATE TABLE` or `DROP`. Public viewers can only run `SELECT` queries. If your dashboard requires write operations (for example, a public form that inserts survey responses), you can opt in by enabling the `sqlWrites` capability. This applies only to the databases in your `allowedDatabases` list. > **Warning:** Enabling `sqlWrites` allows unauthenticated public users to insert or modify records in the allowed databases. Always ensure proper validation exists on the fields your form modifies. ### Allowed Domains (Embedding Restrictions) When you embed a public dashboard in an external website using an ` ``` --- ## Custom Domains Toolbelt allows you to serve any public dashboard directly from your company's own custom domain (e.g., `status.yourcompany.com` or `metrics.clientportal.io`) instead of the default Toolbelt URL. ### How Custom Domains Work 1. **Add Your Domain:** In the dashboard's Publishing drawer, enter your custom hostname. Toolbelt generates a **pending domain claim** with a unique DNS verification token and the target server IP. 2. **Add DNS Records:** In your DNS provider (Cloudflare, Route 53, Namecheap, etc.), add two DNS records: - **A Record:** Point your hostname (e.g., `dashboards.yourcompany.com`) to the provided Toolbelt server IP. - **TXT Record:** Add a verification record at `_toolbelt-verify.dashboards.yourcompany.com` containing the unique verification token. 3. **Verify:** Click **Verify** in Toolbelt. Toolbelt queries public DNS resolvers to confirm both records. The TXT token guarantees that only the authentic DNS owner can claim the hostname. 4. **Automatic SSL/TLS:** Once verified, Toolbelt provisions a Let's Encrypt TLS certificate via an automated HTTP-01 challenge. Traffic is served securely over HTTPS with zero downtime. ### Serving & Security on Custom Domains - **Root Path (`/`):** Requests arriving at the custom domain automatically serve the public dashboard at the root path (`/`). - **Path Isolation:** Only that specific dashboard's public assets (`/public/dashboard//*`) are reachable on the host. Internal Toolbelt application routes, logins, and private APIs return `404` on the custom domain. - **OAuth Connections on Custom Domains:** When public viewers connect third-party accounts through `sdk.connections` on a custom domain, Toolbelt uses single-use security tickets (`finalize` flow) to exchange authorization codes securely between the canonical redirect domain and the custom host. --- ## Creating and Sharing a Public Dashboard ### Step 1: Build the Page Create a single-file page (`pageType='html'`) or multi-file app (`pageType='app'`) in workspace storage using the [Dashboard SDK](https://docs.apexti.com/features/dashboard-sdk.md): ```html Public Metrics
Loading metrics...
``` ### Step 2: Configure Public Access Use `update_dashboard_page` to enable public access and configure the security policy: ```json { "action": "update_dashboard_page", "params": { "pageSlug": "daily-metrics", "isPublic": true, "publicBridge": { "enabled": true, "capabilities": { "executeSql": true, "listTools": true, "tts": false, "liveAudio": false }, "allowedDatabases": ["analytics.duckdb"], "allowedTools": ["read_storage_file", "get_storage_file_url"] } } } ``` ### Step 3: Distribute You can share your public dashboard through three channels: 1. **Direct Public Link:** Share the generated `publicUrl` directly with stakeholders. 2. **Custom Domain:** Direct visitors to your branded URL (e.g., `https://metrics.yourcompany.com`). 3. **Embedded iFrame:** Append `/embed` to the public link for a borderless iframe embed on your portal. Add your parent site to the Allowed Domains list. ### Optional: Set Link Expiration Set an expiration timestamp on the public link when sharing time-sensitive reports or client reviews. Once expired, requests return a `403 Dashboard Expired` response. --- ## Security Checklist Before sharing any public dashboard, review this checklist: - [ ] **Enable only required capabilities:** Leave `chat`, `tts`, `liveAudio`, or `runTool` off if the dashboard only reads SQL data. - [ ] **Review audio and voice billing:** If enabling `tts` or `liveAudio`, ensure your organization credit limits and overage settings are intentional. - [ ] **Allowlist specific tools:** Add only the exact MCP tools invoked by the frontend. - [ ] **Allowlist specific databases:** Expose only the database files needed for the public view. - [ ] **Leave `sqlWrites` disabled** unless public users must submit records. - [ ] **Set Allowed Domains** if the dashboard is embedded in an external iframe. - [ ] **Verify no hardcoded credentials** appear in the HTML or client-side JavaScript. --- ## Related Topics - [Dashboard SDK](https://docs.apexti.com/features/dashboard-sdk.md) — Build multi-file apps and interactive tools with the SDK. - [Live Audio Chat](https://docs.apexti.com/features/live-audio.md) — Real-time conversational voice sessions and architecture. - [Voice & Speech APIs](https://docs.apexti.com/features/voice-apis.md) — Programmatic REST endpoints for TTS and audio chat. - [Dashboards](https://docs.apexti.com/features/dashboards.md) — Create and manage widget-based dashboards. - [Auto-DuckDB](https://docs.apexti.com/features/auto-duckdb.md) — Query structured datasets with SQL. - [Organization Storage](https://docs.apexti.com/features/storage.md) — Manage files, images, and static assets. --- --- title: "Dashboard SDK & Web Apps" description: "Build interactive single-file HTML pages and multi-file web applications that interact securely with Toolbelt tools, DuckDB, text-to-speech, and live audio chat." updated: 2026-10-23 --- # Dashboard SDK & Web Apps While built-in dashboard widgets provide fast metric summaries, real-world operational tools often require custom user interfaces, multi-screen navigation, interactive data entry, and direct integration with external services. The **Toolbelt Dashboard SDK** lets you build fully customized web applications that run directly inside Toolbelt dashboard pages. Using standard web technologies (HTML, CSS, JavaScript) and the embedded SDK, your apps can execute SQL queries against organization DuckDB databases, invoke MCP tools, stream assistant conversations, generate speech with Gemini TTS, and conduct real-time live voice calls—all within a secure, sandboxed environment. :::cards 3 ===card title: Multi-File Apps icon: folder Deploy full web apps with split HTML, CSS, JavaScript, and static assets from organization storage with automatic client-side SPA routing. ===card title: Embedded postMessage Bridge icon: shield-check No API keys or external scripts required. The SDK communicates directly with the Toolbelt parent window over a secure, authenticated bridge. ===card title: Voice & Audio APIs icon: radio-tower Generate single- and multi-speaker audio with Gemini TTS or start live conversational voice calls right from your dashboards. ::: --- ## Choosing a Page Type When creating or configuring a dashboard page in Toolbelt, choose the page type that matches your application's scope: | Page Type | Configuration | Best Used For | |---|---|---| | `pageType='app'` *(Preferred)* | `sourceDir: "apps//"`, `entryFile: "index.html"` | Multi-file applications spanning separate CSS/JS files, multiple screens, calendars, or custom image assets. | | `pageType='html'` | `sourceFile: "filename.html"` | Lightweight, single-file interactive tools kept entirely in one file. | | `pageType='file'` | `sourceFile: "document.md"` | Read-only markdown documentation or text files. | > **Tip:** Whenever you need to expand a dashboard page with additional features, styles, or screens, use `pageType='app'`. Moving to a structured folder (`apps//`) keeps code modular and maintainable. --- ## Persistent Storage: DuckDB, Never localStorage All persistent data—such as user settings, form submissions, calendar events, or status flags—must be stored in a workspace DuckDB database (`custom.duckdb` or a database created via `duckdb_create_database`) using `sdk.executeSql()`. > **Warning:** **Never** store application state in `localStorage`, `sessionStorage`, or `IndexedDB`. Browser storage is local to the viewer's browser, unshared across team members, and wiped when browsing data is cleared. Always persist state in DuckDB. --- ## Multi-file application architecture For `pageType='app'`, multi-file dashboard apps are stored under a dedicated folder in workspace storage (for example, `apps/incident-manager/`): ``` apps/incident-manager/ ├── index.html # Application entry point with embedded SDK ├── styles.css # App styling ├── app.js # Core client logic └── assets/ └── logo.png # Static images and icons ``` ### Layout and Routing Rules 1. **Relative URLs only:** Reference assets using relative paths (`./styles.css`, `assets/logo.png`). Do not hardcode absolute paths or `/public/dashboard/...` URLs. 2. **No custom `` tags:** Toolbelt automatically injects the appropriate `` tag and bridge shim when serving the app. 3. **SPA fallback:** Extensionless client-side navigation paths automatically fall back to `index.html`, allowing client-side routers (such as page.js, Navigo, or history-based routing) to function seamlessly. 4. **File size limit:** Each individual asset file is capped at 25MB. --- ## The Embedded SDK Class Toolbelt pages do not require external CDN dependencies or API keys. Include the following standalone SDK class directly in your entry HTML: ```javascript class ToolbeltSDK { constructor() { this.requests = new Map(); this.requestId = 0; this.listeners = new Set(); window.addEventListener("message", (event) => { const { type, payload, requestId } = event.data; if (requestId && this.requests.has(requestId)) { const { resolve, reject } = this.requests.get(requestId); if (type === "TOOLBELT_RESPONSE_ERROR") { const err = new Error( typeof payload === "string" ? payload : payload?.message || "Bridge error" ); if (event.data.error) { err.code = event.data.error.code; err.status = event.data.error.status; } reject(err); } else resolve(payload); this.requests.delete(requestId); } else if (type && !requestId) { this.listeners.forEach((cb) => cb(type, payload)); } }); this.readyPromise = this.sendRequest("TOOLBELT_INIT").then((context) => { this.workspaceId = context.workspaceId; return context; }); } async ready() { return this.readyPromise; } async sendRequest(type, payload = {}) { return new Promise((resolve, reject) => { const id = ++this.requestId; this.requests.set(id, { resolve, reject }); window.parent.postMessage({ type, payload, requestId: id }, "*"); }); } async listTools() { const payload = await this.sendRequest("TOOLBELT_LIST_TOOLS"); if (Array.isArray(payload)) return payload; const tools = Array.isArray(payload?.tools) ? payload.tools : []; tools.tools = tools; tools.count = typeof payload?.count === "number" ? payload.count : tools.length; tools.workspaceId = payload?.workspaceId || this.workspaceId || ""; return tools; } async runTool(toolName, args = {}) { return this.sendRequest("TOOLBELT_RUN_TOOL", { tool: toolName, arguments: args }); } parseToolResult(result) { const content = Array.isArray(result?.content) ? result.content : null; if (!content || content.length === 0) return result; const firstText = content.find((part) => part?.type === "text"); if (firstText && typeof firstText.text === "string") { try { return JSON.parse(firstText.text); } catch { return firstText.text; } } return result; } parseToolImages(result) { const content = Array.isArray(result?.content) ? result.content : []; return content .filter((part) => part?.type === "image" && typeof part.data === "string") .map((part) => ({ mimeType: part.mimeType || "image/png", data: part.data, dataUrl: `data:${part.mimeType || "image/png"};base64,${part.data}`, })); } async runToolParsed(toolName, args = {}) { const result = await this.runTool(toolName, args); return this.parseToolResult(result); } async executeSql(query, params = [], database = null) { const payload = { query, parameters: params }; if (database) payload.database = database; return this.sendRequest("TOOLBELT_EXECUTE_SQL", payload); } async chat(message) { return this.sendRequest("TOOLBELT_CHAT", { message }); } async chatStream(message, onChunk) { const res = await this.sendRequest("TOOLBELT_CHAT", { message }); onChunk(res.content || JSON.stringify(res), res.content || JSON.stringify(res)); return res; } get tts() { const sdk = this; return { async generate(options = {}) { return sdk.sendRequest("TOOLBELT_TTS", options); }, async play(options = {}) { const res = await this.generate(options); const audio = new Audio(res.dataUrl); await audio.play(); return { ...res, audio }; }, }; } get liveAudio() { const sdk = this; return { start(options = {}) { return sdk.sendRequest("TOOLBELT_LIVE_AUDIO_START", options); }, stop() { return sdk.sendRequest("TOOLBELT_LIVE_AUDIO_STOP"); }, setMuted(muted) { return sdk.sendRequest("TOOLBELT_LIVE_AUDIO_MUTE", { muted: !!muted }); }, on(eventName, callback) { if (typeof callback !== "function") { return () => {}; } const handler = (type, payload) => { if ( type === "TOOLBELT_LIVE_AUDIO_EVENT" && payload?.event === eventName ) { callback(payload); } }; sdk.listeners.add(handler); return () => sdk.listeners.delete(handler); }, }; } get auth() { const sdk = this; return { async getViewer() { const ctx = await sdk.ready(); return ctx.user || null; }, async logout() { await sdk.sendRequest("TOOLBELT_AUTH_LOGOUT"); window.location.reload(); }, }; } get connections() { const sdk = this; return { async list() { return sdk.sendRequest("TOOLBELT_CONNECTIONS_LIST"); }, async connect(serverId, options = {}) { const result = await sdk.sendRequest("TOOLBELT_CONNECTIONS_CONNECT", { serverId, ...options, }); const popupUrl = result?.connectPopupUrl || result?.authorizeUrl || result?.connect_link_url; if (popupUrl) { window.open(popupUrl, "ToolbeltExternalConnect", "width=520,height=720,scrollbars=yes,resizable=yes"); } return result; }, async complete(serverId, payload = {}) { return sdk.sendRequest("TOOLBELT_CONNECTIONS_COMPLETE", { serverId, ...payload }); }, async disconnect(serverId) { return sdk.sendRequest("TOOLBELT_CONNECTIONS_DISCONNECT", { serverId }); }, }; } } ``` --- ## SDK Reference & Usage ### 1. Initialization Always instantiate the SDK and wait for the handshake before invoking other methods: ```javascript const sdk = new ToolbeltSDK(); document.addEventListener("DOMContentLoaded", async () => { const context = await sdk.ready(); console.log("Connected to workspace:", context.workspaceId); }); ``` ### 2. DuckDB SQL execution The `sdk.executeSql` method runs queries against attached DuckDB databases. > **Warning: Response Shape Difference** > - **`SELECT` queries** resolve to a **plain array** of rows `[{ ... }, ...]`. There is **no** top-level `.rows` property. Accessing `result.rows[0]` will fail. > - **Write queries (`INSERT`, `UPDATE`, `DELETE`, `CREATE`)** resolve to an object containing `{ changes: number }`. ```javascript // Safe helper to normalize SQL responses function rowsFromSqlResult(raw) { if (Array.isArray(raw)) return raw; const nested = raw?.rows ?? raw?.data?.rows; return Array.isArray(nested) ? nested : []; } // Example: Select items const raw = await sdk.executeSql("SELECT id, title, status FROM tasks ORDER BY createdAt DESC", [], "custom.duckdb"); const tasks = rowsFromSqlResult(raw); // Example: Insert item await sdk.executeSql( "INSERT INTO tasks (id, title, status) VALUES (?, ?, ?)", [crypto.randomUUID(), "Review pull request", "pending"], "custom.duckdb" ); ``` ### 3. Executing MCP tools Use `sdk.runToolParsed()` to execute any connected MCP tool and automatically parse the JSON response: ```javascript // Fetch open GitHub issues const issues = await sdk.runToolParsed("github_list_issues", { owner: "my-org", repo: "my-repo", state: "open" }); ``` ### 4. Working with Images in Organization Storage To display an image stored in workspace storage, call `read_storage_file` and parse the binary block using `sdk.parseToolImages()`: ```javascript const raw = await sdk.runTool("read_storage_file", { fileName: "diagram.png" }); const [image] = sdk.parseToolImages(raw); if (image) { document.getElementById("preview").src = image.dataUrl; } ``` For large files, request a signed URL with `get_storage_file_url`: ```javascript const res = await sdk.runToolParsed("get_storage_file_url", { fileName: "report.pdf", expiresIn: 3600 }); window.open(res.url, "_blank"); ``` ### 5. Managing connections and OAuth Your application can inspect connected services and trigger OAuth connect flows with `sdk.connections`: ```javascript // Check if GitHub is connected const connections = await sdk.connections.list(); const isGitHubConnected = connections.some(c => c.serverId === "github" && c.connected); // Trigger connection popup if disconnected if (!isGitHubConnected) { connectBtn.addEventListener("click", async () => { await sdk.connections.connect("github"); }); } ``` ### 6. User identity Retrieve the signed-in user's profile with `sdk.auth`: ```javascript const viewer = await sdk.auth.getViewer(); if (viewer) { document.getElementById("user-name").textContent = viewer.displayName || viewer.email; } ``` ### 7. Speech synthesis with Gemini TTS (`sdk.tts`) Generate natural spoken audio from text using Gemini Flash TTS models. Single-speaker narration and multi-speaker dialogue are both supported. - **`sdk.tts.generate(options)`**: Synthesizes speech and resolves to `{ mimeType, data, dataUrl, model, file? }`. - **`sdk.tts.play(options)`**: Generates and plays the resulting audio buffer directly in the browser via HTML5 Audio. #### Single-Speaker Narration ```javascript // Generate and play read-aloud speech await sdk.tts.play({ text: "Welcome to the Operations Overview. All services are healthy. No active incidents.", voice: "Kore", // Prebuilt voices: Kore, Puck, Charon, Zephyr, Fenrir, etc. style: "calm, professional newscaster", model: "gemini-3.8-flash-lite-tts", // default; pass "gemini-3.8-flash-tts" for higher fidelity save: true // optionally persist generated WAV in assistant media storage }); ``` > **Tip:** Use angle-bracket inline tags like `` or `` in the `text` string for momentary vocal inflections, and describe sustained tone (e.g., *"excited and upbeat"*) in the `style` parameter. #### Multi-Speaker Dialogue (Up to 2 Speakers) ```javascript const result = await sdk.tts.generate({ speakers: [ { speaker: "Host", voice: "Zephyr" }, { speaker: "Expert", voice: "Charon" } ], turns: [ { speaker: "Host", text: "Welcome back! What are the latest metrics looking like?" }, { speaker: "Expert", text: "Latency dropped 18% following the database indexing patch.", style: "confident and clear" } ] }); // Play back the generated dialogue const audio = new Audio(result.dataUrl); audio.play(); ``` ### 8. Live Voice Chat in Dashboards (`sdk.liveAudio`) Integrate real-time conversational voice directly into custom dashboard apps. The parent Toolbelt window manages microphone capture, WebSocket streaming, and gapless audio output, while your app handles custom UI controls. ```javascript // Start a live voice session with the workspace assistant await sdk.liveAudio.start({ instructions: "You are guiding the user through quarterly server maintenance.", voice: "Kore", greeting: "Hello! I am ready to review your server maintenance checklist.", pageName: "Server Maintenance" }); // Listen for live transcription turns sdk.liveAudio.on("transcript", (payload) => { console.log(`${payload.role}: ${payload.text}`); }); // Monitor session state changes sdk.liveAudio.on("state", ({ state }) => { // state: "connecting" | "active" | "speaking" | "listening" | "stopped" statusEl.textContent = `Voice status: ${state}`; }); // Mute microphone sdk.liveAudio.setMuted(true); // End call stopButton.addEventListener("click", async () => { await sdk.liveAudio.stop(); }); ``` > **Note:** Only one live audio session can run at a time per browser tab. On public dashboards, live audio requires the **Live voice chat** publishing capability toggle. --- ## Visual Verification & Testing (Agents) When an AI assistant creates or updates a dashboard page, it must visually inspect the rendered result using Toolbelt's built-in preview tools: 1. **Mint a preview link:** Call `get_dashboard_page_preview_url` with the `pageSlug`. This creates a short-lived signed preview URL with full in-app bridge capabilities. 2. **Capture visual state:** Call `browser_screenshot` with `embedPreviewUrl` to verify typography, colors, layout, and data tables. 3. **Interact and test:** Call `browser_interact` with `rawPreviewUrl` to click buttons, test tab navigation, and inspect DOM states directly. 4. **Iterate:** Patch the code using `read_html_element` and `patch_text_file`, then re-verify. > **Note:** Preview URLs allow full authenticated testing of private dashboards without requiring them to be shared publicly. --- ## Related Topics - [Live Audio Chat](https://docs.apexti.com/features/live-audio.md) — Real-time conversational voice sessions and architecture. - [Voice & Speech APIs](https://docs.apexti.com/features/voice-apis.md) — Programmatic REST endpoints for TTS and audio chat. - [Dashboards](https://docs.apexti.com/features/dashboards.md) — Create and arrange widget-based dashboards. - [Public Dashboards](https://docs.apexti.com/features/public-dashboards.md) — Share dashboards securely with external users and custom domains. - [Auto-DuckDB](https://docs.apexti.com/features/auto-duckdb.md) — Query structured data sets using SQL. - [Organization Storage](https://docs.apexti.com/features/storage.md) — Manage files, images, and application directories. --- --- title: "Assistant Design" description: "Map your assistant's capabilities, group tools into purposeful jobs, and visualize end-to-end workflows on an interactive capability canvas." updated: 2026-11-16 --- # Assistant Design As an assistant grows, it quickly accumulates connected services, custom wrenches, scheduled tasks, workflows, fast classifiers, storage files, and dashboards. Without an architectural map, it is easy to lose track of how those pieces fit together or what the assistant was hired to accomplish. The **Design** tab gives your assistant a visual capability graph and an architectural blueprint. It organizes individual tools and data sources into cohesive, named **Jobs**, displays how data flows from triggers to outputs, and directly informs the AI model of its active responsibilities. :::cards 3 ===card title: Capability Graph icon: layers A live, interactive DAG canvas that lays out every service, schedule, wrench, workflow, file, and dashboard in horizontal swim lanes. ===card title: Authored Jobs icon: briefcase Discrete, purposeful units of work (such as "Daily Triage" or "Weekly Rollup") with explicit roles for every attached tool. ===card title: AI Job Planner icon: sparkles An inline conversational architect that can analyze your request, detect missing tools, scaffold new wrenches or classifiers, and organize jobs automatically. ::: --- ## Why use Assistant Design? When building an agent, configuring tools in isolation often leads to two common challenges: 1. **Lack of operational clarity for humans:** Seeing a flat list of 20 tools and 5 schedules does not explain *which* tools run together or *what* goal they accomplish. 2. **Context bloat and tool confusion for AI:** Handing an LLM dozens of unrelated tool definitions with no guidance on which ones belong to which task degrades prompt efficiency and increases hallucinations. Assistant Design solves both problems: - **For you:** It provides an interactive visual map showing the exact path from trigger to result. - **For the assistant:** Active jobs are compiled into an `` block injected into the assistant's runtime prompt. The assistant understands its authored duties, knows which capabilities belong to each job, and has tools to update its own design as your needs change. --- ## The Design Canvas The Design tab canvas lays out your assistant's architecture top-to-bottom in horizontal **swim lanes**: ``` [ Assistant Root ] ───▶ [ Schedule / Event ] ───▶ [ Job Card ] ───▶ [ Wrenches / Classifiers ] ───▶ [ Outputs / Dashboards ] ``` Each job occupies its own swim lane reading left to right: - **Left (Triggers):** What initiates the work (a scheduled cron task, a webhook, an incoming channel message, or an event trigger). - **Center (The Job):** The authored Job card showing its title, active or draft status, and attached capability count. - **Right (Capabilities & Outputs):** The tools, scripts, and databases the job uses (`reads`, `writes`, `runs`), flowing into the final assets it produces (`displays`). ### Canvas bands and trays To prevent canvas clutter as your workspace grows, the layout engine separates components into three visual zones: 1. **Job Swim Lanes:** Top section showing all authored jobs and the capabilities attached to them. 2. **Unassigned Dependency Band:** A middle band displaying chains of interconnected resources that hang together (for example, a workflow that calls a wrench and reads a database) but have not yet been assigned to an authored job. 3. **The Unassigned Tray:** A bottom tray where completely isolated capabilities with zero connections (such as uploaded reference files or unused services) collapse into compact stacks by type (e.g., *14 Files*, *3 Databases*). Clicking any stack expands it into individual tiles. ### Canvas controls The toolbar above the canvas provides fast navigation and filtering: | Control | Description | |---|---| | **Search bar** | Highlights matching capabilities and jobs across all lanes while dimming non-matching elements. | | **Type filters** | Toggle visibility for specific resource types (services, wrenches, workflows, files, dashboards) using the legend pills. | | **Zoom & Fit** | Zoom from 25% to 225%, fit the entire graph into view, or reset to default framing. | | **Pinning** | Drag any node to reposition it. Pinned positions persist across sessions. | | **Stats badges** | View total counts of active jobs, draft jobs, and unassigned capabilities. | --- ## Authored Jobs and Roles A **Job** is a named, discrete unit of work that your assistant is designed to perform. ### Job status - **Active:** The job is operational. Its definition, attached capabilities, and role assignments are injected directly into the assistant's system instructions under ``. - **Draft:** The job is being staged or experimented with. It remains visible on the canvas and in the inspector, but is excluded from the assistant's runtime prompt until activated. ### Capability roles When you attach a resource to a job, you assign it an explicit **role** that clarifies how the job uses it: | Role | Intended Resource Types | What It Means | |---|---|---| | `triggers` | `scheduled_task`, `event_trigger`, `channel` | Starts the job execution (e.g., cron schedule or inbound webhook). | | `runs` | `wrench`, `classifier`, `workflow` | Executes logic, makes fast decisions, or coordinates multi-step automations. | | `reads` | `mcp_service`, `duckdb`, `storage`, `connection` | Supplies data, queries, reference files, or external peer assistant context. | | `writes` | `duckdb`, `storage`, `channel` | Receives outputs, appends records, or dispatches outbound notifications. | | `displays` | `dashboard` | Surfaces interactive visual reports or applications to human stakeholders. | > **Tip:** You can attach an optional note to each capability within a job (e.g., `role: reads`, `note: "queries active open tickets"`). These notes appear in the assistant's prompt context, giving the model clear instructions on each tool's specific purpose. ### Inferred vs. job edges The canvas renders two distinct styles of connecting lines: - **Solid Indigo Edges (`job`):** Direct relationships you established by attaching a capability to a job. - **Dashed Gray Edges (`inferred`):** Natural dependencies discovered automatically by Toolbelt. For example, if a workflow step calls a wrench, a classifier triages a workflow branch, or an HTML dashboard executes SQL against a DuckDB database, Toolbelt detects the connection and renders a dashed dependency edge automatically. --- ## The Inspector Panel Selecting any element on the canvas opens the context-sensitive **Inspector** on the right side of the screen: - **Job Selected:** Edit the job's title and description, toggle between **Active** and **Draft**, manage attached capabilities, adjust assigned roles, or delete the job. - **Capability Selected:** View the capability's status, metadata, and which jobs currently use it. Click the quick jump link (e.g., **Open in Wrenches**, **Open in Configure**, **Open in Storage**) to navigate directly to that resource's dedicated tab. - **Edge Selected:** Inspect the link type, assigned role, and any developer notes explaining the relationship. - **Empty Canvas:** Displays overall workspace statistics and hosts the **AI Job Planner**. --- ## The AI Job Planner You do not have to assemble complex architectures by hand. The Design tab includes an AI-assisted job planner accessible from the inspector. ### Plan a job from natural language 1. Click **New Job** or open the inspector on an empty canvas. 2. Enter what you want the assistant to do in the planner prompt (for example: *\"Every morning at 8 AM, pull unresolved Zendesk tickets, summarize high-priority issues, and post the summary to the #ops-alerts Slack channel\"*). 3. Click **Plan Job** photos. The planner uses your assistant's configured model to evaluate the request. It outlines a structured proposal showing: - A suggested job name and concise operational description. - Existing workspace capabilities that should be attached. - Suggested roles (`triggers`, `reads`, `runs`, `writes`, `displays`) for each asset. - **Missing capabilities:** Tools or integrations your goal requires that do not exist yet (such as a missing Slack channel, an unconfigured service, or a required custom wrench). ### One-click capability scaffolding When the planner identifies a missing capability (such as a custom wrench to transform data or a classifier to categorize items), it offers one-click generation buttons: - **Create Wrench:** Drafts and saves a functional JavaScript wrench with schemas and tool calls tailored to the job. - **Create Classifier:** Sets up a fast, zero-turn classification model with defined categories. Once created, the new tool attaches to the job automatically. ### Discover Jobs If you have connected multiple services and uploaded files but have not structured them yet, click **Discover Jobs**. The planner inspects your unassigned capabilities and suggests logical job groupings that turn your existing tools into ready-to-run automations. --- ## Runtime Awareness & Self-Maintenance Assistant Design is not just a diagramming tool; it is a bidirectional bridge between your visual architecture and the live agent: ```markdown Jobs this assistant is built to do: - Daily Triage: Pulls unassigned tickets, tags priority, and alerts Slack. Uses: wrench:zendesk-query (runs), classifier:ticket-priority (runs), channel:ops-alerts (writes) Unassigned: mcp:GitHub, duckdb:metrics.duckdb ``` ### Self-maintaining agents Every assistant is equipped with built-in design tools: - `assistant_design_get`: Allows the assistant to inspect its current inventory of jobs, unassigned resources, or specific capability nodes. - `assistant_design_job`: Allows the assistant to create jobs, update descriptions, or attach newly created tools directly to a job. When you ask an assistant during a chat to create a new scheduled report or write a new wrench, it can automatically attach the new resource to the appropriate job, keeping your visual architecture in sync without manual effort. --- ## Blueprint & Catalog Portability When you publish an assistant to the [Assistant Catalog](https://docs.apexti.com/features/catalog.md) as a blueprint, its authored Design jobs, assigned roles, and capability links are exported as part of the blueprint definition. When team members deploy the blueprint into their personal or organization workspaces, Toolbelt materializes the jobs and maps them to the newly instantiated services, wrenches, and workflows. --- --- title: "Workflows" description: "Orchestrate multi-step automations across connected services, assistants, and decision models using triggers and visual execution graphs." updated: 2026-11-16 --- # Workflows While a single assistant prompt or a custom Wrench handles focused tasks, real-world business processes often span multiple systems, require conditional branching, and demand reliable background execution. **Workflows** provide a visual, multi-step orchestration engine built directly into Toolbelt. Instead of forcing an LLM to reason through dozens of API calls sequentially during a single chat turn, Workflows allow you to structure deterministic processes: fetch data directly from connected MCP tools, execute custom JavaScript wrenches, evaluate conditions or fast classifiers, delegate specialized work across assistants, and post results to your team. :::cards 3 ===card title: Visual Orchestration icon: git-branch Construct complex, branching directed acyclic graphs (DAGs) in the visual builder, or have your assistant draft and wire them from natural language prompts. ===card title: Direct Tool & Wrench Execution icon: plug Call MCP tools and server-side wrenches directly in workflow steps without LLM reasoning overhead, using dynamic `{{trigger.}}` variable interpolation. ===card title: Hybrid Intelligence icon: cpu Combine deterministic expressions, sub-second zero-turn Classifiers, and multi-model assistant steps to balance speed, cost, and analytical depth. ::: --- ## Key Concepts Every Workflow consists of three elements: 1. **Triggers:** The event or schedule that kicks off an execution. 2. **Steps:** The individual units of execution (fetching data, executing a wrench script, prompting an LLM, evaluating a branch, running a task). 3. **Edges:** Directed connections that define execution order, pass context from step to step, and determine branch paths. --- ## Triggers Workflows start automatically from incoming events or run on demand. You can attach multiple triggers to a single workflow: | Trigger Type | Description | Configuration | |---|---|---| | `manual` | Triggered manually from the UI, by an assistant using `manage_workflows`, or via the REST API. | None required. | | `scheduled` | Recurring background execution managed by Toolbelt. | Standard cron expression (e.g., `0 8 * * 1-5` for 8 AM weekdays). | | `webhook` | Triggered by an inbound HTTP POST request from an external system. | Toolbelt generates a secure, unique webhook URL and token. | | `message` | Triggered when a new message arrives in a specified chat or channel. | Channel or source filter. | Incoming trigger payloads are preserved in the execution context and can be referenced in subsequent steps under the `trigger.` namespace. --- ## Step Types Workflows support eight distinct step types to handle everything from pure API calls and server-side scripts to creative drafting: ### 1. Tool Call Type: `tool_call`. Executes a connected MCP tool directly (such as fetching tickets from Jira, querying GitHub, or sending an email) without waking an assistant. - **Fast & deterministic:** Skips prompt generation and token costs. - **Variable placeholders:** Reference trigger data or prior step outputs directly inside tool arguments using `{{trigger.}}` (for example, `{{trigger.body.issue_id}}`). - **Built-in deduplication:** When polling feeds on a recurring schedule, configure `keyPath` (e.g., `id`) to track seen items. Toolbelt only passes newly arrived items to downstream steps, preventing duplicate alerts. ```json { \"id\": \"fetch_alerts\", \"type\": \"tool_call\", \"title\": \"Fetch Unresolved Alerts\", \"toolName\": \"pagerduty_list_incidents\", \"arguments\": { \"status\": \"triggered\", \"urgency\": \"{{trigger.urgency}}\" } } ``` ### 2. Wrench Type: `wrench`. Executes a server-side JavaScript [Wrench](https://docs.apexti.com/features/wrenches.md) directly within the workflow engine without invoking an LLM. #### Why use a direct Wrench step? While a `tool_call` step invokes a single API method, business processes often require multi-step scripting: parsing nested arrays, computing differences, aggregating data across multiple endpoints, or applying complex conditional logic. Instead of routing these tasks through an assistant turn (`message` step) — which incurs token latency and potential non-determinism — the `wrench` step executes sandboxed JavaScript natively in the Toolbelt backend in milliseconds. #### Key capabilities - **Dynamic Context Interpolation:** Pass workflow data into wrench arguments using double curly-brace syntax (`{{trigger.}}`, `{{steps..}}`, or `{{previous.}}`). - **Zero Token Overhead:** Does not wake an assistant or consume model tokens. - **Custom Timeout Handling:** Inherits the Wrench's configured timeout or overrides it for batch workflow operations. - **Structured JSON Output:** Returns typed objects directly into the execution graph, accessible to all downstream steps under `{{steps..result}}`. ```json { \"id\": \"aggregate_daily_metrics\", \"type\": \"wrench\",\n \"title\": \"Aggregate Daily Metrics\", \"wrenchId\": \"calculate-service-health\", \"arguments\": { \"organizationId\": \"{{trigger.org_id}}\", \"threshold\": 95.5, \"events\": \"{{steps.fetch_event_logs.result.data}}\" }, \"timeoutSeconds\": 120 } ``` ### 3. Message Type: `message`. Invokes an assistant to reason, synthesize, or draft content. - **Target assistant:** Direct the step to a specific assistant UUID, leave blank for the workflow owner, or set `targetAssistantId: \"auto\"`. - **Dynamic routing (`auto`):** When set to `auto`, Toolbelt's delegation router automatically inspects connected assistants' capabilities and routes the task to the best-equipped agent. ### 4. Task Type: `task`. Dispatches an inter-assistant work item, tracking completion and handing the result back to the workflow graph. ### 5. Condition Type: `condition`. Evaluates deterministic expressions to route execution along different edges. - **Expression syntax:** ` ` - **Supported operators:** `==`, `!=`, `contains`, `>`, `<`, `exists` - **Context paths:** Reference `trigger.`, `previous.`, `last.`, or `steps..`. - **Natural language fallback (`nl:`):** Prefix a condition with `nl:` (e.g., `nl: is this a critical production issue?`) to let the decision model evaluate subtle text when deterministic rules aren't enough. ``` trigger.action == \"opened\" previous.newCount > 0 steps.check_status.result contains \"error\" ``` ### 6. Classify Type: `classify`. Runs a saved, versioned [Classifier](https://docs.apexti.com/features/classifiers.md) on the trigger payload or previous output in ~100 ms with **no assistant turn**. - Uses fast decision models to answer structured choice, score, or yes/no questions. - Branches execution based on the classified answer (e.g., routing billing inquiries to Finance and technical bugs to Engineering). ### 7. Decision Type: `decision`. Branches execution using a decision model or an assistant turn (`mode: \"assistant\"`), evaluating complex inputs against a configured default branch. ### 8. Parallel Type: `parallel`. Forks execution to run multiple downstream branches concurrently, synchronizing once all parallel paths complete. --- ## Authoring Workflows You can author and manage workflows in two ways: ### 1. In the web UI Navigate to **Configure → Workflows** on your assistant. - **Visual Graph Canvas:** Drag and drop steps, connect edges from step handles, and visually arrange branching logic. - **Visual Edge Routing:** Connect branches from decision, condition, or classify steps directly to their target steps. - **Execution History:** View real-time and historical executions, step-by-step logs, input payloads, and intermediate results. ### 2. Conversational creation Ask your assistant in chat to build or update workflows for you. Assistants use the `manage_workflows` tool to plan and scaffold multi-step architectures: > *\"Create a workflow that triggers whenever a webhook arrives, checks if the severity is high, summarizes the issue, and posts to Slack.\"* The assistant uses `action: \"plan_from_prompt\"` with `create: true` to generate all step objects, resolve tool names, and configure the graph edges automatically. --- ## Runtime Variables & Context Reference Downstream steps have access to execution context through templating: | Context Namespace | What It Contains | Example | |---|---|---| | `trigger.` | The payload received from the trigger event (webhook JSON, cron metadata, message body). | `{{trigger.pull_request.head.ref}}` | | `previous.` | The result or payload emitted by the immediately preceding step. | `{{previous.summary}}` | | `steps..` | The explicit output of an earlier step identified by its step ID. | `{{steps.fetch_alerts.result[0].id}}` | --- ## Best Practices > **Tip: Prefer `tool_call` and `wrench` over `message` for deterministic steps.** > Do not ask an LLM to make API calls or perform calculations if the parameters are known or can be scripted in a Wrench. Tool call and wrench steps run faster, cost zero tokens, and eliminate hallucination risks. > **Tip: Use `auto` targeting for modular teams.** > When delegating work across a team of specialized assistants, use `targetAssistantId: \"auto\"` on message steps. As you add or refine assistants in your organization, the router automatically redirects tasks to the best agent. > **Warning: Always configure default branches.** > When using `condition`, `decision`, or `classify` steps, ensure a default edge is defined so the workflow continues gracefully if an unexpected value arrives. --- ## Related Topics - [Assistant Design](https://docs.apexti.com/features/assistant-design.md) — Map workflows into cohesive jobs on the capability graph. - [Wrenches](https://docs.apexti.com/features/wrenches.md) — Package multi-tool JavaScript snippets into single executable tools. - [Scheduled Tasks](https://docs.apexti.com/features/scheduled-tasks.md) — Set up recurring schedules for single-prompt and direct wrench executions. - [Assistant-to-Assistant Communication](https://docs.apexti.com/features/assistant-to-assistant.md) — How assistants coordinate work across organizations. --- --- title: "Classifiers" description: "Fast typed decisions for triage, routing, tagging, and yes/no gates — no assistant turn." updated: 2026-10-05 --- # Classifiers Classifiers are named, versioned decision tools that answer structured questions in about **100 ms** without waking an assistant. Use them for triage, routing, tagging, severity scoring, and yes/no gates — anywhere you need a cheap, repeatable branch before (or instead of) a full model turn. > **Note:** Classifiers are distinct from [Wrenches](https://docs.apexti.com/features/wrenches.md) (executable JavaScript) and from [Workflows](https://docs.apexti.com/features/workflows.md) (multi-step graphs). A workflow **classify** step *runs* a saved classifier; a wrench can call `runClassifier` / `runClassifierMany` at runtime. ## Why use classifiers? | Without a classifier | With a classifier | |---|---| | An assistant turn reasons about every inbound item | A typed question returns a label, score, or yes/no in ~100 ms | | Routing logic drifts as prompts change | Criteria and examples are versioned and testable | | Expensive models do disposable triage | Fast decisions stay off the chat path | Typical uses: - Route tickets to billing vs. product vs. support - Score severity (cosmetic → blocking) - Gate whether a message should become a board task - Suggest an assignee or priority before a human confirms ## Question types Each classifier has one or more **questions**, keyed by id. Every **choice** question automatically includes an `uncertain` option. | Type | What it returns | When to use it | |---|---|---| | `choice` | One labeled option (or `uncertain`) | Routing, tagging, disposition | | `score` | An ordered severity / intensity band | Priority or impact ladders | | `noul` | Yes / no style gate | Urgent?, spam?, actionable? | Option criteria can be plain strings, or richer objects with `what`, `not_for`, and `examples` so the decision model knows clear boundaries. ## Create and manage classifiers Use Toolbelt actions (via the `toolbelt` tool or Configure UI): | Action | Purpose | |---|---| | `list_classifiers` | List classifiers on this assistant | | `create_classifier` | Create a named classifier with questions (and optional examples) | | `update_classifier` | Update metadata or create a new version | | `delete_classifier` | Remove a classifier and its bindings | | `test_classifier` | Run against stored gold examples, or classify a one-off `state` | ### Create example ```javascript await toolbelt({ action: "create_classifier", params: JSON.stringify({ name: "ticket_triage", description: "Route inbound messages to the right team.", questions: JSON.stringify({ department: { type: "choice", instructions: "Which team should own this?", criteria: { billing: { what: "Charges, refunds, seats", not_for: "Product defects", examples: ["Why was I charged twice?"] }, sales: { what: "Pricing, demos, new accounts", not_for: "Support how-tos", examples: ["Can we schedule a demo?"] }, support: { what: "How-to and account help", not_for: "Billing disputes", examples: ["How do I invite a teammate?"] } } } }), examples: JSON.stringify([ { state: "Invoice looks wrong for March", expected: { department: "billing" } } ]), projectionSpec: JSON.stringify({ fields: ["subject", "body"], maxChars: 4000 }) }) }); ``` ### Test before you wire it ```javascript await toolbelt({ action: "test_classifier", params: JSON.stringify({ classifierId: "", state: "Login button does nothing on Safari" }) }); ``` Omit `state` to score the classifier against its stored gold examples (matched / compared counts). ## Use in a workflow Add a **classify** step (`type: "classify"`) and point it at the classifier: ```json { "id": "triage", "type": "classify", "title": "Triage", "classifierId": "", "input": "trigger", "branchOn": "department", "defaultBranch": "review" } ``` Wire one edge per option (plus a default) so unexpected answers still continue. See [Workflows](https://docs.apexti.com/features/workflows.md). ## Use in a wrench Inside wrench code, call the runtime helpers (not `test_classifier`): - `runClassifier(classifierId, state)` — classify one payload - `runClassifierMany(classifierId, items)` — batch classify Use `list_classifiers` first to get the exact `classifierId`. ## Versioning Changing `questions`, `examples`, or `projectionSpec` creates a **new version**. Existing workflow / job bindings stay on their pinned version unless you pass `rebindAll: true` on `update_classifier`. ## Where classifiers show up - **Configure / Assistant Design** — attach a classifier to a job with role `runs`, or scaffold one from the AI Job Planner (**Create Classifier**) - **Workflows** — `classify` steps for branching - **Wrenches** — `runClassifier` for inline gates before tool calls --- --- title: "Wrenches" description: "Reusable code snippets that let your assistant invoke MCP tools directly — write once, run many times." updated: 2026-06-09 --- # Wrenches ## What are Wrenches? Wrenches are reusable JavaScript functions stored in your organization. When your assistant needs to perform a multi-step operation — like pulling data from GitHub, transforming it, and posting a summary to Slack — you can package that logic into a Wrench instead of relying on the LLM to improvise it every time. Think of a Wrench as a saved, versioned tool: the assistant writes it once, and can call it reliably in any future conversation. > **Note:** Wrenches are organization-scoped. They belong to your assistant and respect its permissions. You can also share Wrenches across organizations in your organization. --- ## Why use Wrenches? Without Wrenches, every time your assistant needs to perform a complex workflow it has to reason through each step from scratch — which is slower, less consistent, and harder to debug. Wrenches solve this by: - **Reducing repetition** — common workflows run from a single call - **Improving reliability** — the logic is fixed and versioned, not regenerated - **Enabling reuse** — share Wrenches across your organization's organizations - **Supporting auditability** — every execution is logged with inputs, outputs, and console logs --- ## How Wrenches work A Wrench is a JavaScript file that defines an `async function run(inputs)`. When executed, it runs in a sandboxed Node.js VM — no filesystem, no network access — but with full access to your connected MCP tools via two built-in helpers: | Helper | Description | |---|---| | `callTool(serverId, toolName, params)` | Invoke any tool on a connected MCP server | | `listTools(serverId)` | Discover available tools on a server | | `console.log()` | Write to the execution log | The function receives an `inputs` object and returns any value you choose. ### Example Wrench ```javascript async function run(inputs) { // List available GitHub tools const tools = await listTools('github'); console.log('Available tools:', tools); // Get contents of a file const result = await callTool('github', 'get_file_contents', { repository: inputs.repo, path: inputs.filePath, }); return result; } ``` --- ## Versioning Every time a Wrench is updated, a new version is created. You can: - View version history - Roll back to a previous version - Set any version as the active one This makes it safe to iterate — you can update a Wrench without losing your working baseline. --- ## Execution history Every Wrench execution is recorded with: - The inputs passed - The output returned - All `console.log()` output - Timestamp and duration Use the execution history to debug unexpected behavior or audit what ran and when. --- ## Creating a Wrench Ask your assistant to create a Wrench. Provide: 1. A **name** — unique within your organization 2. A **description** — what the Wrench does 3. The **script** — the `async function run(inputs)` body 4. An optional **input schema** — describes the expected inputs (JSON Schema) 5. An optional **output schema** — describes the expected return value The assistant will call `listTools` on your connected services first to confirm exact tool names before writing the script. > **Warning:** Always have the assistant call `listTools(serverId)` within the Wrench script to confirm tool names at runtime. Tool names can change when services are updated. --- ## Sharing across organizations Wrenches can be shared with other organizations in your organization. Shared Wrenches are read-only in the receiving organization — they run the active version from the owning organization. --- ## Security Wrench scripts run in a sandboxed VM with restricted access: - ❌ No filesystem access - ❌ No direct network requests - ❌ No access to environment variables or process - ✅ MCP tool calls via `callTool()` only This ensures Wrenches can only interact with services your organization has explicitly connected. --- --- title: "Skills" description: "Package repeatable procedures, specialized know-how, reference files, and scripts into portable skills your assistants can load on demand." updated: 2026-10-29 --- # Skills When working with AI assistants, you often need them to perform complex, specialized tasks the exact same way every time — whether that means adhering to your company's release checklist, applying a precise brand voice to technical docs, or running a multi-step SEO audit. Until now, teams faced an awkward tradeoff: paste long instructions repeatedly into chat, bloat your assistant's system prompt with dozens of niche instructions, or write rigid scripts that lose the nuance of natural language reasoning. **Skills** solve this by packaging repeatable procedures, instructions, reference files, and bundled scripts into structured, modular units. Assistants keep a lightweight index of available skills and load the full instructions only when a relevant task arises or when you invoke them directly. :::cards 3 ===card title: On-Demand Loading icon: cpu Assistants hold a compact catalog of skills in memory and load full instructions only when needed, preserving context and token budgets. ===card title: Portable Standard icon: box Built on the open Anthropic Skills and Claude Code plugin format. Skills authored in Toolbelt work seamlessly in Claude Code and Claude Managed Agents. ===card title: Files & Scripts Included icon: folder Package reference guides, markdown templates, schemas, and executable Python or Node scripts alongside your instructions. ::: --- ## Why use Skills? As teams scale their AI usage, maintaining consistency without overwhelming the model's context window becomes a primary challenge: - **Token efficiency:** Instead of stuffing every standard operating procedure into your assistant's permanent prompt, the assistant only receives a minimal `` catalog containing names and brief descriptions. - **Repeatable quality:** Standardize how repetitive operations are performed across your organization without leaving execution details up to model improvisation. - **Bimodal execution:** Skills combine the flexibility of conversational AI instructions with the deterministic precision of bundled reference files and helper scripts. - **Ecosystem interoperability:** Import existing skills from GitHub or export authored skills directly as Claude Code plugins and marketplaces. --- ## Skills vs. Wrenches vs. Workflows Toolbelt provides several ways to extend and automate assistant capabilities. Use this guide to choose the right mechanism for your job: | Capability | What it is | Best for | Execution Model | |---|---|---|---| | **Skill** | Packaged instructions (`SKILL.md`) + optional reference files and scripts | Repeatable procedures, style guides, domain playbooks, multi-file tasks | Heuristic: the LLM loads instructions and executes the steps conversationally | | **Wrench** | Reusable JavaScript function calling connected MCP tools | Direct data fetching, API transformations, deterministic single-purpose tools | Deterministic: runs in a sandboxed Node VM; bypasses LLM reasoning during execution | | **Workflow** | Directed automation graph with triggers, branches, and approvals | Multi-step business processes, recurring scheduled syncs, event triage | Orchestrated: system runs sequential or branching steps across services | | **Classifier** | Fast, zero-turn categorization model (~100ms) | Routing tickets, urgency scoring, intent gating | Deterministic classification without assistant chat overhead | > **Tip:** If you need deterministic code that connects to an API, write a [Wrench](https://docs.apexti.com/features/wrenches.md). If you need to teach an assistant *how to do a task* using its conversational reasoning and tools, write a **Skill**. --- ## Anatomy of a Skill Every skill is structured as a directory containing a primary `SKILL.md` file and any supporting assets: ```text my-skill/ ├── SKILL.md # Required: metadata and core instructions ├── references/ # Optional: checklists, style guides, schemas │ └── checklist.md └── scripts/ # Optional: Python or Node helper scripts └── run-analysis.py ``` ### 1. The `SKILL.md` Specification The `SKILL.md` file defines the skill's identity and operational guidance: ```markdown --- name: release-notes description: Draft user-facing product release notes from git commits and pull request summaries. Use whenever someone asks to write or format release notes. --- # Release Notes Playbook Follow these steps whenever drafting release notes: 1. Identify all pull requests merged since the last release tag. 2. Group changes into three categories: Features, Improvements, and Fixes. 3. Apply active voice and customer-centric framing: explain the user benefit first. 4. Check drafts against `references/style-guide.md`. ``` #### Frontmatter rules - **`name`** (required): Lowercase letters, digits, and single hyphens (e.g., `release-notes`, `seo-audit`). Maximum 64 characters. Cannot contain `anthropic` or `claude`. - **`description`** (required): Maximum 1024 characters. Explain **what** the skill does and **when** to use it. The assistant uses this description to decide when to automatically load the skill. Cannot contain `<` or `>`. ### 2. Supporting Files & Scripts You can package auxiliary files inside a skill: - **Reference documentation:** Coding standards, JSON schemas, review rubrics, or terminology glossaries. - **Executable scripts:** Plain Python (`.py`), Node.js (`.js`, `.mjs`), or Shell (`.sh`) scripts that perform heavy data crunching or formatting. #### Authoring limits - Maximum files per skill: **50** - Maximum file size: **512 KB** - Maximum total package size: **2 MB** - Maximum instruction length: **100,000 characters** --- ## How Assistants Use Skills When skills are enabled on an assistant, Toolbelt injects a compact catalog into the prompt prefix: ```xml Skills are packaged instructions for specialised tasks. When a request matches a skill's description, call load_skill with its name before doing the work, then follow the loaded instructions. A user message starting with / invokes that skill directly. Draft user-facing product release notes from git commits... ``` ### Automatic Matching & Direct Invocation There are two ways a skill is activated in chat: 1. **Automatic loading:** When your prompt naturally matches a skill's description (e.g., *"Can you prepare the release notes for v2.4?"*), the assistant calls `load_skill` before performing the work. 2. **Slash command:** You can invoke a skill explicitly by starting your message with `/` (for example, `/release-notes check commits from yesterday`). ### What happens when a skill loads When the assistant calls `load_skill`: 1. Toolbelt injects the full `SKILL.md` instructions and an index of all bundled files into the conversation. 2. Standard Claude Code tool conventions are automatically mapped to Toolbelt's environment: - File reading (`Read`, `Grep`, `Glob`) maps to `read_skill_file`. - File creation and editing (`Write`, `Edit`) map to assistant storage tools (`write_text_file`, `patch_text_file`). - Script execution (`Bash`) maps to sandboxed ephemeral code execution (`execute_code`) with `CLAUDE_PLUGIN_ROOT` and `CLAUDE_SKILL_DIR` environment variables preconfigured. - Sub-agent delegation (`Task`) maps to `run_skill_agent` to execute specialized tasks in parallel. --- ## Managing Skills in the Interface To manage skills for an assistant: 1. Open your assistant and select the **Skills** tab in the configuration panel. 2. Browse your **Personal Library** and **Organization Library**. 3. Toggle any skill on or off for that specific assistant. ```text ┌─────────────────────────────────────────────────────────────┐ │ Assistant Settings > Skills │ ├─────────────────────────────────────────────────────────────┤ │ [ Import from GitHub ] [ New Skill ] │ │ │ │ Release Notes Package │ │ github.com/apexti/release-skills · clean │ │ ┌───────────────────────────────────────────────────────┐ │ │ │ release-notes [ ON ] │ │ │ │ Draft user-facing product release notes... │ │ │ └───────────────────────────────────────────────────────┘ │ └─────────────────────────────────────────────────────────────┘ ``` --- ## Importing Skills from GitHub You can import skills directly from public or private GitHub repositories: 1. On the **Skills** tab, click **Import from GitHub**. 2. Enter the repository name (e.g., `owner/repo`) or URL. 3. Toolbelt inspects the repository and previews all detected skills. 4. Select the skills you want to import and choose whether to install them to your personal library or the organization library (admin role required for org installs). 5. Click **Import**. Toolbelt automatically fetches the files, indexes the manifests, and triggers a security scan. --- ## Security Scanning & Verification Every imported or updated skill package undergoes automated static and AI security analysis before execution: - **Clean:** No security risks detected. Ready for immediate use. - **Review:** Low-to-moderate risks detected (such as unconventional script calls). Can be enabled, with advisories displayed in the inspector. - **High Risk / Blocked:** Dangerous patterns detected (such as suspicious outbound network requests, credential harvesting patterns, or prompt injection). > **Warning:** High-risk skills are blocked from execution by default. An organization administrator or workspace owner must inspect the security report and explicitly acknowledge the risk before the skill can be enabled on any assistant. --- ## Authoring Skills Conversationally You do not have to write skills by hand. You can ask your assistant to create or modify skills during your conversation: ```text User: "Save our weekly sprint rollup format as a skill called sprint-rollup." Assistant: [Calls skill_create with instructions, description, and template files] ``` Built-in skill authoring tools: - **`skill_create`**: Creates a new skill with `name`, `description`, `instructions`, and optional files. - **`skill_update`**: Modifies an existing authored skill, updates instructions, adds new files, or deletes obsolete paths. - **`skill_publish`**: Pushes an authored skill to a GitHub repository, structured as a ready-to-use Claude Code plugin with `.claude-plugin/plugin.json` and marketplace manifest. ### Portability Checker When you author or update a skill, Toolbelt's portability engine checks for Toolbelt-specific dependencies. If your instructions reference Toolbelt-only features (such as direct Wrench calls or proprietary sandbox paths), Toolbelt alerts you with portability suggestions so your skill remains functional when shared with Claude Code users. --- --- title: "Vibe Coding" description: "Build dashboards, UIs, and workflows iteratively by conversing with your AI assistant — no boilerplate required." updated: 2026-11-12 --- # Vibe Coding Most software starts with a blank editor and a lot of setup. Vibe Coding in Toolbelt flips that: you describe what you want in plain language, and your assistant builds it while you watch. You iterate by talking, not by switching between files and terminals. This approach works because Toolbelt assistants have direct access to organization storage, the [Dashboard SDK](https://docs.apexti.com/features/dashboard-sdk.md), connected [MCP tools](https://docs.apexti.com/get-started/introduction.md), and [DuckDB databases](https://docs.apexti.com/features/auto-duckdb.md). The assistant writes code, saves files, wires up data, and previews the result — all inside a single conversation. --- ## Why Vibe Coding matters Traditional development separates planning, coding, and testing into distinct phases. Each context switch costs time and breaks flow. Vibe Coding collapses those phases into one continuous loop: - **You describe the outcome** — "Build me a dashboard that shows weekly GitHub PR stats." - **The assistant produces working code** — HTML, JavaScript, SQL queries, wrenches, or full dashboard pages. - **You preview the result immediately** — the assistant saves it to organization storage and gives you a live link. - **You refine in conversation** — "Make the chart red. Add a date filter. Pull data from the staging database instead." No scaffolding. No build step. No deploy pipeline for the first 90% of the work. --- ## What you can build :::cards 3 ===card title: Interactive Dashboards icon: layout-dashboard Ask the assistant to create a full dashboard page with charts, tables, filters, and KPIs. It uses the [Dashboard SDK](https://docs.apexti.com/features/dashboard-sdk.md) to connect widgets to your organization data and MCP tools. ===card title: Custom UIs & Tools icon: code Build internal tools — forms that trigger Slack messages, admin panels that query your databases, or status pages that call GitHub and Jira APIs — all through conversation. ===card title: Automated Workflows icon: git-branch Describe a multi-step workflow and the assistant packages it as a [Wrench](https://docs.apexti.com/features/wrenches.md) — a versioned, reusable script that calls your MCP tools reliably every time. ::: --- ## The interactive loop Vibe Coding follows a simple cycle. Each pass through the loop gets you closer to the finished product. ### 1. Prompt with intent Start by telling the assistant what you want to build and why. The more context you provide about the end goal, the better the first draft. ``` Build me an HTML dashboard page that shows my team's open GitHub pull requests grouped by author, with a bar chart and a data table below it. Use the GitHub MCP tools to fetch data. ``` > **Tip:** Front-load the "what" and "who" before the "how." If the assistant knows the audience (your engineering team, a client, yourself), it makes better layout and data decisions. ### 2. The assistant builds Your assistant reads your prompt, selects the right tools, and produces working output. For a dashboard, that typically means: 1. Writing an HTML file that imports the [Dashboard SDK](https://docs.apexti.com/features/dashboard-sdk.md). 2. Using `sdk.runTool()` or `sdk.executeSql()` to wire up live data. 3. Saving the file to organization storage. 4. Returning a preview link you can open immediately. ### 3. Preview and react Open the link. Look at the result. Then tell the assistant what to change: ``` The chart looks good, but swap the bar chart for a horizontal bar chart. Add a dropdown filter for repository name. Also, the table should show the PR title as a clickable link. ``` The assistant patches the file in place and gives you an updated preview. ### 4. Repeat until done Each round-trip takes seconds, not minutes. After a few iterations you have a working dashboard, tool, or workflow that you can [publish and share](https://docs.apexti.com/features/dashboards.md) or keep iterating on. > **Note:** Every version of the file is saved in [organization storage](https://docs.apexti.com/features/storage.md). You can always roll back if an iteration goes sideways. --- ## Best practices ### Be specific about tools and data sources Your assistant has access to many MCP tools, databases, and APIs. Naming them explicitly removes guesswork and produces better first drafts. | Instead of | Try | |---|---| | "Get my GitHub data" | "Use the GitHub MCP tool `list_pull_requests` on `apexti/toolbelt`" | | "Query the database" | "Run a SQL query against `analytics.duckdb` for rows where `created_at` is in the last 7 days" | | "Send a message" | "Use the Slack MCP tool to post to `#engineering`" | ### Ask for a layout mockup first For complex dashboards, ask the assistant to create the visual layout with placeholder data before wiring up live queries. This separates design decisions from data decisions and avoids wasted API calls during early iterations. ``` Create the HTML layout for a three-column dashboard with a KPI row at the top, a line chart in the middle, and a data table at the bottom. Use placeholder data for now — we'll connect live queries in the next step. ``` > **Tip:** Once the layout looks right, say "Now replace the placeholder data with live queries" and the assistant swaps in `sdk.executeSql()` or `sdk.runTool()` calls. ### Use the Dashboard SDK for data wiring When the assistant builds dashboard pages, make sure it uses the [Dashboard SDK](https://docs.apexti.com/features/dashboard-sdk.md) rather than hard-coded fetch calls. The SDK handles authentication, communicates securely via `postMessage`, and works seamlessly in both embedded and dev modes. Key SDK methods to reference in your prompts: - `sdk.runTool(toolName, args)` — call any enabled MCP tool - `sdk.executeSql(query, params, database)` — run DuckDB queries - `sdk.listTools()` — discover available tools - `sdk.chat(message)` — ask the assistant a question from the dashboard itself ### Debug with the assistant When something doesn't work, describe the symptom instead of guessing at the fix: ``` The chart renders but shows no data. The console says "Cannot read property 'map' of undefined" on line 42. ``` The assistant can read the file, locate the issue, and patch it — often in a single turn. For [Wrenches](https://docs.apexti.com/features/wrenches.md), check the execution history for logged inputs, outputs, and `console.log()` statements. > **Warning:** Avoid manually editing files that the assistant is actively iterating on. If you need to make a manual change, tell the assistant so it stays in sync. ### Commit the final version Vibe Coding is great for rapid prototyping, but production artifacts deserve version control. Once you're happy with the result: 1. Ask the assistant to commit the file to your GitHub repo, or 2. Download it from organization storage and check it in yourself. For dashboards you want to share publicly, use the [publishing and sharing](https://docs.apexti.com/features/dashboards.md) workflow to generate a secure public link. --- ## Related features - [Dashboards](https://docs.apexti.com/features/dashboards.md) — The drag-and-drop dashboard builder and public sharing. - [Dashboard SDK](https://docs.apexti.com/features/dashboard-sdk.md) — The JavaScript SDK your vibe-coded pages use to talk to Toolbelt. - [Wrenches](https://docs.apexti.com/features/wrenches.md) — Reusable code snippets for multi-step MCP workflows. - [Organization Storage](https://docs.apexti.com/features/storage.md) — Where your assistant saves files during the vibe coding loop. - [Chat & History](https://docs.apexti.com/features/chat-history.md) — Chat rendering for Markdown, CSV, HTML, SVG, and related media. --- --- title: "Scheduled Tasks" description: "Automate recurring and one-time work by scheduling your assistants to run on a defined timetable." updated: 2026-11-18 --- # Scheduled Tasks Scheduled Tasks let you put your assistants and automations on autopilot. Instead of manually kicking off a task every time, you define *when* it should run and *what* should happen — and Toolbelt handles the rest. Whether it's a daily standup digest, a weekly report, an hourly data sync, or a one-time reminder to follow up on a proposal, Scheduled Tasks turn your assistants and wrenches into proactive team members that work even when you're not watching. > **Tip:** Scheduled Tasks run automatically on a timetable, giving your assistants recurring responsibilities without requiring you to manually trigger conversations. --- ## How it works When a Scheduled Task fires, Toolbelt: 1. Creates an execution record tied to the task. 2. Executes the task based on its configured mode (an assistant prompt or a direct wrench script). 3. Records the response or output data, execution status, credits consumed, and duration. 4. Notifies you when the run completes (or if an assistant turn needs your input to continue). Each run is fully traceable. You can review the execution log, output payload, credit cost, and final status from the task's **Execution History**. --- ## Execution Modes: Prompts vs. Direct Wrenches Scheduled Tasks support two execution modes depending on whether your automation requires generative reasoning or deterministic script execution: | Mode | `runType` | Description | Token Usage | Credits | |---|---|---|---|---| | **Prompt** | `"prompt"` *(default)* | Opens a chat turn with the target assistant and submits your instruction. Best for analysis, creative synthesis, and triage. | Consumes model tokens. | Billed per model token rates. | | **Direct Wrench** | `"wrench"` | Executes a server-side JavaScript [Wrench](https://docs.apexti.com/features/wrenches.md) directly in background runtime. Best for data synchronization, ETL pipelines, and recurring maintenance. | **Zero** model tokens. | **Zero** LLM credits. | ### Why run a Wrench directly? Many recurring operations do not require LLM reasoning. Fetching an API payload, calculating differences, backing up a DuckDB database, or cleaning up storage files are deterministic operations. Running a wrench directly on a schedule offers three major benefits: - **Zero token cost:** Execution runs in a secure JavaScript runtime without waking an AI model. - **Lower latency:** Bypasses model queuing, inference time, and prompt generation. - **Predictable reliability:** Eliminates model variance or hallucinated arguments during repetitive batch jobs. ### Credit tracking and budget optimization Toolbelt tracks credit consumption for every schedule: - **Per-schedule summary:** The Scheduled Tasks dashboard displays cumulative credits consumed across all historical runs, helping you see at a glance which recurring jobs drive spend. - **Per-run breakdown:** Each execution record logs the exact credit cost associated with that specific run. - **Cost optimization:** If a high-frequency prompt task performs repetitive data fetching, refactoring the data collection into a direct Wrench reduces its credit consumption to zero. ### Wrench execution settings When setting `runType: "wrench"`, configure the following fields: - **Target Wrench (`wrenchId`):** The unique identifier or name of the registered Wrench to execute. - **Input Parameters (`wrenchInputs`):** A JSON object matching the Wrench's declared `inputSchema`. These inputs are passed directly to the script at runtime. - **Custom Timeout (`wrenchTimeoutSeconds`):** The maximum number of seconds the script is permitted to run before terminating. - **Allowed range:** 1 to 600 seconds (10 minutes). - **Default:** 30 seconds. > **Tip: Long-running batch jobs.** > If your wrench processes large data payloads, paginates through hundreds of records, or queries external data stores, increase `wrenchTimeoutSeconds` beyond the default 30-second threshold to prevent premature timeouts. --- ## Schedule types Toolbelt provides recurring and one-time schedule presets: :::cards 3 ===card title: Once icon: calendar-clock Runs once at a specific date and time, then retires. Ideal for future-dated reminders or deferred follow-ups. ===card title: Daily icon: refresh-cw Runs every day at the time you specify. Good for morning digests, daily summaries, or recurring syncs. ===card title: Weekdays icon: calendar-days Runs Monday through Friday at your configured time. Use this for business-day alerts, standup summaries, and triage handoffs. ===card title: Weekends icon: sun Runs Saturday and Sunday at your configured time. Ideal for off-hours maintenance, weekend system health checks, and on-call handoffs. ===card title: Weekly icon: list-todo Runs once a week on the day and time you choose. Use it for weekly reporting, review cycles, or recurring check-ins. ===card title: Monthly icon: layout-grid Runs once a month on the date and time you specify. Fits billing summaries, monthly snapshots, or periodic audits. ::: --- ## Creating a Scheduled Task 1. **Choose an assistant** Select the assistant that owns or manages the scheduled task. Any assistant in your personal organization or an organization you belong to is eligible. 2. **Select the execution mode** Choose **Assistant Prompt** (`prompt`) to initiate an AI chat turn, or **Direct Wrench** (`wrench`) to execute a deterministic script. 3. **Configure the task payload** - For **Prompt** tasks, write what the assistant should do when the task fires. Be specific — the description becomes the first message in the assistant's chat session. - For **Direct Wrench** tasks, select the target Wrench (`wrenchId`), configure the input payload JSON (`wrenchInputs`), and optionally set a custom timeout (`wrenchTimeoutSeconds`, up to 600s). 4. **Set the schedule** Choose **Once**, **Daily**, **Weekdays**, **Weekends**, **Weekly**, or **Monthly**. Then set the target date and time (and day of week or day of month for recurring schedules). 5. **Set priority (optional)** Assign a priority level if the task competes with other work. Higher-priority tasks are surfaced more prominently in your task feed. 6. **Create** Confirm the task. Toolbelt registers the schedule trigger and the task becomes active immediately. --- ## Task statuses | Status | Meaning | |---|---| | `scheduled` | The task is waiting for its next trigger time. | | `running` | The task is actively executing. | | `completed` | The task ran successfully and produced its response or wrench output. | | `failed` | The run encountered an unrecoverable error. See the execution record for details. | | `needs-info` | For prompt tasks: the assistant paused and is waiting for additional input before continuing. | --- ## Managing Scheduled Tasks ### Pausing and resuming You can pause any active Scheduled Task without deleting it. While paused, the task won't fire at its scheduled time. Resume it when you're ready and it will pick up its normal cadence on the next scheduled trigger. ### Editing a task You can update a task's description or wrench inputs, schedule, target assistant, priority, timeout, or active state at any time. Changes take effect on the *next* scheduled run — any in-progress execution completes under the old settings. ### Deleting a task Deleting a Scheduled Task is permanent. The task is removed and its schedule trigger is unregistered. Existing execution history is preserved for reference, but the task will never run again. > **Warning:** Deleting a task cannot be undone. If you only want to stop it temporarily, use **pause** instead. --- ## Execution history Every run of a Scheduled Task creates an execution record. From the **Executions** tab on a task, you can see: - **Status** of each run (`completed`, `failed`, `needs-info`) - **Start and end times** and total duration - **Credits used:** The exact credit deduction for that run (or zero for direct wrenches) - **Output data:** The assistant's text response for prompt tasks, or the structured wrench execution payload for wrench tasks - **Chat link:** For prompt runs, a direct link to the chat session created for that execution Execution history persists even after the task is deleted, so you always have a record of what ran. --- ## Providing additional information Sometimes an assistant needs more context to complete a prompt task — it might ask a clarifying question or request data it doesn't have. When this happens, the execution status changes to **needs-info**. To continue: 1. Open the execution record from the task's **Executions** tab. 2. Reply to the assistant's question in the execution record. 3. The assistant resumes and the execution completes. Until you respond, the task stays in `needs-info` state and future scheduled runs are queued normally. --- ## Access and visibility - **Personal tasks** are private to you. No one else in your organization can see or trigger them. - **Organization tasks** are visible to all members of that organization. Any organization admin can edit or delete them. --- ## Error handling and retries Toolbelt automatically retries failed runs in certain scenarios: | Failure type | Retry behavior | |---|---| | Rate limit hit | Retried after 10 minutes | | Server error (5xx) | Retried after 5 minutes | | Authentication error | Fails immediately — no retry | | Wrench timeout | Fails immediately — review `wrenchTimeoutSeconds` or script efficiency | If a run fails after retries, the execution status is set to `failed` and you'll see the error details in the execution record. --- ## Example use cases - **Direct Wrench data sync** — Every hour on weekdays, a wrench fetches updated ticket numbers, aggregates metrics, and saves them to DuckDB with zero token consumption. - **Daily standup digest** — Every weekday morning, your assistant pulls the latest updates from your tracking tools, summarizes open issues, and sends you a digest. - **Weekly reporting** — Every Friday afternoon, your assistant compiles weekly metrics from your analytics tools and drafts an executive summary. - **Off-hours health check** — On weekends, a wrench pings production service endpoints and alerts Slack if response latency exceeds thresholds. --- --- title: "Create an Organization" description: "Create a new Toolbelt organization and switch into it so you can add assistants and services." updated: 2026-06-09 --- # Create an Organization An **organization** is the top-level container in Toolbelt. Everything — your assistants, connected services, storage, and members — lives inside one. Before you can create an assistant or connect a service, you need an organization to put it in. > **Note:** Every Toolbelt account includes a personal organization by default. If you're just getting started, your personal org is a fine place to experiment. Create a new organization when you want a dedicated organization for a team, a customer, or a specific use case. ## Create a new organization 1. Open the **Organization** dropdown in the left-hand sidebar. 2. Select **+ Create New Organization**. 3. Give the organization a name — use something that reflects the team or use case it's for (for example, "Freight Ops" or "Security Engineering"). 4. Optionally add a description. 5. Click **Create**. ## Switch into the organization Creating an organization doesn't automatically put you inside it. To work in it: 1. Open the **Organization** dropdown again. 2. Select the name of the organization you just created. You're now working inside that organization. Any assistants or services you create from this point are scoped to it. ## What comes next Once you're inside your new organization, you can: - **Create an assistant** — click **New Assistant** from the main organization. - **Connect a service** — go to **Services** in the left sidebar to add integrations like email, calendar, or Slack. See [Services](https://docs.apexti.com/features/services.md) for the full walkthrough. - **Invite teammates** — go to your organization settings to add members and set their permissions. See [Organization Sharing & Permissions](https://docs.apexti.com/features/sharing.md). ## Related topics - [Managing Organization Assistants](https://docs.apexti.com/features/managing-assistants.md) — Shared views, private views, assistant lifecycle, and ownership. - [Organization Sharing & Permissions](https://docs.apexti.com/features/sharing.md) — Share your organization with granular access controls. - [Billing & Subscriptions](https://docs.apexti.com/features/billing.md) — Credits, overage, and plan details. --- --- title: "Organization Sharing & Permissions" description: "Invite teammates to your Toolbelt organization and control access with organization roles and granular assistant access levels." updated: 2026-11-16 --- # Organization Sharing & Permissions Toolbelt organizations are private by default. You open them up by inviting teammates and sharing assistants selectively and safely. Access governance in Toolbelt operates on two layers: 1. **Organization Roles:** Govern team-wide administrative rights (inviting members, managing billing, creating organizations). 2. **Assistant Access Levels:** Govern what users and roles can do with individual assistants (chatting, building workflows, editing instructions, or managing access). --- ## Organization Roles Every organization member holds one of three organization-level roles: :::cards 3 ===card title: Member icon: user The default role. Members can use shared assistants, participate in shared chats, and build automations based on their assigned assistant access levels. ===card title: Admin icon: shield Everything a Member can do, plus the ability to invite other members, manage member roles, configure billing limits, and update organization settings. Admins cannot promote members to Admin or remove Owners. ===card title: Owner icon: crown Full organizational control. Owners can do everything Admins can, plus promote members to Admin or Owner, transfer organization ownership, and delete the organization. An organization must always have at least one Owner. ::: > **Note:** Only Owners can promote a member to the Admin or Owner role. Admins can invite new members, but only at the Member level. --- ## Assistant Access Levels When an assistant is shared with your organization, you control exactly what team members can do with it. Rather than managing sprawling lists of low-level toggles, Toolbelt consolidates assistant permissions into four clear, hierarchical access levels: :::cards 2 ===card title: Use icon: message-square **Converse and run.** Users can start chats, view public and shared dashboards, run existing wrenches, and call connected services. They cannot modify how the assistant is set up. ===card title: Build icon: hammer **Extend capabilities.** Includes everything in **Use**, plus permission to create new wrenches, and create, edit, run, pause, or delete schedules and workflows on the assistant. ===card title: Edit icon: edit **Full configuration control.** Includes everything in **Build**, plus the ability to modify the assistant itself: updating instructions, system prompts, file storage, model selection, connected services, and other people's wrenches. ===card title: Manage icon: shield-check **Administrative ownership.** Includes everything in **Edit**, plus administrative authority: sharing or unsharing the assistant, transferring ownership, archiving or deleting the assistant, and controlling who has access. ::: ### Access level comparison | Permission / Action | `use` | `build` | `edit` | `manage` | |---|:---:|:---:|:---:|:---:| | Chat in private and shared views | ✅ | ✅ | ✅ | ✅ | | View dashboards & run existing wrenches | ✅ | ✅ | ✅ | ✅ | | Create new wrenches | ❌ | ✅ | ✅ | ✅ | | Create & manage schedules and workflows | ❌ | ✅ | ✅ | ✅ | | Edit instructions, system prompt, model selection | ❌ | ❌ | ✅ | ✅ | | Add, remove, or modify services & dashboards | ❌ | ❌ | ✅ | ✅ | | Edit wrenches authored by other members | ❌ | ❌ | ✅ | ✅ | | Configure assistant sharing & access rules | ❌ | ❌ | ❌ | ✅ | | Transfer ownership, archive, or delete assistant | ❌ | ❌ | ❌ | ✅ | --- ## Configuring Assistant Access (`workspace-org-access-panel`) Assistant owners and members with `manage` access configure sharing using the **Assistant Sharing Panel**. This panel provides a three-tier cascade to determine effective access: 1. **Default Organization Access:** Defines the baseline access level granted to every member of the organization when they open the assistant. - **Private:** Only explicitly invited members and the owner have access. - **Use, Build, or Edit:** Grants that baseline tier to all members in the organization. 2. **Role-Based Access Rules:** Overrides the organization default based on the member's organization role. For example, you can set the organization default to `use`, while granting all organization `Admin` users `edit` access automatically. 3. **Individual Member Overrides:** Explicit access assigned to specific people. An individual override always takes precedence over both organization defaults and role-based policies. For example, you can grant a specific developer `build` access on an analytics assistant without elevating their organization-wide role. > **Note:** Access resolution follows a strict priority order: > **Individual Member Override** > **Role-Based Rule** > **Organization Default Access**. --- ## Inviting a Member to the Organization You can invite anyone to your organization by their email address. Invitations must be accepted before the user gains access. 1. Open the organization's **Settings** and select the **Members** tab. 2. Click **Invite member** and enter the user's email address. 3. Select the role to assign: **Member** or **Admin**. - Only Owners can invite someone as an Admin. 4. Click **Send invite**. The user receives an email invitation and appears in the pending invites list until they accept. Once the user accepts, they join as a full member at the role you selected and inherit the organization defaults configured on shared assistants. > **Tip:** You can resend or revoke a pending invite from the same **Members** tab before the user accepts. --- ## Updating Member Roles & Organization Access Admins and Owners can change a member's organization role at any time. 1. Open the organization's **Settings > Members** tab. 2. Find the member and open their settings. 3. Change the **role** or update their [credit limit](https://docs.apexti.com/features/billing.md#per-member-credit-limits). 4. Save. Changes take effect immediately. **Constraints:** - Owners cannot demote themselves. - Only Owners can change a member's role to or from Owner. - Admins cannot change the role of an Owner. --- ## Removing a Member 1. Open the organization's **Settings > Members** tab. 2. Find the member and click **Remove**. 3. Confirm the removal. The member immediately loses access to the organization and all shared assistants. Any content they created inside the organization (chats, wrenches, dashboards) is preserved — only their access is revoked. **Constraints:** - Admins cannot remove Owners. - The last Owner of an organization cannot be removed. --- ## Who Can Manage Members? Only users with the **Admin** or **Owner** role can view the Members tab, send invitations, change organization roles, or revoke membership. Standard members cannot see or modify organization membership settings. --- --- title: "Managing Organization Assistants" description: "Learn how shared and private views work, organization sharing and access levels, assistant version upgrades, chat sharing, ownership transfers, and the assistant lifecycle." updated: 2026-11-16 --- # Managing Organization Assistants When deploying an assistant across an organization, teams need a balance between standardizing tools and allowing individual customization. Toolbelt solves this by splitting organization assistants into two distinct views: **Shared Views** and **Private Views**. ## Understanding views When an administrator deploys an assistant from the Organization Catalog, Toolbelt automatically creates two environments for you: 1. **Shared View** — The organization-wide version of the assistant. It contains shared chats visible to members with the correct permissions and relies strictly on organization-level services. 2. **Private View** — Your personal sandbox. Here you can have private chats with the assistant, connect your own personal services, and customize instructions without affecting the rest of the team. *Look for the Context Indicator in your organization header to see which view you are currently using. It provides a one-click toggle to switch between Private and Shared.* ## Upgrading assistant versions Administrators manage organization assistants through a versioned **Organization Catalog**. When an admin publishes a new version of the assistant (for example, adding a new system prompt or tool), you will see a banner notification in your Private View. 1. **Review the changes:** Click **View Changes** on the banner to see a side-by-side comparison of what is new. 2. **Apply the upgrade:** Click **Upgrade Now** to apply the changes to your Private View. ## Sharing chats with the organization If you have a highly productive interaction in your Private View that the rest of your team could benefit from, you can share it. 1. **Open the chat:** Open the chat in your **Private View**. 2. **Share it:** Click the **Share to Organization** button. 3. **Confirm:** Toolbelt clones the chat and its message history into the **Shared View**, making it accessible to team members with shared access permissions. Shared chats display a distinct badge indicating who originally shared them. ## Transferring assistant ownership You can transfer an assistant from your personal organization to an organization. This is useful when an assistant you've built needs to be managed, updated, or shared by the broader team via the Organization Catalog. > **Warning:** Transferring an assistant to an organization is a **permanent, one-way operation**. Once an assistant is owned by an organization, it cannot be transferred back to a personal account. ## The assistant lifecycle Building and collaborating on assistants in Toolbelt follows a structured lifecycle, designed to balance private experimentation with organizational sharing. ### 1. Creation and private sandbox To begin, navigate to the organization where you want to build your assistant and click **New Assistant**. By default, a newly created assistant is completely private and visible only to you. This provides a safe sandbox to configure instructions, connect tools, and test behavior without exposing incomplete work. ### 2. Sharing with the organization Once your assistant is ready for others to use, you can share it with colleagues using the **Assistant Sharing Panel** (`workspace-org-access-panel`): 1. Open the assistant you want to share. You must hold the `manage` access level (or be the assistant owner). 2. Click the **Share** button in the top-right action bar (or navigate to **Configure > Access & Sharing**). 3. Set the **Organization Default Access**: - **Private:** Keeps the assistant hidden from the organization directory; only explicit members and the owner have access. - **Use:** Allows all organization members to chat, view dashboards, and run existing wrenches. - **Build:** Allows all members to also create wrenches, schedules, and workflows. - **Edit:** Allows all members to modify the assistant's instructions, models, and tools. 4. **Set role rules (optional):** Specify higher baseline access for particular organization roles (e.g., granting all organization `Admin` users `edit` access automatically). 5. **Add individual member overrides (optional):** Search for specific team members to grant tailored access (e.g., giving a colleague `edit` access to co-author instructions). 6. Click **Save Changes**. Toolbelt updates permissions immediately. The assistant appears in your teammates' assistant directories according to their assigned access level. > **Tip:** For details on what each access tier allows, see [Assistant Access Levels](https://docs.apexti.com/features/sharing.md#assistant-access-levels). #### Sharing vs. publishing to the Catalog Direct organization sharing is intentionally lightweight compared to publishing an assistant to the [Organization Catalog](https://docs.apexti.com/features/catalog.md): | | Share with Org | Publish to Catalog | |---|---|---| | **Effort** | Set access tiers and save | Fill out title, description, version, tags | | **Versioning** | None — configuration changes are live immediately | Full semantic versioning with release changelogs | | **Who sees it** | Org members per access settings in their assistant list | Org members via the Catalog browser | | **Private Views** | Shared directly with access permissions | Each member deploys their own private sandbox | | **Best for** | Fast internal sharing, agile co-authoring | Polished, governed, company-standard blueprints | Use direct organization sharing when you want your team to have fast access to an assistant you control and iterate on directly. Use the Catalog when you need versioned releases, governance, and per-user private sandboxes. ### 3. Copying and proposing changes If a team member wants to customize a shared assistant for their specific use case, they can **copy** it: - **Copying** creates a private version of the assistant in their own organization. They can safely modify instructions or add personal tool connections without affecting the original shared version. - **Proposing changes** — If a user improves their copy and wants to contribute those changes back, they can propose the changes to the original owner. The owner reviews the proposed updates and decides whether to integrate them into the shared organization assistant. ### 4. Deleting an assistant When an assistant is no longer needed, users with `manage` access can delete it from the configuration menu. Deleting an assistant removes it from your organization and revokes access for anyone it was shared with. ## Delegating work to specialist assistants Toolbelt supports multi-assistant workflows where a "hub" assistant coordinates work by delegating specific tasks to "specialist" assistants. This is useful when you want a general-purpose assistant (for example, a Chief of Staff or COO assistant) to hand off specialized work — writing, design, data analysis — to a dedicated expert. ### How it works 1. **Enable Assistant Collaboration** on the hub assistant. You'll find this in the mode toggles below the chat input, or in the assistant's Configure panel. 2. **In the hub's system prompt**, tell it which specialist assistants exist and when to use them. For example: > *"When a task requires writing or copy, delegate it to the Writer assistant. Wait for the output before continuing."* 3. The hub sends instructions to the specialist as a sub-task. 4. The specialist completes the work and returns the output. 5. The hub incorporates the result into its broader response or project. > **Tip:** You can specify which model a specialist assistant uses for a delegated task. Include the model in your delegation instruction — for example: *"Delegate this to the Writer assistant using Gemini 3.8 Flash."* The hub overrides the specialist's default model for that task. This is useful when you want a fast, inexpensive model for routine delegation and a premium model only for high-stakes work. ### Where to see delegation activity When a specialist assistant receives a delegated task, that interaction is logged in its **Event tab** — not in Personal or Shared chats. This keeps the automatic activity separate from conversations you start manually. From the hub side, the delegation appears inline in the hub's chat thread as a tool call badge you can expand. ### A simple example Say you have two assistants: **Operations** (your hub) and **Writer** (your specialist). - You tell Operations: *"Draft an executive summary of last week's sales call notes."* - Operations recognizes this is a writing task and delegates to Writer with the relevant context. - Writer drafts the summary and returns it. - Operations delivers the finished summary to you in the same thread. You only sent one message. Both assistants did the work. > **Note:** The specialist assistant must be accessible to your organization (shared, not private-only) for another assistant to delegate to it. --- --- title: "Assistant Versioning" description: "Save snapshot checkpoints of assistant configurations, compare revisions side-by-side, roll back safely, and back up workspace data." updated: 2026-11-23 --- # Assistant Versioning As you refine an assistant — tweaking prompt instructions, swapping models, attaching new wrenches, or adjusting tool permissions — you need confidence that experimental changes won't break proven workflows. Assistant Versioning provides sequential checkpoint snapshots of your assistant's entire configuration. You can save stable milestones, inspect side-by-side diffs between any two versions, restore previous states with automatic safety backups, and optionally preserve workspace storage data. :::cards 2 ===card ### Snapshot Checkpoints Freeze prompt instructions, models, reasoning effort, tool limits, enabled services, skills, and classifiers into immutable sequential versions (v1, v2, v3...). ===card ### Side-by-Side Diffs Compare any two version checkpoints in the visual diff viewer to spot prompt drift, altered parameters, or newly added capabilities. ===card ### Safe Restores Roll back to any historical version with a single click. Toolbelt automatically creates a safety backup of your live state before applying the restore. ===card ### Data Storage Backups Optionally snapshot live workspace files alongside configuration, enabling DuckDB database querying and file inspection directly from historical checkpoints. ::: --- ## Where to find versions You manage versions from the assistant's configuration workspace: 1. Navigate to your assistant in Toolbelt. 2. Open the **Configure** tab. 3. Select the **Versions** tab (`fas-code-branch`). Here you see the chronological history of all saved checkpoints, including version numbers, human-readable labels, author attribution, creation timestamps, and change summaries. --- ## Saving a version checkpoint Whenever you reach a stable state or prepare to test major prompt changes, create a new checkpoint: 1. In the **Versions** panel, click **Save Version**. 2. Provide a **Label** (e.g., `Production Baseline Q4` or `Stricter Extraction Prompt`). 3. Add a **Changelog** summarizing what changed and why. 4. *(Optional)* Check **Set as Default** if new team members or deployed instances should target this milestone. 5. *(Optional)* Check **Include Data Backup** to snapshot live workspace storage files (such as DuckDB tables and reference docs). 6. Click **Save Checkpoint**. Toolbelt captures the configuration state, assigns the next sequential version number, and stores the checkpoint. > **Tip:** Checkpoints are non-destructive. Creating a version never interrupts active chat conversations or scheduled runs. --- ## Comparing versions When evaluating how an assistant's behavior evolved over time, use the visual comparison tool: 1. In the **Versions** list, select **Compare**. 2. Choose your **Base Version** (From) and **Comparison Version** (To). 3. Review the side-by-side diff dialog: - **System Prompt:** Highlighted line-by-line additions and deletions. - **Core Settings:** Model selection, provider, temperature, and iteration limits. - **Capabilities:** Newly added or removed skills, wrenches, and classifiers. - **Services & Tools:** Changes to connected integrations and parameter rules. --- ## Restoring a previous version If an experimental prompt or tool change degrades performance, you can roll back to any earlier checkpoint: 1. Locate the target version in the **Versions** panel. 2. Click **Restore Version**. 3. Choose whether to restore configuration only or to also restore backed-up workspace data files. 4. Click **Confirm Restore**. ### Pre-restore safety backup Toolbelt ensures you never lose work during a rollback. Before overwriting the live configuration, Toolbelt automatically creates a temporary safety snapshot of your current live state. If you need to undo the rollback, your pre-restore state is immediately accessible in the versions list. --- ## Inspecting version backups in chat Assistants can also inspect and retrieve files from checkpoint backups programmatically through chat using native storage tools: | Tool | Purpose | |---|---| | `list_version_backups` | Lists backed-up files and DuckDB databases stored in a version checkpoint. | | `read_version_backup_file` | Reads specific line windows from backed-up text files without modifying live storage. | | `copy_version_backup_file` | Restores a single file from a checkpoint backup into live workspace storage cleanly. | | `query_version_backup_duckdb` | Executes read-only SQL queries directly against historical DuckDB database snapshots. | **Example Prompts:** ``` "List the storage files saved in version checkpoint 3." "Query the sales_q3 table inside custom.duckdb from version checkpoint 2." "Copy prompt-rules.txt from version checkpoint 1 into live storage as prompt-rules-v1.txt." ``` --- --- title: "Assistant Catalog" description: "Publish, version, and deploy assistants across your team or the broader Toolbelt platform with the Catalog." updated: 2026-10-29 --- # Assistant Catalog The Catalog is a platform-wide library of published assistant blueprints. Any Toolbelt user can publish an assistant to the Catalog and make it available for others to deploy — no organization required. When you publish within an organization context, only members of that organization see the entry. Think of the Catalog as a versioned registry: each entry is a snapshot of an assistant at a point in time, complete with its system prompt, model, services, and default settings. ## Who can publish to the Catalog Publishing is open to all Toolbelt users. Your access depends on context: | Context | Who can publish | |---|---| | **Personal organization** | Any user — you are automatically the owner of your personal organization and can always publish. | | **Organization — owner or admin** | Always permitted. | | **Organization — member** | Requires the `canPublishToOrgCatalog` permission, granted by an owner or admin. | > **Note:** If the Publish to Catalog button appears grayed out or returns a permission error inside a team org, ask your organization owner to grant the `canPublishToOrgCatalog` permission on your account. ## Publish an assistant to the Catalog The **Publish to Catalog** button lives in the top-right toolbar of the assistant editor — it is the fourth icon from the left in the action bar. 1. Open the assistant you want to publish. 2. Click the **Publish to Catalog** icon in the top-right toolbar. 3. Fill in the publish form: - **Title** — the display name for the Catalog listing - **Description** — what this assistant does and who it is for - **Category** — grouping (e.g., "Engineering", "Human Resources") - **Tags** — freeform labels for search and filtering - **Version** — a semantic version label (e.g., `1.0.0`) - **Version notes** — a short changelog entry describing this release 4. Click **Publish**. Once published, the assistant appears in the Catalog. Anyone with access can deploy it, which creates their own private copy to work from. ### What Toolbelt captures in the snapshot Publishing takes a full, immutable snapshot of the assistant's current configuration: - System prompt - AI model and provider - All enabled services - Default chat mode settings (interactive elements, assistant collaboration, image generation, document search, code execution, and org shared storage) > **Note:** Changes you make to the assistant after publishing are not reflected in the Catalog until you publish a new version. ## Update a published assistant (versioning) The Catalog is versioned. When you update a published assistant — changing its system prompt, adding a service, or adjusting its model — you publish a new version rather than silently overwriting the existing one. 1. Make your changes to the assistant's configuration. 2. Click the **Publish to Catalog** icon again. 3. Update the version number and add version notes describing what changed. 4. Click **Publish**. Toolbelt generates a **Pending Upgrade Notification** for every member who has deployed this assistant. They see a banner in their organization with a **View Changes** link so they can review the diff before upgrading. No one gets a forced update — upgrades are always user-initiated. > **Tip:** Write meaningful version notes. Members use them to decide whether to upgrade now or defer — a note like *"Added GitHub tool, updated system prompt for ticket triage"* is far more useful than leaving it blank. ## How deployed copies work When a member deploys an assistant from the Catalog, Toolbelt creates a **full clone** of the published snapshot in their organization. It is their own private copy — they own it completely and can change anything: the system prompt, model, services, name, and settings. Nothing they do affects the original Catalog entry or any other member's copy. The clone also carries a **reference pointer** back to the Catalog entry it came from. That pointer is what enables the upgrade flow: when you publish a new version, Toolbelt uses those pointers to identify every deployed copy and send each owner an upgrade notification. ### What happens when a member upgrades Accepting an upgrade replaces the deployed copy with a fresh clone of the new Catalog version. Any changes the member made to their local copy — prompt edits, model tweaks, service additions — are overwritten by the incoming version. > **Warning:** Upgrading overwrites local customizations. There is no automatic merge. Members should review what they have changed before accepting an upgrade, and defer it if they want to preserve their edits. > **Tip:** This trade-off is by design. The Catalog is for **baseline blueprints**, not perpetually maintained forks. Encourage members to treat their deployed copy as a launchpad — and use version notes to signal how significant each update is. ## Remove an assistant from the Catalog Removing an assistant from the Catalog unpublishes it — it stops appearing for new users. Copies that have already been deployed are not deleted automatically. > **Warning:** This does not delete the assistant itself. It removes it from the Catalog listing. To fully delete the assistant, do so from its configuration settings. ## Related topics - [Managing Organization Assistants](https://docs.apexti.com/features/managing-assistants.md) — Private & shared views, one-click org sharing, version upgrades, and ownership transfers. - [Organization Sharing & Permissions](https://docs.apexti.com/features/sharing.md) — Granular access controls for organizations. --- --- title: "Inter-Organization Communication" description: "Delegate tasks to specialized assistants in other organizations to build secure, multi-agent workflows." updated: 2026-06-09 --- # Inter-Organization Communication As your organization grows, a single monolithic assistant becomes difficult to manage. You might want an IT bot that manages AWS, an HR bot that handles payroll queries, and a DevOps bot that deploys code. Each is its own assistant, with its own tools and credentials. Inter-Organization Communication allows these isolated assistants to talk to each other. An orchestrator bot can receive a complex user request, break it down, and spawn parallel tasks in specialized assistants — gathering the results without ever exposing the underlying credentials or tools of one assistant to another. ## Why use multi-agent workflows? :::cards 2 ===card title: Security & Isolation icon: shield-check **Keep credentials separated.** An HR bot doesn't need AWS keys, and a DevOps bot doesn't need payroll access. Sub-chats ensure tools, data, and credentials remain isolated in their respective assistants. ===card title: Parallel Execution icon: git-branch **Run tasks concurrently.** An orchestrator can ask the Sales bot for Q3 metrics and the Marketing bot for Q3 spend simultaneously, wait for both to finish, and synthesize the final report — all in one turn. ::: ## How it works In Toolbelt, cross-organization delegation is implemented through **Sub-Chats**. A sub-chat is a targeted, single-turn prompt sent from one assistant (the "caller") to another assistant (the "target"). The interaction is headless and asynchronous: 1. The caller sends a prompt to the target assistant using the `create_sub_chat` action. 2. The target assistant executes the task using its own tools, memory, and databases. 3. The target returns its final text response back to the caller. > **Note:** Sub-chats are strictly request-and-response. The caller only receives the final output string — it does not see the intermediate tool calls, the internal reasoning, or any files belonging to the target assistant. ## Implementation guide ### Step 1: Create the sub-chat Use the `create_sub_chat` Toolbelt action to spawn a task in the target assistant. You need two things: - `targetAssistantId` — the UUID of the assistant you want to call. - `content` — the prompt you want to send. ```json { "action": "create_sub_chat", "params": { "targetAssistantId": "12345678-abcd-efgh-ijkl-1234567890ab", "content": "Generate a summary of Q3 marketing spend. Return only the total number and the top three categories." } } ``` The action returns immediately with a `correlationId` and a `status` of `"pending"`. The target assistant begins working in the background. > **Tip:** You can call `create_sub_chat` multiple times before calling `sleep` — all the tasks run in parallel. This is the recommended pattern for fan-out workflows. ### Step 2: Wait for completion Because sub-chats run asynchronously, the orchestrator must pause and wait. Use the `sleep` action to suspend execution until one or more tasks finish. ```json { "action": "sleep", "params": { "timeoutSeconds": 45, "wakeOnAnyComplete": true } } ``` The orchestrator suspends. It wakes up when either: - One or more sub-chats complete (`wokeReason: "sub_chat_complete"`). - The timeout elapses (`wokeReason: "timeout"`). ### Step 3: Process the result When `sleep` returns, the response includes a `subChats` array. Each completed entry has the target's response in `lastMessage`. ```json { "wokeReason": "sub_chat_complete", "subChats": [ { "correlationId": "dlg_abc123", "status": "completed", "calleeOrganizationName": "Marketing Assistant", "lastMessage": "Q3 Marketing Spend: $45,000. Top categories: 1. Ads ($20k) 2. Events ($15k) 3. Software ($10k)." } ] } ``` The orchestrator can now incorporate this response into its own reasoning, pass it to another tool, or format it for the user. ### Handling still-running tasks If `sleep` times out before a sub-chat finishes, that entry will still show `"status": "in_progress"`. You have two options: 1. **Call `sleep` again** to continue waiting. 2. **Use `get_pending_sub_chats`** to poll for the latest status without blocking. > **Warning:** Do not assume a timed-out sub-chat has failed. Specialist tasks that involve heavy database queries or external API calls may simply need more time. Always check the `status` field before treating a result as missing. --- ## Parallel fan-out pattern The most powerful use of Inter-Organization Communication is running multiple specialist tasks in parallel and merging the results. Here is the full pattern: ``` # 1. Spawn tasks in parallel create_sub_chat → Sales Assistant (correlationId: dlg_111) create_sub_chat → Marketing Assistant (correlationId: dlg_222) create_sub_chat → Finance Assistant (correlationId: dlg_333) # 2. Wait for all to complete sleep(timeoutSeconds: 60) # 3. Merge all three lastMessage values into a unified report ``` Because all three `create_sub_chat` calls happen before `sleep`, Toolbelt runs them concurrently. The total wait time is roughly the slowest of the three — not the sum of all three. --- ## Best practices ### Write self-contained prompts Target assistants do not share the conversational context of the orchestrator. Every prompt you send via `create_sub_chat` must include all the information the target needs to succeed. Never assume the target remembers earlier parts of the conversation. ``` ❌ "What were the numbers we discussed earlier?" ✅ "What was the total revenue for Q3 2025 from the sales_data.duckdb database? Return only the number." ``` ### Constrain the output format Ask the target to return JSON, a number, a bulleted list, or another machine-readable format. This makes it far easier for the orchestrator to parse and merge responses from multiple bots. ``` "Return your answer as JSON: { total: number, categories: string[] }" ``` ### Set realistic timeouts Choose a `timeoutSeconds` value based on what you expect the target to do. A simple lookup might finish in 5 seconds; a multi-step analysis across a large database might take 60 or more. > **Tip:** If you are unsure how long a task will take, set a generous timeout (90–120 seconds) and let `wakeOnAnyComplete: true` return early when results are ready. --- ## Related pages - [Sub-Chats](https://docs.apexti.com/features/sub-chats.md) — Full reference for the `create_sub_chat`, `sleep`, and `get_pending_sub_chats` actions. - [Wrenches](https://docs.apexti.com/features/wrenches.md) — Package repeatable MCP workflows into reusable scripts. - [Scheduled Tasks](https://docs.apexti.com/features/scheduled-tasks.md) — Trigger orchestrator workflows on a schedule. --- --- title: "Memories & Persistent Context" description: "How Toolbelt assistants remember facts, preferences, and context across conversations using Memories, Workspace Storage, and Instructions." updated: 2026-10-29 --- # Memories & Persistent Context Most AI tools start every conversation with a blank slate. That works fine for one-off questions, but it breaks down when an assistant does ongoing work. If your assistant writes weekly digests, it shouldn't need a reminder every week about how you want them formatted. If it manages tasks or writes code, it should already know your team's conventions. Toolbelt solves this through three complementary mechanisms that give your assistant durable, updatable context across conversations. --- ## The three layers of persistent context :::cards 3 ===card title: Memories icon: brain href: features/memories.md Semantic facts and preferences, retrieved automatically at the start of each conversation. Best for user-level preferences and recurring context. ===card title: Workspace Storage icon: folder href: features/storage.md Durable files your assistant reads and writes at runtime. Best for structured state, preferences files, and data that the assistant actively manages. ===card title: Instructions icon: file-text href: features/managing-assistants.md Your assistant's operating rules, written in plain language. Editable live by you or the assistant itself. Best for standing behavioral rules and output formats. ::: ### How they work together Think of these three mechanisms as complementary layers: - **Instructions** set the baseline — the rules your assistant always follows, such as *"always structure reports with an executive summary first"* or *"respond concisely with bullet points."* - **Workspace Storage** holds structured state — files like `preferences.md` or `team-conventions.md` that the assistant reads before acting and updates when you give it new rules. - **Memories** surface relevant facts automatically — the assistant retrieves the most semantically relevant memories at the start of each conversation, so context you've shared before isn't lost. You do not need to use all three simultaneously. Many assistants get everything they need from instructions alone. But for assistants that adapt over time or serve multiple team members with different needs, combining all three gives you the most flexible setup. --- ## The runtime update pattern Your assistant can update its own memory at runtime during a normal conversation — without any code change or redeployment. For example, say you're working with a reporting assistant and tell it: > *"From now on, always include a risks section at the end of every report, and format the exec summary as three bullet points max."* The assistant can: 1. Add this as a **Memory** entry for immediate future recall. 2. Write a new rule to its `preferences.md` in **Workspace Storage**. 3. Ask you whether to update its **Instructions** to make this permanent. On the next run — scheduled or manual — the assistant reads that context before it acts, and the new format is applied automatically. > **Tip:** For rules you want applied universally and permanently, updating Instructions is the most reliable path. For user-specific preferences or frequently changing context, Memories and Workspace Storage are more flexible. ### When to use each mechanism | Situation | Best mechanism | |---|---| | *"Always respond in bullet points"* | Instructions | | *"This team uses conventional commits: feat:, fix:, chore:"* | Instructions or Storage | | *"My timezone is US/Eastern"* | Memories | | *"For these weekly reports, always include sections X, Y, Z"* | Storage (`preferences.md`) or Memories | | Tracking state across multiple automated workflow runs | Storage | | Per-user preferences in a shared organization assistant | Memories (scoped per user) | --- ## The Memories store (Mem0) Memories in Toolbelt are powered by [Mem0](https://mem0.ai), an open-source memory layer for AI agents. Each memory is stored and indexed so the assistant can retrieve only the most relevant memories for a given conversation — not the entire history at once. Memories are **scoped to each assistant workspace**. This keeps different assistants' contexts cleanly isolated from one another. ### How search and relevance work When you start a conversation, your assistant automatically searches its memory store for context relevant to your first message. The most relevant memories are injected into the assistant's context window before the conversation begins — giving it instant recall without you having to repeat yourself. You can also search your memories manually from the Memories tab at any time. --- ## Managing memories ### In the dashboard Open your assistant and navigate to the **Memories** tab. From there you can: - **View** all memories stored for this assistant. - **Search** across your memories by keyword or concept. - **Add** a new memory manually. - **Edit** an existing memory. - **Delete** a memory you no longer need. ### During a conversation You can ask your assistant to remember something directly using natural language: > *"Remember that I prefer code examples in TypeScript."* > *"Don't forget — our deployment window is every Tuesday at 2:00 AM UTC."* The assistant will create a memory entry automatically using its native toolbelt tools. ### What makes a good memory? Memories work best when they capture durable facts rather than transient conversation details: - **Preferences** — *"I prefer concise explanations with bullet points."* - **Recurring context** — *"My primary database is PostgreSQL 16 on AWS RDS."* - **Team conventions** — *"We use conventional commits: feat:, fix:, chore:."* - **Personal details** — *"My timezone is US/Eastern."* Avoid storing things that change frequently or are specific to a single temporary conversation. --- ## API reference ### List all memories ```http GET /api/memories?workspaceId=:workspaceId ``` Returns all memories stored for the specified assistant. ### Search memories ```http POST /api/memories/search ``` **Request body** ```json { "workspaceId": "ws_abc123", "query": "TypeScript preferences" } ``` Returns the most semantically relevant memories for the given query. ### Add a memory ```http POST /api/memories ``` **Request body** ```json { "workspaceId": "ws_abc123", "content": "The user prefers TypeScript with strict mode enabled." } ``` ### Update a memory ```http PUT /api/memories/:id ``` **Request body** ```json { "content": "Updated memory content." } ``` ### Delete a memory ```http DELETE /api/memories/:id ``` Permanently removes the specified memory. > **Warning:** Deleted memories cannot be recovered. If you need to update a memory rather than remove it, use the update endpoint (`PUT /api/memories/:id`) instead. --- ## Privacy, data isolation, and plans - **Core feature on all plans:** Memories, workspace storage, and instructions are available on every Toolbelt plan — they are not gated behind enterprise tiers. Plan differences reflect credit capacity, not feature availability. - **Data privacy:** Memories are stored within your organization's data boundary. They are accessible only to assistants and users within your organization. Toolbelt does not use your memories to train AI models. --- --- title: "Billing & Subscriptions" description: "Manage your organization's Toolbelt subscription, credit allowances, member credit limits, and overage settings." updated: 2026-11-16 --- # Billing & Subscriptions Toolbelt provides flexible billing controls for personal and team organizations. Owners and administrators can manage subscription plans, allocate AI credit budgets, set per-member credit limits, and control overage spending for the selected organization. --- ## How Billing Works Billing in Toolbelt is managed at the **organization** level. Your personal account is represented by a personal organization, so an individual subscription is a subscription for that personal organization. All AI usage (token consumption) across organizations, private views, and shared views rolls up to the organization that owns the usage. Toolbelt tracks usage using **Credits**. Different AI models consume credits at different rates based on their underlying token costs (e.g., GPT-6 Astra consumes credits differently than Gemini Flash). ### Personal and Team Organization Subscriptions A Toolbelt subscription applies to the **billing organization** where checkout starts. It does not attach directly to a user account across every organization they belong to. If you subscribe as an individual, the subscription applies to your **personal organization**. Personal organizations, and other usage that is not tied to a team organization, draw from that personal organization's billing plan. If you subscribe from a team organization's billing settings, the subscription applies to that **team organization**. It does not automatically upgrade your personal organization or any other team organization where you are an owner or administrator. > **Note:** If you belong to multiple organizations, check the organization name on the billing page before changing plans or starting Stripe checkout. The plan change applies only to the selected billing organization. #### Which subscription pays for usage? Toolbelt resolves billing based on where usage happens: | Usage source | Billing account used | | --- | --- | | Personal organization, or usage with no team organization | The user's personal organization | | Organization in a team organization | That team organization | | Child organization in a billing group | The parent billing organization | | Custom OpenAI-compatible provider usage | No Toolbelt organization credits are deducted | | Toolbelt free model usage | No Toolbelt organization credits are deducted | For example, upgrading your personal organization to Pro does not upgrade a team organization where you are an admin. To upgrade that team, open the team's billing settings and change the plan there. ### Multiple Organizations and the Free Org Limit You can hold more than one plan at a time across different organizations. For example, you can have an Individual plan on your personal org and a Team plan on a separate team org simultaneously — they are independent subscriptions. **How many organizations can you have without a Team plan?** Every Toolbelt account includes one **free org** beyond your personal organization. If you already have existing orgs, you can still create one additional free org. After that, Toolbelt requires a Team plan before you can create a new org. > **Note:** This limit applies to new org creation only. Organizations you created before this policy was in place are not locked out — they remain accessible and their credit usage bills to your Individual plan. **Which plan pays for which org?** | Organization type | Billing account used | | --- | --- | | Personal org | Your Individual (personal) plan | | One additional free org | Your Individual (personal) plan | | Team org with its own Team plan | That team org's Team plan | | Grandfathered orgs (created before the free-org limit) | Your Individual (personal) plan | > **Tip:** If you're unsure which plan a specific org bills against, open that org's **Settings > Billing** page. It shows the active plan and credit source for that organization. ### Credit Allowances Every billing plan includes a monthly **Credit Allowance**. As users interact with assistants in your organization, these credits are depleted. ### Overages If your organization exhausts its monthly credit allowance, you have two options: 1. **Hard Stop:** Assistants will return an error stating that the organization has run out of credits, preventing any unexpected charges. 2. **Billable Boundary:** You can set a Billable Boundary to allow pay-as-you-go usage beyond your allocation. Toolbelt will seamlessly bill your connected Stripe account for additional credits consumed, up to the limit you configure. --- ## Per-Member Credit Limits In shared team organizations, unconstrained AI usage by a single user or runaway background task can deplete the entire team's monthly credit pool. **Per-Member Credit Limits** give administrators precise control over individual spending while sharing a single organizational subscription. ### Limit modes Administrators can configure each member's credit cap using one of three modes: | Mode | Behavior | Best for | |---|---|---| | **Inherit (`inherit`)** | The member automatically inherits the default credit limit defined for their organization role. | Standard team members whose allocation scales with their role. | | **Custom (`custom`)** | An explicit, fixed monthly credit allowance (e.g., 500 credits/month) assigned specifically to this member. | High-usage developers, interns, contractors, or specific testing accounts. | | **None (`none`)** | No individual limit. The member can consume credits up to the organization's total available balance. | Executive users or automated service accounts. | ### Priority and enforcement rules When a member triggers a tool call, workflow step, or chat interaction, Toolbelt evaluates both individual and organizational limits: 1. **Whichever limit runs out first stops the user:** - If an individual member reaches their personal credit cap, their requests pause with an error indicating their member limit has been reached — even if the organization still has ample credits remaining. - If the organization exhausts its total credit allowance (and no Billable Boundary is configured), **all** members are blocked regardless of individual remaining allowances. 2. **Role restrictions:** - **Organization Owners:** Owners cannot be restricted by member credit limits. Their mode is locked to `none`. - **Administrators:** Admins are configured with `none` (unlimited) by default, but Owners can assign them an explicit `custom` limit if desired. - **Standard Members:** Default to `inherit` unless customized by an administrator. ### Configuring member credit limits 1. Navigate to **Organization Settings > Members**. 2. Locate the team member in the list and click **Edit Access & Limits**. 3. Under **Credit Limit**, choose **Inherit Role Default**, **Custom Limit**, or **Unlimited**. 4. If selecting **Custom Limit**, enter the monthly credit threshold. 5. Click **Save**. The limit takes effect immediately and resets automatically on the first day of each billing cycle. --- ## What Happens When Credits Run Out When an organization's credit balance reaches zero, Toolbelt enters a **credit-exhausted** state. Not all features behave the same way — some continue to work, and others are blocked. ### What keeps working | Feature | Behavior at zero credits | | --- | --- | | Toolbelt free models | ✅ Continue to work — free model usage never deducts credits | | Custom AI provider usage | ✅ Continue to work — billed directly to your provider, not Toolbelt | | Storage | ✅ Reads and writes continue to work | ### What stops working | Feature | Behavior at zero credits | | --- | --- | | MCP tool calls (Pipedream-backed services) | 🚫 Blocked — see note below | | Browser tools | 🚫 Blocked | | Sandbox | 🚫 Blocked | | Live audio | 🚫 Blocked | | Meeting bot | 🚫 Blocked | > **Note:** Most connected services in Toolbelt — such as Slack, GitHub, Linear, and other integrations you add through the Services panel — are backed by Pipedream and require credits to invoke. When credits are exhausted, tool calls to those services will fail. MCP servers that Toolbelt provides natively (without Pipedream) are not subject to this restriction. > **Note:** Free model responses and custom provider responses remain available regardless of credit balance. If you only need text-based AI responses and do not rely on connected services, you can still get work done while credits are depleted. --- ## The Billable Boundary The **Billable Boundary** is the setting that controls how much pay-as-you-go spend your organization is willing to allow beyond its subscription's monthly credit allocation. It replaces a simple on/off overage toggle with a defined spending limit — giving you the flexibility to absorb reasonable overages while protecting against unexpected runaway charges. ### Why it matters Without a Billable Boundary, your organization enters a hard stop the moment its credit allocation runs out (see [What Happens When Credits Run Out](https://docs.apexti.com/features/billing.md#what-happens-when-credits-run-out)). Setting a Billable Boundary tells Toolbelt how much additional spend — in dollars — you'll allow per billing period before that hard stop kicks in. This is especially useful for teams running scheduled workflows or background automations, where usage can spike beyond a baseline in ways that are hard to predict in advance. ### How it works 1. Your subscription's monthly credit allocation is consumed first. 2. Once the allocation is exhausted, Toolbelt checks your Billable Boundary. - If no Billable Boundary is set, the organization enters a hard stop immediately. - If a Billable Boundary is configured, Toolbelt continues to allow usage and bills your connected payment method for the additional credits consumed. 3. When cumulative overage charges for the billing period reach your Billable Boundary, the organization enters a hard stop. > **Tip:** If you run scheduled tasks or background automations, set a Billable Boundary that gives you enough headroom for normal operation while protecting against runaway usage. ### Configuring the Billable Boundary 1. Navigate to **Organization Settings > Billing**. 2. Set your **Billable Boundary** — the maximum dollar amount of overage charges you'll allow per billing period. 3. Save your settings. > **Note:** The Billable Boundary resets at the start of each billing period when your credits renew. You can update it at any time; the new value takes effect immediately. --- ## Managing Your Subscription Organization owners and administrators can manage billing settings directly from the dashboard. Toolbelt integrates with **Stripe** to securely handle payments and invoicing. ### Changing Plans 1. Navigate to **Organization Settings > Billing**. 2. Review your current **Monthly Price** and **Credit Allowance**. 3. Select a new plan to upgrade or downgrade. Changes take effect immediately, and Stripe will prorate your invoice accordingly. ### Setting Your Billable Boundary To control pay-as-you-go spend, configure your Billable Boundary at any time. 1. Navigate to **Organization Settings > Billing**. 2. Set the **Billable Boundary** to the maximum dollar amount of overage charges you'll allow per billing period. 3. Save your settings. The new value takes effect immediately. --- ## Parent and Child Organizations For enterprise deployments or agencies managing multiple clients, Toolbelt supports **Billing Groups**. An organization can be designated as a \"Child\" of a \"Parent\" organization. - **Pooled Credits:** The child organization's AI usage consumes the parent organization's credit allowance. - **Centralized Invoicing:** The parent organization holds the Stripe subscription and pays for the combined monthly price and overages of all its children. - **Management:** Child organizations will see a notice in their billing settings indicating that their billing is managed by the parent organization. --- ## Common Questions ### If I pay for a subscription as an individual, what does it cover? It covers your personal organization. Your personal organization pays for personal organizations and usage that is not associated with a team organization. ### Does my personal subscription cover team organizations? No. Team organizations have separate billing records. To upgrade a team organization, open that team's billing settings and change the plan there. ### Can one organization pay for another organization? Yes. Billing groups let a parent organization pay for one or more child organizations. When an organization is a child in a billing group, Toolbelt charges usage to the parent billing organization. ### What happens when I use my own AI provider? Usage from a custom OpenAI-compatible provider does not deduct Toolbelt organization credits. You pay that provider directly according to its billing terms. --- ## API Reference The REST API exposes billing management for automated provisioning and monitoring. ### Get Billing Details ```http GET /api/organizations/:organizationId/billing ``` Returns the current billing status, including total allowance, credits used, remaining balance, and overage settings. If the organization is a Parent, it also returns the aggregated `childrenCreditsUsed`. ### Get My Billing (Cross-Organization) ```http GET /api/billing/my-billing ``` Returns a consolidated overview of the authenticated user's personal billing status and the billing status of every team organization where they are an owner or administrator. The `personal` result represents the user's personal organization. The `organizations` results represent team organizations separately. A subscription in one result does not apply to the others unless a billing group makes a parent organization responsible for a child organization's usage. ### Update Billable Boundary ```http PUT /api/organizations/:organizationId/billing ``` **Body:** ```json { \"billableBoundary\": 50.00 } ``` Set `billableBoundary` to `null` to remove pay-as-you-go access entirely — the organization will enter a hard stop as soon as its included allocation is exhausted. > **Warning:** Setting a high `billableBoundary` removes most automatic spend protection. Toolbelt will continue billing overages until the limit is reached or the billing period ends. ### Change Billing Plan ```http PUT /api/organizations/:organizationId/billing/plan ``` **Body:** ```json { \"planName\": \"pro_tier_1\" } ``` > **Warning:** Updating billing settings requires the `requireOrgAdmin` permission. Standard organization members cannot view or modify these endpoints. --- --- title: "Transfer & Reclaim Services" description: "Share your personal MCP connections with your organization, or reclaim them when they are no longer needed." updated: 2026-06-09 --- # Transfer & Reclaim Services When you connect a tool or service to Toolbelt, that connection (or "service") is private to you by default. However, when collaborating with a team, you may want to allow other members of your organization to utilize your connection within shared assistants. Toolbelt allows you to **transfer** a service to your organization. Once transferred, the service can be invoked by organization-wide assistants and workflows. ## Transferring a Service Transferring a service grants the organization access to its underlying tools. > **Note:** **Important:** Transferring a service does not expose your raw credentials or API keys to other users. It simply allows the organization's shared assistants to invoke the tools provided by that service. **To transfer a service:** 1. Navigate to your **Organization Settings**. 2. Select the **Transferred Services** tab. 3. Click the **Transfer Service** button. 4. In the dialog, select the personal service you want to share from the dropdown menu. 5. Click **Share** to complete the transfer. Once transferred, the service appears in the Transferred Services list alongside its connection type and the email address of the user who transferred it. ## Reclaiming a Service If a service is no longer needed by the organization, or if you want to revoke access to your connection, it can be reclaimed. Reclaiming a service unshares it from the organization and returns it exclusively to your personal organization. ### Who can reclaim a service? To prevent unauthorized disruptions to shared assistants, only the following users can reclaim a service: - The **original owner** who transferred the service. - An Organization **Owner**. - An Organization **Admin**. **To reclaim a service:** 1. Navigate to your **Organization Settings**. 2. Select the **Transferred Services** tab. 3. Locate the service you want to reclaim in the list. 4. Click the **Reclaim** button next to the service. 5. Confirm the action to remove the service from the organization. > **Warning:** Reclaiming a service immediately revokes the organization's access. Any shared assistants relying on this service will lose access to its tools, which may cause active workflows to fail. --- --- title: "Notifications" description: "Stay informed about what your assistants are doing. Toolbelt Notifications give assistants a first-class channel for surfacing updates, alerts, and actionable insights directly to you." updated: 2026-10-05 --- # Notifications Notifications are how your assistants talk back to you outside of a chat. When an assistant completes a background task, encounters something worth your attention, or wants to recommend an action, it raises a notification — a persistent, dismissible message that lives in your Toolbelt inbox until you act on it or clear it. Think of notifications less like push alerts and more like a smart task tray: a running record of what your assistants have flagged for you, ranked by what needs attention. > **Note:** Notifications are scoped to you and your organization. Each user sees only their own notification feed. Notifications raised within an organization are additionally scoped to that organization. --- ## How assistants send notifications Assistants create notifications using the `create_notification` Toolbelt action. This is a dedicated action exposed through the `toolbelt` tool — the same mechanism assistants use for tasks, dashboards, and storage. ### Creating a notification Use the `create_notification` Toolbelt action: ```javascript // Inside an assistant's tool call await toolbelt({ action: "create_notification", params: JSON.stringify({ title: "Export complete", message: "Your Q1 report has been exported and is ready to download.", type: "info", link: "https://example.com/reports/q1" }) }); ``` #### Parameters | Parameter | Type | Required | Description | |-----------|------|----------|-------------| | `title` | `string` | ✅ | Short headline for the notification. Keep it under 60 characters. | | `message` | `string` | ✅ | The full notification body. Supports plain text. | | `type` | `string` | ✅ | Notification type. Controls visual treatment. See [Notification types](https://docs.apexti.com/features/notifications.md#notification-types) below. | | `link` | `string` | — | Optional URL the notification links to. Opens in a new tab. | | `expiresAt` | `string` | — | ISO 8601 timestamp. If set, the notification is automatically hidden after this time (still retrievable with `includeExpired=true`). | | `organizationId` | `string` | — | Scope this notification to a specific organization. Defaults to the user's personal organization. | > **Warning:** Notifications are not a substitute for inline assistant responses. Use them for events that happen asynchronously — after a long-running task, a triggered automation, or a background monitor firing — not for real-time conversational feedback. --- ## Notification types The `type` field controls how the notification is displayed in the UI and what semantic weight it carries. :::cards 2 ===card title: info icon: message-square General-purpose updates. Use for completed tasks, summaries, and neutral status changes. Renders with a blue accent. ===card title: success icon: list-todo Positive outcomes. Use when something the user wanted has been accomplished — a file saved, a task finished, a goal reached. Renders with a green accent. ===card title: warning icon: scroll-text Situations that need attention but aren't blocking. Use for partial failures, quota thresholds, or degraded conditions. Renders with an amber accent. ===card title: error icon: zap Something went wrong. Use when an assistant-initiated action has failed and the user should know. Renders with a red accent. ::: > **Note:** When in doubt, use `info`. It's the broadest type and appropriate for the vast majority of assistant-generated notifications. --- ## How users receive and view notifications Notifications appear in the **Notification Center** — accessible from the bell icon in the Toolbelt top navigation bar. The badge on the icon shows your current unread count. ### The notification feed The feed loads your most recent unread notifications automatically. You can filter the list by: - **Status:** `unread`, `read`, or all notifications (including expired ones) - **Type:** `info`, `success`, `warning`, or `error` - **Organization:** switch between your personal organization and any organization you belong to The feed is paginated and supports `limit` and `offset` for programmatic access via the API. ### The Central Hub The **Central Hub** is a unified view that combines: - A **notification summary** — counts of unread notifications grouped by type and status - Your **unread notifications** (up to 20 most recent) - Active **recommendations** from your assistants (up to 5) The Central Hub is designed as a single-request overview so the UI stays fast even when you have a high volume of notifications. --- ## Notification lifecycle A notification moves through the following states from creation to resolution: 1. **Created (Unread):** An assistant calls `create_notification`. The notification appears in your feed with an **Unread** badge. The unread count in the nav bar increments. 2. **Read:** You open or explicitly mark the notification as read. The unread badge clears. The notification stays in your feed under "All notifications" so you can refer back to it. 3. **Actioned:** For notifications with an associated action (e.g., a recommendation to apply), marking it as **actioned** records that you've taken the suggested step. This is distinct from simply reading it. 4. **Dismissed:** You dismiss the notification. It is permanently removed from your feed. This action cannot be undone. ### Bulk actions You can mark all notifications as read in one step — optionally filtered to a specific type. For example, to clear all `info` notifications at once without touching `warning` or `error` items. --- ## Recommendations Recommendations are a specialized category of notification generated by your assistants proactively — not in response to a specific user request. They appear in their own section of the Central Hub and in the recommendations feed. Unlike standard notifications, recommendations have an **apply** action: when you trigger it, Toolbelt executes the recommended change and marks the recommendation as applied. You can also dismiss a recommendation without acting on it. Recommendations can be generated on demand via the `create_notification` toolbelt action with the appropriate type, or triggered automatically through AI-powered analysis that surfaces relevant suggestions for your current context. > **Note:** Recommendations are scoped to an organization when an `organizationId` is provided. Without one, they surface in your personal organization. --- ## Notification expiry Assistants can set an `expiresAt` timestamp on a notification. Once past, the notification is hidden from the default feed. It remains in the database and can be retrieved by passing `includeExpired=true` in your query — useful for audit purposes or reviewing what a time-sensitive alert said after it has passed. Expired notifications still respect the `status` and `type` filters. --- ## Best practices for assistants Follow these guidelines when raising notifications from an assistant: - **Be specific in the title.** "Export complete" is better than "Done." Users scan titles — make them meaningful at a glance. - **Use the right type.** An `error` type for a non-critical update creates alert fatigue. Reserve `warning` and `error` for things that genuinely need human attention. - **Don't over-notify.** If an assistant runs on a loop (e.g., a monitoring assistant), batch updates into a single notification rather than firing one per check cycle. - **Include a link when there's something to act on.** If the notification is "Your report is ready," give the user a direct path to it via `link`. - **Set `expiresAt` for time-sensitive context.** If a notification is only relevant for the next 24 hours, say so by setting an expiry. It keeps the feed clean without requiring the user to manually dismiss. --- --- title: "Audit Log" description: "Track every change in your organization with a tamper-evident activity history — and undo mistakes with a single click." updated: 2026-06-09 --- # Audit Log ## What is the Audit Log? Every organization needs a paper trail. The Audit Log records every meaningful action taken within your Toolbelt organization — who did what, when, and to which resource. Whether you're debugging an unexpected change, conducting a security review, or simply curious about recent activity, the Audit Log gives you full visibility. The system also supports **undo** for reversible actions, so a mis-click on a delete or update isn't necessarily permanent. --- ## How it works When any user in your organization creates, modifies, or deletes a resource, Toolbelt automatically writes an audit entry containing: - **Who** performed the action (user ID) - **What** was affected (entity type + entity ID + name) - **When** it happened (timestamp) - **What changed** (a snapshot of the previous state, where applicable) - **Whether it can be undone** No configuration is required — auditing is always on for your organization. --- ## Tracked entity types | Entity type | Description | Undoable? | |---|---|---| | `workspace` | Assistants | ✅ create, update, delete | | `scheduled_task` | Scheduled tasks | ✅ create, update, delete | | `quick_chat` | Quick chat prompts | ✅ create, update, delete | | `service_connection` | Connected services | ✅ create, update, delete | | `wrench` | Reusable code snippets | ✅ create, update, delete | | `storage_file` | Files in organization storage | ✅ create, update, delete | | `organization` | Organization settings | ✅ update | | `organization_member` | User membership | ✅ create, update, delete | | `workspace_chat` | Organization chats | ✅ create, update, delete | | `board_task` | Kanban board tasks | ✅ create, update, delete | | `wrench_execution` | Wrench runs | ❌ action only | | `chat` | Conversations | ❌ action only | | `task_execution` | Scheduled task runs | ❌ action only | > **Note:** Executions and conversation history are logged for observability but cannot be undone — they represent things that happened in the real world. --- ## Action types | Action | Description | |---|---| | `create` | A new entity was created | | `update` | An existing entity was modified | | `delete` | An entity was removed | | `action` | An activity was logged but is not reversible (e.g., a chat, an execution) | --- ## Viewing the Audit Log Navigate to **Organization Settings → Audit Log** in the Toolbelt dashboard. You can filter entries by: - **Entity type** — show only changes to assistants, tasks, etc. - **Action type** — show only deletes, or only creates - **Date range** — focus on a specific window of time - **User** — see what a specific team member has done --- ## Undoing a change When an entry is marked as undoable, an **Undo** button appears next to it in the dashboard. What happens when you undo depends on the original action: | Original action | Undo behavior | |---|---| | `create` | The entity is soft-deleted | | `update` | The entity is restored to its `previousState` | | `delete` | The entity is recreated from its `previousState` | > **Warning:** Undo restores the entity to exactly the state it was in before the action. Any changes made between the original action and the undo are **not** automatically preserved. --- ## API reference ### List audit entries ```http GET /api/audit ``` Returns a paginated list of audit entries for your organization. Supports the following query parameters: | Parameter | Type | Description | |---|---|---| | `entityType` | string | Filter by entity type (e.g., `workspace`, `wrench`) | | `actionType` | string | Filter by action type (`create`, `update`, `delete`, `action`) | | `limit` | number | Maximum number of entries to return (default: 50) | | `offset` | number | Pagination offset | **Example response** ```json { "entries": [ { "id": "audit_abc123", "userId": "user_xyz", "entityType": "wrench", "entityId": "wrench_456", "entityName": "fetch-github-pr", "actionType": "delete", "description": "Deleted wrench 'fetch-github-pr'", "isUndoable": true, "createdAt": "2026-03-22T14:30:00Z" } ], "total": 142, "offset": 0 } ``` ### Undo an action ```http POST /api/audit/:id/undo ``` Reverses the specified audit entry. Returns the restored entity or an error if the action is not undoable. > **Note:** Requires authentication. Only organization admins can undo other users' actions. --- --- title: "Security & Compliance" description: "How Toolbelt protects your data at rest, in transit, and throughout its lifecycle." updated: 2026-07-28 --- # Security & Compliance Toolbelt is designed to meet the security and compliance requirements of regulated industries. This page summarizes the controls in place for data storage, transit, access, and retention. --- ## Data Storage (At Rest) All workspace files, databases, and organization data are encrypted at rest using **AES-256**. Encryption keys are customer-managed, separate from the data layer, and subject to automatic rotation. All data is physically hosted in the **continental United States**. --- ## Data Transfer (In Transit) All data in transit is protected by **TLS 1.2 or higher**. Older protocol versions are not accepted on any endpoint. Files are served via time-limited, authenticated download links — there are no unencrypted file transfer mechanisms. API access requires a valid authentication token on every request, transmitted over HTTPS. --- ## Access Controls Toolbelt enforces a multi-layer **role-based access control (RBAC)** system: - Users are assigned roles within organizations (owner, admin, member) with differentiated permissions enforced at the API level. - API keys are scoped to specific resource types and operations. - All infrastructure access requires **phishing-resistant MFA**. --- ## Audit Logging Every meaningful action in your organization — who did what, to which resource, and when — is recorded in an immutable audit log. Logs are stored in a **WORM-protected** configuration with a **6-year retention policy**, meeting HIPAA and Florida DFS requirements. See [Audit Log](https://docs.apexti.com/features/audit-log.md) for details on what is tracked and how to access it. --- ## Data Lifecycle Toolbelt retains user and organization data for as long as an account is active. Automated purge policies for inactive data are in development. Contact us if you have specific data retention requirements for your deployment. > **Tip:** Organization admins can delete specific resources — assistants, files, services — at any time from the dashboard. Deleted resources are removed from active storage immediately. --- ## Compliance Summary :::cards 3 ===card title: Encryption at Rest icon: lock AES-256 with customer-managed keys and automatic rotation. All data stored in the continental US. ===card title: Encryption in Transit icon: shield TLS 1.2+ enforced on all endpoints. No unencrypted protocols accepted. ===card title: Access Control icon: users Role-based permissions, scoped API keys, and phishing-resistant MFA across all infrastructure. ===card title: Audit Logging icon: scroll-text Immutable, WORM-protected audit logs with 6-year retention. Meets HIPAA and Florida DFS standards. ===card title: US Hosting icon: globe All data physically hosted in the continental United States. ===card title: Key Management icon: key Customer-managed encryption keys with automatic rotation, separated from the data layer. ::: --- > **Note:** If you are conducting a security review or have compliance requirements not covered here, contact the Apexti team directly. --- --- title: "FAQ" description: "Answers to common questions about Toolbelt — what it is, who it's for, key features, and how to handle common scenarios." updated: 2026-11-12 --- # FAQ :::accordion-group :::accordion Who is Toolbelt for? Toolbelt is designed for teams and individuals who want to connect their existing tools and services through AI-powered conversations. Common users include: - **Operations teams** that want to automate workflows across multiple tools without writing code. - **Customer success teams** that need quick access to data spread across CRMs, ticketing systems, and communication platforms. - **Developers and AI builders** who want to create, configure, and control MCP servers and tool calls without rebuilding infrastructure from scratch. Whether you're streamlining internal processes or building AI-powered solutions for clients, Toolbelt gives you a unified interface to get work done. ::: :::accordion What is Toolbelt? Toolbelt is a platform to configure, create, and control tools accessed via the Model Context Protocol (MCP) — locally or in the cloud. With Toolbelt, you choose which tools (CRM, Slack, email, or anything with an API) talk to each other and what they can and *cannot* do. Here's what you can do with Toolbelt: - **Chat with AI** — Use chat prompts just like ChatGPT or Claude, with full tool-call capabilities. - **Connect services** — Access hundreds of existing MCP servers out of the box, or create your own. - **Control tool behavior** — Specify how each tool should behave, including whether it runs automatically, asks for permission, or is blocked entirely. You can also control the parameters passed to each tool. - **Monitor activity** — Toolbelt logs all tool calls so you can see exactly how your MCP servers are being used. ::: :::accordion How is Toolbelt different from a standalone MCP client? While Toolbelt does support MCP, it goes well beyond basic client functionality. A standalone MCP client lets you connect to MCP servers and make tool calls. Toolbelt adds: - **Authentication management** — Handle OAuth and API key authentication once, across all services. - **Fine-grained tool configuration** — Toggle individual tools on/off, set parameter restrictions, and customize tool descriptions. - **Multi-tool orchestration** — Expose many tools through a single tool call, working around the 40/128 tool limits of most LLMs. - **Built-in memory** — Context retention across conversations for continuity. - **Wrenches** — Convert successful AI interactions into deterministic, versioned automation. - **Organization features** — Shared team environments, assistant versioning, and governance controls for teams. ::: :::accordion What are some key features? Key capabilities include: - Access hundreds of existing MCP servers out of the box - Handle authentication and authorization for connected services - Fine-grained tool-call configuration (toggle tools and set restrictions) - Expose many tools through a single tool call (mitigate 40/128 tool limits) - Customizable tool descriptions for improved reliability - Eliminates the need to re-authenticate tools when connecting to another client - Create MCP servers with a simple prompt - Built-in memory system for context retention - Support for asynchronous agent operations ::: :::accordion What is the MCP server priority order? When your assistant makes a tool call, Toolbelt resolves which MCP server to use in this order: 1. **Assistant-configured** — Servers explicitly configured on the assistant take highest priority. 2. **Organization-owned** — Servers owned by the organization are checked next. 3. **Personal-owned** — Servers from your personal account are used as a fallback. This means if the same service is available at multiple levels, the assistant's own configuration always wins. ::: :::accordion Can I switch AI model providers mid-chat? While technically possible, switching providers mid-chat is **generally not recommended**, especially for long conversations. - **How it works:** When you switch models, the entire chat history (context) is preserved and sent to the new provider. - **The downside:** The new provider must re-process the entire context window from scratch (no caching), leading to increased latency and higher costs. > **Tip:** Select your desired model provider at the start of a session. If you must switch, do so early in the conversation to minimize latency and cost. ::: :::accordion What are the limits for sandbox code execution? The sandbox environment is ephemeral and has strict timeouts: - **Default timeout:** 30 seconds - **Maximum timeout:** 120 seconds Every code execution spins up a fresh, isolated environment (cold start). It does not cache dependencies between runs. If you try to install heavy libraries (like `prettier`) at runtime, the initialization might exceed the connection timeout before your code even runs. **Best practices:** - Avoid installing heavy packages at runtime. - Keep your scripts lightweight. - Use local tools (like `npm run format`) for heavy tasks instead of the sandbox. ::: :::accordion Why isn't a specific service showing up in the available services list? There are typically two reasons: - **Placeholder services** — Toolbelt's underlying service catalog sometimes lists services to gauge interest or encourage community contributions, even if no tools have been built for them yet. Toolbelt only includes services that have active, functional tools. - **Update cadence** — The Toolbelt service list is curated and updated periodically. If a fully functional service was recently released, it may not yet be available in Toolbelt. If you confirm a service has active tools but is missing from Toolbelt, please contact the team to request an update. ::: :::accordion What is the difference between Disconnect Slack and Unlink Slack Account? Toolbelt separates **organization** Slack connections from **personal** Slack linking. The buttons belong to **different screens** with different scopes: | | **My Organizations** → Integrations (**Disconnect**) | **Integrations → Slack** (**Unlink Slack Account**) | | --- | --- | --- | | **Unbinds** | The selected **organization** from the Slack **workspace** | Your **Toolbelt user** from your **Slack user** | | **Effect** | Stops assistants in **that organization** from using **`send_external_message`** into that Slack workspace until the organization reconnects | You personally can no longer use **`/toolbelt`**, DMs-as-you, or default-assistant routing until you link again | **Neither action automatically does the other:** unlinking your personal Slack account does **not** disconnect the organization's Slack workspace binding. Disconnecting at the organization does **not** unlink every member's personal accounts. See [Slack Integration](https://docs.apexti.com/features/slack.md) for the full comparison table and setup steps. ::: :::accordion Can my assistant remember preferences and apply them automatically? Yes — and this works without any developer involvement. Toolbelt gives every assistant three built-in memory mechanisms: - **Memories** — Semantic facts and preferences retrieved automatically at the start of each conversation. - **Workspace Storage** — Durable files (like a `preferences.md`) the assistant reads and writes at runtime. State survives across sessions. - **Instructions** — Your assistant's operating rules, editable live by you or the assistant itself. You can tell your assistant "from now on, always include X, Y, Z in these reports" and it will persist that rule and apply it on every future run — no prompt-template edit, no pipeline change, no redeployment. See [Memories & Persistent Context](https://docs.apexti.com/features/memories.md) for the full guide. ::: ::: --- --- title: "Viewer Syntax Reference" description: "Rendering conventions used by the static Toolbelt docs generator, so reviewers do not mistake intentional patterns for errors." updated: 2026-11-12 --- # Viewer Syntax Reference This page documents every syntax convention that the **static docs generator** (`scripts/generate-agent-docs.mjs` and related chrome in `scripts/docs-site.*`) applies on top of standard Markdown when building `apps/docs/`. These patterns are **intentional and correct** in the source files. Do not treat them as formatting errors during review. The canonical content rules for writing new pages are in [FORMAT.md](https://docs.apexti.com/FORMAT.md). This file covers only the generate-time / site chrome rendering layer. ## SUMMARY.md nav icon comments `docs/SUMMARY.md` uses HTML comments embedded in list items to attach sidebar icons to navigation entries. The generator reads these comments and renders an icon next to the nav label. They are invisible in GitHub's Markdown preview and have no effect on the document body. **Pattern** (the `features/example-page.md` path is illustrative only — not a real doc): ```markdown - [Page Title](https://docs.apexti.com/meta/features/example-page.md) — Short description. ``` **Example from the live file:** ```markdown - [Wrenches](https://docs.apexti.com/meta/features/wrenches.md) — Reusable MCP snippets your assistant runs. ``` **Rules:** - The comment must appear on the same line as the list item, immediately after the link. - The icon name must be a valid key from the table below. - Do not remove or "fix" these comments. They are load-bearing for the sidebar UI. - The `—` (em dash) and description text after the comment are optional human-readable annotations; the generator ignores them for the page body. **Valid icon keys:** | Key | Key | Key | Key | |---|---|---|---| | `book-open` | `bar-chart` | `key` | `shield` | | `box` | `bar-chart-2` | `layers` | `shield-check` | | `bell` | `brain` | `layout-dashboard` | `slack` | | `bridge` | `briefcase` | `layout-grid` | `smartphone` | | `building-2` | `calendar-clock` | `library` | `sparkles` | | `chart-bar` | `circle-help` | `link` | `scroll-text` | | `code` | `code-2` | `list-todo` | `search` | | `coins` | `cpu` | `lock` | `server` | | `credit-card` | `crown` | `mail` | `share-2` | | `database` | `eye` | `message-square` | `sliders` | | `file-text` | `folder` | `messages-square` | `tag` | | `git-branch` | `globe` | `monitor` | `user` | | `graduation-cap` | `plug` | `reply` | `users` | | `radio-tower` | `refresh-cw` | `robot` | `users-round` | | `rocket` | `rotate-ccw` | `variable` | `video` | | `wrench` | `zap` | | | | > **Note:** If an icon key is not in this table, the generator falls back to the `file-text` icon. If you need a new icon added, add the Lucide SVG path to `NAV_ICON_SVGS` in `scripts/docs-nav-icons.mjs` and update this table. ## Callout blockquotes The generator converts blockquotes that open with a bold keyword into styled `.callout` panels. **Supported keywords:** `Note:`, `Warning:`, `Tip:` **Pattern:** ```markdown > **Note:** Helpful context that is useful but not critical. > **Warning:** Important risk, limitation, or destructive action. > **Tip:** Practical advice that helps the user succeed. ``` In raw Markdown these are standard blockquotes. On the published HTML site they render as colored callout panels with an icon. Do not convert them to plain paragraphs. See [FORMAT.md](https://docs.apexti.com/FORMAT.md) for the full callout authoring rules. ## Capability tile grids (:::cards) The generator turns fenced blocks that begin with `:::cards` into a responsive card grid. On GitHub.com, these lines appear as plain unformatted text — that is expected. **Pattern:** ```markdown :::cards 3 ===card title: Card Title icon: plug href: features/some-page.md Card body text as normal Markdown. ===card title: Another Card icon: wrench No link on this one. ::: ``` **Keys per tile:** | Key | Required | Description | |---|---|---| | `title` | Yes | Plain text label shown as the card heading. | | `icon` | No | Any key from the valid icon table above, or a literal emoji. | | `href` | No | Relative path to a doc page. Omit for a non-linking card. | **What looks wrong but is correct:** - `:::cards 3` — not a heading, not a code fence. Intentional generator directive. - `===card` — not a setext heading underline. Intentional tile separator. - `:::` on its own line — not a broken fence. Intentional grid closing tag. ## Code block language aliases The site maps shorthand language identifiers to their canonical `highlight.js` equivalents before applying syntax highlighting. These aliases are valid in source files and will highlight correctly, even if a strict linter flags the shorthand as non-standard. **Common aliases:** | Alias in source | Resolved to | |---|---| | `ts` | `typescript` | | `py` | `python` | | `js` | `javascript` | | `sh` | `bash` | | `yml` | `yaml` | Use whichever form is clearest for the author. Both work. ## URL deep-linking (?help= / ?topic=) In-product help and shared links use stable IDs via `?help=` (and legacy `?topic=`). The site entry (`apps/docs/index.html`) resolves those to canonical `.html` pages using `docs/topic-aliases.json`. Examples: ```text https://docs.apexti.com/?help=wrenches https://docs.apexti.com/?help=boards-default-lanes https://docs.apexti.com/?help=help-index ``` You may still see older `?topic=features/wrenches` links in support threads; the router accepts those too. Prefer `?help=` for new product links. Humans browsing the site should use `/.html` URLs directly. ## Sidebar labels Sidebar labels come from the link text in `docs/SUMMARY.md` (not from the page H1). Keep SUMMARY titles clear and consistent; the static site does not rewrite casing. ## Collapsible sidebar sections `##` headings in `SUMMARY.md` become collapsible sidebar groups. Opening a page expands its section; open/closed state is remembered in `localStorage`. While the sidebar filter has text, matching sections expand so results stay visible. This is site chrome only — do not add collapse markup to `SUMMARY.md`. ## What to flag versus what to leave alone | Pattern | Action | |---|---| | `` in `SUMMARY.md` | **Leave alone.** Intentional. | | `:::cards` / `===card` / `:::` fences | **Leave alone.** Intentional generator directive. | | `> **Note:**` / `> **Warning:**` / `> **Tip:**` | **Leave alone.** Standard Markdown, styled on the HTML site. | | Shorthand code fence languages (`ts`, `py`, `sh`) | **Leave alone.** Site resolves aliases. | | Legacy JSX tags (``, ``, ``) in source | **Flag.** Deprecated artifacts; prefer the Markdown equivalents above. | | `.mdx` links or imports | **Flag.** Link to `.md` files under `docs/` instead. | | Missing `title` or `description` frontmatter | **Flag.** Required on every page. | --- --- title: "Docs Changelog" description: "A running log of notable changes to the Toolbelt documentation — new pages, major rewrites, and deprecations." updated: 2026-11-23 --- # Docs Changelog This page tracks meaningful changes to the Toolbelt docs. Minor fixes (typos, punctuation, link corrections) are not logged here. If a reader would care that something changed, it belongs here. > **Tip:** Each entry links directly to the page that changed, so you can jump straight to what's new. --- ## 2026 ### November 2026 | Date | Change | Page | |---|---|---| | 2026-11-23 | New page: Assistant Versioning — configuration snapshots, visual diffs, rollbacks with pre-restore safety backups, and storage backup inspection. | [Assistant Versioning](https://docs.apexti.com/features/assistant-versioning.md) | | 2026-11-23 | Native Toolbelt Tools: documented fine-grained tool parameter validation rules (`set_tool_parameter_rule`), accurate 4-tier tool restriction levels (`allow`, `ask`, `deny`, `disabled`), and native checkpoint backup tools (`list_version_backups`, `read_version_backup_file`, `copy_version_backup_file`, `query_version_backup_duckdb`). | [Native Toolbelt Tools](https://docs.apexti.com/features/native-toolbelt-tools.md) | | 2026-11-23 | Model catalog updated with Gemini 4 Neon (1M context, extended thinking support). | [Model Selection](https://docs.apexti.com/features/model-selection.md) | | 2026-11-23 | Runtime model-swapping catalog updated for Gemini 4 Neon. | [Swapping Models](https://docs.apexti.com/features/model-swapping.md) | | 2026-11-23 | Model-aware token limits table updated with Gemini 4 Neon (1M context). | [Token Usage](https://docs.apexti.com/features/token-usage.md) | | 2026-11-18 | Unlisted pre-release features: deleted Kanban Boards, Tasks, and Meeting Bots documentation pending general production availability. | [Native Toolbelt Tools](https://docs.apexti.com/features/native-toolbelt-tools.md) | | 2026-11-16 | Kanban Boards: migrated legacy JSX tags to standard markdown and documented structural deletion protection (`delete_board`, `delete_board_lane`, `delete_board_project`). | [Kanban Boards](https://docs.apexti.com/features/boards.md) | | 2026-11-16 | Organization Storage: documented `list_storage_files`, `upload_file_to_storage`, `get_storage_file_metadata`, and `get_storage_stats` in conversational file tools. | [Organization Storage](https://docs.apexti.com/features/storage.md) | | 2026-11-16 | API Access & Public Dashboards: standardized production API base URL and iframe embed domain to `toolbelt.apexti.com`. | [API Access](https://docs.apexti.com/features/api-access.md) | | 2026-11-16 | Services: documented 3-tier tool execution policies (`auto`, `permission`, `blocked`), least-privilege scoping, and conversational policy updates. | [Services](https://docs.apexti.com/features/services.md) | | 2026-11-16 | Dashboards: documented embedding the standalone chat widget (`/widgets/chat`) as an isolated iframe in external sites and static public dashboards. | [Dashboards](https://docs.apexti.com/features/dashboards.md) | | 2026-11-16 | Chat & History: documented automated event chat volume management, unread indicator clearing, and bulk chat pruning. | [Chat & History](https://docs.apexti.com/features/chat-history.md) | | 2026-11-16 | Scheduled Tasks: documented per-schedule credit tracking metrics and zero-token wrench cost optimization. | [Scheduled Tasks](https://docs.apexti.com/features/scheduled-tasks.md) | | 2026-11-16 | Assistant-to-Assistant Communication: documented native `manage_delegations` tool lifecycle (create, status, complete) and comparison with sub-chats. | [Assistant-to-Assistant Communication](https://docs.apexti.com/features/assistant-to-assistant.md) | | 2026-11-16 | New page: Headless Browser Tools — Playwright Chromium environment for live web navigation, screenshots, scraping, and closed-loop visual dashboard verification. | [Browser Tools](https://docs.apexti.com/features/browser.md) | | 2026-11-16 | Native Toolbelt Tools: documented chat-driven tool restriction policies, Assistant Design graph tools, response search indexing, and automated event chat cleanup. | [Native Toolbelt Tools](https://docs.apexti.com/features/native-toolbelt-tools.md) | | 2026-11-16 | Cleaned up dark-launched Agent Missions references across Assistant Design, Organization Sharing, and Managing Organization Assistants. | [Assistant Design](https://docs.apexti.com/features/assistant-design.md) | | 2026-11-16 | Scheduled Tasks: added direct Wrench execution (`runType: "wrench"`), custom timeout controls (`wrenchTimeoutSeconds` up to 600s), and Weekdays/Weekends recurrence presets. | [Scheduled Tasks](https://docs.apexti.com/features/scheduled-tasks.md) | | 2026-11-16 | Workflows: added native `wrench` step type for executing server-side JavaScript scripts directly with dynamic variable interpolation and zero token overhead. | [Workflows](https://docs.apexti.com/features/workflows.md) | | 2026-11-16 | Organization Sharing: documented 4 consolidated access levels (`use`, `build`, `edit`, `manage`) and the redesigned Assistant Sharing Panel. | [Organization Sharing](https://docs.apexti.com/features/sharing.md) | | 2026-11-16 | Managing Organization Assistants: updated assistant sharing procedure to reflect the 4 access tiers and Assistant Sharing Panel. | [Managing Organization Assistants](https://docs.apexti.com/features/managing-assistants.md) | | 2026-11-16 | Billing & Subscriptions: documented per-member credit limits, limit modes (`inherit`, `custom`, `none`), and spend enforcement rules. | [Billing & Subscriptions](https://docs.apexti.com/features/billing.md) | | 2026-11-16 | Organization Storage: documented native `move_storage_file` and `rename_storage_file` tools across workspace and shared org scopes. | [Organization Storage](https://docs.apexti.com/features/storage.md) | | 2026-11-16 | Native Toolbelt Tools: added Storage & Files section with natural language prompt examples for file movement and renaming. | [Native Toolbelt Tools](https://docs.apexti.com/features/native-toolbelt-tools.md) | | 2026-11-16 | Documented the Advisor pattern: prompt instructions and conversational triggers for consulting frontier models via sub-chats for second opinions. | [Sub-Chats](https://docs.apexti.com/features/sub-chats.md) | | 2026-11-16 | Synced model catalog and token limits: added Gemini 4 Carbon and Hydrogen (new Gemini default), updated Claude Fable 5.2, deprecated Inception Labs in favor of Toolbelt Crescent, and updated reasoning effort tiers. | [Model Selection](https://docs.apexti.com/features/model-selection.md) | | 2026-11-16 | Updated runtime model-swapping options for Gemini 4 family, Claude Fable 5.2, Inception migration, and extended reasoning effort tiers (xhigh, max). | [Swapping Models](https://docs.apexti.com/features/model-swapping.md) | | 2026-11-16 | Updated model-aware token limits table with Gemini 4 family, Claude Fable 5.2, and retired Inception Labs mapping. | [Token Usage](https://docs.apexti.com/features/token-usage.md) | ### October 2026 | Date | Change | Page | |---|---|---| | 2026-10-29 | Consolidated page: Persistent Memory & Preferences merged into Memories & Persistent Context (combining 3-layer architecture, runtime update pattern, and Mem0 management); standalone page retired. | [Memories & Persistent Context](https://docs.apexti.com/features/memories.md) | | 2026-10-29 | Consolidated page: Sharing an Assistant with Your Organization merged into Managing Organization Assistants (added one-click sharing steps and Catalog comparison table); standalone page retired. | [Managing Organization Assistants](https://docs.apexti.com/features/managing-assistants.md) | | 2026-10-29 | Published pages to navigation map: Chat as Configuration and Native Toolbelt Tools added to Chat & AI section. | [Chat as Configuration](https://docs.apexti.com/features/chat-as-configuration.md) | | 2026-10-29 | Retired page: Exploring the Chat Interface removed after consolidating chat controls and tool badge details into The Toolbelt Interface. | [The Toolbelt Interface](https://docs.apexti.com/get-started/toolbelt-interface.md) | | 2026-10-29 | Model catalog updated with GPT-6.1 Terra; pruned retired models from active selector tables. | [Model Selection](https://docs.apexti.com/features/model-selection.md) | | 2026-10-29 | Runtime model-swapping catalog updated for GPT-6.1 Terra; pruned retired models. | [Swapping Models](https://docs.apexti.com/features/model-swapping.md) | | 2026-10-29 | Model-aware token limits table updated with GPT-6.1 Terra (500k context, 100k output). | [Token Usage](https://docs.apexti.com/features/token-usage.md) | | 2026-10-29 | Sub-chat model override guidance updated to current generation models. | [Sub-Chats](https://docs.apexti.com/features/sub-chats.md) | | 2026-10-29 | Retired page: In-App Visualization removed (superseded by Dashboard SDK and chat history rendering). | [Chat & History](https://docs.apexti.com/features/chat-history.md) | | 2026-10-29 | New page: Skills — packaged agent procedures, know-how, reference files, scripts, and Claude Code plugin portability. | [Skills](https://docs.apexti.com/features/skills.md) | | 2026-10-29 | Docs viewer sidebar: major sections collapse by default (Get Started stays open; active section expands; filter expands matches). | [Viewer Syntax Reference](https://docs.apexti.com/meta/viewer-syntax.md) | | 2026-10-23 | Dashboard SDK audio APIs: documented `sdk.tts` (Gemini Flash TTS, multi-speaker dialogue, media storage) and `sdk.liveAudio` live voice sessions. | [Dashboard SDK](https://docs.apexti.com/features/dashboard-sdk.md) | | 2026-10-23 | Documented `tts` and `liveAudio` capabilities on Public Dashboards, including single-use ticket auth and workspace billing. | [Public Dashboards](https://docs.apexti.com/features/public-dashboards.md) | | 2026-10-23 | Documented workspace Gemini TTS endpoint (`POST /api/workspaces/:id/tts`) with media saving and character limits. | [Voice & Speech APIs](https://docs.apexti.com/features/voice-apis.md) | | 2026-10-23 | New page: Live Audio Chat — real-time speech-to-speech chat, voice selection, and the Concierge. | [Live Audio Chat](https://docs.apexti.com/features/live-audio.md) | | 2026-10-23 | New page: Voice & Speech APIs — REST endpoints for TTS synthesis, Whisper STT transcription, and IoT/smartwatch voice turns. | [Voice & Speech APIs](https://docs.apexti.com/features/voice-apis.md) | | 2026-10-19 | Model catalog updated with Gemini 4 Argon and Claude Haiku 5.5. | [Model Selection](https://docs.apexti.com/features/model-selection.md) | | 2026-10-19 | Runtime model-swapping catalog updated for Gemini 4 Argon and Claude Haiku 5.5. | [Swapping Models](https://docs.apexti.com/features/model-swapping.md) | | 2026-10-19 | Model-aware token limits table updated with Gemini 4 Argon and Claude Haiku 5.5 (1M context). | [Token Usage](https://docs.apexti.com/features/token-usage.md) | | 2026-10-17 | Documented tool iteration safety limits (default 25, range 1–200, pause/resume behavior) and chat configuration prompts. | [Native Toolbelt Tools](https://docs.apexti.com/features/native-toolbelt-tools.md) | | 2026-10-17 | Added tool iteration safety limit examples and runtime configuration tip. | [Chat as Configuration](https://docs.apexti.com/features/chat-as-configuration.md) | | 2026-10-06 | Model catalog updated with xAI Grok (4.7, 4.6), Inception Labs (Mercury 2), and Toolbelt Free (Qwen 3 30B). | [Model Selection](https://docs.apexti.com/features/model-selection.md) | | 2026-10-06 | Runtime model-swapping catalog and reasoning effort updated for xAI and Inception Labs. | [Swapping Models](https://docs.apexti.com/features/model-swapping.md) | | 2026-10-06 | Model-aware token limits table updated with current 1M, 500k, and 262k context windows across all providers. | [Token Usage](https://docs.apexti.com/features/token-usage.md) | | 2026-10-05 | New page: Classifiers — fast typed decisions for triage, routing, scoring, and yes/no gates; wired from Workflows. | [Classifiers](https://docs.apexti.com/features/classifiers.md) | | 2026-10-05 | Model catalog refreshed to current provider IDs (GPT-6, Gemini 3.8, Claude Opus 5.5 / Fable, Crescent large/medium/small); sub-chat and MCP override guidance updated. | [Model Selection](https://docs.apexti.com/features/model-selection.md) | | 2026-10-02 | Toolbelt Bridge rewritten for v2 — single native binary, 10-minute pairing flow, local LLM runtimes (Ollama, LM Studio, vLLM), multi-org scoping, and team sharing. | [Toolbelt Bridge](https://docs.apexti.com/features/bridge.md) | ### September 2026 | Date | Change | Page | |---|---|---| | 2026-09-28 | Organization Storage expanded — document indexing (ephemeral RAG), assistant vs org scopes, and conversational file tools. | [Organization Storage](https://docs.apexti.com/features/storage.md) | | 2026-09-28 | Public Dashboards updated — added Custom Domains, DNS verification, and Let's Encrypt TLS setup. | [Public Dashboards](https://docs.apexti.com/features/public-dashboards.md) | | 2026-09-28 | Dashboard SDK rewritten — multi-file apps (pageType='app'), embedded bridge, DuckDB persistence, connections, and auth. | [Dashboard SDK](https://docs.apexti.com/features/dashboard-sdk.md) | | 2026-09-28 | New page: Workflows — multi-step orchestration engine, triggers, typed steps, and execution graph. | [Workflows](https://docs.apexti.com/features/workflows.md) | | 2026-09-28 | New page: Assistant Design — interactive capability graph, authored jobs, visual architecture. | [Assistant Design](https://docs.apexti.com/features/assistant-design.md) | | 2026-09-01 | Added cross-reference to assistant-to-assistant overview from sub-chats. | [Sub-Chats](https://docs.apexti.com/features/sub-chats.md) | | 2026-09-01 | Linked Assistant Collaboration toggle to assistant-to-assistant overview from exploring-the-interface. | [The Toolbelt Interface](https://docs.apexti.com/get-started/toolbelt-interface.md) | | 2026-09-01 | New page: Assistant-to-Assistant Communication — delegation, Collaboration mode, and sub-chats explained side-by-side. | [Assistant-to-Assistant Communication](https://docs.apexti.com/features/assistant-to-assistant.md) | | 2026-09-01 | New page: Native Toolbelt Tools — reference catalog of every native capability with example prompts. | [Native Toolbelt Tools](https://docs.apexti.com/features/native-toolbelt-tools.md) | | 2026-09-01 | New page: Chat as Configuration — concept page explaining why chat and the Config tab are equivalent interfaces. | [Chat as Configuration](https://docs.apexti.com/features/chat-as-configuration.md) | | 2026-09-01 | Added this changelog page. | [Docs Changelog](https://docs.apexti.com/meta/changelog.md) | | 2026-09-01 | Quick Chats substantially rewritten — added edit and delete sections, cards grid, corrected UI locators. | [Quick Chats](https://docs.apexti.com/features/quick-chats.md) | | 2026-09-01 | New section: Chat Actions — documents the toggle, share link, rename, and delete per-chat buttons. | [Chat & History](https://docs.apexti.com/features/chat-history.md) | ### August 2026 | Date | Change | Page | |---|---|---| | 2026-08-28 | New page: Quick Chats — initial documentation of the quick feature. | [Quick Chats](https://docs.apexti.com/features/quick-chats.md) | | 2026-08-28 | New section: Three chat contexts (Personal, Shared, Event) explained. | [Chat & History](https://docs.apexti.com/features/chat-history.md) | | 2026-08-28 | New section: Your fastest path to getting started. | [Overview of Toolbelt](https://docs.apexti.com/get-started/introduction.md) | | 2026-08-28 | New section: When to reach for a more powerful model. | [Model Selection](https://docs.apexti.com/features/model-selection.md) | | 2026-08-28 | New tip: Ask an MCP server what it can do. | [Custom MCP Servers](https://docs.apexti.com/features/custom-mcp-servers.md) | | 2026-08-28 | New tip: Model override note added to delegation section. | [Assistant-to-Assistant Communication](https://docs.apexti.com/features/assistant-to-assistant.md) | --- --- title: "Create an agent" description: "Set up your organization, create your first agent, and give it access to a real data source." updated: 2026-06-09 --- # Create an agent > **Tip:** This is the first topic in **Part 1 — Your First Assistant** of the [Toolbelt Tutorial](https://docs.apexti.com/get-started/tutorial.md). You don't need anything set up before this step. ## Step 1 — Create your organization Everything in Toolbelt lives inside an **organization**. Think of it as a dedicated organization for a customer or a team. Your agents and services both live here. Follow the steps in [Create an Organization](https://docs.apexti.com/features/create-organization.md) to create one and switch into it, then come back here. ## Step 2 — Connect a service An agent without a service can only reason about what you tell it. The moment you connect a real service — email, calendar, a project tracker — it can act on live data. For this tutorial, connect your **email** or your **calendar**. Either works. The concepts are identical. - **Email:** Connect an email service, such as **Microsoft 365** or **Gmail**, from the Services panel; or - **Calendar:** Connect a calendar service, such as **Microsoft 365** for Outlook Calendar, if you'd rather start with something lower-stakes than your inbox. The Toolbelt mechanics are exactly the same. See [Services](https://docs.apexti.com/features/services.md) for the full walkthrough on connecting a service, then come back here to enable it on an agent. > **Note:** Toolbelt requests **read-only** access by default. It cannot send, delete, or move emails unless you explicitly give it permission to. ## Step 3 — Create an agent An **agent**, or assistant, is what you'll actually talk to. It's built to solve a specific problem — and right now, its problem is going to be your inbox. 1. Inside your new organization, click **New Agent**. 2. Give it a name (e.g., "Email Assistant" or "Inbox Triage"). 3. Enable the email, or calendar, service for this agent. Different agents can have different combinations of services and permissions — enabling a service here scopes it to this agent specifically. See [Services](https://docs.apexti.com/features/services.md) for the full walkthrough. 4. Leave the settings as-is for now. You'll refine the prompt and model later. > **Note:** New agents default to **Gemini Flash**. This is a fast, affordable model — a great fit for inbox scanning and simple lookups. You'll learn how to [Swap Models on the Fly](https://docs.apexti.com/tutorial/part1/swap-models.md) later in this tutorial. ## What happens next Once the service is connected and enabled on your agent, a new set of tools becomes available in every conversation. You won't see anything change in the UI — the capability is just there, ready to be used. Head to the next topic to have your first conversation. --- **Next:** [Have Your First Conversation](https://docs.apexti.com/tutorial/part1/first-conversation.md) --- --- title: "Have Your First Conversation" description: "Ask your assistant a specific question against a live service and see what it returns." updated: 2026-06-09 --- # Have Your First Conversation > **Tip:** Before this step, [connect a service and enable it on your agent](https://docs.apexti.com/tutorial/part1/create-an-agent.md). ## The moment it clicks You've created an organization, built an agent, and connected an authenticated service. Now you're going to ask it something real. This is the "Hello World" moment — not a demo, not a test, but an actual question against your actual data. Keep it simple. The goal is to see the agent work, not to solve your biggest problem on the first try. ## Open a chat and ask Open a new chat with your agent. Then pick one of the starter prompts below for whichever service you connected. ### If you connected email Copy and paste any of these to start: ``` Who have I received the most emails from in the last 7 days? ``` ``` Check my inbox for any emails I haven't replied to yet from this week. List them by sender, subject, and how long ago they were sent. ``` ``` Check my inbox for any emails where someone is asking me for a status update. Summarize what they need and when they sent it. ``` ### If you connected calendar ``` What does my week look like? Summarize my meetings for the next 5 days. ``` ``` Do I have any back-to-back meetings this week? Flag them for me. ``` ``` Who do I meet with most often and what do we discuss, in general. Look at the last 30 days. ``` Your assistant calls the service, scans the data, and returns a structured answer in seconds. ## What to notice Every tool call is visible in the chat thread. You can see exactly what it read, what it extracted, and how it formed its answer. There's no black box. > **Tip:** Be specific in your first asks. "Carrier check-in emails from this morning" gives the assistant a much tighter search than "check my email." The more context you give, the less noise comes back. This habit is worth building early. --- **Next:** [Swap Models on the Fly](https://docs.apexti.com/tutorial/part1/swap-models.md) --- --- title: "Swap Models on the Fly" description: "Learn when and how to change the AI model your assistant uses — even mid-conversation." updated: 2026-10-29 --- # Swap Models on the Fly > **Tip:** Before this step, [have your first conversation](https://docs.apexti.com/tutorial/part1/first-conversation.md). ## Your agent's default model When you created your agent, it was set to **Gemini Flash** by default. Flash is fast and affordable — a great fit for the inbox scanning you just did. But not every task is inbox scanning. Different jobs call for different models, and part of being effective with Toolbelt is knowing when to switch. > **Note:** Before you move to Part 2, take a moment to verify your agent's model. Open the model selector from the drop-down at the top of any chat. Flash is the right choice for most of this tutorial — but if your organization has a preferred default, now is the time to set it. ## Why model choice matters Inbox triage — scanning, classifying, extracting fields — is fast and cheap. Deciding whether an email signals a negative sentiment requires more reasoning. Using the wrong model for either is either slow and expensive, or unreliable. Toolbelt lets you change models any time, including mid-conversation. ## How to swap 1. Open the **model selector** from the drop-down at the top of the chat. 2. Choose a different model from providers like Anthropic, OpenAI, or Google. 3. Your next message uses the new model immediately. Your conversation history and context stay intact. ## A quick guide for this tutorial | Task | Recommended model | |---|---| | Inbox scanning, field extraction, simple lookups | A fast, affordable model (e.g., Gemini Flash, GPT-6 Luna) | | Analysis, categorization, judgment calls | A balanced model (e.g., Claude Sonnet) | | Building HTML pages, complex reasoning | A capable model (e.g., Claude Opus) | > **Tip:** You don't have to optimize this upfront. Ask your assistant: "Use the most cost-effective model for this task." It will switch down automatically. See [Model Selection](https://docs.apexti.com/features/model-selection.md) for a full comparison of when to use each model. --- **Part 1 complete.** Move on to Part 2 when you're ready. **Next:** [Ask for an Analysis](https://docs.apexti.com/tutorial/part2/ask-for-analysis.md) --- --- title: "Ask for an Analysis" description: "Ask your assistant to look across a wider data window and classify what it finds." updated: 2026-06-09 --- # Ask for an Analysis > **Tip:** Before this step, complete [**Part 1 — Your First Assistant**](https://docs.apexti.com/tutorial/part1/create-an-agent.md) of the [Toolbelt Tutorial](https://docs.apexti.com/get-started/tutorial.md) so your email or calendar service is connected. ## The situation You've been handling the inbox reactively for months. Someone on the team suspects ETA requests make up most of the volume — but nobody actually knows. Without knowing, you can't prioritize or route intelligently. Time to find out. ## Ask for the breakdown In a new chat, ask your assistant to look across a wider window: ``` Look at all inbound emails from the last 30 days. Categorize each one as: ETA request, new load order, carrier check-in, follow-up, or other. Show me a breakdown by category and by day of the week. ``` If you're following along with a personal inbox, try this version: ``` Look at all inbound emails from the last 30 days. Categorize each one as: fun, family, work, important, or other. Show me a breakdown by category and by day of the week. ``` If you're using a calendar rather than email service, swap out "inbound emails" for "calendar events". ## What the assistant does behind the scenes 1. **Calls the email service** to retrieve 30 days of inbound messages or calendar events. 2. **Converts the response into a queryable database** using [Auto-DuckDB](https://docs.apexti.com/features/auto-duckdb.md) — so even thousands of emails or events don't get truncated or summarized away. 3. **Writes SQL** to classify and aggregate by category and weekday. 4. **Renders a chart** directly in the chat. You now know, for the first time, exactly what your inbox actually looks like. Monday morning ETA spikes. Friday carrier check-in clusters. Whatever the pattern is — it's visible. > **Tip:** Push further in the same conversation. "Break that down by sender domain" or "Which categories are most likely to be mislabeled as someone else's account?" — the assistant can keep refining without you starting over. --- **Next:** [Build a Live Dashboard](https://docs.apexti.com/tutorial/part2/build-dashboard.md) --- --- title: "Build a Live Dashboard" description: "Turn your inbox analysis into a persistent, shareable HTML dashboard page that pulls live data every time it loads." updated: 2026-06-09 --- # Build a Live Dashboard > **Tip:** Before this step, complete [Ask for an Analysis](https://docs.apexti.com/tutorial/part2/ask-for-analysis.md) so you have data to work with. ## Why a dashboard beats a chat chart A chart in your conversation is useful once. A dashboard is useful every time your team opens it. The difference is that a dashboard page calls your email service in real time — every load shows fresh results, not a snapshot from yesterday. ## Ask your assistant to build it ``` Build me an HTML dashboard page that visualizes this inbox analysis. Show a bar chart of email volume by category — ETA requests, new load orders, carrier check-ins, follow-ups — and a table that breaks it down by day of the week. Pull live data from my inbox so it stays current. ``` ## What happens Your assistant uses the [Vibe Coding](https://docs.apexti.com/features/vibe-coding.md) workflow to: 1. **Write an HTML file** that imports the [Dashboard SDK](https://docs.apexti.com/features/dashboard-sdk.md) — no boilerplate for you to manage. 2. **Wire up live data** by calling your service and running the categorization SQL against the results. 3. **Save the file to organization storage** and return a preview link you can open immediately. When the page loads, it calls your service in real time, runs the same categorization and aggregation, and renders fresh results every time. ## Iterate on the dashboard Describe changes in plain language: - "Change the bar chart to a horizontal bar chart." - "Add a dropdown so I can filter by sender domain." - "Make the table sortable." The assistant patches the file in place and updates the preview link. > **Note:** To share this dashboard outside your organization — with a manager, a client, or a carrier — see [Public Dashboards](https://docs.apexti.com/features/public-dashboards.md). You can generate a secure shareable link without giving anyone a Toolbelt account. --- **Next:** [Create a Wrench](https://docs.apexti.com/tutorial/part2/create-wrench.md) --- --- title: "Create a Wrench" description: "Freeze your triage logic into a reusable, versioned Wrench so it runs the same way every time." updated: 2026-06-09 --- # Create a Wrench > **Tip:** Before this step, complete [Build a Live Dashboard](https://docs.apexti.com/tutorial/part2/build-dashboard.md) so you have triage logic that works. ## The situation You don't want to ask for the triage summary every morning. You want it waiting for you when you open Toolbelt at 8 AM — already categorized, already routed to each person, nothing for you to do but read your section. To get there, you first need to freeze the triage logic into something that runs deterministically — no LLM improvisation, same result every time. That's a [Wrench](https://docs.apexti.com/features/wrenches.md). ## Create the Wrench After your assistant successfully triages a morning's inbox, ask: ``` Turn that into a Wrench. It should check the inbox for emails (or calendar for invites) from the last 24 hours, categorize them, and group them by the account owner on our team. ``` The assistant generates a Wrench with: - A **`run` function** that executes the exact logic you just walked through. - An **input schema** so you can parameterize it — for example, pass a different time window or a different team member list. - **Version tracking** so you can update the logic as your routing rules evolve. ## Test it manually first Before you schedule anything, run the Wrench manually to confirm it produces the right output: ``` Run the inbox triage wrench. ``` Check the results. If something's off, ask the assistant to adjust the Wrench and run it again. Only schedule it after you trust the output. > **Tip:** Wrenches are deterministic — the same inputs produce the same outputs every time. That predictability matters in an ops environment where you need to trust the output before acting on it. --- **Next:** [Schedule the Digest](https://docs.apexti.com/tutorial/part2/schedule-digest.md) --- --- title: "Schedule the Digest" description: "Set your triage Wrench to run automatically every weekday and post results to Slack before the team's day begins." updated: 2026-06-09 --- # Schedule the Digest > **Tip:** Before this step, [create and test your triage Wrench](https://docs.apexti.com/tutorial/part2/create-wrench.md). ## Set the schedule Once your Wrench runs correctly, tell your assistant to make it recurring: ``` Run the triage wrench every weekday at 7:45 AM Eastern. ``` Toolbelt creates a [Scheduled Task](https://docs.apexti.com/features/scheduled-tasks.md). At 7:45 AM every weekday, the Wrench fires: it checks the inbox, categorizes everything, groups by account owner, and posts a clean summary to Slack — before the team's day begins. Nobody has to scroll through a full inbox to find the items that matter to them. > **Warning:** Scheduled tasks consume token credits on every run. If you're processing a high-volume inbox daily, check your [Token Usage](https://docs.apexti.com/features/token-usage.md) page and set a limit so usage stays predictable. ## What you've built You started with a problem — a shared inbox with no signal — and ended with a system: - An assistant that reads live email and answers specific questions on demand. - A live dashboard that shows the real shape of your inbox volume. - A scheduled Wrench that delivers a categorized, routed digest to Slack every morning. The core loop is: **ask → understand → automate.** That loop applies to every problem you'll bring to Toolbelt, not just email or calendar triage. --- **Part 2 complete.** Move on to Part 3 to share your assistant with the team. **Next:** [Share Your Assistant with the Team](https://docs.apexti.com/tutorial/part3/share-with-org.md) --- --- title: "Share Your Assistant with the Team" description: "Make the assistant you built available to every member of your organization in one click." updated: 2026-06-09 --- # Share Your Assistant with the Team > **Tip:** Before this step, complete [**Part 2 — Find the Signal & Automate It**](https://docs.apexti.com/tutorial/part2/ask-for-analysis.md) so you have a working assistant worth sharing. ## Why sharing matters Right now, only you can see this assistant. That means every person on your team who could benefit from it — the ops manager, the account owners, the new hire — has to either wait for you to run it for them or build their own version from scratch. Sharing flips that. One click makes the assistant available to your entire organization. They get their own chat threads, their own history, their own results — all running the same logic you built and tested. ## Share it 1. Open the assistant you want to share. 2. In the top-right toolbar, click the **group icon** (third button from the left). It turns red. 3. That's it. Every member of your organization can now find and chat with the assistant. They get **view access** — they can run conversations but can't change the configuration, system prompt, or connected services. You stay in control. > **Tip:** Hover over the button before clicking to confirm its state. Gray means private. Red means shared. ## What your teammates see When you share an assistant, it appears in the organization's assistant list for all members — immediately, no approval required. Anyone can open it and start a conversation. Any changes you make to the assistant — updating the system prompt, connecting a new service, switching models — take effect for everyone the moment you save them. There is no separate publish step. > **Note:** This one-click share is the fastest way to get an assistant in front of your team. It is intentionally lightweight: no versioning, no changelog, no per-user private copies. For that level of governance, see the next step. --- **Next:** [Publish to the Catalog](https://docs.apexti.com/tutorial/part3/publish-to-catalog.md) --- --- title: "Publish to the Catalog" description: "Publish your assistant as a versioned blueprint so teammates can deploy their own copy and stay up to date as you improve it." updated: 2026-06-11 --- # Publish to the Catalog > **Tip:** Before this step, [share your assistant with the org](https://docs.apexti.com/tutorial/part3/share-with-org.md) so you understand the difference between the two distribution models. ## What the Catalog is The Catalog is a versioned registry of assistant blueprints. When you publish an assistant to the Catalog, Toolbelt takes a full snapshot of its configuration — system prompt, model, connected services, settings — and makes it available for others to deploy. The key word is *deploy*. When a teammate installs an assistant from the Catalog, they get their own private copy. Their conversations stay private. Their configuration changes don't affect anyone else. But when you publish an update, they get a notification and can choose to upgrade. That's the difference from the one-click share: | | Share with Org | Publish to Catalog | |---|---|---| | **Setup** | One click | Title, description, version, tags | | **Updates** | Live immediately | Versioned — teammates choose when to upgrade | | **Teammate access** | Shared chat thread | Each person gets their own private copy | | **Best for** | Fast access, works in progress | Polished, team-standard assistants | ## Publish it 1. Open the assistant. 2. Click the **Publish to Catalog** icon in the top-right toolbar (fourth button from the left). 3. Fill in the form: - **Title** — what it does, not who built it - **Description** — who it's for and what problem it solves - **Category** — e.g., "Operations", "Engineering" - **Tags** — labels teammates will search by - **Version** — start with `1.0.0` - **Version notes** — a short description of this first release 4. Click **Publish**. Your assistant now appears in the organization's Catalog. Any org member can find it, read the description, and deploy their own copy. ## When you update it As you improve the assistant — tightening the system prompt, adding a service, adjusting the model — the Catalog entry stays frozen at the version you published. To push an update: 1. Make your changes to the assistant. 2. Click **Publish to Catalog** again. 3. Bump the version number and write a changelog note explaining what changed. 4. Click **Publish**. Every teammate who deployed the previous version sees an upgrade notification. They can review what changed and upgrade when they're ready. Nobody gets a forced update. > **Tip:** Write useful version notes. "Added Slack service, updated prompt to include priority routing" gives teammates enough to decide whether to upgrade now. A blank note gives them nothing. > **Note:** Accepting an upgrade replaces a teammate's deployed copy with a fresh clone of the new version — any local changes they made are overwritten. See [How deployed copies work](https://docs.apexti.com/features/catalog.md#how-deployed-copies-work) for the full details on the clone model and what the upgrade trade-off means in practice. ## Why this matters The Catalog turns a one-off assistant you built into a reusable team asset. Instead of rebuilding similar assistants across every project or org, you publish once and let teammates deploy and adapt from a known-good baseline. As your assistant matures — better prompts, more services, tighter logic — everyone who deployed it can upgrade on their own schedule. The work compounds. --- **Part 3 complete.** Move on to Part 4 to give your assistant a proper identity, scoped services, and a saved configuration. **Next:** [Create a Dedicated Assistant](https://docs.apexti.com/tutorial/part4/create-assistant.md) --- --- title: "Create a Dedicated Assistant" description: "Create a new assistant for a single, specific job — and understand why separation matters." updated: 2026-06-09 --- # Create a Dedicated Assistant > **Tip:** This is the first topic in **Part 4 — Purpose-Built Assistant** of the [Toolbelt Tutorial](https://docs.apexti.com/get-started/tutorial.md). Part 4 uses a different scenario: a cross-functional PM — we'll call her Jordan — tracking a security engineering project in Jira. ## Why a dedicated assistant? Most people start Toolbelt by asking general questions. The real power unlocks when you build an assistant designed for one job — and teach it everything it needs to do that job well. A general-purpose assistant is like a new hire on their first day. A purpose-built assistant is like a specialist who already read the project docs, knows the team, and understands what "done" looks like for your specific situation. Don't try to overload your general-purpose assistant with a second job. Create a new one. ## Create it 1. In the top-right corner of the Toolbelt organization, click **Create new assistant**. 2. Give it a descriptive name that reflects the job — for example, **"Jira Status Updates"** or **"Cross-Functional PM Agent"**. 3. Click the **share** button in the top-right so teammates can collaborate on the same assistant. > **Tip:** Name your assistants for their function, not for yourself. "Security Project Status" is easier to find and share than "My Assistant." ## What comes next Creating the assistant is just the shell. The definition prompt — the next topic — is what turns it from a blank slate into a specialist. --- **Next:** [Write a Definition Prompt](https://docs.apexti.com/tutorial/part4/definition-prompt.md) --- --- title: "Write a Definition Prompt" description: "Send your assistant a first message that gives it an identity, deep context, and clear instructions — so every future chat starts fully briefed." updated: 2026-06-09 --- # Write a Definition Prompt > **Tip:** Before this step, [create your dedicated assistant](https://docs.apexti.com/tutorial/part4/create-assistant.md). ## Why the first message matters more than any other The first message you send to a new assistant sets its identity, expertise, and purpose. Think of it less as a system prompt and more as the briefing you'd give a new team member on their first day. Get this right and every future chat with this assistant inherits all of that context automatically. The more precise this briefing, the less you'll need to repeat yourself in future chats. ## Build the prompt in four parts ### 1. Start with a persona Give the assistant a role with relevant expertise: ``` You are an experienced technical program manager with a specialty in infrastructure and reliability engineering. ``` A specific persona matters. An expert in the right domain brings built-in vocabulary and judgment — you won't need to explain industry terminology from scratch. ### 2. Provide rich context about the work Don't just tell it what to do — explain what is being done, by whom, and why it matters: ``` Jordan, an engineer on our team, is building an automated deployment pipeline. She is submitting PRs against a set of Jira tickets in the INFRA project. Each ticket relates to a stage of the pipeline — from build and test through to production rollout and rollback handling. ``` > **Tip:** Be specific — use real names, project names, and team names. The assistant knows the difference between "an engineer" and "Jordan on the INFRA project," and it retrieves and summarizes data accordingly. ### 3. Describe the outcome you want ``` I want to create a weekly status report that is readable by non-technical stakeholders across the business. It should highlight progress toward the launch milestone, and flag any risks or blockers noted in the tickets. ``` Notice this isn't just "give me a status update." It includes the audience, the content focus, and the cadence. The more you specify the *what* and *why* of the output, the better the result. ### 4. Add a standing behavioral instruction and close with an invitation ``` Always be concise. Let me know if you have any questions — but don't make up questions just to ask them. ``` Brief standing instructions shape every response. The closing line gives the assistant permission to ask for genuine clarification without prompting filler questions. ## Name and keep this chat This first chat thread is your **definition chat**. Rename it "Definition" using the rename option in the left sidebar (hover over the chat name to reveal it). Keep it — it's your reference for everything you configured. > **Note:** Don't add unrelated requests to your definition chat. It's a record, not a workspace. Open a new chat for each distinct task. --- **Next:** [Connect and Scope Services](https://docs.apexti.com/tutorial/part4/connect-scope.md) --- --- title: "Connect and Scope Services" description: "Hook up the services your assistant needs and narrow its focus so it stays accurate and efficient." updated: 2026-06-09 --- # Connect and Scope Services > **Tip:** Before this step, [write your definition prompt](https://docs.apexti.com/tutorial/part4/definition-prompt.md). ## Connect a service For this scenario, connect **Jira** from the Services panel. See [Services](https://docs.apexti.com/features/services.md) for the full walkthrough on connecting a service and enabling it on your assistant. > **Note:** Toolbelt requests only the permissions it needs. Even if the OAuth dialog lists read, update, and manage permissions, the platform operates read-only in most workflows unless you explicitly ask it to write. ## Scope the work precisely A connected service gives your assistant access to *everything* in that system. That's too broad — and it burns through credits fast. Tell the assistant exactly where to look: ``` Only look at the SEC project in Jira. Focus on tickets assigned to Dante. ``` This scoping directive belongs in the definition chat. The more precise your scope, the more accurate and efficient the assistant becomes. > **Tip:** If tickets span multiple people or teams, consider grouping them under a Jira epic and telling the assistant to track that epic by its unique identifier. You can even ask the assistant to create the epic and assign the relevant tickets to it automatically. ## Hold off on services that aren't ready If a service is mentioned in your definition chat but isn't configured yet, tell the assistant to wait: ``` Hold off on Slack for now. ``` This prevents the assistant from trying to use a service that isn't configured and keeps responses focused. Come back and enable delivery channels once the core workflow is working. --- **Next:** [Design the Output](https://docs.apexti.com/tutorial/part4/design-output.md) --- --- title: "Design the Output" description: "Shape what your assistant produces — from stakeholder-ready text summaries to shareable HTML infographic pages." updated: 2026-10-29 --- # Design the Output > **Tip:** Before this step, [connect and scope your services](https://docs.apexti.com/tutorial/part4/connect-scope.md). ## Let the assistant impress you first Don't over-specify the format before you've seen what the assistant can produce. Start with: ``` Impress me with whatever format you think will be most effective for the stakeholders. ``` This gives the assistant creative latitude to choose the right structure — which is often better than dictating a specific format before you know what the data looks like. ## Add an HTML infographic One of Toolbelt's most powerful output types is a shareable HTML page. Ask for one alongside the text summary: ``` Also create an infographic-style HTML page that summarizes the status using an Opus subchat. ``` The assistant generates a self-contained HTML page and produces a public link you can share directly with anyone — no Toolbelt account required. Validate it by opening the link in an incognito window before sharing externally. > **Tip:** Public dashboard links are valid for approximately seven days by default. If you need a longer window, ask: "Make this link valid for 30 days." You can also ask the assistant to make the page interactive or add drill-down sections. ## Set a relative reporting window When you ask for a weekly status, the assistant needs to know what "this week" means: ``` Use the prior seven days as the reporting window, relative to when you run it. ``` A relative time window means the report stays accurate as weeks pass without any manual updates. ## Use the right model for each part Different parts of the same task call for different models. You can delegate using sub-chats: ``` Gather all work in the SEC project in Jira, then create a sub-chat with Opus to build the HTML infographic from that data. ``` This lets an affordable model handle data-gathering while a more capable model handles the presentation — better results without burning credits unnecessarily. | Task | Recommended model | |---|---| | Querying Jira, fetching data, simple lookups | A fast, affordable model (e.g., Gemini Flash, GPT-6 Luna) | | Writing stakeholder summaries | A balanced model (e.g., Claude Sonnet) | | Building HTML infographic pages | A capable reasoning model (e.g., Claude Opus) | See [Model Selection](https://docs.apexti.com/features/model-selection.md) for a full comparison. --- **Next:** [Schedule and Save](https://docs.apexti.com/tutorial/part4/schedule-save.md) --- --- title: "Schedule and Save" description: "Schedule recurring reports and save your assistant's configuration so every future chat starts fully briefed." updated: 2026-06-09 --- # Schedule and Save > **Tip:** Before this step, [design your output format](https://docs.apexti.com/tutorial/part4/design-output.md). ## Schedule a recurring report Rather than asking for the report manually each week, have the assistant schedule it. In your definition chat, include: ``` Schedule the report to be generated every Thursday at 5 PM Eastern time. ``` Toolbelt creates a [Scheduled Task](https://docs.apexti.com/features/scheduled-tasks.md) automatically. The task runs on the cadence you specified and delivers output to the chat. Once you have delivery channels connected (Slack, email), you can tell it exactly where to send the result. > **Warning:** Scheduled tasks consume credits on every run. If you're running complex Jira queries weekly, keep an eye on your [Token Usage](https://docs.apexti.com/features/token-usage.md) dashboard and set a limit so you don't hit surprises at the end of the month. ## Save the assistant's configuration After your definition chat has the assistant working the way you want, save everything to its permanent configuration: ``` Save who you are, your purpose, and your configuration to your assistant settings. ``` The assistant writes its identity, context, and instructions into its own system configuration. From that point on, every new chat starts fully briefed — like an employee who already read the onboarding docs. ## Use new chats for new tasks Once your assistant is configured, follow this discipline: **One task = one chat.** Open a new chat for each distinct task or question. The assistant carries its full configuration into every new chat automatically. You just need to ask: ``` Summarize all work in the SEC project in Jira. Create an HTML infographic. ``` No re-explanation needed. The assistant already knows the project, the scope, the audience, and your preferred format. > **Tip:** Rename your chats by task (e.g., "Weekly Status — June 5", "Dante's Blocker Summary"). Over time, your chat history becomes a searchable log of every report, analysis, and decision the assistant has helped with. --- **Tutorial complete.** Here's what to build next. :::cards 3 ===card title: Add Slack Delivery icon: slack href: ../../features/slack.md Connect Slack so the assistant can send weekly status reports directly to a channel or DM — no copy-pasting required. ===card title: Build an Organization-Level Assistant icon: robot href: ../../features/managing-assistants.md Move the assistant into a shared organization so your whole team can access and query it. ===card title: Connect More Services icon: plug href: ../../features/services.md Add more integrations to unlock new tools. Each connection expands what your assistant can see and act on. :::