File Uploads & Downloads
Attach files to entries and retrieve existing files through your AI assistant.
Last updated
Attach files to entries and retrieve existing files through your AI assistant.
The AI can upload files to Inistate entries and retrieve download links for existing files. Both operations work in all three modes.
The AI uses a three-step presigned upload flow that supports files up to 500 MB.
After confirmation, the AI attaches the file to the entry by including the path in a submit_activity call.
"Attach this PDF to invoice INV-1042."
"Upload the signed contract to PO-0234."
"Add a photo to this equipment inspection entry."
Calls request_upload_url with the file details
Performs the S3 PUT
Calls confirm_upload to finalize
Calls submit_activity (edit activity) with the file path set on the relevant File or Image field
Supported file types include documents, images, spreadsheets, and most common formats. Executable files (.exe, .bat, .cmd, .dll, .msi) are blocked.
To retrieve an existing file from an entry, the AI requests a pre-signed download URL that expires after 1 hour.
"Download the attachment from invoice INV-1042."
"Get the signed contract from PO-0234."
"Show me the photo attached to inspection entry INS-0012."
Calls get_entry to find the file path stored in the File or Image field
Calls download_file with the module name, file GUID, and filename
Returns a pre-signed URL you can open in your browser
Download links expire after 1 hour. If you need to share a file, do so promptly after requesting the link.
Last updated