[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M76FCTSA2DDHFBWX6V2R59BS":3,"skill-same:01M76FCTSA2DDHFBWX6V2R59BS":54},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":28,"commitSha":29,"skillDirectory":30,"forksCount":13,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":33,"install":34,"resources":47},"01M76FCTSA2DDHFBWX6V2R59BS","letsclarify",null,"Collect structured human input — approvals, decisions, reviews, data — via web forms. Create a form with a JSON schema, send unique URLs to humans, poll for results. Use when your workflow needs a human in the loop before proceeding.","meghal86\u002Fstacksignal","meghal86","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F37388715?v=4","01M6CS2EW8SK89GH52R2ZEN8QQ","01M728J5CGY456EETEFG6HJBTM",0,"MIT","https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fletsclarify\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: letsclarify\ndescription: Collect structured human input — approvals, decisions, reviews, data — via web forms. Create a form with a JSON schema, send unique URLs to humans, poll for results. Use when your workflow needs a human in the loop before proceeding.\nhomepage: https:\u002F\u002Fletsclarify.ai\nlicense: MIT\nmetadata: {\"clawdbot\":{\"emoji\":\"📋\",\"primaryEnv\":\"LETSCLARIFY_API_KEY\"}}\n---\n\n# Let's Clarify Skill\n\nLet's Clarify is a Human-in-the-Loop infrastructure service. Use it when your workflow needs structured human input — approvals, decisions, data collection, document review — before proceeding.\n\n**Base URL:** `https:\u002F\u002Fletsclarify.ai`\n\n**Integration:** This skill provides both an MCP server (preferred for MCP-compatible agents) and a REST API. See [MCP Server](#mcp-server-remote) below.\n\n## Quick Start\n\n### 0. Register (and Delete) an API Key\n\n```bash\ncurl -X POST https:\u002F\u002Fletsclarify.ai\u002Fapi\u002Fv1\u002Fregister \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"name\": \"My Agent\", \"email\": \"agent@example.com\"}'\n```\n\n**Response (201):**\n```json\n{\n  \"api_key\": \"lc_...\",\n  \"key_prefix\": \"lc_xxxxx\",\n  \"warning\": \"Store securely. Shown only once.\"\n}\n```\n\nStore the `api_key` value securely. It is shown only once. Include it in all subsequent API calls as `Authorization: Bearer lc_...`.\n\n**Error (422):** Validation errors (e.g., missing name\u002Femail) return:\n```json\n{ \"error\": \"validation_failed\", \"message\": \"...\" }\n```\n\n**Delete your API key:**\n```bash\ncurl -X DELETE https:\u002F\u002Fletsclarify.ai\u002Fapi\u002Fv1\u002Fregister \\\n  -H \"Authorization: Bearer lc_...\"\n```\n\n**Response (200):**\n```json\n{ \"deleted\": true }\n```\n\n### 1. Create a Form\n\n```bash\ncurl -X POST https:\u002F\u002Fletsclarify.ai\u002Fapi\u002Fv1\u002Fforms \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -H \"Authorization: Bearer lc_...\" \\\n  -d '{\n    \"title\": \"Approve Budget Increase\",\n    \"context_markdown\": \"## Q3 Budget\\nPlease review the proposed 15% increase.\",\n    \"recipient_count\": 3,\n    \"retention_days\": 7,\n    \"webhook_url\": \"https:\u002F\u002Fyour-agent.example.com\u002Fwebhook\",\n    \"schema\": [\n      {\n        \"id\": \"decision\",\n        \"type\": \"radio\",\n        \"label\": \"Your decision\",\n        \"required\": true,\n        \"options\": [\n          { \"value\": \"approve\", \"label\": \"Approve\" },\n          { \"value\": \"reject\", \"label\": \"Reject\" }\n        ]\n      },\n      {\n        \"id\": \"notes\",\n        \"type\": \"textarea\",\n        \"label\": \"Additional notes\",\n        \"required\": false,\n        \"validation\": { \"max_length\": 1000 }\n      }\n    ]\n  }'\n```\n\n**Response (201):**\n```json\n{\n  \"form_token\": \"xK9m2...\",\n  \"delete_token\": \"dT3r...\",\n  \"base_url_template\": \"https:\u002F\u002Fletsclarify.ai\u002Ff\u002FxK9m2...\u002F{recipient_uuid}\",\n  \"poll_url\": \"https:\u002F\u002Fletsclarify.ai\u002Fapi\u002Fv1\u002Fforms\u002FxK9m2...\u002Fresults\",\n  \"summary_url\": \"https:\u002F\u002Fletsclarify.ai\u002Fapi\u002Fv1\u002Fforms\u002FxK9m2...\u002Fsummary\",\n  \"delete_url\": \"https:\u002F\u002Fletsclarify.ai\u002Fapi\u002Fv1\u002Fforms\u002FxK9m2...\",\n  \"recipients\": [\"uuid-1\", \"uuid-2\", \"uuid-3\"]\n}\n```\n\n`recipient_count` accepts 1–1,000. Use the recipients endpoint to add more (up to 10,000 total).\n\n#### Advanced: Client-Provided UUIDs and Prefilled Values\n\nInstead of (or alongside) `recipient_count`, pass a `recipients` array with optional `uuid` and `prefill` per entry:\n\n```bash\ncurl -X POST https:\u002F\u002Fletsclarify.ai\u002Fapi\u002Fv1\u002Fforms \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -H \"Authorization: Bearer lc_...\" \\\n  -d '{\n    \"schema\": [{\"id\":\"name\",\"type\":\"text\",\"label\":\"Name\",\"required\":true}],\n    \"recipients\": [\n      {\"uuid\": \"550e8400-e29b-41d4-a716-446655440001\", \"prefill\": {\"name\": \"Alice\"}},\n      {\"uuid\": \"550e8400-e29b-41d4-a716-446655440002\", \"prefill\": {\"name\": \"Bob\"}},\n      {}\n    ],\n    \"recipient_count\": 5\n  }'\n```\n\n**Rules:**\n- `uuid` must be valid UUID v4 format, globally unique (duplicates in request or DB return 400)\n- `prefill` must be a JSON object, max 10KB. Keys not matching any schema field `id` are stripped.\n- `recipient_count` combined with `recipients`: count must be >= array length. Extra slots get server-generated UUIDs, no prefill.\n- `recipients: []` (empty array) without `recipient_count` returns 400.\n- Prefilled values appear as defaults in the form. Users can change them before submitting.\n- Priority: Draft (sessionStorage) > Previous Submission > Prefilled Values > Empty\n\n### 2. Build URLs for Humans\n\nFor each recipient UUID, construct the URL:\n```\nhttps:\u002F\u002Fletsclarify.ai\u002Ff\u002F{form_token}\u002F{recipient_uuid}\n```\n\nDistribute these via email, Slack, WhatsApp, or any channel. Each URL is unique per recipient.\n\n### 3. Allocate More Recipients\n\n```bash\ncurl -X POST https:\u002F\u002Fletsclarify.ai\u002Fapi\u002Fv1\u002Fforms\u002F{form_token}\u002Frecipients \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -H \"Authorization: Bearer lc_...\" \\\n  -d '{ \"count\": 5 }'\n```\n\n**Response (201):**\n```json\n{ \"recipients\": [\"uuid-4\", \"uuid-5\", \"uuid-6\", \"uuid-7\", \"uuid-8\"] }\n```\n\nMaximum 1,000 recipients per request, 10,000 per form.\n\n#### Advanced: Client-Provided UUIDs and Prefilled Values\n\nSame `recipients` array as in form creation:\n\n```bash\ncurl -X POST https:\u002F\u002Fletsclarify.ai\u002Fapi\u002Fv1\u002Fforms\u002F{form_token}\u002Frecipients \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -H \"Authorization: Bearer lc_...\" \\\n  -d '{\n    \"recipients\": [\n      {\"uuid\": \"550e8400-e29b-41d4-a716-446655440003\", \"prefill\": {\"name\": \"Charlie\"}},\n      {}\n    ],\n    \"count\": 5\n  }'\n```\n\nSame rules apply: UUIDs must be unique, prefill keys are validated against the form schema, `count` must be >= array length.\n\n### 4. Poll Summary\n\n```bash\ncurl https:\u002F\u002Fletsclarify.ai\u002Fapi\u002Fv1\u002Fforms\u002F{form_token}\u002Fsummary \\\n  -H \"Authorization: Bearer lc_...\"\n```\n\n```json\n{\n  \"expired\": false,\n  \"known_total\": 8,\n  \"submitted_total\": 3,\n  \"pending_total\": 5,\n  \"updated_at_max\": \"2026-02-13T12:00:00Z\"\n}\n```\n\n### 5. Poll Results\n\n```bash\n# Basic polling\ncurl -H \"Authorization: Bearer lc_...\" \\\n  \"https:\u002F\u002Fletsclarify.ai\u002Fapi\u002Fv1\u002Fforms\u002F{form_token}\u002Fresults?limit=25\"\n\n# With status filter\ncurl -H \"Authorization: Bearer lc_...\" \\\n  \"https:\u002F\u002Fletsclarify.ai\u002Fapi\u002Fv1\u002Fforms\u002F{form_token}\u002Fresults?status=submitted\"\n\n# With cursor pagination\ncurl -H \"Authorization: Bearer lc_...\" \\\n  \"https:\u002F\u002Fletsclarify.ai\u002Fapi\u002Fv1\u002Fforms\u002F{form_token}\u002Fresults?cursor=djE6OTA0Mg\"\n\n# With file contents (base64)\ncurl -H \"Authorization: Bearer lc_...\" \\\n  \"https:\u002F\u002Fletsclarify.ai\u002Fapi\u002Fv1\u002Fforms\u002F{form_token}\u002Fresults?include_files=1\"\n\n# Efficient polling (only changes since last check)\ncurl -H \"Authorization: Bearer lc_...\" \\\n  \"https:\u002F\u002Fletsclarify.ai\u002Fapi\u002Fv1\u002Fforms\u002F{form_token}\u002Fresults?updated_since=2026-02-13T11:00:00Z\"\n```\n\n**Response:**\n```json\n{\n  \"expired\": false,\n  \"next_cursor\": \"djE6MTAw\" | null,\n  \"server_time\": \"2026-02-13T12:00:00Z\",\n  \"results\": [\n    {\n      \"recipient_uuid\": \"uuid-1\",\n      \"status\": \"submitted\",\n      \"submitted_at\": \"2026-02-13T11:30:00Z\",\n      \"updated_at\": \"2026-02-13T11:30:00Z\",\n      \"response_json\": { \"decision\": \"approve\", \"notes\": \"Looks good\" },\n      \"files\": { \"expected_file_count\": 0 }\n    },\n    {\n      \"recipient_uuid\": \"uuid-2\",\n      \"status\": \"pending\",\n      \"submitted_at\": null,\n      \"updated_at\": \"2026-02-13T10:00:00Z\",\n      \"response_json\": null\n    }\n  ]\n}\n```\n\n**Efficient polling workflow:**\n1. Initial sync: paginate with cursor until `next_cursor` is null. Store `server_time`.\n2. Poll: use `updated_since={stored_server_time}` to get only changes.\n3. Store new `server_time` after consuming all pages.\n\n### 6. Delete Form\n\n```bash\ncurl -X DELETE https:\u002F\u002Fletsclarify.ai\u002Fapi\u002Fv1\u002Fforms\u002F{form_token} \\\n  -H \"Authorization: Bearer lc_...\" \\\n  -H \"X-Delete-Token: {delete_token}\"\n```\n\n```json\n{ \"deleted\": true }\n```\n\nPermanently deletes form, all submissions, and all uploaded files.\n\n### 7. Webhook Usage\n\nIf `webhook_url` is provided at form creation, a POST is sent on every submission:\n\n```json\n{\n  \"form_token\": \"xK9m2...\",\n  \"recipient_uuid\": \"uuid-1\",\n  \"submitted_at\": \"2026-02-13T11:30:00Z\",\n  \"response_json\": { \"decision\": \"approve\", \"notes\": \"Looks good\" }\n}\n```\n\n- Webhook URLs must be HTTPS\n- Timeout: 10 seconds\n- Retries: 3 attempts with polynomial backoff (only for 5xx errors and network failures; 4xx errors are not retried)\n- Non-blocking: submissions always succeed regardless of webhook status\n\n### 8. Embeddable Form Widget\n\nInstead of linking humans to the hosted form page (`\u002Ff\u002F{form_token}\u002F{recipient_uuid}`), you can embed the form directly into any website:\n\n```html\n\u003Cscript src=\"https:\u002F\u002Fletsclarify.ai\u002Fembed.js\">\u003C\u002Fscript>\n\u003Cdiv data-letsclarify-form=\"{form_token}\"\n     data-letsclarify-recipient=\"{recipient_uuid}\">\n\u003C\u002Fdiv>\n```\n\nThe script auto-initializes on page load. It:\n- Fetches the form schema from the embed API\n- Renders all field types (text, textarea, radio, select, checkbox, checkbox_group, file)\n- Handles client-side validation, submission, and success screen\n- Supports resubmission (warns the user, overwrites previous response)\n- Injects its own CSS (`\u002Fembed.css`) automatically — no extra stylesheet needed\n- Respects `theme_color` set during form creation\n\n**Optional attributes:**\n- `data-letsclarify-host=\"https:\u002F\u002Fyour-instance.com\"` — for self-hosted instances (default: auto-detected from script src)\n\n**Two ways to show forms to humans:**\n\n| Method | Use case |\n|---|---|\n| Hosted URL: `https:\u002F\u002Fletsclarify.ai\u002Ff\u002F{token}\u002F{uuid}` | Send a link via email, Slack, etc. |\n| Embed widget: `\u003Cdiv data-letsclarify-form=\"...\" ...>` | Embed in your own page, dashboard, or app |\n\nBoth methods use the same backend API — results appear in the same poll\u002Fwebhook.\n\n## Waiting for Results (Important!)\n\nAfter creating a form and sending URLs to humans, you **must** set up async polling to collect results. Do NOT assume humans will respond immediately. Use one of these strategies:\n\n### Strategy A: MCP-Tools Cron (Recommended for MCP-compatible agents)\n\nCreate a recurring cron job with a declarative task message. The agent uses the MCP tools (`get_summary`, `get_results`) referenced in this skill to check status and fetch results.\n\n```bash\nopenclaw cron add \\\n  --name \"poll-letsclarify-{form_token}\" \\\n  --every 10m \\\n  --message \"Check Let's Clarify form {form_token}: Use get_summary to \\\nsee if submitted_total == known_total. If all responded, use get_results \\\nto fetch submissions and summarize the responses, then remove this cron \\\njob. If expired, fetch what exists and clean up.\"\n```\n\nOne-shot variant (check once after a delay):\n\n```bash\nopenclaw cron add \\\n  --name \"check-letsclarify-{form_token}\" \\\n  --at +1h \\\n  --delete-after-run \\\n  --message \"Check Let's Clarify form {form_token} results. If responses \\\nexist, fetch and summarize them. Report status either way.\"\n```\n\n### Strategy B: Intent-based Cron (for agents without MCP)\n\nIf MCP tools are not available, use a purely intent-based message. The agent knows from the API reference above how to reach the endpoints.\n\n```bash\nopenclaw cron add \\\n  --name \"poll-letsclarify-{form_token}\" \\\n  --every 10m \\\n  --message \"Check if all recipients of Let's Clarify form {form_token} \\\nhave responded. If yes, fetch and summarize all submitted results, then \\\nremove this cron job. If the form has expired, fetch whatever results \\\nexist and clean up.\"\n```\n\n### Strategy C: Webhook (if you have an HTTPS endpoint)\n\nProvide a `webhook_url` when creating the form. Let's Clarify will POST to it on every submission. Only use this if you control an HTTPS endpoint that can receive webhooks.\n\n### Polling Workflow\n\n1. **Create form** → save `form_token` and `api_key`\n2. **Send URLs** to humans via Telegram, email, etc.\n3. **Set up polling** — create a cron job that checks the summary every 5–15 minutes\n4. **On poll**: check `submitted_total` vs `known_total`\n   - If all responded → fetch full results, act on them, delete cron job\n   - If not all → do nothing, wait for next poll\n   - If form `expired` → fetch whatever results exist, delete cron job\n5. **Cleanup**: delete the form when done (optional, auto-expires after `retention_days`)\n\n## Schema DSL\n\nSupported field types:\n\n| Type | Description | Requires `options` |\n|---|---|---|\n| `text` | Single-line text input | No |\n| `textarea` | Multi-line text input | No |\n| `checkbox` | Single boolean checkbox | No |\n| `checkbox_group` | Multiple checkboxes | Yes |\n| `radio` | Radio button group | Yes |\n| `select` | Dropdown select | Yes |\n| `file` | File upload | No |\n\n**Validation rules** (optional):\n- `min_length` \u002F `max_length` — for text\u002Ftextarea\n- `pattern` — regex for text\u002Ftextarea\n- `min_items` \u002F `max_items` — for checkbox_group\n\n**File config** (optional, for `file` type):\n- `accept` — array of MIME types or extensions (e.g., `[\"image\u002F*\", \".pdf\"]`)\n- `max_size_mb` — max file size (1-10)\n- `max_files` — max number of files (1-10)\n\n## MCP Server (Remote)\n\nLetsClarify provides a remote MCP (Model Context Protocol) endpoint for direct AI agent integration. Instead of making manual HTTP calls, MCP-compatible clients (Claude Code, Cursor, etc.) can use LetsClarify as a native tool.\n\n**Endpoint:** `https:\u002F\u002Fletsclarify.ai\u002Fmcp`\n\n### Configuration\n\nAdd to your MCP client configuration:\n\n```json\n{\n  \"mcpServers\": {\n    \"letsclarify\": {\n      \"url\": \"https:\u002F\u002Fletsclarify.ai\u002Fmcp\",\n      \"headers\": {\n        \"Authorization\": \"Bearer lc_...\"\n      }\n    }\n  }\n}\n```\n\nFor unauthenticated access (register tool only), omit the `headers` field.\n\n### Available Tools\n\n| Tool | Auth Required | Description |\n|---|---|---|\n| `register` | No | Register for a new API key |\n| `create_form` | Yes | Create a form with schema, get URLs and tokens |\n| `add_recipients` | Yes | Add recipient slots to an existing form |\n| `get_summary` | Yes | Quick status check (total, submitted, pending) |\n| `get_results` | Yes | Fetch submissions with pagination and filters |\n| `delete_form` | Yes | Permanently delete a form and all its data |\n\n### MCP Rate Limits\n\n| Endpoint | Limit | Window |\n|---|---|---|\n| POST \u002Fmcp (per IP) | 60 | 1 minute |\n| POST \u002Fmcp (per API key) | 60 | 1 minute |\n\n## Rate Limits & Backoff Strategy\n\n| Endpoint | Limit | Window |\n|---|---|---|\n| POST \u002Fapi\u002Fv1\u002Fregister | 3 | 1 hour |\n| POST \u002Fapi\u002Fv1\u002Fforms | 10 | 1 minute |\n| All API endpoints | 60 | 1 minute |\n| GET \u002Fapi\u002Fv1\u002Fembed\u002F:token\u002F:uuid | 30 | 1 minute |\n| POST \u002Fapi\u002Fv1\u002Fembed\u002F:token\u002F:uuid | 20 | 1 minute |\n\nWhen rate limited (HTTP 429):\n1. Read the `Retry-After` header (seconds)\n2. Wait that duration before retrying\n3. Use exponential backoff for subsequent attempts: `wait = Retry-After * 2^attempt`\n4. Maximum 5 retry attempts before failing\n\n## Data Retention\n\n- Default: 30 days\n- Maximum: 365 days\n- Expired forms return `expired: true` in API responses\n- All data is permanently deleted after expiration\n- Use the delete endpoint for immediate cleanup\n","# Let's Clarify Skill\n\nLet's Clarify is a Human-in-the-Loop infrastructure service. Use it when your workflow needs structured human input — approvals, decisions, data collection, document review — before proceeding.\n\n**Base URL:** `https:\u002F\u002Fletsclarify.ai`\n\n**Integration:** This skill provides both an MCP server (preferred for MCP-compatible agents) and a REST API. See [MCP Server](#mcp-server-remote) below.\n\n## Quick Start\n\n### 0. Register (and Delete) an API Key\n\n```bash\ncurl -X POST https:\u002F\u002Fletsclarify.ai\u002Fapi\u002Fv1\u002Fregister \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"name\": \"My Agent\", \"email\": \"agent@example.com\"}'\n```\n\n**Response (201):**\n```json\n{\n  \"api_key\": \"lc_...\",\n  \"key_prefix\": \"lc_xxxxx\",\n  \"warning\": \"Store securely. Shown only once.\"\n}\n```\n\nStore the `api_key` value securely. It is shown only once. Include it in all subsequent API calls as `Authorization: Bearer lc_...`.\n\n**Error (422):** Validation errors (e.g., missing name\u002Femail) return:\n```json\n{ \"error\": \"validation_failed\", \"message\": \"...\" }\n```\n\n**Delete your API key:**\n```bash\ncurl -X DELETE https:\u002F\u002Fletsclarify.ai\u002Fapi\u002Fv1\u002Fregister \\\n  -H \"Authorization: Bearer lc_...\"\n```\n\n**Response (200):**\n```json\n{ \"deleted\": true }\n```\n\n### 1. Create a Form\n\n```bash\ncurl -X POST https:\u002F\u002Fletsclarify.ai\u002Fapi\u002Fv1\u002Fforms \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -H \"Authorization: Bearer lc_...\" \\\n  -d '{\n    \"title\": \"Approve Budget Increase\",\n    \"context_markdown\": \"## Q3 Budget\\nPlease review the proposed 15% increase.\",\n    \"recipient_count\": 3,\n    \"retention_days\": 7,\n    \"webhook_url\": \"https:\u002F\u002Fyour-agent.example.com\u002Fwebhook\",\n    \"schema\": [\n      {\n        \"id\": \"decision\",\n        \"type\": \"radio\",\n        \"label\": \"Your decision\",\n        \"required\": true,\n        \"options\": [\n          { \"value\": \"approve\", \"label\": \"Approve\" },\n          { \"value\": \"reject\", \"label\": \"Reject\" }\n        ]\n      },\n      {\n        \"id\": \"notes\",\n        \"type\": \"textarea\",\n        \"label\": \"Additional notes\",\n        \"required\": false,\n        \"validation\": { \"max_length\": 1000 }\n      }\n    ]\n  }'\n```\n\n**Response (201):**\n```json\n{\n  \"form_token\": \"xK9m2...\",\n  \"delete_token\": \"dT3r...\",\n  \"base_url_template\": \"https:\u002F\u002Fletsclarify.ai\u002Ff\u002FxK9m2...\u002F{recipient_uuid}\",\n  \"poll_url\": \"https:\u002F\u002Fletsclarify.ai\u002Fapi\u002Fv1\u002Fforms\u002FxK9m2...\u002Fresults\",\n  \"summary_url\": \"https:\u002F\u002Fletsclarify.ai\u002Fapi\u002Fv1\u002Fforms\u002FxK9m2...\u002Fsummary\",\n  \"delete_url\": \"https:\u002F\u002Fletsclarify.ai\u002Fapi\u002Fv1\u002Fforms\u002FxK9m2...\",\n  \"recipients\": [\"uuid-1\", \"uuid-2\", \"uuid-3\"]\n}\n```\n\n`recipient_count` accepts 1–1,000. Use the recipients endpoint to add more (up to 10,000 total).\n\n#### Advanced: Client-Provided UUIDs and Prefilled Values\n\nInstead of (or alongside) `recipient_count`, pass a `recipients` array with optional `uuid` and `prefill` per entry:\n\n```bash\ncurl -X POST https:\u002F\u002Fletsclarify.ai\u002Fapi\u002Fv1\u002Fforms \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -H \"Authorization: Bearer lc_...\" \\\n  -d '{\n    \"schema\": [{\"id\":\"name\",\"type\":\"text\",\"label\":\"Name\",\"required\":true}],\n    \"recipients\": [\n      {\"uuid\": \"550e8400-e29b-41d4-a716-446655440001\", \"prefill\": {\"name\": \"Alice\"}},\n      {\"uuid\": \"550e8400-e29b-41d4-a716-446655440002\", \"prefill\": {\"name\": \"Bob\"}},\n      {}\n    ],\n    \"recipient_count\": 5\n  }'\n```\n\n**Rules:**\n- `uuid` must be valid UUID v4 format, globally unique (duplicates in request or DB return 400)\n- `prefill` must be a JSON object, max 10KB. Keys not matching any schema field `id` are stripped.\n- `recipient_count` combined with `recipients`: count must be >= array length. Extra slots get server-generated UUIDs, no prefill.\n- `recipients: []` (empty array) without `recipient_count` returns 400.\n- Prefilled values appear as defaults in the form. Users can change them before submitting.\n- Priority: Draft (sessionStorage) > Previous Submission > Prefilled Values > Empty\n\n### 2. Build URLs for Humans\n\nFor each recipient UUID, construct the URL:\n```\nhttps:\u002F\u002Fletsclarify.ai\u002Ff\u002F{form_token}\u002F{recipient_uuid}\n```\n\nDistribute these via email, Slack, WhatsApp, or any channel. Each URL is unique per recipient.\n\n### 3. Allocate More Recipients\n\n```bash\ncurl -X POST https:\u002F\u002Fletsclarify.ai\u002Fapi\u002Fv1\u002Fforms\u002F{form_token}\u002Frecipients \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -H \"Authorization: Bearer lc_...\" \\\n  -d '{ \"count\": 5 }'\n```\n\n**Response (201):**\n```json\n{ \"recipients\": [\"uuid-4\", \"uuid-5\", \"uuid-6\", \"uuid-7\", \"uuid-8\"] }\n```\n\nMaximum 1,000 recipients per request, 10,000 per form.\n\n#### Advanced: Client-Provided UUIDs and Prefilled Values\n\nSame `recipients` array as in form creation:\n\n```bash\ncurl -X POST https:\u002F\u002Fletsclarify.ai\u002Fapi\u002Fv1\u002Fforms\u002F{form_token}\u002Frecipients \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -H \"Authorization: Bearer lc_...\" \\\n  -d '{\n    \"recipients\": [\n      {\"uuid\": \"550e8400-e29b-41d4-a716-446655440003\", \"prefill\": {\"name\": \"Charlie\"}},\n      {}\n    ],\n    \"count\": 5\n  }'\n```\n\nSame rules apply: UUIDs must be unique, prefill keys are validated against the form schema, `count` must be >= array length.\n\n### 4. Poll Summary\n\n```bash\ncurl https:\u002F\u002Fletsclarify.ai\u002Fapi\u002Fv1\u002Fforms\u002F{form_token}\u002Fsummary \\\n  -H \"Authorization: Bearer lc_...\"\n```\n\n```json\n{\n  \"expired\": false,\n  \"known_total\": 8,\n  \"submitted_total\": 3,\n  \"pending_total\": 5,\n  \"updated_at_max\": \"2026-02-13T12:00:00Z\"\n}\n```\n\n### 5. Poll Results\n\n```bash\n# Basic polling\ncurl -H \"Authorization: Bearer lc_...\" \\\n  \"https:\u002F\u002Fletsclarify.ai\u002Fapi\u002Fv1\u002Fforms\u002F{form_token}\u002Fresults?limit=25\"\n\n# With status filter\ncurl -H \"Authorization: Bearer lc_...\" \\\n  \"https:\u002F\u002Fletsclarify.ai\u002Fapi\u002Fv1\u002Fforms\u002F{form_token}\u002Fresults?status=submitted\"\n\n# With cursor pagination\ncurl -H \"Authorization: Bearer lc_...\" \\\n  \"https:\u002F\u002Fletsclarify.ai\u002Fapi\u002Fv1\u002Fforms\u002F{form_token}\u002Fresults?cursor=djE6OTA0Mg\"\n\n# With file contents (base64)\ncurl -H \"Authorization: Bearer lc_...\" \\\n  \"https:\u002F\u002Fletsclarify.ai\u002Fapi\u002Fv1\u002Fforms\u002F{form_token}\u002Fresults?include_files=1\"\n\n# Efficient polling (only changes since last check)\ncurl -H \"Authorization: Bearer lc_...\" \\\n  \"https:\u002F\u002Fletsclarify.ai\u002Fapi\u002Fv1\u002Fforms\u002F{form_token}\u002Fresults?updated_since=2026-02-13T11:00:00Z\"\n```\n\n**Response:**\n```json\n{\n  \"expired\": false,\n  \"next_cursor\": \"djE6MTAw\" | null,\n  \"server_time\": \"2026-02-13T12:00:00Z\",\n  \"results\": [\n    {\n      \"recipient_uuid\": \"uuid-1\",\n      \"status\": \"submitted\",\n      \"submitted_at\": \"2026-02-13T11:30:00Z\",\n      \"updated_at\": \"2026-02-13T11:30:00Z\",\n      \"response_json\": { \"decision\": \"approve\", \"notes\": \"Looks good\" },\n      \"files\": { \"expected_file_count\": 0 }\n    },\n    {\n      \"recipient_uuid\": \"uuid-2\",\n      \"status\": \"pending\",\n      \"submitted_at\": null,\n      \"updated_at\": \"2026-02-13T10:00:00Z\",\n      \"response_json\": null\n    }\n  ]\n}\n```\n\n**Efficient polling workflow:**\n1. Initial sync: paginate with cursor until `next_cursor` is null. Store `server_time`.\n2. Poll: use `updated_since={stored_server_time}` to get only changes.\n3. Store new `server_time` after consuming all pages.\n\n### 6. Delete Form\n\n```bash\ncurl -X DELETE https:\u002F\u002Fletsclarify.ai\u002Fapi\u002Fv1\u002Fforms\u002F{form_token} \\\n  -H \"Authorization: Bearer lc_...\" \\\n  -H \"X-Delete-Token: {delete_token}\"\n```\n\n```json\n{ \"deleted\": true }\n```\n\nPermanently deletes form, all submissions, and all uploaded files.\n\n### 7. Webhook Usage\n\nIf `webhook_url` is provided at form creation, a POST is sent on every submission:\n\n```json\n{\n  \"form_token\": \"xK9m2...\",\n  \"recipient_uuid\": \"uuid-1\",\n  \"submitted_at\": \"2026-02-13T11:30:00Z\",\n  \"response_json\": { \"decision\": \"approve\", \"notes\": \"Looks good\" }\n}\n```\n\n- Webhook URLs must be HTTPS\n- Timeout: 10 seconds\n- Retries: 3 attempts with polynomial backoff (only for 5xx errors and network failures; 4xx errors are not retried)\n- Non-blocking: submissions always succeed regardless of webhook status\n\n### 8. Embeddable Form Widget\n\nInstead of linking humans to the hosted form page (`\u002Ff\u002F{form_token}\u002F{recipient_uuid}`), you can embed the form directly into any website:\n\n```html\n\u003Cscript src=\"https:\u002F\u002Fletsclarify.ai\u002Fembed.js\">\u003C\u002Fscript>\n\u003Cdiv data-letsclarify-form=\"{form_token}\"\n     data-letsclarify-recipient=\"{recipient_uuid}\">\n\u003C\u002Fdiv>\n```\n\nThe script auto-initializes on page load. It:\n- Fetches the form schema from the embed API\n- Renders all field types (text, textarea, radio, select, checkbox, checkbox_group, file)\n- Handles client-side validation, submission, and success screen\n- Supports resubmission (warns the user, overwrites previous response)\n- Injects its own CSS (`\u002Fembed.css`) automatically — no extra stylesheet needed\n- Respects `theme_color` set during form creation\n\n**Optional attributes:**\n- `data-letsclarify-host=\"https:\u002F\u002Fyour-instance.com\"` — for self-hosted instances (default: auto-detected from script src)\n\n**Two ways to show forms to humans:**\n\n| Method | Use case |\n|---|---|\n| Hosted URL: `https:\u002F\u002Fletsclarify.ai\u002Ff\u002F{token}\u002F{uuid}` | Send a link via email, Slack, etc. |\n| Embed widget: `\u003Cdiv data-letsclarify-form=\"...\" ...>` | Embed in your own page, dashboard, or app |\n\nBoth methods use the same backend API — results appear in the same poll\u002Fwebhook.\n\n## Waiting for Results (Important!)\n\nAfter creating a form and sending URLs to humans, you **must** set up async polling to collect results. Do NOT assume humans will respond immediately. Use one of these strategies:\n\n### Strategy A: MCP-Tools Cron (Recommended for MCP-compatible agents)\n\nCreate a recurring cron job with a declarative task message. The agent uses the MCP tools (`get_summary`, `get_results`) referenced in this skill to check status and fetch results.\n\n```bash\nopenclaw cron add \\\n  --name \"poll-letsclarify-{form_token}\" \\\n  --every 10m \\\n  --message \"Check Let's Clarify form {form_token}: Use get_summary to \\\nsee if submitted_total == known_total. If all responded, use get_results \\\nto fetch submissions and summarize the responses, then remove this cron \\\njob. If expired, fetch what exists and clean up.\"\n```\n\nOne-shot variant (check once after a delay):\n\n```bash\nopenclaw cron add \\\n  --name \"check-letsclarify-{form_token}\" \\\n  --at +1h \\\n  --delete-after-run \\\n  --message \"Check Let's Clarify form {form_token} results. If responses \\\nexist, fetch and summarize them. Report status either way.\"\n```\n\n### Strategy B: Intent-based Cron (for agents without MCP)\n\nIf MCP tools are not available, use a purely intent-based message. The agent knows from the API reference above how to reach the endpoints.\n\n```bash\nopenclaw cron add \\\n  --name \"poll-letsclarify-{form_token}\" \\\n  --every 10m \\\n  --message \"Check if all recipients of Let's Clarify form {form_token} \\\nhave responded. If yes, fetch and summarize all submitted results, then \\\nremove this cron job. If the form has expired, fetch whatever results \\\nexist and clean up.\"\n```\n\n### Strategy C: Webhook (if you have an HTTPS endpoint)\n\nProvide a `webhook_url` when creating the form. Let's Clarify will POST to it on every submission. Only use this if you control an HTTPS endpoint that can receive webhooks.\n\n### Polling Workflow\n\n1. **Create form** → save `form_token` and `api_key`\n2. **Send URLs** to humans via Telegram, email, etc.\n3. **Set up polling** — create a cron job that checks the summary every 5–15 minutes\n4. **On poll**: check `submitted_total` vs `known_total`\n   - If all responded → fetch full results, act on them, delete cron job\n   - If not all → do nothing, wait for next poll\n   - If form `expired` → fetch whatever results exist, delete cron job\n5. **Cleanup**: delete the form when done (optional, auto-expires after `retention_days`)\n\n## Schema DSL\n\nSupported field types:\n\n| Type | Description | Requires `options` |\n|---|---|---|\n| `text` | Single-line text input | No |\n| `textarea` | Multi-line text input | No |\n| `checkbox` | Single boolean checkbox | No |\n| `checkbox_group` | Multiple checkboxes | Yes |\n| `radio` | Radio button group | Yes |\n| `select` | Dropdown select | Yes |\n| `file` | File upload | No |\n\n**Validation rules** (optional):\n- `min_length` \u002F `max_length` — for text\u002Ftextarea\n- `pattern` — regex for text\u002Ftextarea\n- `min_items` \u002F `max_items` — for checkbox_group\n\n**File config** (optional, for `file` type):\n- `accept` — array of MIME types or extensions (e.g., `[\"image\u002F*\", \".pdf\"]`)\n- `max_size_mb` — max file size (1-10)\n- `max_files` — max number of files (1-10)\n\n## MCP Server (Remote)\n\nLetsClarify provides a remote MCP (Model Context Protocol) endpoint for direct AI agent integration. Instead of making manual HTTP calls, MCP-compatible clients (Claude Code, Cursor, etc.) can use LetsClarify as a native tool.\n\n**Endpoint:** `https:\u002F\u002Fletsclarify.ai\u002Fmcp`\n\n### Configuration\n\nAdd to your MCP client configuration:\n\n```json\n{\n  \"mcpServers\": {\n    \"letsclarify\": {\n      \"url\": \"https:\u002F\u002Fletsclarify.ai\u002Fmcp\",\n      \"headers\": {\n        \"Authorization\": \"Bearer lc_...\"\n      }\n    }\n  }\n}\n```\n\nFor unauthenticated access (register tool only), omit the `headers` field.\n\n### Available Tools\n\n| Tool | Auth Required | Description |\n|---|---|---|\n| `register` | No | Register for a new API key |\n| `create_form` | Yes | Create a form with schema, get URLs and tokens |\n| `add_recipients` | Yes | Add recipient slots to an existing form |\n| `get_summary` | Yes | Quick status check (total, submitted, pending) |\n| `get_results` | Yes | Fetch submissions with pagination and filters |\n| `delete_form` | Yes | Permanently delete a form and all its data |\n\n### MCP Rate Limits\n\n| Endpoint | Limit | Window |\n|---|---|---|\n| POST \u002Fmcp (per IP) | 60 | 1 minute |\n| POST \u002Fmcp (per API key) | 60 | 1 minute |\n\n## Rate Limits & Backoff Strategy\n\n| Endpoint | Limit | Window |\n|---|---|---|\n| POST \u002Fapi\u002Fv1\u002Fregister | 3 | 1 hour |\n| POST \u002Fapi\u002Fv1\u002Fforms | 10 | 1 minute |\n| All API endpoints | 60 | 1 minute |\n| GET \u002Fapi\u002Fv1\u002Fembed\u002F:token\u002F:uuid | 30 | 1 minute |\n| POST \u002Fapi\u002Fv1\u002Fembed\u002F:token\u002F:uuid | 20 | 1 minute |\n\nWhen rate limited (HTTP 429):\n1. Read the `Retry-After` header (seconds)\n2. Wait that duration before retrying\n3. Use exponential backoff for subsequent attempts: `wait = Retry-After * 2^attempt`\n4. Maximum 5 retry attempts before failing\n\n## Data Retention\n\n- Default: 30 days\n- Maximum: 365 days\n- Expired forms return `expired: true` in API responses\n- All data is permanently deleted after expiration\n- Use the delete endpoint for immediate cleanup\n",{"name":5,"license":14,"homepage":23,"metadata":24,"description":7},"https:\u002F\u002Fletsclarify.ai",{"clawdbot":25},{"emoji":26,"primaryEnv":27},"📋","LETSCLARIFY_API_KEY","main","54afe4b75ed2eb8f0feabb2f5b57dfa4bcbb3c44",".agents\u002Fskills\u002Fletsclarify","https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal","https:\u002F\u002Fgithub.com\u002Fmeghal86","2026-05-17 14:11:28",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add meghal86\u002Fstacksignal --skill letsclarify",{"tool":40,"command":41},"bunx","bunx skills add meghal86\u002Fstacksignal --skill letsclarify",{"tool":43,"command":44},"pnpm","pnpm dlx skills add meghal86\u002Fstacksignal --skill letsclarify","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fletsclarify\u002FSKILL.md",true,[48],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"_meta.json","REFERENCE","参考文档",630,"https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fletsclarify\u002F_meta.json",[55,64,72,80,88,95],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":59,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":63},"01M78XH0FRP65NYEDHF2BT7NB1","zvukogram","Text-to-Speech via Zvukogram API with SSML support. Use when you need to generate speech from text, create podcasts, voice notifications, or work with audio. Supports speed control, stress marks, English word transcription, and audio fragment merging.","https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzvukogram\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzvukogram\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":68,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":63},"01M78XEND5ASXYB6MN8AQQGJAF","zohomail","Zoho Mail API integration with managed OAuth. Send, receive, and manage emails, folders, and labels.\nUse this skill when users want to send emails, read messages, manage folders, or work with email labels in Zoho Mail.\nFor other third party apps, use the api-gateway skill (https:\u002F\u002Fclawhub.ai\u002Fbyungkyu\u002Fapi-gateway).\nRequires network access and valid Maton API key.","https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzohomail\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzohomail\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":76,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":63},"01M78XEBBV3C6DRZFAJXP6RDKS","zoho-recruit","Zoho Recruit API integration with managed OAuth. Manage candidates, job openings, interviews, and recruitment workflows.\nUse this skill when users want to read, create, update, or search recruitment data like candidates, job openings, interviews, and applications in Zoho Recruit.\nFor other third party apps, use the api-gateway skill (https:\u002F\u002Fclawhub.ai\u002Fbyungkyu\u002Fapi-gateway).\nRequires network access and valid Maton API key.","https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzoho-recruit\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzoho-recruit\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":84,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":63},"01M78XE5CQG75DZWYSKGXFR99T","zoho-people","Zoho People API integration with managed OAuth. Manage employees, departments, designations, attendance, and leave.\nUse this skill when users want to read, create, update, or query HR data like employees, departments, designations, and forms in Zoho People.\nFor other third party apps, use the api-gateway skill (https:\u002F\u002Fclawhub.ai\u002Fbyungkyu\u002Fapi-gateway).\nRequires network access and valid Maton API key.","https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzoho-people\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzoho-people\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":91,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":63},"01M78XDZKMZAJYFJJFT7MR5ZN2","zoho-mail","https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzoho-mail\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzoho-mail\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":99,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":63},"01M78XDST8JK0WVDA1F3VPNWXD","zoho-inventory","Zoho Inventory API integration with managed OAuth. Manage items, sales orders, invoices, purchase orders, bills, contacts, and shipments.\nUse this skill when users want to read, create, update, or delete inventory items, sales orders, invoices, purchase orders, bills, or other inventory records in Zoho Inventory.\nFor other third party apps, use the api-gateway skill (https:\u002F\u002Fclawhub.ai\u002Fbyungkyu\u002Fapi-gateway).\nRequires network access and valid Maton API key.","https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzoho-inventory\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzoho-inventory\u002FSKILL.md",[],[]]