LangChain Automate streamlines the process of classifying and organizing PDF invoices and receipts from Gmail. Triggered by a webhook, it scans emails within a specified date range, extracts attachments, and uses OpenAI to determine if each PDF matches your defined criteria. Matched PDFs are automatically uploaded to a uniquely named Google Drive folder, enhancing document management efficiency. Optionally, it can email the collected PDFs to your accountant, ensuring timely financial record-keeping.
invoices_YYYY-MM-DD_YYYY-MM-DD
).Match on
parameter in the Configure node to classify different types of documents (e.g., change to "contract").maxTokenSize
and replyTokenSize
values to accommodate longer documents or different AI response needs.sendInvoicesTo
field to the desired email address for sending the aggregated PDFs.sendEmail
boolean to determine if the workflow should send emails with the matched documents or just upload them to Google Drive.