财务

2 工作流2 响应格式3 后端步骤

账单与发票助手

分类账单类咨询(发票、扣款失败、套餐变更),并草拟清晰的解决方案回复。

支持的模型提供商

主模型
备用模型

选择你的提供商与模型,下载的文件会按你的选择生成。

适合谁

  • SaaS 企业
  • 订阅制产品
  • 财务团队

数据如何流转

请求会在你的后端与 AI 工作流之间自动流转。以下是请求经过的完整路径。

收到客户请求

AI 工作流

billing_triage_workflow

分类账单咨询并启动解决方案流水线

后端事件

inquiry_received

draft_resolution 触发后启动 billing_resolution_workflow

后端事件

resolution_ready

AI 工作流

billing_resolution_workflow

为客户草拟清晰的解决方案回复

客户收到回复

你会得到什么

每个模板都由两类部件组成: 工作流响应格式.

工作流

billing_triage_workflow

分类账单咨询并启动解决方案流水线

工作流

billing_resolution_workflow

为客户草拟清晰的解决方案回复

响应格式

billing_triage_response

对账单咨询进行分类

inquiry_typeurgencycustomer_intentneeds_agent

响应格式

billing_resolution_response

草拟的解决方案与客户回复

resolution_summarycustomer_replynext_steps

详细规格

每个工作流的完整规格说明。以下所有内容都已写入下载的文件中,导入后仍可随时修改。

billing_triage_workflow

分类账单咨询并启动解决方案流水线

模型与备用模型了解更多
openai · gpt-5.6-terra备用 1: anthropic · claude-haiku-4-5-20251001

主模型,以及在主模型不可用时自动启用的备用模型。

响应格式了解更多
billing_triage_response返回结构化对象,而不是自由文本。

该工作流返回的结构化 JSON。字段由你定义,并由 ModelRiver 强制校验。

使用的客户数据了解更多
customer_idinvoice_numbercustomer_message

你在每次请求中传入的字段,工作流会据此给出个性化回答。

记忆窗口了解更多
10 分钟

在此时间窗口内,相同请求会直接使用缓存结果,更快也更省钱。

自动化流水线了解更多
inquiry_receiveddraft_resolution启动 billing_resolution_workflowresolution_ready
多步流水线如何工作

围绕该工作流按顺序自动运行的步骤。

运行模式了解更多
生产模式

调用你已连接的 AI 提供商实时运行。

billing_resolution_workflow

为客户草拟清晰的解决方案回复

模型与备用模型了解更多
anthropic · claude-haiku-4-5-20251001备用 1: openai · gpt-5.6-terra

主模型,以及在主模型不可用时自动启用的备用模型。

响应格式了解更多
billing_resolution_response返回结构化对象,而不是自由文本。

该工作流返回的结构化 JSON。字段由你定义,并由 ModelRiver 强制校验。

使用的客户数据了解更多
customer_idinvoice_numbercustomer_message

你在每次请求中传入的字段,工作流会据此给出个性化回答。

运行模式了解更多
生产模式

调用你已连接的 AI 提供商实时运行。

如何使用

  1. 1

    下载模板

    文件是可移植的 JSON 包,方便分享,也易于阅读。

  2. 2

    在 ModelRiver 中打开一个项目

    登录后选择一个项目,并确保该模板用到的 AI 提供商已连接。你可以在「提供商」中完成连接。

  3. 3

    导入模板

    在项目中点击「导入」,粘贴或上传文件,确认预览后完成导入。所有内容以原子方式创建,不会覆盖任何已有数据。 导入与导出如何工作

模板文件

技术用户可以在下方查看原始模板文件。

查看完整模板 JSON
modelriver-billing-invoice-assistant-template-v1.json3.4 KB
{
  "version": 1,
  "structures": [
    {
      "name": "billing_triage_response",
      "description": "对账单咨询进行分类",
      "example": {
        "inquiry_type": "failed_payment",
        "urgency": "high",
        "customer_intent": "想更新支付方式",
        "needs_agent": false
      },
      "schema": {
        "type": "object",
        "properties": {
          "inquiry_type": {
            "type": "string",
            "enum": [
              "invoice_question",
              "failed_payment",
              "plan_change",
              "refund_question",
              "other"
            ]
          },
          "urgency": {
            "type": "string",
            "enum": [
              "low",
              "medium",
              "high"
            ]
          },
          "customer_intent": {
            "type": "string"
          },
          "needs_agent": {
            "type": "boolean"
          }
        },
        "required": [
          "inquiry_type",
          "urgency",
          "customer_intent",
          "needs_agent"
        ],
        "additionalProperties": false
      }
    },
    {
      "name": "billing_resolution_response",
      "description": "草拟的解决方案与客户回复",
      "example": {
        "resolution_summary": "客户支付失败,银行卡被拒绝。",
        "customer_reply": "你的付款没有成功,请更新银行卡信息,我们会自动重试。",
        "next_steps": [
          "在设置中更新支付方式",
          "如出现重复扣款请联系客服"
        ]
      },
      "schema": {
        "type": "object",
        "properties": {
          "resolution_summary": {
            "type": "string"
          },
          "customer_reply": {
            "type": "string"
          },
          "next_steps": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "resolution_summary",
          "customer_reply",
          "next_steps"
        ],
        "additionalProperties": false
      }
    }
  ],
  "workflows": [
    {
      "name": "billing_triage_workflow",
      "description": "分类账单咨询并启动解决方案流水线",
      "provider": "openai",
      "model": "gpt-5.6-terra",
      "backups": [
        {
          "provider": "anthropic",
          "model": "claude-haiku-4-5-20251001"
        }
      ],
      "request_type": "chat",
      "system_instructions": "对账单咨询分类:判断咨询类型、设定紧急程度、总结客户诉求,并标记任何需要财务或客服人员介入的情况。",
      "structure": "billing_triage_response",
      "customer_fields": [
        "customer_id",
        "invoice_number",
        "customer_message"
      ],
      "test_mode": false,
      "cache_window_seconds": 600,
      "backend_pipeline": {
        "enabled": true,
        "events": [
          {
            "name": "inquiry_received"
          },
          {
            "name": "draft_resolution",
            "target_workflow": "billing_resolution_workflow"
          },
          {
            "name": "resolution_ready"
          }
        ]
      }
    },
    {
      "name": "billing_resolution_workflow",
      "description": "为客户草拟清晰的解决方案回复",
      "provider": "openai",
      "model": "gpt-5.6-terra",
      "backups": [
        {
          "provider": "anthropic",
          "model": "claude-haiku-4-5-20251001"
        }
      ],
      "request_type": "chat",
      "system_instructions": "为账单咨询撰写清晰、令人安心的回复。概括解决方案,给出客户可以执行的步骤;除非消息中明确提供,否则不要承诺金额或退款。",
      "structure": "billing_resolution_response",
      "customer_fields": [
        "customer_id",
        "invoice_number",
        "customer_message"
      ],
      "test_mode": false
    }
  ]
}

在找其他方案?

更多模板即将上线。在此之前,你可以在 ModelRiver 控制台中从零搭建自己的工作流。