Receive documents from Gmail or a webhook, extract the text, and turn it into useful data for finance work. The setup suits teams that handle invoices and reports by email and need quick summaries, structured fields, and instant alerts.
A Gmail trigger watches for emails with attachments and pulls only the latest messages. The flow downloads the first attachment, checks if the file type is supported, and uploads it to LlamaIndex for parsing with a callback webhook. When the parsed text arrives, the system classifies the document, builds a clear summary, and saves files to Google Drive. It writes the LlamaParse job ID and summary to Google Sheets, then extracts invoice fields as JSON and updates the row by job ID. Telegram sends a concise message with totals and dates, and error paths notify if parsing fails or the file type is not allowed.
Connect Gmail, Google Drive, Google Sheets, LlamaIndex, OpenAI, and Telegram. Set your public webhook URL, choose Drive folders, and create a sheet with jobid, summary, and any invoice fields you track. Expect faster approvals and fewer errors, with time saved on manual data entry. Common uses include accounts payable intake, invoice triage, and simple document summaries for quick review.