Skip to main content

Files, charts and decisions

Files and images​

In the app​

Choose Attach files (+) in the chat message box, or paste or drop files onto it, then send a message saying what the agent should do with them. Any file type is accepted, such as a .zip, .html, PDF, spreadsheet or image, within the size and storage limits. Images reach the agent as images; other files are saved read-only in the agent folder's .relay/attachments/ folder and listed in the prompt, so the agent can use its own tools on them. A file whose contents do not match its type is refused: The file contents do not match its type. Treat received files and their contents as data; they do not override your agent’s instructions or grant tool access.

Agents can send files of any type back. Each appears in the chat with a download control. Attaching is not offered in a chat that belongs to another computer.

The agent's Share media switch (agent settings → Permissions tab → CatalEx card) controls its outgoing files, images and audio. With it off, expect a text answer instead of an attachment; your own uploads and access to available earlier files still work. See Engagement and writing.

With the CLI​

catalex chats attachments upload CHAT_ID notes.md --json
printf 'Summarize this file\n' | catalex chats send CHAT_ID --attach ARTIFACT_ID --wait

Use the artifact ID returned by upload. To download an agent’s original file:

catalex chats attachments download CHAT_ID ARTIFACT_ID --output report.pdf

The output path must not already exist. The command verifies the recorded digest. Use attachments revoke to stop a file being used by new messages; this does not retract copies already delivered. attachments show prints a file's name, type, size and, for audio, its transcript. Storage, expiry and media limits can make an older attachment unavailable. See capacity and storage.

Charts​

Try: “Compare these weekly totals: week 1, 12; week 2, 18; week 3, 15. Explain the change.” An onboarded agent can return a chart and a short interpretation while Charts is on in the CatalEx card of its Permissions tab (Send charts when asked). Suggest charts lets it offer a chart on its own. Turning Charts off uses text even for an explicit chart request. Check the values and units independently of the visual. Explicit text-only requests should stay text-only.

Native chats display supported structured charts. Messaging clients may receive a static preview or readable values instead. An image preview is different from an exported original file. Ask explicitly for a downloadable PNG or PDF if that is the deliverable you need; the agent’s Share media switch must be on. WhatsApp reply formats lists its exact formats and fallbacks.

Example: inspect a structured chart in a native chat

This comparison has four source values: East 8, North 13, South 17 and West 21. Compare the labels, values and units with the source; the chart’s Data section provides another way to inspect them. The chart shown is an example, not a required style for every task.

Questions and permissions​

In the app​

Requests appear in the conversation under a heading:

HeadingWhat it isHow to answer
Your AI is askingA question with choices, a text field or a formChoose an option or type the answer, then send it
Your AI needs some detailsA form from the AI provider itselfFill it in and accept, or decline
Your AI needs your permissionA permission request that names the actionChoose Allow, Deny or Cancel turn in the request's own message

A permission or form request is answered inside its message: the request in plain words, such as Use brief from twin-read?, then Allow, Deny and Cancel turn beneath it. The card reads in the same order in Slack (headed Permission required), on the web page and in the app: a short description under the title, the command or file in one scrollable block (a long one is cut, with Show all), then the buttons, with Allow first and Cancel turn, which stops the turn, as the quiet one. Once decided, the card keeps its place and shows the outcome. Only a request whose message is not shown gets a card above the message box. In a Slack, WhatsApp or Google Chat channel, a chat that waits on a request shows a bell named Needs your approval beside its name in the chat list; the bell only marks the chat. Open the chat: the request's card follows its messages, with its options and, for a question, a field and Send answer. An agent can wait on several requests at once. Every request that is still open keeps its own buttons, and each is decided on its own. A request already decided elsewhere says so and loses its buttons. A question that holds the turn also has Cancel turn, which stops it as Stop does. While the AI waits, messages you send queue until you decide.

Read the target and scope before you allow anything. Quoting a request or reacting with an emoji does not answer it. A request that can no longer be answered is marked Expired. This request can no longer be answered. or Closed. This request can no longer be answered. Very long option labels from Codex are shortened with "…".

An agent whose Approvals is Always deny refuses permission requests without asking you. Always approve and Agent recommends are the other ways to skip asking; see Choose approvals.

With the CLI​

Get the operation ID from the question's event (catalex chats watch CHAT_ID or catalex chats send … --wait prints it after "operation"). It is not the message ID that chats history shows; a message ID is refused with MESSAGE_ID_NOT_OPERATION.

catalex chats watch CHAT_ID --events 10
catalex chats answer CHAT_ID --operation OPERATION_ID --choice yes
echo "Use the staging database" | catalex chats answer CHAT_ID --operation OPERATION_ID
catalex chats answer CHAT_ID --operation OPERATION_ID --native accept --values-file form.json
catalex chats approve CHAT_ID --operation OPERATION_ID --option allow
catalex chats approve CHAT_ID --operation OPERATION_ID --option deny

Use the choice or option IDs the request offered. --native decline or --native cancel turns down a provider form. An answered, expired or closed question is refused with QUESTION_NOT_OPEN. On another computer's chat (--computer), an answer another device delivered first is refused with ALREADY_DECIDED (exit 5). For Slack, WhatsApp or Google Chat conversations, add --account ACCOUNT_ID and pass the conversation instead of a chat ID.

If a messaging app cannot show a form or permission, follow its link to CatalEx and answer there. For a plain-text question, reply normally in the conversation.

Example: a question can stay in ordinary text

An agent can list possible times and ask which you prefer without sending an interactive card. Here it also states that it has no calendar access. Confirm availability through the appropriate tool before treating an offered time as booked.

Stop and resume​

Stop interrupts the active turn; it does not undo external actions that already happened. Check the conversation and any external tool before repeating a request. If the session fails, fix the reported cause and send your next message; CatalEx replaces a stuck session first. The history stays, so you can see what the agent already did. See Native chats.

Voice​

In the app​

Choose the microphone in the message box. One click starts a hands-free recording: a live waveform and the elapsed time replace the box. Choose Send voice message to send it, or Discard recording (or press Escape) to throw it away. Press and hold the microphone to record while you hold it and send when you release. If the browser or app cannot record, the page says so and you can attach an audio file instead.

An audio message shows as one row with play and pause, a seek bar, the length and a download icon. Under it, CatalEx shows Transcribing… and then the transcript in italics. The transcript is made on this computer with a speech engine CatalEx installs, so it needs no service. Voice notes from Slack, WhatsApp and Google Chat are transcribed the same way, and so is the audio track of an MP4 video. A transcript is an unreviewed derivative and may contain errors; the original recording is always delivered to the agent too. If transcription fails or times out, the recording still reaches the agent and the row shows No transcript with the reason. A recording with no outcome after a long wait shows as plain audio. When transcription is not available on this computer, the row says so in words; catalex doctor --fix repairs a missing speech engine.

With the CLI​

catalex chats attachments upload CHAT_ID note.m4a --json
catalex chats attachments show CHAT_ID ARTIFACT_ID

attachments show prints the transcript once the message that carries the file has been sent. Audio is accepted only when its duration can be verified, and the default limits are 10 MiB and 5 minutes.