AI Chat

AI assistant (OpenAI, Anthropic or any OpenAI-compatible endpoint) with article editing, context attachment, and persistent chat history.

Weavestream includes a built-in AI chat panel available throughout the app. You can ask questions, retrieve permitted company documentation, get instructions for using Weavestream, and draft or edit articles without leaving your current workflow.

Opening the Chat Panel

Click the chat icon in the company sidebar toolbar to toggle the chat panel open or closed. The panel slides in from the right and can be resized by dragging its left edge.

LLM Configuration

Configure the language model under Admin → Settings → AI:

Setting Description
Provider OpenAI, Anthropic, or OpenAI-compatible (Ollama, LM Studio, vLLM, OpenRouter and similar). The provider sets the request format, the auth headers and how reasoning is controlled.
Endpoint URL OpenAI and Anthropic use their standard endpoints automatically. Compatible providers require an explicit URL, such as http://localhost:11434/v1. Hosted providers can override their endpoint under Advanced.
API key Your API key for the endpoint. Optional for local servers. The saved key is bound to its endpoint: when you change the endpoint or switch to a provider with a different endpoint, enter a new key or remove the saved key before you save.
Default model The model "Ask anything" uses for chat. Test connection lists the models the endpoint offers.
Background model Used for chat titles, the short line shown before an article proposal, and article summaries. Leave empty to use the default model. A small, fast model is a good choice here.
Max output tokens / Context window tokens Sliders under Advanced set the reply and context budgets. Defaults are 16,384 output tokens and 32,768 context tokens. Use default restores the server default. Existing custom values are preserved, but blank values now use the new 16,384 default. The server caps the reply budget at half the context window, and the form shows the capped value. The output limit must be less than the context window. Reasoning models spend output tokens on thinking, so smaller reply budgets can cut off replies and tool calls. Some older or local models accept fewer output tokens than the default; set an explicit value for them.
Allow private-network addresses Opt-in required for endpoints on loopback or LAN addresses (local Ollama, LM Studio). Off by default.

Under Advanced:

Setting Description
Reasoning effort Provider default (the default) sends no reasoning setting in chat, so each model uses its own default. off, low, medium and high are targets: Weavestream sends the nearest setting each model supports, and nothing for a model it does not know. Titles, summaries and the connection test always use the lowest setting.
Anthropic workspace ID Shown for the Anthropic provider only. Needed when the API key is not limited to one workspace.

Test connection lists the models, then sends one short prompt to the selected default model. "Test reply OK" means the model gave a visible reply. If the reply check fails, the model list still shows, with the reason (for example a missing model, a timeout, or a reply cut off by the output-token limit).

Providers

  • OpenAI — Chat Completions API. Reasoning models (gpt-5 family, o-series) get reasoning_effort; models that reject temperature do not get it.
  • Anthropic — Anthropic's native Messages API. Weavestream sends the system prompt with prompt caching, uses strict tool schemas where the model supports them, and keeps a model's reasoning between tool calls in the same reply. A model that does not accept a forced tool choice gets a plain instruction instead.
  • OpenAI-compatible — any server that implements the OpenAI Chat Completions API. With reasoning effort off, Weavestream sends the usual "disable thinking" flags. Most servers ignore flags they do not know; if a server rejects them, the chat retries once without them and stops sending them to that model.

Private network access

By default, Weavestream's server-side request guard refuses to connect to AI endpoints that resolve to private addresses — the same SSRF protection applied to every other outbound integration. If your LLM runs on your own machine or LAN (e.g. http://localhost:11434/v1), enable Allow private-network addresses in Admin → Settings → AI.

The opt-in permits only a curated set of private ranges (loopback, RFC1918, CGNAT/Tailscale, IPv6 loopback and unique-local). Link-local and cloud-metadata addresses (such as 169.254.169.254) remain blocked even with the setting enabled, and DNS-rebinding protection stays active. Operators who need ranges outside the curated list can allow them process-wide via the EGRESS_ALLOWED_PRIVATE_CIDRS environment variable.

Conversations & History

Each conversation is stored as a chat session tied to your user account. Sessions are persistent — you can close the panel and return to any previous conversation from the history popover.

Action How
View history Click the clock icon at the top of the chat panel
Resume a conversation Select it from the history list
Start a new conversation Click New chat at the top of the panel

Product Help and Read Tools

For questions about using Weavestream itself—such as creating an asset layout, configuring an integration, mapping organizations, or running a sync—the assistant can retrieve release-matched instructions bundled with the deployed application. This app help is read-only: it explains the current UI and lists permissions that may be required, but it cannot inspect live integration state or perform the documented steps.

The assistant can also search records the signed-in user is permitted to access and read selected articles or relationships. Product help and tenant data are separate: static instructions do not prove that a particular asset, mapping, integration, or sync run exists.

If no app-help section qualifies with sufficient confidence, the assistant is instructed to say that the built-in help does not cover the question instead of guessing. Deployment, Docker, environment-variable, database, and server-administration guidance is intentionally excluded.

Context Attachment

Attached context gives the assistant the current page or selected records immediately. The assistant may also use its permission-scoped read tools when a question needs other records. You can attach context in two ways:

Auto-attach

When you open the chat panel while viewing an asset or article, that record is automatically attached as context. An entry appears in the context strip above the message input showing what is attached.

@-mention

Type @ in the message input to open a picker and search for any article or asset in the current company. Selecting an item adds it to the context strip.

Multiple items can be attached to a single conversation. The context strip shows all attached items and allows you to remove individual ones.

Article Editing

When an article is attached to the chat (either auto-attached or via @-mention), the AI can propose edits to it directly.

  • Ask the AI to rewrite, expand, or fix sections of the article
  • Focused changes use exact passage replacements, so the model does not need to reproduce the unchanged article
  • Explicit whole-article rewrites can still replace the complete document
  • Proposed edits appear as tool-call cards in the chat — review the generated diff before accepting
  • Accepted edits are applied directly to the article; the editor reflects the change immediately
  • If the article changed after the proposal, or an original passage is missing or ambiguous, Apply safely refuses the edit

Save as Article

Any assistant response can be saved as a new article via the Save as article action at the bottom of the message. This opens a dialog to choose a title, folder, and format before creating the article.

Privacy & Data

AI chat sends your conversation and its attached context directly to the LLM endpoint you configure. Depending on what is attached, a single request can include:

  • The full markdown content of attached articles
  • The field values of attached assets (label and value pairs, as visible to the requesting user)
  • Attached domain records (WHOIS/DNS/TLS/email-auth details)
  • Attached ticket bodies fetched in real time from your ticketing integration (NinjaOne), including internal notes
  • The acting user's email address, user id, and role, plus the active company id
  • The conversation history of the current chat session

Context is only attached when you (or the auto-attach behaviour of the page you are on) add it — but once attached, it is transmitted in full. The LLM endpoint you configure is solely responsible for data handling under its own terms — Weavestream does not proxy requests through any Weavestream-operated service, and it does not filter or anonymise the content before sending. Choose a provider you trust with your client documentation, or self-host the model.