Attachments represent the files included in an incoming or outgoing email. They can be documents, images, spreadsheets, or any other file type sent via email. An Attachment is associated with a specific Activity within a Thread.
Every Attachment goes through a “stringification” process, where its content is converted into a text format that can be processed by the Agent. This allows the Agent to read and extract relevant information from the attachment.
Key Capabilities
- Store and manage files associated with emails in a
Thread. - Stringify content from various file types, enabling
Agentsto understand and extract data from attachment content. - Provide an interface for accessing attachment content and metadata via Monsteria API.
Attachments can be accessed and downloaded via the Monsteria API. Use GET /v0/attachments/{attachmentId}/download-url to retrieve a secure URL for downloading the attachment file.
Attributes
EachAttachment has the following attributes:
id: stringactivityId: string- TheActivityassociated with theAttachmentthreadId: string- TheThreadassociated with theAttachmentfileName: string- The name of the filecontentType: string- The MIME type of the attachment (e.g., application/pdf, image/png)stringifiedContent: string- The text representation of the attachment content after stringificationexternalReferenceId: string- The external system’s identifier for theAttachment(e.g., Gmail attachment ID)createdAt: Date- Timestamp when theAttachmentwas createdupdatedAt: Date- Timestamp when theAttachmentwas last updated