Endpoints
Complete Interview & Generate Feedback
Mark the interview as complete and generate AI-powered feedback.
Path Parameters
The unique identifier of the interview session.
Response
Redirects to the feedback page after generating the analysis.URL to the feedback page:
/session/<session_id>/feedbackExample Request
Success Response
Error Responses
Example Errors:- “Feedback has already been generated for this session.”
- “Cannot generate feedback for an empty interview.”
- “Session not found”
Returned when the AI service fails to generate feedback.
Error message from the AI service.
Get Feedback
Retrieve the generated feedback for a completed interview.
Path Parameters
The unique identifier of the interview session.
Response
Returns an HTML page displaying comprehensive interview feedback.The feedback analysis object.
Unique feedback identifier.
Associated session ID.
Performance score from 1-10.
Text describing the candidate’s strong points during the interview.
Text describing areas for improvement.
Specific recommendations for optimizing the CV for the target role.
Timestamp when feedback was generated.
Example Request
Example Response Data
Error Responses
- 403 Forbidden: “You don’t have access to this session”
- 404 Not Found: “Feedback for session not found.” or session does not exist
Feedback Object Structure
The Feedback object contains comprehensive interview analysis:Unique identifier for the feedback record.
Associated session ID (foreign key to sessions table).
Performance score ranging from 1 (poor) to 10 (excellent).
Detailed text analysis of what the candidate did well, including:
- Strong technical answers
- Good communication skills
- Relevant experience demonstrated
- Appropriate depth of knowledge
Constructive feedback on areas to improve, such as:
- Missing details or examples
- Areas of insufficient knowledge
- Communication improvements
- Response structure suggestions
Specific, actionable recommendations for tailoring the CV to the target role:
- Keywords to add
- Sections to expand
- Metrics to include
- Format improvements
- Skills to highlight
Timestamp when the feedback was generated (ISO 8601 format).
Feedback Generation Process
The feedback is generated through the following AI analysis process:Input Data
- Conversation History: Complete Q&A transcript from the interview
- CV Text: Candidate’s uploaded resume
- Job Description: Target job requirements
- Job Title & Company: Interview context
AI Analysis
The AI analyzes:- Answer Quality: Depth, accuracy, and relevance of responses
- Technical Skills: Demonstrated knowledge and experience
- Communication: Clarity, structure, and articulation
- CV Alignment: How well the CV matches responses and job requirements
- Missing Elements: Gaps in answers or CV that could be addressed
Output Generation
The AI generates:- Interview Score (1-10): Holistic performance rating
- Strengths: 3-5 key positive points
- Weaknesses: 3-5 areas for improvement
- CV Improvements: Specific, actionable suggestions tailored to the role
Interview Score Interpretation
Outstanding performance. Strong technical skills, excellent communication, and well-aligned with the role. CV is comprehensive and relevant.
Solid performance with minor areas for improvement. Good technical knowledge and communication. CV could be enhanced with more specific details.
Acceptable performance but significant room for improvement. Some knowledge gaps or communication issues. CV needs substantial updates.
Below expectations. Notable knowledge gaps, unclear communication, or insufficient experience. CV requires major revisions.
Significant concerns. Major knowledge gaps, poor communication, or misaligned experience. Recommend additional preparation before applying.
Prerequisites
Feedback can only be generated when:- Interview is Complete: All 8 questions have been answered
- Conversation Exists: At least one Q&A pair in the message history
- No Existing Feedback: Feedback can only be generated once per session
Error Handling
HTTP Status Codes
- 302 Found: Successful redirect after feedback generation
- 400 Bad Request: Validation error (already exists, empty interview, etc.)
- 403 Forbidden: Unauthorized session access
- 404 Not Found: Session or feedback not found
- 500 Internal Server Error: AI service error or unexpected error
Common Errors
“Feedback has already been generated for this session.”Solution: Navigate to GET
/session/<session_id>/feedback to view existing feedback.“Cannot generate feedback for an empty interview.”Solution: Complete the interview by answering questions before requesting feedback.
“Session not found”Solution: Verify the session ID is correct and exists.
“Failed to generate feedback: [AI provider error message]”Solution: The AI service may be temporarily unavailable. Try again in a few moments.
Example: Complete Workflow
Integration with Other APIs
The Feedback API is the final step in the interview workflow:- Create Session (Sessions API)
- Upload Documents (Documents API)
- Conduct Interview (Interviews API)
- Receive Feedback (Feedback API) ← You are here
Workflow Validation
- Cannot access feedback without completing the interview
- Interview must have reached the 8-question limit
- Feedback is generated once and stored permanently
- Attempting to regenerate feedback will return an error
AI Providers
Feedback generation supports multiple AI providers:- Google Gemini: Primary provider for feedback analysis
- OpenRouter: Alternative provider with fallback support