How to join files to a message
This guide shows how to give an agent the content of files with your message: by typing $, by dropping files on the message field, or with 📎. It assumes a channel or a direct conversation with at least one agent.
Steps
- In the message field, type
$at the start of a word: a list shows the files of the agent's folder.- In a direct conversation, it is the folder of that agent.
- In a channel, it is the folder of the first agent you mention with
@in the message (write@bobfirst), otherwise the folder of the channel's first member.
- Type to filter (
$pl→plan.md). Choose a folder (docs/) to go into it, then a file; ↑ ↓ to move, Enter or Tab to choose, Escape to close. - The reference
$docs/plan.mdis written in the message. Join several files the same way (10 at most). - Send. Each agent that answers receives the files with the message. In the conversation, the message shows
📎 docs/plan.md: click it to open the file in the agent's Files tab.
Variants
- A file from elsewhere (the Finder, the desktop): drop it on the message field, or click 📎 and choose it. It is copied into the
attachments/folder of the agent's folder (attachments/plan.md, thenattachments/plan-2.md…; spaces become-), and its reference is written in the message. A file already in the agent's folder is used where it is. - An agent in a container or an sbx sandbox: the same; the file is read, or copied, inside it.
- A
$that is not a file — a price, a variable:5$,$5,\$HOMEand anything incodestay text. - A file was not sent: the conversation says "A file was not sent to …" with the reason (no such file, neither text nor an image, larger than 5 MB). The agent answers without it.
- What the agent receives depends on what it accepts: the content of a text file, an image, or a link to the file that it reads itself. Details: Joined files.
- The history keeps the reference to the file, never its content: reopening the conversation later shows the file as it is then.
See also
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
|