← 返回
未分类 Key 中文

expense-tracker

Log daily expenses to Notion using natural language input, auto-parsing item, amount, category, and payment method into your configured database.
使用自然语言记录每日支出,自动解析项目、金额、类别和支付方式,存入配置的 Notion 数据库。
huang-zi-zheng huang-zi-zheng 来源
未分类 clawhub v1.0.1 1 版本 100000 Key: 需要
★ 0
Stars
📥 321
下载
💾 0
安装
1
版本
#latest

概述

Expense Tracker

Log daily expenses to Notion via natural language chat. Type something like "chicken rice 5" and it auto-parses the item, amount, category, and payment method — then writes it to your Notion database.

Supports bilingual input (English + Chinese), 10 spending categories, and multiple payment platforms.

Setup

  1. Create a Notion integration at https://www.notion.so/my-integrations
  2. Share your expense database with the integration
  3. Set environment variables:

```

export NOTION_API_KEY="your_token_here"

export EXPENSE_DATABASE_ID="your_database_id_here"

```

Required Notion Database Schema

PropertyTypeNotes
-------------------------------------------------------------------------------------------------------------------------
NametitleExpense description
AmountnumberNumeric value in SGD, no currency prefix
Bank NameselectOCBC, TRUST, DBS, Revolut, 支付宝, 微信, OCBC BUSINESS
CategoryselectFood, Transport, shopping, business, Groceries, Leisure, Bills, medical, investment, Education
Transaction DatedateISO 8601 (YYYY-MM-DD)

Usage Examples

InputItemAmountCategoryBank
-------------------------------------------------------------------------
chicken rice 5chicken rice5.00FoodOCBC
grab to school 12.50grab to school12.50TransportOCBC
咖啡 3.50 支付宝咖啡3.50Food支付宝
notion labs 33 revolutnotion labs33.00businessRevolut
dinner with jy 57 trustdinner with jy57.00FoodTRUST
driving class 90driving class90.00EducationOCBC

Commands

  • /today — List today's expenses with running total
  • /summary — Current month breakdown by category
  • /month [month] — View a specific month (e.g., /month march)
  • /budget [amount] — Set monthly budget; shows remaining on each log
  • /bank [name] — Filter expenses by payment method

Parsing Rules

  • Amount is usually the last number: "2 coffee 9" → item="2 coffee", amount=9
  • Strips "$" or "SGD" prefixes
  • Supports decimals: "3.50", "12.5"
  • Bank detection is case-insensitive: "ocbc" = "OCBC"
  • Chinese platforms: "支付宝" / "alipay" → 支付宝, "微信" / "wechat" → 微信
  • Default bank: OCBC (when none specified)
  • If user specifies category explicitly (e.g., "chicken rice 5 business"), uses that override
  • All amounts in SGD, rounded to 2 decimal places

Troubleshooting

If logging to Notion fails:

  1. Verify your NOTION_API_KEY environment variable is set and valid
  2. Confirm your EXPENSE_DATABASE_ID is correct and the database is shared with your integration
  3. Ensure database properties match the schema above (exact names, case-sensitive)
  4. Check that the integration has write permissions

版本历史

共 1 个版本

  • v1.0.1 当前
    2026-05-07 16:05 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,378 📥 320,391
ai-agent

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,226 📥 267,784
ai-agent

self-improving agent

pskoett
捕获经验教训、错误及修正内容,以实现持续改进。适用于以下场景:(1)命令或操作意外失败;(2)用户纠正Claude(如“不,那不对……”“实际上……”);(3)用户请求的功能不存在;(4)外部API或工具出现故障;(5)Claude发现自身
★ 4,081 📥 809,797