# Webhook Request Classifier

Source: https://openflow.run/zh-cn/templates/webhook-request-classifier/
Content language: en
Template revision: f2bf5895d91486412f320151dafd9c6b95b42091

支持

Classify an incoming request as support, sales, technical, or general and return its priority and summary as JSON.

[在 Open Flow 中使用](https://console.openflow.run/flows?importUrl=https%3A%2F%2Fraw.githubusercontent.com%2Foomol-lab%2Fawesome-workflow-templates%2Ff2bf5895d91486412f320151dafd9c6b95b42091%2Fworkflows%2Fwebhook-request-classifier%2Ftemplates%2Fwebhook-request-classifier.openflow.json)

*   [Open Flow JSON](https://raw.githubusercontent.com/oomol-lab/awesome-workflow-templates/f2bf5895d91486412f320151dafd9c6b95b42091/workflows/webhook-request-classifier/templates/webhook-request-classifier.openflow.json)
*   [n8n JSON](https://raw.githubusercontent.com/oomol-lab/awesome-workflow-templates/f2bf5895d91486412f320151dafd9c6b95b42091/workflows/webhook-request-classifier/templates/webhook-request-classifier.n8n.json)

![Webhook Request Classifier 在 Open Flow 中的工作流截图](https://openflow.run/_astro/preview-light.CO849C75_Z5H32B.webp)

Classify an incoming request and return a route, priority, and one-sentence summary. Routes are support, sales, technical, and general. The workflow does not create tickets or contact a team.

## Setup

For Open Flow, import the JSON and select a configured Claude Haiku 4.5 model in **Classify request**. For n8n, select an Anthropic credential in **Claude Classifier**.

Publish and enable the workflow. Send a JSON POST request with a `request` field to the webhook URL:

```json
{
  "request": {
    "subject": "Team plan pricing",
    "message": "Can you send a quote for 25 seats?"
  }
}
```

The `request` value can contain your own JSON fields or a text string. Both formats use the same wrapper. A successful response has `received: true`, a `route`, a `priority` of `high`, `medium`, or `low`, and a `summary`.

Malformed model output returns the fallback `general` / `medium` with summary `Unable to classify`. Unknown route and priority labels become `general` and `medium`. Model request failures still fail the workflow. Open Flow waits up to 60 seconds for classification; an HTTP timeout does not cancel the run. Review model accuracy for your request types before using the result to make routing decisions.

## Changes to the source

*   Wait for classification and parsing before sending the HTTP response.
*   Serialize request and response JSON safely, including quotes and multiline values.
*   Accept the same explicit `request` wrapper in both formats.
*   Parse complete or fenced JSON containing braces inside strings, retain the malformed-output fallback, and normalize unknown labels.
*   Remove the source switch with no configured downstream actions.

Adapted from [Claude Smart Webhook AI Router](https://github.com/enescingoz/awesome-n8n-templates/blob/827110332c21cbe000ab13f6d292d5adb1f1f8db/OpenAI_and_LLMs/Claude%20Smart%20Webhook%20AI%20Router.json) in [enescingoz/awesome-n8n-templates](https://github.com/enescingoz/awesome-n8n-templates).

Source collection notice: © 2024–2026 Enes Cingoz, [CC BY 4.0](https://github.com/enescingoz/awesome-n8n-templates/blob/827110332c21cbe000ab13f6d292d5adb1f1f8db/LICENSE). The source export does not identify a separate template author or license. This adaptation includes the changes listed above; see [repository licensing](https://github.com/oomol-lab/awesome-workflow-templates/blob/f2bf5895d91486412f320151dafd9c6b95b42091/README.md#licensing) for the scope of OOMOL contributions and third-party material.

## 配置要求

*   Configured claude-haiku-4-5 model or compatible replacement
*   Caller that submits the request field and waits for classification

*   classification
*   ai
*   webhook
*   triage

[在 GitHub 查看](https://github.com/oomol-lab/awesome-workflow-templates/blob/f2bf5895d91486412f320151dafd9c6b95b42091/workflows/webhook-request-classifier/README.md)
