PAFworks Guides All guides
Administration · AI

Set up the assistant for your organisation

You decide which language models the assistant may use, what they cost, how far one conversation may go, and what the assistant may reach besides your files and mail: the web, programs, search by meaning and the applications your organisation runs.

What you need

  • An administrator account in PAFworks: the settings below are in Admin, which other accounts don’t see.
  • An account with at least one model provider — an Infomaniak AI Tools subscription, an Anthropic or OpenAI API key — or an Ollama server of your own.
  • For the API connectors: the address of your application and a key or an account it can sign in with.

Where the settings are

Click Admin at the bottom of the left bar. The AI group of the administration holds three pages:

PageWhat it holds
Language modelsThe switches, the models and their prices, the model used for automatic filing, the shared key, search by meaning and text recognition.
AssistantThe switches of the assistant, its limits per account, the sandbox for programs and web search.
API connectorsThe outside applications the assistant may call, and who may use them.

Step 1 — Switch the assistant on

At the top of Language models, tick Enable the language models — the one switch above every model, for automatic filing and the assistant alike — and Enable the assistant, then click Save. While either is off, the assistant is absent for everybody: no page, no entry in the left bar.

Language models: the two switches and the first model, Claude Sonnet 5.5

The assistant appears only once a model able to use its tools is declared, too: the Assistant page says so when one is missing. If PAFworks provides a model for your space, the page says which one; a model you add takes over from it.

Step 2 — Declare the language models

  1. Under the switches, click Add a model. A blank card appears.

  2. Give it a Name people will recognise in the model menu — say where it runs, for instance “Infomaniak — Mistral Small (Switzerland)” — and pick its Provider.

    ProviderWhat the card asks
    InfomaniakThe Endpoint of your AI Tools product, with the product number shown beside your subscription, and a key.
    Claude (Anthropic)An Anthropic API key. The Endpoint is Anthropic’s own by default.
    OpenAIAn OpenAI API key.
    Ollama (local)The Server address of your Ollama server. A key only if your server asks for one.
    Custom (OpenAI-compatible)The Endpoint of a server that speaks the OpenAI API, the model identifier typed by hand, and a key if the server asks for one.
  3. Paste the API key, or leave it empty to use the shared key (see below). Then open Model: the list is asked of the provider once there is a key; Refresh asks again.

    The card of a model: name, provider Infomaniak, endpoint, model mistral3, Available ticked, prices in CHF, Save, Test connection and Remove
  4. Leave Available ticked to offer the model; tick Default for the model new conversations start on. Tick This model can read images only for a model that does: pictures are then sent to it as pictures.

  5. Type the prices, if you want the cost of conversations shown (see Prices and cost), then click Save.

A red box on the card reminds you that the content given to a hosted model — the text of the files being filed, whatever the assistant reads for someone — leaves your PAFworks. A model run on your own Ollama server keeps it at home. Declare as many models as you need: for instance a local one for confidential documents and a hosted one for the questions that need reasoning.

One key for several models

Several models of the same provider can share one key: type it once in Shared credential, lower on the page. A model with a key of its own uses its own. The key is stored encrypted and never shown again; Remove the stored value clears it.

The Shared credential panel with a stored key

Advanced options on each card hold tuning values with working defaults: the context size of an Ollama model, the answer budgets, the timeout, the retries and the order of the models in the menu. The Automatic folders panel chooses the model used to file documents: see File your documents automatically.

Step 3 — Test it

A slow model can fail the test and still work. Test connection gives up after 15 seconds by default. A model that takes longer to start answering shows as unreachable here, while conversations, which wait up to two minutes by default (the card’s Timeout (seconds)), work. A model that thinks before it answers passes even if it wrote nothing in the few words the test allows.

Who uses which model

Every model marked Available that can use the assistant’s tools is offered to every account: there is no choice per person or per group. With two models or more, each person picks one per conversation in the menu beside the box they type in; with one, there is no menu. A new conversation starts on the Default model.

The model menu of a conversation, with four models and the cost of the conversation underneath

Removing a model asks first: conversations that were using it fall back to the default one.

Prices and the cost of a conversation

On each card, Input price and Output price are per million tokens, as the provider bills them, in the Currency you pick (CHF, EUR, USD or GBP). Cache write price and Cache read price can stay empty: the provider’s usual rate then applies.

Limits of the assistant

On the Assistant page, the numbers bound what one runaway conversation can cost in time and tokens. They apply to each account; click Save after a change.

The Assistant page: Enable the assistant, Allow code execution and the eight limits
SettingDefaultWhat it bounds
Steps per message8How many times the model is asked in a row for one message (1 to 250).
Actions per message24How many actions it may take for one message (1 to 200).
Minutes per message5How long one message may keep it working (1 to 120).
Messages per hour30Messages per person per hour, forms drafted with the assistant included (1 to 1000).
Files per conversation10Files attached to one conversation (1 to 100).
Maximum file size (MB)25The largest file uploaded from a computer (1 to 500).
Maximum image size (MB)2The size an image is shrunk towards rather than refused (1 to 20).
Images kept in context4How many of the latest images are sent again with each step; 0 sends none at all (0 to 20).

When a budget runs out, people read Autonomous mode limit reached: 8 steps per message. An administrator can change it under Administration › Assistant. and can click Continue, which starts a fresh budget. Past the hourly number, the person’s new messages are refused for a while: the count runs over the last hour.

The assistant can search the web in two ways.

The Web search panel: off, a note that Claude Sonnet 5.5 searches on its provider's side, and the Google key fields

Search terms leave PAFworks. With either kind of search, what the assistant looks for is sent as a query to Google or to the model’s provider. The assistant is told never to put the content of files, mail or contacts in a query.

Opening a web page beside a conversation, with the person’s approval, needs none of this: it happens in their own browser. See Web pages and the extension.

Programs in a sandbox

Tick Allow code execution on the Assistant page to let the assistant run short programs — counting, converting, charts. Programs run in a throwaway sandbox with hard limits on memory, processor and time, and get only the files they were given: the assistant never sees your storage itself.

The Code execution sandbox panel: switched on, with its Test button

The sandbox itself is installed by your host: the Code execution sandbox panel shows its status, and Test runs a real program and says A program ran. or No program could run. When the host gave programs network access, the panel warns that a program can then send what it was given elsewhere.

Search by meaning

Search by meaning finds the passage that answers a question even when it shares no word with it — “the contract with the two-year notice period”. It needs a model that turns text into vectors (an embedding model), which Anthropic does not offer.

  1. On the Language models page, in Semantic search, tick Enabled and choose the Provider: Same as the language model, Infomaniak, OpenAI, Ollama or a custom one.

  2. Fill in the Endpoint and the API key if they differ from the language model, and the Model: there is no default. Click Save.

    The Semantic search panel: Enabled, Provider, Endpoint, Model, API key, Dimensions

Documents are then indexed in the background, and the assistant gets a search that works by meaning, beside the one by words. Follow the instance drops your values and returns to the settings of your host.

API connectors: your own applications

A connector lets the assistant call an outside application — your ERP, your CRM, an internal tool — for the people you choose. The credentials stay on the server: the assistant names the connector and a path, the server adds the key, the password or the session on the way out and removes them from the answer. The assistant never sees them, and never asks anyone for them.

The API connectors page with two connectors, Odoo and Weather, and the buttons Add a connector, Odoo 19 and later, Odoo 14 to 18

Connect Odoo

  1. Next to Add a connector, click Odoo 19 and later or Odoo 14 to 18, depending on your Odoo.

  2. Type the Odoo address and paste the API key — in Odoo, signed in with the account the assistant will use: Preferences → Account Security → New API Key. Odoo 14 to 18 also asks for the Database and the Login of the Odoo account; Odoo 19 needs the database only when the server holds several. Click Create and test.

    The Odoo 19 and later form with the Odoo address and an API key, and Create and test
  3. The connector opens, already tested. Under Who may use it, tick Everybody or add people and groups, then click Save. Until you name someone, nobody can use it.

    What the assistant may do: Reads freely, asks before a change; Who may use it: the groups Management and Sales

Give the connector an Odoo account of its own, with only the rights it needs: every person you grant it to acts with that account, and Odoo cannot tell them apart. A connector made with the Odoo buttons lists the addresses it may use: reading records goes out at once, creating or changing a record waits for the person’s approval, and deleting records or confirming documents is refused.

What the assistant may do

RequestsWhat happens
Reads freely, asks before a changeReading requests go out; anything that changes something waits for the person’s approval.
Only the addresses listedEach line of Allowed addresses says which methods and paths are allowed (Allow) or need approval (Ask first). What no line covers is refused.
Ask every timeEvery request waits for the person’s approval.
Everything, without askingEvery request goes out. Keep it for an application that only reads, or whose changes are easy to undo: a document written to mislead the assistant could make it write there.

A request that waits shows the person what will be sent — the method, the address and the data — with Send the request and No, thanks:

A call_api card waiting for approval: POST res.partner.write to Odoo with the new phone number, Send the request and No, thanks

Templates and skills for everyone

Prompt templates and skills are private to the person who writes them. As an administrator, you can share yours with the whole organisation: in the assistant, under Settings, open Skills or Prompt templates, choose the entry, tick Share with everyone in the organisation and click Save.

The skill House style, shared with everyone in the organisation

How people use them: see Prompt templates and Skills.

What data goes where

WhatGoes toWhen
The messages, the text of attached files, whatever the assistant reads with its tools (files, mail, events, contacts) and the answers of connected applicationsThe provider of the model answering the conversationAlways. A model on your own Ollama server keeps it there.
Attached images, as picturesThe provider of the modelOnly for a model marked This model can read images.
Search queriesGoogle, or the model’s providerWhen web search is on, or Let the provider search the web is ticked.
Passages of files, mail and attachmentsThe embedding providerWhen Semantic search is enabled.
Requests and the data they carryThe application of the connectorWhen someone uses a connector.
Files handed to a programThe sandbox of your hostWhen code execution is allowed. They leave it only if programs have network access.
The text of a web page open beside a conversationPAFworks, then the model’s providerWhen the person reads it through the browser extension.

Good to know