Sync PDF text from Google Drive every 5 minutes
Recipe ToolsMarketingDocument/FileSales EnablementDeveloper Tool
What it does
When the clock triggers every 5 minutes, this automation downloads PDF files from Google Drive. Python code extracts text from each PDF, stores it as a variable, sends the results via email, and uploads the output back to Google Drive.
Who it's for
Data and analytics teams who need to automatically extract and distribute PDF content on a schedule.
How teams use this
Extract payslip data on schedule
Run Python extraction on payslip PDFs every 5 minutes and store the results in Google Drive so the team always has current data without manual work.
Email extracted text to stakeholders
Send the extracted text via email after each run so stakeholders receive updates in their inbox. The extraction and upload steps remain the same.
Filter PDFs by filename pattern
Add a condition to only process PDFs that match a specific naming pattern, such as files containing payslip. This requires a filename filter condition to focus on relevant documents.
How it works
- Run every 5 minutes. This automation starts on a schedule, running every 5 minutes to process PDF files from Google Drive.
- Download PDF file from Google Drive. Retrieve the PDF file contents from Google Drive so Python code can extract text from the payslip and other documents.
- Extract text from the PDF. Run Python code to parse the PDF and pull out all readable text, storing the results in a variable for the next steps.
- Upload extracted text to Google Drive. Save the extracted text back to Google Drive as a new file so the team can access the results without leaving the platform.