Text responses allow reviewers to provide free-form written feedback, making them perfect for scenarios requiring detailed explanations, qualitative assessments, or open-ended input that can’t be captured through structured options.
request_data = { "processing_type": "time-sensitive", "type": "markdown", "priority": "medium", "request_text": "Please review this blog post and provide feedback on accuracy, tone, and readability.", "response_type": "text", "response_config": { "max_length": 1000, "placeholder": "Provide your detailed feedback here...", "required": True }, "default_response": "No feedback provided within the review period", "timeout_seconds": 3600, "platform": "api"}
Text response with length requirements and structured guidance:
Copy
# Content editing request with detailed requirementsrequest_data = { "processing_type": "deferred", "type": "markdown", "priority": "low", "request_text": """Please edit this article draft and provide improvement suggestions:# Article Title: "10 Ways to Improve Your Productivity"Content here would be the actual article...Please focus on:1. Grammar and spelling corrections2. Flow and readability improvements 3. Factual accuracy4. Engagement and tone""", "response_type": "text", "response_config": { "placeholder": "Provide specific editing suggestions with line references where possible. Format: '1. Grammar: Fix X in paragraph 2. 2. Flow: Restructure Y section...'", "min_length": 100, "max_length": 2000, "required": True }, "default_response": "Editorial review not completed within deadline. Recommend postponing publication pending review.", "timeout_seconds": 86400, # 24 hours "platform": "api"}
When a reviewer submits a text response, you’ll receive:
Copy
{ "response_data": "The article is well-structured and informative. Grammar is mostly correct with a few minor issues: 'it's' should be 'its' in paragraph 3, and there's a comma splice in the conclusion. The tone is engaging and appropriate for the target audience. I'd recommend adding one more concrete example in section 4 to strengthen the argument. Overall, this is ready for publication with those minor corrections."}
editorial_config = { "response_type": "text", "response_config": { "placeholder": "Provide editorial feedback covering grammar, style, accuracy, and engagement. Include specific suggestions for improvement.", "min_length": 50, "max_length": 1200, "required": True }, "default_response": "Editorial review incomplete - recommend additional review before publication"}
Copy
{ "response_data": "Article structure is solid with clear progression. Grammar issues: 'affect' vs 'effect' in para 2, missing serial comma in bullet list. Style: tone shifts between formal/casual - recommend consistency. Content accuracy verified against cited sources. Suggest stronger opening hook and more specific examples in conclusion. Overall grade: B+ with recommended revisions."}
Copy
def process_editorial_feedback(response_data): feedback = response_data # Parse feedback for common patterns if "grammar issues:" in feedback.lower(): flag_for_copy_editing() if "accuracy verified" in feedback.lower(): mark_factually_approved() if "grade: a" in feedback.lower(): approve_for_publication() elif "grade: b" in feedback.lower(): require_minor_revisions() else: require_major_revisions() # Store full feedback for author save_feedback_for_author(feedback)
bug_verification_config = { "response_type": "text", "response_config": { "placeholder": "Describe steps taken to reproduce the bug, environment details, and whether you confirmed the issue. Include severity assessment.", "min_length": 75, "max_length": 800, "required": True }, "default_response": "Bug verification not completed within SLA timeframe"}
Copy
{ "response_data": "Reproduced on Chrome 120.0, Firefox 119.0, Safari 17.1 using provided steps. Issue occurs consistently when user has >100 items in cart. Error appears in console: 'Cannot read property length of undefined' in checkout.js:247. Workaround: clear cart and re-add items. Severity: Medium - affects checkout but has workaround. Recommend priority fix for next sprint."}
Copy
def process_bug_verification(response_data): feedback = response_data # Extract severity if "severity: critical" in feedback.lower(): set_bug_priority("P0") elif "severity: high" in feedback.lower(): set_bug_priority("P1") elif "severity: medium" in feedback.lower(): set_bug_priority("P2") else: set_bug_priority("P3") # Check if reproduced if "reproduced" in feedback.lower(): confirm_bug_exists() elif "cannot reproduce" in feedback.lower(): mark_as_works_as_designed() # Store detailed feedback update_bug_report(feedback)
expert_consultation_config = { "response_type": "text", "response_config": { "placeholder": "Provide your expert analysis including key insights, recommendations, risk assessment, and suggested next steps. Include confidence level in your assessment.", "min_length": 200, "max_length": 3000, "required": True }, "default_response": "Expert consultation not completed within consultation period"}
Copy
{ "response_data": "Technical Analysis: The proposed architecture shows good scalability patterns but has potential security vulnerabilities in the API gateway layer. Recommendations: 1) Implement OAuth 2.0 with PKCE, 2) Add rate limiting per endpoint, 3) Consider edge caching for static content. Risk Assessment: Medium risk if deployed as-is, low risk with recommended changes. Cost implications: Additional $2-3k monthly for security infrastructure. Timeline: 2-3 weeks for full implementation. Confidence: High (8/10) based on similar implementations. Next steps: Security audit, load testing, phased rollout."}
Copy
def process_expert_consultation(response_data): feedback = response_data # Extract confidence level import re confidence_match = re.search(r'confidence[:\s]+(?:high|medium|low|\d+/10)', feedback.lower()) if confidence_match: confidence = confidence_match.group() store_confidence_rating(confidence) # Extract recommendations if "recommendations:" in feedback.lower(): recommendations_section = extract_section_after("recommendations:", feedback) parse_recommendations(recommendations_section) # Flag for executive summary if high-stakes if "risk assessment: high" in feedback.lower(): escalate_to_executives() # Store full consultation save_expert_consultation(feedback)