CLEF PLAYGROUND

Try the Clef model.

Pick a scenario. Explore the context, shape the questions, and understand the decisions.

Choose a queue, rate impact, and flag review.

Live API availableLive requests use trial quota.

01 Add your context

Paste the customer’s message you want to route to the right team.

Add an image (optional)

One image, at most 1 MiB and 4 megapixels. Requires text state. These are this site's limits.

02 Choose your questions

3 / 3

Tell Clef what to check. Edit the sample questions or add your own (1–3 questions).

Which support queue should handle this ticket?Technical · Billing · General
Rules · queue

Up to 500 UTF-8 bytes; each description up to 200 bytes.

Named options (2–6). Labels must be unique.

Rate the reported business impact.Minor inconvenience → One person blocked → Team or critical work blocked
Rules · impact

Up to 500 UTF-8 bytes; each description up to 200 bytes.

Does this ticket require a human support agent?Yes or no
Rules · review

Up to 500 UTF-8 bytes; each description up to 200 bytes.

3 attempts/minute and 3/day per public IP; 300/day site-wide. Browsers, devices, and models using the same public IP share this quota. Daily reset: 00:00 UTC. Failed, timed out, and canceled attempts may count.

Advanced settings

80 / 8000 serialized UTF-8 bytes used.

Replaces the content with an ambiguous example to test your rules. It does not run an analysis.

Illustrative example available

03 Read the decision

Example answersIllustrative · not a live result

Which support queue should handle this ticket?

Technical

Login, errors, or service failures

Rate the reported business impact.

Team or critical work blocked

Most likely level in your rating scale.

Does this ticket require a human support agent?

Leans yes

Blocked work or unclear issue needs a person

Probabilities & technical details

Probabilities express a model’s judgment, not measured accuracy. Example values are illustrative.

Which support queue should handle this ticket?choice

Selected option: technical

technical
90.0%
billing
4.0%
general
6.0%

API confidence: 78.0%. This is a separate field from the option probabilities.

Rate the reported business impact.score

Weighted score: 1.8. The summary shows the most probable level, not a rounded score.

0 · Minor inconvenience
5.0%
1 · One person blocked
10.0%
2 · Team or critical work blocked
85.0%

API confidence: 71.0%. This is a separate field from the option probabilities.

Does this ticket require a human support agent?noul
Yes
93.0%
No
7.0%
Raw result JSON
{
  "model": "clef-flash",
  "answers": {
    "queue": {
      "type": "choice",
      "choice": "technical",
      "probabilities": {
        "technical": 0.9,
        "billing": 0.04,
        "general": 0.06
      },
      "confidence": 0.78
    },
    "impact": {
      "type": "score",
      "score": 1.8,
      "legend": {
        "0": "Minor inconvenience",
        "1": "One person blocked",
        "2": "Team or critical work blocked"
      },
      "probabilities": {
        "0": 0.05,
        "1": 0.1,
        "2": 0.85
      },
      "confidence": 0.71
    },
    "review": {
      "type": "noul",
      "noul": 0.93
    }
  }
}

For developers

Take it into your app.

Copy an API request for your current draft, or save the configuration for later.

API code & configuration

Drafts stay in page memory. Export before leaving. Configuration files never include images, credentials, or results.

CURRENT CONFIGURATION
curl "https://api.cloudflare.com/client/v4/accounts/${CLOUDFLARE_ACCOUNT_ID}/ai/run/@cf/cloudflare/clef-flash" \
  -H "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
  -H 'Content-Type: application/json' \
  --data-binary '{"model":"clef-flash","state":"Our team cannot sign in after the latest update. All twelve users are blocked.","questions":{"queue":{"type":"choice","instructions":"Which support queue should handle this ticket?","criteria":{"technical":"Login, errors, or service failures","billing":"Invoices, payments, or subscription charges","general":"Other questions"}},"impact":{"type":"score","instructions":"Rate the reported business impact.","criteria":["Minor inconvenience","One person blocked","Team or critical work blocked"]},"review":{"type":"noul","instructions":"Does this ticket require a human support agent?","criteria":{"true":"Blocked work or unclear issue needs a person","false":"A routine answer is sufficient"}}}}'

Help us improve the toolkit

Allow Google Analytics to measure visits and tool use? Your playground content is excluded. Privacy details