interactive-input
Enables rich interactive UI components in chat responses. When presenting questions that require structured input (multiple choice, true/false, forms), embed interactive blocks that compatible clients render as native UI elements. Use when user asks for quizzes, exercises, surveys, or any structured input scenario.
How do I install this agent skill?
npx skills add https://github.com/sugarforever/01coder-agent-skills --skill interactive-inputIs this agent skill safe to install?
- Gen Agent Trust Hubpass
No security issues detected. This skill provides instructions and a schema for generating interactive UI components (like quizzes, forms, and surveys) in chat responses. It contains no executable code, network operations, or external dependencies.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
- Runlayerpass
2 files scanned · No issues
- ZeroLeakspass
Score: 93/100 · 2 sections analyzed
What does this agent skill do?
Interactive Input Blocks
Embed interactive UI components (radio buttons, checkboxes, text fields, toggles) directly in chat responses. Compatible clients render these as native UI elements; other clients show a readable JSON code block as fallback.
When to Use
- Quizzes and exercises (single/multiple choice, fill-in-the-blank)
- Surveys and polls
- Structured data collection (forms)
- Any scenario where the user needs to select from options or provide structured input
How It Works
Wrap a JSON block in a ```interactive code fence within your normal markdown response. You can mix regular text and interactive blocks freely in the same message.
Schema Reference
See references/schema.md for the complete schema specification.
Quick Example
When presenting a multiple-choice question, instead of listing options as text:
Here's your first question:
```interactive
{
"id": "q1",
"card": {
"body": [
{ "type": "TextBlock", "text": "What is the capital of France?", "weight": "bold" },
{ "type": "Input.ChoiceSet", "id": "answer", "style": "expanded",
"choices": [
{ "title": "A. London", "value": "london" },
{ "title": "B. Paris", "value": "paris" },
{ "title": "C. Berlin", "value": "berlin" },
{ "title": "D. Madrid", "value": "madrid" }
]
}
],
"actions": [{ "type": "Action.Submit", "title": "Submit" }]
}
}
```
Rules
- Every interactive block MUST have a unique
idfield - Every interactive block MUST have at least one element in
card.body - Include an
Action.Submitincard.actionsso the user can submit their response - Use
"style": "expanded"for choice sets to show all options visually (recommended for quizzes) - Use
"style": "compact"for dropdown selects when there are many options - Set
"isMultiSelect": trueonInput.ChoiceSetfor multiple-choice questions - The first
TextBlockin the body is used as the question label in the submitted response - You can include multiple interactive blocks in one message (e.g., a full quiz)
- Always wrap the JSON in a
```interactivecode fence — never use```jsonfor interactive blocks - Keep the JSON compact and valid — no comments, no trailing commas
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/sugarforever/01coder-agent-skills/interactive-input">View interactive-input on skillZs</a>