# Assistant

Ask Postdot in your own words to find, draft, reschedule or cancel posts, with your approval before anything changes what gets published.

URL: /docs/assistant

Available from `0.1.0-alpha.10`. The assistant starts off. An administrator can set it up in
**Settings → Installation → Assistant**, or the deployment can supply a model.

The assistant is a conversation in Studio. Ask it what is scheduled this week, to draft a post
from a few notes, or to cancel a publication, in the language you write in. It reads and acts
through the same actions as the API, with your own access: it sees the projects you see and can
do what your role allows, nothing more.

It runs inside your Postdot installation and calls the model your administrator configured:
a hosted provider such as OpenAI, Anthropic, Google Gemini or OpenRouter, or a model on your
own server through Ollama, LM Studio or vLLM.

## Use it [#use-it]

Choose **Assistant** at the top of the sidebar. On a phone, use the **Assistant** button
near the top of Studio. The assistant starts with the project you were in. Write a message
and press Enter to send it. Use Shift+Enter to add a line. The answer appears as it is
written, with the Postdot actions listed above it.

From `0.1.0-alpha.12`, **Assistant** is in the sidebar even before a model is connected. It then
says why it cannot answer yet: administrators get **Open Assistant settings**, and other people
are told that an administrator needs to connect a model.

Choose **Studio** to return to your page. When you return to **Assistant**, the conversation
and any unsent message are still there. From `0.1.0-alpha.14`, once a model is connected, a
round **Open the assistant** button sits in the bottom-right corner of Studio. On a larger screen
it opens the conversation beside your page so you can work with both at once; on a phone it opens
the Assistant. **Collapse assistant** returns the conversation to that button, which shows when
the assistant is working or has approvals waiting.

When an answer links to a Studio page, choose **Open beside** to work on that page while
keeping the conversation in view. Drag the divider or focus it and use the arrow keys
to resize the page. Home takes it to its smallest width and End takes it to its largest.
Use **Swap sides** to move the page or **Close Studio page** to return to the conversation.
On a phone, **Open** goes to the page and **Back to conversation** takes you back.

**Stop** ends the current answer. Each conversation runs one answer at a time and shows the
same transcript in every tab.

## Find a conversation [#find-a-conversation]

Choose **New conversation** in the Assistant sidebar. On a phone, open the menu to see the
sidebar. The model names the conversation after the first exchange. Search titles in the
sidebar, or use a conversation's menu to rename, pin or delete it. A dot marks a conversation
with an approval waiting. To delete all conversations, open **Settings**, **Account**,
then choose **Delete all conversations**.

Choose a model beside the composer. When several providers are connected, filter by provider
on the side or search models by name. When the chosen provider and model support reasoning
levels, pick the level at the bottom of the picker. Your choice is remembered per conversation,
and each new conversation starts with the installation default. If a model or provider is
removed or disabled later, the conversation says so and asks you to pick another available model
or choose **Continue with [model]** to switch to the default.

Installation administrators can open **Manage models** in the picker, choose a connection,
and save changes to its model list. Use **Add a connection** to connect another provider.
After you save, you can pick an enabled model from that connection in the same conversation.
OpenRouter models whose IDs end in `:free` carry a **Free** badge.

Open **Token usage** in the conversation header to see input, output and total tokens reported
by the models used in that conversation. When the model's context limit is known, you can
also see how much context the last reply used. When the assistant summarizes older messages
to make room in the model's context, the usage panel shows when it last did so. You can
still read the original messages in the transcript.

Type **@** and search for a project, post, publication or channel. Use the arrow keys and
Enter to insert a reference chip, or Escape to close the list. Each chip moves as a single unit
with the arrow keys; press Backspace once after a chip to select it and a second time to remove
it. Sent messages show the same chips in the conversation, and the assistant resolves each
referenced item through your Postdot access.

## Attach media [#attach-media]

From `0.1.0-alpha.11`, choose **Add media** beside the composer to pick files from the project's
media library, or upload new ones into the library from the same window. From `0.1.0-alpha.14`,
you can also drop or paste images into the composer: they are uploaded to the project's media
library and appear as inline chips with a thumbnail at the cursor, so your message and the
conversation history keep the order of text and images. Pasting copied text keeps the text, even
when the app you copied from also offers a picture of it.

When the conversation's model accepts images, Postdot also sends the model a preview of each image
(at most 768 pixels on its longest side) next to its reference, in your latest two messages only. An image whose
preview is not ready yet, or that is over the size limit, is sent as its name. Other models see
only each file's name and description. Catalog models use what their provider declares; on an
OpenAI-compatible server, an administrator turns on **Accepts images** for each model that reads
them. Ask the assistant to create a draft with attached media, or to add media
to an existing post, and it attaches them to the post's shared content. Channel versions of an
existing post keep their own content until you apply the change on the post page, so nothing
scheduled changes.

## Dictate a message [#dictate-a-message]

From `0.1.0-alpha.14`, a **Dictate** microphone button sits beside the composer. If dictation is
not configured yet, choosing it opens a setup dialog explaining how dictation works: installation
administrators can configure, test and enable a transcription model right from that dialog (or
open **Settings → Installation → Assistant**), while other people are told to ask an
administrator.

Once a transcription model is enabled, choose **Dictate** and allow the microphone when the
browser asks. While you speak, the composer shows **Recording** and the time left. Choose
**Stop recording** to transcribe what you said, or **Cancel** (or Escape) to discard it. The text
is inserted where the cursor was, so you can correct it before you send it. Recording stops on
its own at the length the administrator set.

Postdot sends the recording to the transcription model your administrator chose and keeps no
audio: the recording only exists in memory while that one request runs, and is discarded as
soon as the text comes back. It is never written to disk, to the conversation or to the logs.
The transcription provider receives the audio under its own terms. Studio never uses the
browser's built-in speech recognition, which sends audio to a third party.

## What it can do [#what-it-can-do]

| Without asking                                                 | After your approval                                             |
| -------------------------------------------------------------- | --------------------------------------------------------------- |
| List projects, channels and publications, by state or dates    | Schedule drafts, or move scheduled publications to another time |
| Read a publication's text and its channel version              | Cancel scheduled publications                                   |
| Search posts, channels and media                               | Record a by-hand publication as published                       |
| List what you must publish by hand, now and in the next 7 days | Try a failed publication again                                  |
| Create a post as drafts on the channels you name               | Delete a draft                                                  |
| Attach library media to a new draft                            | Attach library media to an existing post                        |

From `0.1.0-alpha.14`, any change to a project other than the one open in Studio, or one you
referenced with **@** in this conversation, waits for your approval, creating drafts included.
Reading stays possible across all your projects.

Times are read and written in the project's time zone, so "tomorrow at 10" means 10:00 where
the project is. When a schedule goes past a channel's posting limit, the assistant tells you and
asks before going ahead.

## Read an answer with Studio views [#read-an-answer-with-studio-views]

Ask for a channel preview, a filtered Queue list, or a week or month of the calendar.
For example, ask "Show me next week's calendar" or "Show the Newsletter drafts."
The assistant can also show a chart for one engagement metric on a publication. The chart
uses observations already saved in Performance.

Choose **Open beside** to work on the matching Studio page, or **Open** on a phone.
If the list has more than ten publications, **Show all in Queue** opens the full filtered list.
These views stay in the conversation. If a publication is deleted or you lose access,
the view can become unavailable.

When the assistant offers a set of choices, select one to send it as your reply.
Your choice stays marked in the conversation.

## Approve actions [#approve-actions]

The actions in the right-hand column above wait for you. The card names the project and
shows up to three affected posts and channels, with a count for the rest. Check the scheduled
time, the files being attached, or the published URL when shown. Choose **Approve** to run
the action or **Decline** to dismiss it.

The card stays until you answer, even if Postdot restarts in the meantime.
If a publication, post or channel changes between the card and your approval, the action stops,
says what changed after approval, and asks you to review it again.

## Remember your preferences [#remember-your-preferences]

The Assistant can remember how you like it to work: your language, tone, post length, format,
audience or scheduling habits. It applies them in every later conversation, and agents connected
through [MCP](/docs/mcp/) can read them too.

Memory is off until an administrator allows it for the installation and you turn it on. When you
ask the Assistant to remember something, or correct the same thing twice in a conversation, it
proposes one short preference on a card:

- The card shows the preference as it will be saved, in your words or reworded more concisely,
  and the message of yours it comes from. You can edit the text before saving.
- Choose where it applies: **All my projects**, or **Only in** the project you are working in.
  A preference for one project wins over a general one on the same topic, and what you ask in
  the current message wins over both.
- When the new preference replaces an older one, the older one appears struck through.
- Choose **Save** to store it or **Not now** to dismiss it. The Assistant does not propose the
  same preference again in that conversation.

After saving, **Undo** removes the preference and brings back what it replaced. While memory is off,
the first card asks whether to turn it on; on an installation without memory, the first card shown
to an installation administrator turns it on for the installation as well.

Open **Preferences → Assistant memory** to see every saved preference, grouped by project. From
there you can turn memory off, add, edit or delete a preference, **Download** them as a text file,
or **Delete all**. A preference stays until you delete it, even after the conversation it came from
is deleted. Preferences for a project are deleted when you leave it.

The Assistant only saves what you confirm, and only from messages you typed: text from posts,
channels or tool results cannot become a preference. Saved preferences shape content and style;
they never approve an action or open another project. Preferences cannot hold passwords, keys or
tokens.

## Security [#security]

The Assistant helps with Postdot work, including planning and writing posts about any subject.
It treats text from posts, channel names and tool results as reference material. A model can
still misinterpret that content, so review the action and its details before approving it.
Creating an unscheduled draft in the project you are working in can happen without approval.

External links in answers show their destination host and open in a new tab.

When you send your first message, Postdot creates an API key named **Studio assistant** in
**Settings**, **API keys** (see [Authentication](/docs/reference/authentication/)). The assistant acts through it, so its actions appear in history as
yours. The key can read projects and manage and deliver publications, nothing else: no
access settings, no other API keys, no installation settings.

If you delete that key, the assistant stops acting for you until your next message, which
creates a new one. Deleting all conversations from Account also deletes the key.

Your messages, the assistant's answers and the results of the actions it took are sent to the
configured model provider. Choose a provider whose data terms suit your content, or a model on
your own server to keep everything in your infrastructure.

## Set it up [#set-it-up]

You need the installation administrator role.

1. Open **Settings → Installation → Assistant** and find **Models and providers**.
2. Turn on **Offer the assistant**.
3. Choose **Add provider** to connect one or more providers:
    - **OpenAI-compatible server** for Ollama, LM Studio, vLLM or a gateway. Enter its
      **Server address**, usually ending in `/v1`, such as `http://ollama:11434/v1` when
      Ollama runs in the same Compose project.
    - **OpenAI**, **Anthropic**, **Google Gemini** or **OpenRouter** with an API key from that
      provider.
4. Give the connection an optional **Label** so people can tell several providers apart, then
   enable the models they may use under **Available models** (with an optional short note). For a
   hosted provider, browse known models or type a newer model ID. OpenRouter lists free models,
   whose IDs end in `:free`.
   On an OpenAI-compatible server, turn on **Accepts images** only for models that read images,
   such as a vision model in Ollama or llama.cpp with its projector. It is off by default, because
   a text-only server rejects messages that carry images. Through the API, MCP or CLI, set
   `"images": true` on that model.
5. Choose **Test the connection** to send one short request and check the answer, then choose
   **Save** to store the connection. Repeat for any additional provider you want to offer.
6. Choose the **Default model** across your enabled providers and choose **Save** on the bottom
   bar. If Postdot runs on one server, Assistant appears in Studio for everyone signed in.

Each connection's API key is stored encrypted and never shown again. Leave the field empty to keep
it while the provider type and server origin stay the same; changing either clears the saved key.
Disabling or removing a connection that conversations use keeps their history and asks people to
choose another model before continuing.

<Callout title="Model size matters" type="warn">
Very small models (a few billion parameters) often fail at multi-step requests: they pick the
wrong action or invent identifiers. Postdot then refuses the action, so nothing changes, but the
conversation goes nowhere. Prefer a capable hosted model, or at least a 7B to 8B model on a GPU
for local use.
</Callout>

## Set up dictation [#set-up-dictation]

Dictation is off by default and needs a transcription model with an OpenAI-compatible
`/audio/transcriptions` endpoint: OpenAI itself, or a server you run such as Speaches or LocalAI.

1. Open **Settings → Installation → Assistant** and find **Dictation**.
2. Turn on **Offer dictation**.
3. Choose the **Provider**: **OpenAI** with an API key, or **OpenAI-compatible server** with its
   **Server address**, such as `http://speaches:8000/v1`.
4. Enter the **Model**, such as `gpt-4o-mini-transcribe` or `Systran/faster-whisper-small`.
5. Set the **Longest recording**, from 10 to 600 seconds (120 by default). Postdot also refuses
   a recording larger than this length allows.
6. Choose **Test the connection**. Postdot sends one second of silence and says how long the
   model took to answer. Then choose **Save**.

The **Dictate** button stays visible in the composer while the assistant is on; choosing it
starts recording once dictation is enabled, or opens setup guidance while it is off.

## Turn on memory [#turn-on-memory]

Assistant memory is off by default. To let members use it:

1. Open **Settings → Installation → Assistant** and find **Memory**.
2. Turn on **Let members use Assistant memory** and choose **Save**.
3. Adjust the limits if needed. Each person can keep 20 preferences for all their projects and 20
   per project, injected up to 1,600 characters each, by default. Entries range from 5 to 50 and
   characters from 400 to 4,000.

Each member still turns memory on for themselves. Turning it off for the installation stops reading
and saving at once and keeps the saved preferences, so turning it on again restores them.
**Delete all memories** erases every member's preferences after a confirmation.

Administrators see how many preferences each member saved, never their text. In **Settings →
Installation → Access**, a member's menu offers **Delete Assistant memory**, for an erasure request
or when someone leaves.

<Callout title="Privacy" type="info">
Memory stores preferences for each person in the Postdot database, which anyone with database
access can read. On an installation that only you use, they are your own settings. If the
installation serves other people, you are responsible for their data: mention Assistant memory
in your privacy information. Backups include memory like any other data.
</Callout>

## Limits [#limits]

| Setting                   | Default     | Effect                                                                                                           |
| ------------------------- | ----------- | ---------------------------------------------------------------------------------------------------------------- |
| **Conversations at once** | 4           | Further messages are refused with "try again in a moment". A conversation waiting for an approval does not count |
| **Steps per answer**      | 12          | How many Postdot actions one answer may take before it stops                                                     |
| **Answer time limit**     | 120 seconds | A slower model response is stopped and retried, twice at most                                                    |
| **Keep conversations**    | 90 days     | Postdot deletes each conversation this many days after its last message                                          |

Each running conversation uses a few megabytes of memory in Postdot; the model's own work
happens at the provider or on your model server.

## Where conversations are stored [#where-conversations-are-stored]

Each conversation has a durable file in the person’s storage under the `assistant` folder,
`/data/assistant` in the standard Compose installation. `POSTDOT_ASSISTANT_DIRECTORY` moves
it. The [backup command](/docs/installation/#backup-and-restoration) does not include these
files. Back up the assistant folder separately if you plan to restore conversation transcripts.

With PostgreSQL and S3 media, the elected Postdot server opens the conversation files.
Other servers relay Studio requests to it. One replica uses its own directory and needs no
relay configuration. Earlier releases through `0.1.0-alpha.12` require the single-server
SQLite or local-media profile to offer conversations.

To keep transcripts when a different server takes over, mount the same persistent directory
on every server. The filesystem must support SQLite's cross-host file locks and durable
writes. With separate volumes, each server sees only the transcript files on its own volume.
During a handover, Studio can briefly show that the Assistant is unavailable. Installation
administrators can check which server owns conversations and see the last runtime error in
[Diagnostics](/docs/diagnostics/).

## Configure it from scripts [#configure-it-from-scripts]

Provider connections and installation settings are available through the API
(`GET` and `POST /api/settings/assistant/connections`, `PUT` and
`DELETE /api/settings/assistant/connections/:id`, `POST /api/settings/assistant/connections/test`,
`GET` and `PUT /api/settings/assistant`, `GET /api/settings/assistant/models`), the MCP tools
`list_assistant_connections`, `create_assistant_connection`, `update_assistant_connection`,
`delete_assistant_connection`, `test_assistant_connection`, `get_assistant_settings`,
`save_assistant_settings` and `list_assistant_models`, and the CLI:

```sh
postdot settings assistant connections add --provider openrouter --label "OpenRouter" \
    --models '[{"id":"google/gemma-4-31b-it:free","note":"General drafting"}]' \
    --default-model google/gemma-4-31b-it:free \
    --api-key-file ./openrouter-key
postdot settings assistant connections list
postdot settings assistant set --enable
```

Read your own memory setting with `postdot assistant memory status` or
MCP `get_assistant_memory_settings`. Memory applies when your setting and the
installation setting are both on.

Dictation has its own settings: `GET` and `PUT /api/settings/assistant/transcription`,
`POST /api/settings/assistant/transcription/test`, the MCP tools
`get_transcription_settings`, `save_transcription_settings` and `test_transcription_settings`,
and the CLI:

```sh
postdot settings assistant transcription set --enable --provider openai-compatible \
    --server-url http://speaches:8000/v1 --model Systran/faster-whisper-small --max-seconds 120
postdot settings assistant transcription test
```

With an installation administrator’s API key, grant `instance:admin` and keep the key
unrestricted by project to use these commands, HTTP endpoints or MCP tools.

The deployment can provide the initial provider and model with environment variables:
`POSTDOT_ASSISTANT_PROVIDER`, `POSTDOT_ASSISTANT_BASE_URL`, `POSTDOT_ASSISTANT_MODEL`,
`POSTDOT_ASSISTANT_API_KEY` and `POSTDOT_ASSISTANT_CONTEXT_WINDOW`. With only a base URL,
the provider is an OpenAI-compatible server. Studio then says the settings come from the
deployment, and saving them in Studio replaces them. Dictation works the same way with
`POSTDOT_ASSISTANT_TRANSCRIPTION_PROVIDER` (`openai` or `openai-compatible`),
`POSTDOT_ASSISTANT_TRANSCRIPTION_BASE_URL`, `POSTDOT_ASSISTANT_TRANSCRIPTION_MODEL` and
`POSTDOT_ASSISTANT_TRANSCRIPTION_API_KEY`.

Assistant memory has its own endpoints for each person's own preferences:
`GET`, `POST` and `DELETE /api/assistant/memories` (with `confirm=true` to delete all),
`PATCH` and `DELETE /api/assistant/memories/:id`, `GET /api/assistant/memories/export`, and
`GET` and `PUT /api/assistant/memory-settings`. `GET /api/assistant/memories?project=` returns the
preferences that apply in that project, general ones first. An API key needs the `memory:read` or
`memory:write` action unless it allows every action. The MCP tools are `list_assistant_memories`,
`save_assistant_memory`, `update_assistant_memory`, `delete_assistant_memory`,
`clear_assistant_memories`, `export_assistant_memories`, `get_assistant_memory_settings` and
`save_assistant_memory_settings`. Administrators use the `memory` fields of
`/api/settings/assistant`, `GET` and `DELETE /api/settings/assistant/memories`, and the CLI:

```sh
postdot settings assistant set --memory on
postdot settings assistant memory counts
postdot assistant memory add --topic tone --statement "Friendly, no exclamation marks."
postdot assistant memory list --project PROJECT_ID
```

Conversations themselves are part of Studio: an agent outside Postdot uses the
[MCP endpoint](/docs/mcp/) with its own API key instead.
