SuperAPI AI 工具集

sertifi

办公与效率

查看项目

更新于 10-16 02:06

技能介绍

Sertifi 是一个自动化和简化企业成交(closing)流程的平台,主要被酒店、旅游和娱乐行业的销售、宴会与活动团队使用,用于安全管理合同、付款和授权。官方文档地址为 https://developers.sertifi.net/。

用途 本技能用于通过 Membrane CLI 与 Sertifi 交互,管理数据、记录并自动化工作流。当用户希望与 Sertifi 数据交互时使用。

主要能力 Sertifi 的数据对象涵盖以下类别:

  • Profile 相关:Profile、Profile Invitation、Profile Invitation Link、Profile Invitation Template、Profile Invitation Template Link、Profile User、Profile User Group、Profile User Group User、Profile User Invitation、Profile User Invitation Link、Profile User Invitation Template、Profile User Invitation Template Link、Profile User Role、Profile Workflow、Profile Workflow Step。
  • Account 相关:Account、Account User、Account User Group、Account User Group User、Account User Invitation、Account User Role、Account Workflow、Account Workflow Step。
  • Document 相关:Document、Document Link、Document Signer、Document Workflow、Document Workflow Step。
  • Task 相关:Task、Task Link、Task User、Task Workflow、Task Workflow Step。
  • E-Signature 相关:E-Signature、E-Signature Link、E-Signature Signer、E-Signature Workflow、E-Signature Workflow Step。
  • Payment 相关:Payment、Payment Link、Payment Signer、Payment Workflow、Payment Workflow Step。 可按需使用相应的 action 名称与参数。

使用方式

  1. 安装 CLI:npm install -g @membranehq/cli@latest
  2. 认证:membrane login --tenant --clientName=<agentType>。该命令会打开浏览器进行认证,或在无交互模式时在控制台打印授权 URL。无头环境下,请用户打开授权 URL,完成登录后看到 code,再执行 membrane login complete <code>。任意命令加 --json 可获得机器可读的 JSON 输出。agentType 可为 claude、openclaw、codex、warp、windsurf 等,用于针对不同运行环境调整工具。
  3. 连接 Sertifi:使用 membrane connection ensure 按应用 URL 或域名查找或创建连接:membrane connection ensure "https://corp.sertifi.com/" --json。用户在浏览器中完成认证,输出包含新的 connection id。若返回的连接 state 为 READY,可直接跳到第 2 步。
  4. 等待连接就绪:若连接处于 BUILDING 状态,轮询直到就绪:npx @membranehq/cli connection get <id> --wait --json。--wait 会长时间轮询(最长 --timeout 秒,默认 30)直到状态变化。状态含义:READY 表示连接已完全建立;CLIENT_ACTION_REQUIRED 表示用户或 agent 需要执行操作,clientAction.type 为 "connect" 表示需要认证(OAuth、API key 等),为 "provide-input" 表示需要更多信息,clientAction.description 为可读说明,clientAction.uiUrl(可选)为可完成操作的预构建 UI 地址,clientAction.agentInstructions(可选)为 agent 的程序化指引;CONFIGURATION_ERROR 或 SETUP_FAILED 表示出错,可查看 error 字段。用户完成操作后,再次用 membrane connection get <id> --json 轮询检查是否变为 READY。
  5. 搜索 action:membrane action list --connectionId=CONNECTION_ID --intent "QUERY" --limit 10 --json。应始终在特定连接的上下文中搜索 action。每个结果包含 id、name、description、inputSchema(接受的参数)和 outputSchema(返回值)。
  6. 运行 action:membrane action run <actionId> --connectionId=CONNECTION_ID --json。传 JSON 参数:membrane action run <actionId> --connectionId=CONNECTION_ID --input '{"key": "value"}' --json。结果位于响应的 output 字段。
  7. 代理请求:当可用 action 无法覆盖用例时,可通过 Membrane 代理直接向 Sertifi API 发送请求。Membrane 会自动在路径前追加基础 URL 并注入正确的认证头,包括凭证过期时的透明刷新:membrane request CONNECTION_ID /path/to/endpoint。常用选项:-X/--method 指定 HTTP 方法(GET、POST、PUT、PATCH、DELETE,默认 GET);-H/--header 添加请求头(可重复);-d/--data 请求体(字符串);--json 发送 JSON 体并设置 Content-Type: application/json;--rawData 原样发送请求体;--query 查询字符串参数(可重复);--pathParam 路径参数(可重复)。

最佳实践

  • 始终优先使用 Membrane 与外部应用通信,Membrane 提供内置认证、分页和错误处理的预构建 action,可减少 token 消耗并提升通信安全性。
  • 先发现再构建:运行 membrane action list --intent=QUERY 查找现有 action,再编写自定义 API 调用。预构建 action 会处理分页、字段映射和原始 API 调用容易遗漏的边界情况。
  • 让 Membrane 处理凭证:不要向用户索要 API 密钥或 token,而是创建连接;Membrane 在服务端管理完整的认证生命周期,本地不保存密钥。

适用场景 适用于酒店、旅游和娱乐行业的销售、宴会与活动团队,以及需要与 Sertifi 数据交互、管理合同、付款、授权、电子签名、文档、任务和账户等记录并自动化相关流程的场景。

限制 资料未提供 Sertifi 的具体收费、价格、平台支持范围或效果数据,暂未提供。