File node
File node allows you to share files with users. This node supports the file formats such as JPG, PDF, MP3, MP4, CSV, DOC, DOCX, TXT, HTML, PPT, and PPTX.
File node is used to share important documents, guides, or invoices, contracts, or promotional materials that the user can download.
Limitaion
- File size limit is 15 MB.
How to configure static file format
To configure static file format, follow these steps:
Drag and drop the file node in the flow editor.
Upload the file that you want to send to the user.
How to configure dynamic file format
You can use File node to display the various file formats dynamically based on the user’s selection. For instance, when a user requests a copy of their insurance policy document. The AI-agent will prompt the user for details like their policy number to display the relevant file formats dynamically.
To display a dynamic file formats, follow these steps:
Go to Functions and add the below code to dynamically fetch the file format.
Dynamic format
{
"file": {
"name": "Product_Manual.pdf",
"url": "https://www.antennahouse.com/hubfs/xsl-fo-sample/pdf/basic-link-1.pdf",
"urlEncoded": true/false
}
}
Add a Function node to the flow editor.
Select the function name and select a variable to store the response.
Add a File node and select the variable to display the dynamic file format.
Refer to the following GIF to see how the file node works.