Skip to content
NEWMarketplace and your team: sell what you build, and get plans and changes that are tested before you see them. See what is new

Library / Finance, Invoices & Accounting

Finance, Invoices & Accounting

Record Chatwork expense notes into Google Sheets with Claude parsing

Every 5 minutes it reads new Chatwork room messages, has Claude split a #record note into date, amount, category and memo, checks the amount, and appends a row to Google Sheets.

What it does

## Chatwork notes into a checked Google Sheet Write "#記録 昨日 タクシー 3,200円" in a Chatwork room. Claude splits it into date, amount, category and memo, code checks the result against your note, and the row lands in Google Sheets. A reply in the room says what was recorded. ### How it works 1. Every 5 minutes it reads the latest 100 messages of the rooms you list (Chatwork has no n8n node, so this uses the API). Every message is cleaned and logged in the log tab. 2. A message that contains the keyword (default #記録) is read by Claude. 3. Code checks every record: the amount must be written in the note, the date words are turned into a date by code (昨日, 10/3, 先週金曜), the category must be in your list. Anything doubtful is saved as 要確認 with the reason, never dropped. 4. Rows go to the records tab. One reply per note is posted in Chatwork. ### Setup 1. Create a blank Google Sheet. Paste its ID in Spreadsheet ID, run the Run once branch (it adds the log and records tabs and the header rows), and select the sheet in the three Google Sheets nodes. 2. Credentials: Header Auth for Chatwork (Name x-chatworktoken, Value = your API token only, no "Bearer"), Google Sheets OAuth2, Anthropic. 3. Put your room IDs in Config (the number after #!rid in the room URL). Edit the category list. 4. Publish. ### Customization Change the keyword, the categories and their examples, or turn off replies in Config.

The steps

  1. Every 5 minutes
  2. Run now
  3. Config
  4. Get room names
  5. Split rooms
  6. Get messages
  7. Add room
  8. Clean messages
  9. Keep new messages only
  10. Add to log sheet
  11. Is it an accounting note?
  12. AI: Extract records
  13. Read recorded notes
  14. Skip notes already recorded

22 steps in total.

Similar automations