Skip to content
NEWMeet Alaaddin, your AI genie with a voice. trig8n launches 1 January 2027. See what is new

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

  1. Schedule Trigger
  2. Config
  3. freee API - Get expense deals
  4. Split deals into items
  5. Gemini - Check expense details
  6. Parse Gemini judgement
  7. Filter - Flagged deals only
  8. kintone API - Check for duplicate
  9. IF - Not already logged
  10. kintone API - Create record
  11. Google Drive API - Archive receipt summary
  12. Chatwork API - Notify accounting
  13. Aggregate - Combine flagged deals

Similar automations