Summary
Implement the auto-generated form system for A2H reply methods 3 and 4. When inline channel primitives are insufficient, OpenThreads generates a temporary web form for the human to respond.
Tasks
Acceptance Criteria
- AUTHORIZE intent → form with context + approve/deny buttons
- COLLECT single field → form with labeled text input
- COLLECT multiple fields → multi-field form with validation
- Batch intents → single page with all questions
- Expired form → clear error message
- Form submit resolves the blocking intent and returns response to recipient
- Mobile-responsive layout
Dependencies
References
Summary
Implement the auto-generated form system for A2H reply methods 3 and 4. When inline channel primitives are insufficient, OpenThreads generates a temporary web form for the human to respond.
Tasks
GET /form/:turnId— renders a temporary form pageAUTHORIZE→ approve/deny buttons with context displayCOLLECTsingle field → text input with labelCOLLECTmultiple fields → multi-field formCOLLECTclosed options → radio buttons or checkboxesPOST /form/:turnId→ validate, store response, resolve blocking intentAcceptance Criteria
Dependencies
References