Overview
This guide demonstrates how to use Smooth to upload files to websites.Upload the file
You can use the
upload_file() method to upload files that you will pass on to Smooth.Python
When uploading multiple files, we recommend using meaningful file names to help Smooth disambiguate their content.
An optional
purpose can be given to further highlight the role of the file (i.e., purpose="the bank statement pdf").Run the task
Run your task using the The agent will navigate to the website, upload the file, and return the alt text.
files parameter.Python
Best Practices
- Use Descriptive File Names: Choose meaningful names for your files to make it easier to identify their content later.
- Check File Size Limits: Ensure your files do not exceed the maximum size limits set by the platform you are uploading to.
- Include File Types: When specifying a file name, make sure to include the file extension, such as
.pdfor.png
Community
Join Discord
Join our community for support and showcases