Calibrated decisions for automation. Ask typed questions and get probabilities, or decide with a calibrated profile that says whether a case is safe to automate.
Author: hesperan
Version: 0.0.1
Type: tool
Source: https://github.com/Hesperan/hesperan-dify-plugin
Contact: [email protected]
Hesperan is a hosted API for calibrated decisions. It answers typed questions about a text
or JSON state with probabilities, and decision profiles, calibrated on your own labelled cases, tell you for each
case whether it is safe to automate () or should go to a person (). Hesperan returns numbers and
decisions, never generated text.
This plugin adds three tools to Dify workflows, chatflows and agents:
Required credentials: one Hesperan API key. Requests are billed by input tokens to the Hesperan account of the key
(1M free tokens a month, then a prepaid balance or Pro; see https://hesperan.com/pricing); failed requests are not
charged.
The plugin connects only to over HTTPS (port 443). The Dify plugin runtime needs
outbound internet access to that host. There is no base URL to configure and no proxy setting.
Ask a question takes a state, a question type, the question and options:
choice: options one per line as , for example
Output: (the most likely key), , .
yes_no: the question is a statement, for example Optional options
and say what counts as yes and no. Output: , , .
score: options are level descriptions, one per line, lowest first. Output: (expected level),
, .
Turn on State is JSON to send a JSON object or array as structured state. Every tool returns a JSON message
and the output variables listed in its schema; agents can read the JSON directly.
Errors say whether anything was charged and whether a retry helps. : invalid key. : the included tokens
are used up and the balance does not cover the rest. : unknown profile or decision. : the profile has no calibration yet, or an idempotency key was
reused with different input. and : retry later. "Model is starting" () or "did not answer in time":
the model runs on serverless GPUs and the first call after a quiet period can take about 2–3 minutes; retry a minute
later (use an idempotency key for decisions). with "opens soon": the Hesperan API is closed, and retrying does
not help.
See PRIVACY.md and https://hesperan.com/legal/privacy.
Some outbound calls build their address at runtime, so the list may be incomplete.
Last checked 09/25/2026 02:55 AM · version 0.0.1