Attach files in the composer the same way on the desktop app, on ai.allternit.com (including the phone layout) and in the m.allternit.com app.
  • Small images (under 1 MB) travel inside the message.
  • Larger images, and video, audio and other files, are uploaded to your private Allternit Cloud storage when you are signed in, and the agent receives a permanent link that keeps working in old conversations until you delete the file (on servers without permanent links, a link that works for 7 days). Signed-out or local-only sessions keep sending the file inside the message.

What you can attach

Any file: documents, images, video, audio, archives, code and files with any extension, including dotfiles such as .env.local. On Desktop and in a desktop browser you can also attach a whole folder: choose Add a folder in the + menu, or drag a folder onto the chat. Phones can’t pick folders, because iOS and Android browsers don’t offer it. You can drop files at any time, including while the agent is working or while a question card is showing. A file goes to the text box you drop it on. Dropped on the pages of an open PDF instead, an image is placed on the page and a PDF’s pages are added (see Drag files onto the page). If you drop it somewhere else, it goes to the text box on screen. In Code and Chat sessions, a dropped PDF, Word, Markdown or HTML file opens in its editor on send, the same as in Chat. In a bot’s chat you can also drop files or links on the bot itself, or use Attach in its composer. The bot asks whether to plan first, just do it, or ask you questions, then gets the files the same way. See Your bot’s stage.

What you see before you send

  • A file shows as soon as you pick or drop it. While it is being read on your device, its card says Reading…, and send waits until reading finishes. A large PDF or folder can take a few seconds.
  • Desktop: each file is a card under the text box with what’s in it: page and line counts for PDFs, lines for text and code, rows and columns for CSV, files in a .zip or folder, a thumbnail for images, and a frame and length for videos. Other files show their size and extension. Cards wrap onto more rows, up to three, then scroll. Hover a card to remove it, including while it is still reading.
  • Phone layout and the m.allternit.com app: the same files show as small previews above the text box: the image or video frame, or the first lines of a document.
  • You can send attachments without typing anything.
  • In the sent message, attachments show as file chips, not their contents. A file sent as a link opens from its chip, and a file that opened in its editor opens there again.

How the agent gets them

  • Documents and text (PDF, DOCX, CSV, JSON, ZIP, code and any file that turns out to be text) are read on your device, and their text is added to your message.
  • Data files (CSV, TSV, XLSX, XLS and JSON) are uploaded to your computer’s runtime, so code tools (run_code and Analyze) can read the real file and give you tables, charts and new files. See Analyze files.
    • A small text file (20,000 characters or fewer) is also included in the message as text.
    • A larger one sends a short preview instead: its first 20 lines.
    • If the upload fails, the file goes as text only and the composer says so (for example, “sales.csv went as text only: the upload for code tools failed.”). The message is still sent.
    • Each file can be up to 20 MB.
  • Folders are read the same way: each text file’s contents are added under its path, and other files are listed by name. Hidden folders such as .git, and node_modules, dist, build and target, are skipped when you drag a folder in.
  • Images go to the model as images, so it can see them. Photos larger than 2048 px on the long side are scaled down first, and an animated GIF is sent as it is. Up to 10 images go with one message.
  • Video, audio and other files (and PDFs with no readable text) are uploaded to your Allternit Cloud storage, and the message carries a link with the file’s name, type and size, so the agent can open it. This needs you to be signed in. If you aren’t, the message isn’t sent and a notice says why.

Files open in their editor

When you send a file that has an editor in Allternit, it opens beside the chat (on a phone, as a full-screen sheet) and the agent works on it there:
  • The file becomes an artifact in Artifacts, so you can come back to it. Sending the same file again in the same app session reuses it.
  • A PDF, Word, Markdown or HTML file opens even when it can’t be saved to your Artifacts (signed out, or the app can’t reach your account). The pane says Not saved yet, and a PDF can still be edited, signed and downloaded there.
  • The message tells the agent which artifact it is, and the agent edits it with its editor tools: changes show in the pane as it makes them and are saved as new versions. It doesn’t ask you to open or paste the file.
  • The file’s chip in the sent message opens it again.
  • Images aren’t opened in an editor: they go to the model as pictures, as before.
  • A PDF or document still has its text added to your message, so the agent can answer questions about it straight away. A video or a PDF that opened in its editor isn’t sent a second time as a link.

Storage by plan

If a file is over your plan’s limits, the message is not sent and a notice says why. Nothing is cut off silently. If shared storage is temporarily full, uploads pause and you see the same kind of notice. See the Files API for the developer view.