by tomphillipslabs · v0.2.1
Send AI output to LoopQuest for gamified human-in-the-loop review and receive a verdict back.
This community listing does not yet include every recommended support, privacy, pricing, and permission disclosure. Review the available package permissions before installing.
Available inside your emploidai workspace after installation.
Available inside your emploidai workspace after installation.
Send your workflow's AI output to LoopQuest for gamified human-in-the-loop review, and get a verdict back. Three tools:
callback_url, or by calling get_task_status.Why a dedicated Wait tool? A Dify chatflow can't natively pause a turn and resume on an external callback. Wait for verdict solves this by creating a gate task and polling server-side inside the tool call until the human decides (or the fail-closed timeout is applied), so the node itself blocks — no loop wiring needed. Keep Max wait at or below your Dify request timeout, and set a Fail-closed timeout so a missing decision never hangs the flow (it escalates by default).
When you add the tool in Dify, set:
https://loopquest.tomphillips.uk).Monitor: after your LLM node, add Create review task, map the output into Content, pick a Module, and carry on. Optionally set Title, External id and a Callback URL.
Gate: after your LLM node, add Wait for verdict, map the output into Content (or Claim + Source for Grounding). The node blocks until the verdict, then wire an IF/ELSE on the returned approved — true → send the answer, false → send a fallback or escalate.
cd packages/dify-plugin
python -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
# Local debugging against a Dify instance:
# set REMOTE_INSTALL_KEY + REMOTE_INSTALL_HOST from Dify → Plugins → "Debug plugin"
python -m main # connects to Dify for live testing
# Or package and install:
# dify plugin package ./ -o loopquest.difypkg
# then upload loopquest.difypkg in Dify → Plugins → Install from local
Then in Dify: add the LoopQuest tool, run a workflow that calls Create review task, open the LoopQuest Review tab, approve/flag, and (if you set a callback_url) watch the signed verdict arrive.
Backed by the public LoopQuest API — see https://<your-app>/docs and /openapi.json.