用自然语言向 ERPNext 提出业务问题
何时使用: 你想要销售/库存/应收账款数字,但不想点击 ERPNext 报表或等待分析师。
前置条件
- 已安装 Frappe Assistant Core 的 ERPNext 站点 —
bench get-app+bench install-app frappe_assistant_core - 拥有适当读权限的用户账号 — 用你自己的登录;权限自动跟随
步骤
-
通过 OAuth 连接 Claude DesktopConnect to my ERPNext MCP endpoint at https://erp.example.com/api/method/frappe_assistant_core.mcp✓ 已复制→ OAuth 登录完成;Claude 列出可用工具
-
提出业务问题What's my total sales this month broken down by customer group? Compare to last month.✓ 已复制→ Claude 运行报表工具并返回对比结果
-
深入分析异常Customer group 'Wholesale' dropped 40%. Show me the top 10 customers in that group and their YoY sales.✓ 已复制→ 排序列表及可操作的洞察
结果: 在不离开聊天客户端的情况下,数秒内获得财务/运营问题的答案。
注意事项
- Claude 幻想出你的定制中不存在的 Doctype 名称 — 总是先让它列出可用的 Doctype,然后用确切的名称引用
- Python 执行工具对你的数据库运行未经验证的代码 — 通过角色权限为非管理员用户禁用
execute_python_code工具