Skip to main content

Add an AI attachment

POST 

/v1/agents/:agentId/attachments

x-scope: "attachments:write"

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.

Request​

Responses​

The attachment, switched off and without media.

Response Headers
    X-Correlation-ID

    Correlation id for this request — paste into support tickets.