Community生产力与协作github.com

ComposioHQ/QuickBooks-Automation

QuickBooks 自动化:在 QuickBooks Online 中管理发票、客户、账户和付款,实现简化的记账流程。

QuickBooks-Automation 是什么?

该技能使 AI 代理能够通过 Composio 集成,在 QuickBooks Online 中自动执行核心记账操作,包括创建发票、管理客户、查询账户以及列出发票。它依赖于 Rube MCP 服务器(https://rube.app/mcp)建立连接,并需要先激活 `quickbooks` 工具包。技能详细说明了关键操作的工作流,例如创建包含行项目的发票、通过 SQL 样式的查询查找账户,以及处理分页和唯一性约束等常见问题。支持的平台包括任何兼容 MCP 的代理(如 Claude Code、Cursor、Codex 等),通过 Composio 管理的工具集与 QuickBooks API 进行交互。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/ComposioHQ/awesome-codex-skills/tree/main/composio-skills/quickbooks-automation

Installed? Explore more 生产力与协作 skills: steipete/gemini, steipete/gh-issues, steipete/skill-creator · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

QuickBooks 自动化

自动执行 QuickBooks Online 操作,包括创建发票、管理客户、查询账户以及列出发票,用于财务报告。

工具包文档: composio.dev/toolkits/quickbooks


设置

此技能需要连接在 https://rube.app/mcp 上的 Rube MCP 服务器。

在执行任何工具之前,请确保 quickbooks 工具包存在活跃连接。如果没有活跃连接,请通过 RUBE_MANAGE_CONNECTIONS 发起一个连接。


核心工作流

1. 创建发票

为包含行项目的客户创建新发票。

工具: QUICKBOOKS_CREATE_INVOICE

关键参数:

  • customer_id(必需)-- 客户的 ID(CustomerRef.value)
  • lines(必需)-- 行项目对象数组。每个对象必须包含:
    • DetailType -- 例如 "SalesItemLineDetail"
    • Amount -- 行项目总金额
    • SalesItemLineDetail -- 包含 ItemRef 的对象,其中 value 为项目 ID
  • minorversion -- 可选的 API 版本参数

示例:

工具:QUICKBOOKS_CREATE_INVOICE
参数:
  customer_id: "21"
  lines: [
    {
      "DetailType": "SalesItemLineDetail",
      "Amount": 150.00,
      "SalesItemLineDetail": {
        "ItemRef": {"value": "1", "name": "Services"}
      }
    }
  ]

前提条件: 使用 QUICKBOOKS_READ_CUSTOMER 解析客户 ID,或使用 QUICKBOOKS_CREATE_CUSTOMER 创建客户。使用 QUICKBOOKS_QUERY_ACCOUNT 解析项目/账户 ID。


2. 管理客户

创建和读取客户记录。

工具:

  • QUICKBOOKS_CREATE_CUSTOMER -- 创建新客户
  • QUICKBOOKS_READ_CUSTOMER -- 按 ID 读取客户

QUICKBOOKS_CREATE_CUSTOMER 的关键参数:

  • display_name -- 显示名称(必须在客户、供应商、员工之间唯一;最多 500 个字符)
  • given_name -- 名字(最多 100 个字符)
  • family_name -- 姓氏(最多 100 个字符)
  • middle_name -- 中间名(最多 100 个字符)
  • title -- 称呼,例如 "先生","博士"(最多 16 个字符)
  • suffix -- 姓名后缀,例如 "Jr."(最多 16 个字符)

至少需要提供 display_name、title、given_name、middle_name、family_name 或 suffix 之一。

QUICKBOOKS_READ_CUSTOMER 的关键参数:

  • customer_id(必需)-- 要读取的客户 ID

示例:

工具:QUICKBOOKS_CREATE_CUSTOMER
参数:
  display_name: "Acme Corporation"
  given_name: "John"
  family_name: "Doe"

3. 查询和读取账户

检索账户信息,用于发票行项目和财务报告。

工具:

  • QUICKBOOKS_QUERY_ACCOUNT -- 对账户执行查询
  • QUICKBOOKS_READ_ACCOUNT -- 按 ID 读取特定账户

QUICKBOOKS_QUERY_ACCOUNT 的关键参数:

  • query(必需)-- SQL 样式的查询字符串,例如 "SELECT * FROM Account WHERE AccountType = 'Income'"

示例:

工具:QUICKBOOKS_QUERY_ACCOUNT
参数:
  query: "SELECT * FROM Account WHERE AccountType = 'Income' MAXRESULTS 10"

4. 列出和筛选发票

检索发票,支持可选的分页和筛选。

工具: QUICKBOOKS_LIST_INVOICES

步骤:

  1. 使用分页参数调用 QUICKBOOKS_LIST_INVOICES
  2. 使用 start_position 和 max_results 分页浏览结果
  3. 根据需要按特定条件进行筛选

推荐的执行计划

  1. 解析客户 -- 使用 QUICKBOOKS_READ_CUSTOMER(如果你有客户 ID)或使用 QUICKBOOKS_CREATE_CUSTOMER 创建客户
  2. 解析项目/收入账户 -- 使用 QUICKBOOKS_QUERY_ACCOUNT 和 QUICKBOOKS_READ_ACCOUNT 获取发票行项目的账户或项目 ID
  3. 创建发票 -- 使用 QUICKBOOKS_CREATE_INVOICE,传入已解析的 customer_id 和格式正确的行项目
  4. 验证创建 -- 使用 QUICKBOOKS_LIST_INVOICES 按 ID 或 DocNumber 查找新发票

已知陷阱

陷阱详情
无效引用如果 customer_id 或 ItemRef.value 指向不存在或无效的记录,QUICKBOOKS_CREATE_INVOICE 会失败。务必先解析 ID。
行项目验证错误的 DetailType 或缺少 SalesItemLineDetail 字段会在创建发票时导致架构/验证错误。
分页QUICKBOOKS_LIST_INVOICES 使用 start_position 和 max_results。不完整的分页设置可能会遗漏大型账簿中的发票。
同步令牌任何后续编辑都需要从最新发票读取中获得最新的 SyncToken。过时的同步令牌会导致更新被拒绝。
速率限制QuickBooks 强制实施每分钟和每日的 API 上限。高容量运行应包含退避策略以避免限流错误。
DisplayName 唯一性客户的 display_name 必须在所有客户、供应商和员工对象中唯一。重复会导致创建失败。

快速参考

工具标识描述
QUICKBOOKS_CREATE_INVOICE创建包含行项目的新发票
QUICKBOOKS_READ_CUSTOMER按 ID 读取客户记录
QUICKBOOKS_CREATE_CUSTOMER创建新的客户记录
QUICKBOOKS_QUERY_ACCOUNT使用 SQL 样式语法查询账户
QUICKBOOKS_READ_ACCOUNT按 ID 读取特定账户
QUICKBOOKS_LIST_INVOICES分页列出发票

由 Composio 驱动

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

ComposioHQ/-21risk-automation

Automate 21risk tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/-2chat-automation

Automate 2chat tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/ably-automation

Automate Ably tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/abstract-automation

Automate Abstract tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/abuselpdb-automation

Automate Abuselpdb tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/abyssale-automation

Automate Abyssale tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/accelo-automation

Automate Accelo tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/accredible-certificates-automation

Automate Accredible Certificates tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/acculynx-automation

Automate Acculynx tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/active-campaign-automation

Automate ActiveCampaign tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/addresszen-automation

Automate Addresszen tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/adobe-automation

Automate Adobe tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/adrapid-automation

Automate Adrapid tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/adyntel-automation

Automate Adyntel tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/aeroleads-automation

Automate Aeroleads tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/aero-workflow-automation

Automate Aero Workflow tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/affinda-automation

Automate Affinda tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/affinity-automation

Automate Affinity tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/agencyzoom-automation

Automate Agencyzoom tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/agent-deep-links

Build, validate, and troubleshoot deep links for Codex, Cursor, VS Code, Visual Studio, and similar tools. Use when users ask for clickable links (especially in Slack) that open threads, files, folders, or app settings.

相关技能