Loading...
Loading...
Request judgment from random humans when uncertain about subjective decisions. Crowdsourced opinions on tone, style, ethics, and reality checks. CRITICAL - Responses take minutes to hours (or may never arrive).
npx skill4agent add dx-tooling/ask-a-human ask-a-humanexechttps://api.ask-a-human.comcurl -X POST https://api.ask-a-human.com/agent/questions \
-H "Content-Type: application/json" \
-H "X-Agent-ID: $ASK_A_HUMAN_AGENT_ID" \
-d '{
"prompt": "Your question with full context",
"type": "multiple_choice",
"options": ["Option A", "Option B", "Option C"],
"min_responses": 5,
"timeout_seconds": 3600
}'prompttype"text""multiple_choice"optionsaudience["technical", "product", "ethics", "creative", "general"]min_responsestimeout_seconds{
"question_id": "q_abc123def456",
"status": "OPEN",
"expires_at": "2026-02-02T15:30:00Z"
}question_idcurl https://api.ask-a-human.com/agent/questions/q_abc123def456 \
-H "X-Agent-ID: $ASK_A_HUMAN_AGENT_ID"{
"question_id": "q_abc123def456",
"status": "PARTIAL",
"prompt": "Your original question",
"type": "multiple_choice",
"options": ["Option A", "Option B", "Option C"],
"current_responses": 3,
"required_responses": 5,
"responses": [
{"selected_option": 0, "confidence": 4},
{"selected_option": 1, "confidence": 5},
{"selected_option": 0, "confidence": 3}
],
"summary": {
"Option A": 2,
"Option B": 1
}
}OPENPARTIALCLOSEDEXPIRED1. Encounter a subjective decision
2. Submit question to ask-a-human, get question_id
3. Store in memory: "Asked about email tone, question_id=q_abc123"
4. Proceed immediately with your best guess
5. During next heartbeat or idle moment, check if answers arrived
6. If answers contradict your guess, note this for future similar decisionsI need to decide the tone for this error message. I'll ask the humans but proceed
with "apologetic" as my best guess. I'm storing question_id=q_abc123 to check later.
[Later, during heartbeat]
Let me check q_abc123... The humans said "direct, not apologetic" (4 out of 5).
I'll remember this preference for future error messages.1. Submit question
2. Tell the user: "I've asked some humans for their opinion. I'll wait up to 5 minutes."
3. Poll every 30-60 seconds (use exponential backoff: 30s, 45s, 67s, 100s...)
4. If answers arrive, proceed with crowd consensus
5. If timeout, proceed with fallback (own judgment)I'm uncertain about the headline for this blog post. Let me ask the humans.
[Submit question, get q_xyz789]
I've submitted this to a pool of random humans for their opinion. I'll check back
in about 30 seconds.
[30 seconds later, check responses]
Status: OPEN, 0 responses yet. Checking again in 45 seconds.
[45 seconds later]
Status: PARTIAL, 2 responses. "Headline B" leading. Checking again in 67 seconds.
[67 seconds later]
Status: PARTIAL, 4 responses. "Headline B" has 3 votes, "Headline A" has 1.
This is enough consensus. I'll proceed with Headline B.1. Submit question
2. Mark the task as "pending human input" in your memory
3. Continue with completely unrelated work
4. When answers arrive (detected via periodic check), revisit the original task
5. If answers never arrive, have a "stale questions" cleanup routineTask: Write three blog posts.
For Post 1, I need to decide the angle. Submitting to humans (q_post1_angle).
For now, I'll start on Post 2 which has a clear direction.
[Work on Post 2...]
Let me check my pending questions... q_post1_angle now has 5 responses!
The humans prefer "practical tutorial" over "thought leadership" (4-1).
Now I can complete Post 1 with that direction.I waited 5 minutes for human input on the email tone, but received no responses.
The human pool may be empty right now. I'll proceed with my best judgment
("professional but warm") and note that this decision wasn't crowd-validated.[Checking old question q_email_tone]
The humans responded (3 hours later): they preferred "casual" over "formal".
I already sent the email with "formal" tone. I'll remember this preference
for future emails to similar recipients.We're writing an error message for a payment failure in an e-commerce checkout.
The user's credit card was declined. Should the message:
A) Apologize and suggest trying another card
B) Simply state the card was declined and ask to retry
C) Blame the card issuer and suggest contacting their bankShould we apologize?ASK_A_HUMAN_AGENT_ID| Action | Command |
|---|---|
| Submit question | |
| Check responses | |
| Required header | |
| Status | Meaning |
|---|---|
| OPEN | Waiting, no responses yet |
| PARTIAL | Some responses, still collecting |
| CLOSED | All responses received |
| EXPIRED | Timeout, question closed |