Library / Documents, PDF & OCR
Documents, PDF & OCR
Check freee expense deals with Gemini, kintone, Google Drive and Chatwork
On a schedule, it reads and extracts data from documents with Google Gemini using Google APIs.
What it does
### How it works 1. Every weekday morning, this workflow pulls every freee expense deal from the previous business day. 2. Each deal is split into its own item and sent to Gemini, which flags anything unusual in the amount, account item, or date as REQUIRES_REVIEW (or OK otherwise). 3. Only the flagged deals continue — everything Gemini judged normal is filtered out, so your team only sees transactions that actually need a human look. 4. Before logging anything, the workflow checks kintone to make sure that deal hasn't already been recorded on a previous run, preventing duplicate entries. 5. Each new flagged deal is saved as a kintone record (with Gemini's comment attached), archived as a JSON summary to Google Drive, and then all of them are combined into a single digest. 6. One Chatwork message is posted summarizing every flagged deal from this run, so your accounting team knows exactly what to check — without being spammed with one message per transaction. ### Setup steps 1. Connect your freee, Gemini, kintone, Google Drive, and Chatwork credentials. 2. Open the Config node and fill in your freee company ID, kintone subdomain and app ID, Chatwork room ID, Gemini model, and Google Drive folder ID. 3. Make sure your kintone app has fields matching: issue date, amount, deal ID, AI comment, and account item ID. 4. Activate the workflow, or adjust the Schedule Trigger to your preferred time.
The steps
- Schedule Trigger
- Config
- freee API - Get expense deals
- Split deals into items
- Gemini - Check expense details
- Parse Gemini judgement
- Filter - Flagged deals only
- kintone API - Check for duplicate
- IF - Not already logged
- kintone API - Create record
- Google Drive API - Archive receipt summary
- Chatwork API - Notify accounting
- Aggregate - Combine flagged deals
Similar automations
Files & Cloud StorageSend monthly missing document reminders with Google Drive, Sheets, and Chatwork14 stepsFinance, Invoices & AccountingRecord Chatwork expense notes into Google Sheets with Claude parsing22 stepsTasks & Project ManagementCheck weekly customer data consistency between HubSpot, freee, Backlog and Slack12 stepsEmail AutomationSummarize unpaid freee invoices with Gemini, Slack, Google Sheets, and Gmail8 steps