Add an AI attachment
create_attachmentAdd an AI attachment
A new attachment, switched off and without media. Put its media on it next
(uploadAttachmentMedia, or importAttachmentMedia from links), then switch it on with
updateAttachment and active: true. While it is on, its name, when_to_send and
description are part of the AI's instructions on every reply, and the AI sends its
media when when_to_send fits the conversation. The type decides the media it holds
and can't change once media is stored.
The answer's message_weight says what the agent now reads (Main Instructions, active
knowledge, active attachments' text, in characters) and what one of its replies costs; when
it has a notice, pass it on to the user.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Can't contain angle brackets. | |
| type | Yes | ||
| agent_id | Yes | The agent the resource belongs to. Another company's agent, or the nil UUID, is `404 agent_not_found`; an agent outside the key's agent list is `403 agent_not_authorized`. | |
| priority | No | ||
| description | No | ||
| when_to_send | Yes |