Input files for AI agents
7 min
input files are one time files that the agent processes each time a scenario runs this guide covers input file requirements and how to upload input files it is recommended to upload large text files and files the agent references often as knowledge files https //help make com/knowledge files for ai agents instead input and output file requirements and limits input and output files for agents have the following requirements and limits input file supported formats jpg, png, gif, pdf output file supported formats pdf, docx, txt, csv input data type binary data only the agent can't read files from urls or base64 strings ai provider make's ai provider, openai, anthropic claude, or gemini, and a model that supports files refer to your provider's documentation to check file support specifics for your chosen model upload input files upload files of supported types to your agent in input files in the make ai agent (new) > run an agent module input file is from a download file module to upload supported files from a dedicated download file module, such as telegram bot > download a file or google drive > download a file in the builder, before the make ai agent (new) > run an agent module, add modules that watch an app and download files from it click the make ai agent (new) > run an agent module to open its settings in input files , select the download file module you've now uploaded an input file to your agent input file is a value from an output bundle if an earlier module outputs a value as part of a bundle that you want to use as an input file, map the value directly in the builder, before the make ai agent (new) > run an agent module, add modules that return the output value you want to map click the make ai agent (new) > run an agent module to open its settings in input files , toggle map and map the output from the previous module to use as an input file you've now mapped a value in inputs files so the agent can use it convert unsupported formats the agent accepts input files as binary data only if your file is in another format, convert it before mapping it in the make ai agent (new) > run an agent module convert files from urls to pass a docx or other unsupported file from a url to your agent, convert it to text using an ai app such as make ai content extractor to convert a docx url to text with make ai content extractor in the builder, add a download file module, such as an http > download a file module add the make ai content extractor > extract text from a document module and open its settings in document source , select file in file , select or map the file from the http module add a text aggregator module and open its settings in text , map the text value from the output of the extract text from a document module add the make ai agent (new) > run an agent module in input , map the text value from the text aggregator module you've now converted a docx file to text so the agent can use it as input convert files from base64 strings to pass a file from a base64 string into an ai agent, convert it to binary using the tobinary() function to convert a base64 string to binary if the string starts with a prefix such as data\ image/png;base64 , remove the prefix in the make ai agent (new) > run an agent module, in the input files field, convert the string with the following function tobinary(yourbase64string; "base64") you've now converted a base64 string to binary, so the agent can use it