Download Attachments Tag
Overview
The Download Tag is a tag that allows the assistant to prompt the User with a Download button that can be used to download attachments of the conversation and export Notes/Document Attachments in formats like PDF or DOCX. Document Tool creates Note attachments and the Download tag can be leveraged to let the assistant proactively suggest the user to download an attachment in a specific format.
Tag Structure
<download format="pdf" id="ID_DOCUMENT"> YOUR TEXT </download>
The Format Available are:
- docx
- md
If format is omitted the attachment will be downloaded in the original format
Since the id of the attachment is provided automatically in the context of the agent, the agent is able to correctly prepare a download button autonomously
Usage Example
To implement the Download Tag you could, for example, add the following instructions to the assistant's system prompt in the assistant's AI Settings and then describe in the system prompt or in the conversation when or what attachment to download:
<download_tag>
Attachment of type NOTE can be downloaded by the user and the UI allow you to create a Download Button using the following tag: <download format="pdf" id="ID_DOCUMENT"> TEXT </download>
- available format are: pdf, docx, md
- id is the attachment id you can find in your context
</download_tag>
To know more about the assistant's AI Settings, please refer to the AI Settings page.