Automate exporting SmartBill PDF invoices to Google Drive using this reusable n8n workflow. Includes folder creation, file fetching via HTTP Request, and robust looping.
Download this n8n workflow template and start using it instantly.
Managing financial records manually can be time-consuming and prone to errors. This powerful n8n workflow solves the problem of manually downloading invoices from SmartBill and uploading them to cloud storage. By leveraging the flexibility of the n8n platform, this automation template ensures that all your SmartBill PDF invoices are systematically fetched via an HTTP Request n8n node and securely stored in a designated Google Drive folder. If the required destination folder doesn't exist, the n8n workflow automatically creates it, providing a robust and hands-free solution for critical document backup and organization. This particular n8n template showcases effective use of flow control and file handling within a reliable data pipeline.
SetData and Set Default Folder Name n8n nodes to define the target Google Drive folder name and the list of invoices that need processing.Search Drive Folder Google Drive n8n node verifies if the intended archival folder already exists in Google Drive.If exists n8n node directs the flow. If the folder is found, the n8n workflow proceeds directly. If not, the Create Drive Folder n8n node runs to establish the new path.Set Folder ID n8n node for later use by the upload step.Set the loop n8n node prepares the data, which is then fed into the Loop Over Items (Split In Batches) n8n node, ensuring each invoice is processed individually.Smartbill get invoice pdf HTTP Request n8n node executes, downloading the raw binary PDF file content from the SmartBill API.Set mime code n8n node is crucial for correctly tagging the downloaded binary data as application/pdf.Upload file to Google Drive Google Drive n8n node uploads the prepared PDF file to the previously identified Folder ID.Wait a sec n8n node before the loop continues, mitigating the risk of hitting API rate limits during batch processing. This ensures the entire n8n workflow runs smoothly.Search Drive Folder, Create Drive Folder, Upload file to Google Drive). This typically requires standard OAuth 2.0 setup.Smartbill get invoice pdf n8n node. You must replace placeholder values with your specific SmartBill API endpoint, authentication details, and ensure the URL expression correctly references the invoice ID from the looped item.SetData and Set Default Folder Name n8n nodes to match your invoice data structure and desired naming convention for the Google Drive folder. When clicking "Execute Workflow" (Manual Trigger n8n trigger): The starting point for the automation.
Set Default Folder Name (Code n8n node): Sets the desired, dynamic name for the Google Drive folder where invoices will be stored.
Search Drive Folder (Google Drive n8n node): Checks for the existence of the folder using the 'Find' operation.
If exists (If n8n node): Manages the flow, directing execution to create the folder only if the search yields zero results.
Create Drive Folder (Google Drive n8n node): Creates the required destination folder if it is not found.
Loop Over Items (Split In Batches n8n node): An essential flow control n8n node, ensuring that the n8n workflow processes each invoice ID sequentially to prevent concurrency issues and manage API calls.
Smartbill get invoice pdf (HTTP Request n8n node): Downloads the raw PDF file from the SmartBill API using specific parameters derived from the looped data.
Set mime (Code n8n node): Prepares the binary file data for upload by setting the correct content type (MIME type) within the n8n item.
Use this powerful n8n workflow template to create a secure API endpoint for fetching Odoo company data, validating inputs, and conditionally exporting results as JSON or Excel (.xlsx).

Automate Jamf Smart Group reporting using this powerful n8n workflow. Automatically fetch membership data, convert it to CSV reports, and share the output directly via a Slack n8n node.

Use this powerful n8n workflow to automatically extract all Jamf policies, convert the structured data to a clean CSV file, and instantly share the audit report via Slack for fast IT compliance checks. Leverage n8n templates for efficient policy management.

Use this powerful n8n workflow to automatically extract keywords, page performance, and daily metrics from Google Search Console and append the data directly into your Google Sheets.


Building automations and AI agents for businesses







































