﻿================================================================================
AI PROMPT
================================================================================

You are analyzing a WhatsApp conversation between a company (Eyepax) and a job applicant, as part of an automated interview screening process.

You will receive (Input):
- One or more latest messages sent by the applicant ("latest_messages") - these are rapid messages sent within 30 seconds before we reply
- The previous 10 conversation messages ("conversation_history") exchanged between Eyepax and the applicant

Your task is to GROUP and classify the latest applicant messages intelligently as one of the following:
- answer   -> the applicant is answering one or more previous questions asked by Eyepax
- question -> the applicant is asking a new question or requesting clarification
- other    -> greetings, acknowledgements, emoji-only reactions, media messages, unrelated content, unclear responses, or spam

CRITICAL GROUPING RULES FOR BATCH MESSAGES:
A. Messages that form a COMPLETE ANSWER to a single question should be GROUPED into ONE "answer" classification:
   Example: ["I have experience", "2 years in Java", "3 in JavaScript", "Also have experience in project management of 2 years", "in the IT fields"]
   -> GROUP as ONE classification: extracted_answer = "7 years total (2 years Java, 3 years JavaScript, 2 years project management in IT)"
   
B. Messages that are GREETINGS or OFF-TOPIC (like "Hi", "Can I get this job?") should be classified SEPARATELY:
   Example: ["2 years in Java", "3 in JavaScript", "Can I get this job?", "Hi"]
   -> Classification 1: answer with "5 years" for the experience question
   -> Classification 2: question about job chances
   -> Classification 3: other (greeting "Hi" - acknowledge but don't send follow-up)

C. When grouping answer messages, SUM UP numeric values if they represent parts of a total:
   Example: "2 years in Java" + "3 in JavaScript" + "2 years project management" = 7 years total

D. IGNORE casual greetings at the end of a batch when the main content is an answer:
   Example: ["I have 5 years experience", "Hi"]
   -> ONE classification: answer with "5 years", IGNORE "Hi" (don't create separate classification for trailing greetings)

Important Rules:
1. Classify messages in "latest_messages" as groups when they form a cohesive answer. Use "conversation_history" only as a read-only reference to find matching Eyepax questions.
2. First, identify all Eyepax questions in the history and determine which are already answered by earlier applicant messages. The remaining ones are the unanswered questions. The most recent unanswered Eyepax question is called the PENDING QUESTION.
3. By default, assume the latest messages respond to the PENDING QUESTION. Group all answer parts together unless content clearly matches a DIFFERENT question or is off-topic.
4. Only link answers/questions to previous Eyepax messages, never to applicant messages.
5. A batch of messages may answer MULTIPLE Eyepax questions - return a SEPARATE entry in the "classifications" array for EACH matched question (group messages per question).
6. A batch may contain BOTH answers and questions (e.g., "5 years experience. Is this role remote?"). Return one grouped "answer" entry and one "question" entry.
7. If the applicant asks a question that is genuinely relevant to the job, role, company, or interview process (e.g. salary, working hours, remote policy, benefits, office location), classify as "question" and set "related_message_id" to that Eyepax question's message_id.
   IMPORTANT DISTINCTION — two types of applicant questions about an Eyepax question:
   a) "What do you mean by notice period?" — the applicant does not understand the WORDING of the question. This is a clarification request the bot cannot resolve on its own. Classify as "other" (Case B2): follow_up_question = null so it escalates to a recruiter.
   b) "Is this role remote?" — a new job/process question the applicant is asking alongside or instead of answering. Classify as "question" (Case D): follow_up_question = null, routed to FAQ/recruiter process.
8. Classify as "answer" ONLY when the grouped messages genuinely provide the information the question asked for. If messages mention the topic but do not actually answer, classify as "other".
9. Do not invent information or assumptions. "extracted_answer" must contain only content actually present in the applicant's messages, intelligently combined.
10. When grouping answer messages, combine them naturally: sum numbers, merge related phrases, create a coherent answer.

Answer Type Rules:
17. Each message in the input may include "answer_type" (null for applicant messages; for Eyepax messages it is the expected answer format when the message is a screening question: number, currency, decimal, text, date, or boolean).
18. When classifying as "answer", set "answer_type" on the classification to the same value as the matched Eyepax question's "answer_type" from conversation_history (null only if that Eyepax message had no answer_type).
19. Format "extracted_answer" according to "answer_type":
    - **text**: EXACT COPY of the applicant's message - DO NOT modify, rephrase, correct grammar, or change wording. Accept whatever they wrote, even if it contains typos or errors.
      Example: User says "RAG is Retrieval Augmented Generation for AI" → extracted_answer = "RAG is Retrieval Augmented Generation for AI" (exact copy)
      Example: User says "i dont no" → extracted_answer = "i dont no" (keep typos, don't correct to "I don't know")
    - **number**: Extract ONLY the numeric digits (REMOVE units like "years", "months", "old", etc. but keep the number)
      Example: "40 years old" → "40"
      Example: "2 years experience" → "2"
      Example: "5" → "5"
    - **decimal**: Extract numeric string with optional decimal point, remove units
      Example: "3.5 years" → "3.5"
      Example: "2.75" → "2.75"
    - **currency**: Extract numeric amount only (REMOVE currency symbols, commas, and currency names)
      Example: "LKR 250,000" → "250000"
      Example: "$50,000" → "50000"
      Example: "250000.00" → "250000.00"
    - **boolean**: Convert to exactly "true" or "false" (lowercase)
      Example: "yes" → "true"
      Example: "no" → "false"
      Example: "yeah" → "true"
    - **date**: Convert to ISO date format "YYYY-MM-DD"
      Example: "Jan 15, 2024" → "2024-01-15"
      Example: "15/01/2024" → "2024-01-15"
20. For "question" and "other" classifications, set "answer_type" to null.
21. CRITICAL FOR TEXT ANSWERS: When answer_type is "text", the extracted_answer MUST be the EXACT verbatim text the applicant wrote. Do not:
    - Fix spelling or grammar
    - Rephrase or reword
    - Add punctuation
    - Translate to another language
    - Correct technical terms
    - Change case (uppercase/lowercase)
    The only exception: you may trim leading/trailing whitespace.
    Example: "rag server is for ai to get information from database" → extracted_answer = "rag server is for ai to get information from database" (exact copy, even without capitals)

WhatsApp-Specific Rules:
11. Expect short, informal messages with typos, abbreviations, and emojis. Interpret them charitably and GROUP related messages.
12. A bare "yes", "no", "ok", or thumbs-up emoji is an "answer" ONLY if the PENDING QUESTION is a yes/no question. Otherwise classify it as "other" (acknowledgement).
13. Media placeholders such as [voice note], [image], [document], [sticker] -> classify as "other" and explain in "reason".
14. If the applicant replies in a language other than English, still classify normally. Put the English translation of the grouped answer in "extracted_answer" and mention the original language in "reason".
15. When multiple messages continue an answer, GROUP them into ONE classification with combined extracted_answer.

Escalation Context Rules:
21. Each message in the conversation has "escalation_id" and "parent_escalation_id" fields. These track escalation chains — conversations that were previously handed off to a human recruiter.
    - "escalation_id" > 0 means this message was part of an escalation (e.g., a recruiter reply sent via escalation #1 will have escalation_id = 1).
    - "parent_escalation_id" > 0 means this message was a follow-up to a previous escalation.
    - When classifying as "question", look at the related Eyepax message's "escalation_id". If it is > 0, copy that value into the "parent_escalation_id" field of your classification output. This links the new question to the same escalation chain.
    - When classifying as "answer" or "other", set "parent_escalation_id" to 0.
    - If the related message has no escalation_id (= 0) or the question is about a completely new topic, set "parent_escalation_id" to 0.

Field Rules:
- For "answer":   related_message_id = message_id of the matched Eyepax question. parent_escalation_id = 0. extracted_answer = the GROUPED answer content (formatted per answer_type). answer_type = matched Eyepax question's answer_type. reason = brief note explaining grouping if multiple messages. grouped_message_ids = array of message_id values from latest_messages that were grouped into this answer. representative_message_id = the most complete/specific message from grouped_message_ids that best represents the extracted_answer.
- For "question": related_message_id = message_id of the related Eyepax message, or 0 if the question is about a completely new topic. parent_escalation_id = the escalation_id from the matched Eyepax message in conversation_history (or 0 if none). extracted_answer = null. answer_type = null. reason = brief explanation. grouped_message_ids = array of message_id values from latest_messages that form this question. representative_message_id = the message containing the actual question (not greetings or filler).
- For "other":    related_message_id = message_id of the PENDING QUESTION if one exists, otherwise 0. parent_escalation_id = 0. extracted_answer = null. answer_type = null. reason = brief explanation. grouped_message_ids = array of message_id values from latest_messages that are classified as "other". representative_message_id = the first message in the group.

CRITICAL: representative_message_id MUST be one of the values in grouped_message_ids array.

Follow-up Question Rules (per classification entry):
Every classification entry MUST include a "follow_up_question" field, determined as follows:

- Case A - Valid answer:
  The grouped messages fully answer the matched Eyepax question AND the answer is FEASIBLE and REASONABLE.
  
  CRITICAL VALIDATION RULES FOR "VALID" ANSWERS:
  Before setting follow_up_question = "Move to next Question", verify the answer is feasible:
  
  NOTE: These validation rules apply to NUMERIC, DATE, and BOOLEAN types. For TEXT answers, accept whatever the candidate writes - do not validate content quality, correctness, or completeness for text fields.
  
  1. Notice Period: Must be 0-6 months. Common values: immediate, 1 week, 2 weeks, 1 month, 2 months, 3 months.
     INVALID: 100 years, 50 months, 10 years → Classify as "other" and ask for clarification.
  
  2. Years of Experience: Must be 0-50 years. Maximum realistic working career is ~45 years.
     INVALID: 100 years, 200 years → Classify as "other" and ask for clarification.
  
  3. Age: Must be 16-80 years for job applicants.
     INVALID: 150 years, 5 years → Classify as "other" and ask for clarification.
  
  4. Salary Expectations: Must be reasonable for the job market (typically 10,000 - 50,000,000 in local currency).
     INVALID: 1, 999999999999 → Classify as "other" and ask for clarification.
  
  5. Boolean Questions (yes/no): Must be clear yes/no. "Maybe", "I think so", "not sure" are NOT valid.
     INVALID: maybe, perhaps, I don't know → Classify as "other" and ask for clarification.
  
  6. Date Questions: Must be a valid date in past/future as appropriate.
     INVALID: dates in year 3000, dates before 1950 for availability → Classify as "other".
  
  7. Text Questions: ACCEPT ALL TEXT ANSWERS verbatim without validation. Do NOT judge:
     - Grammar or spelling (accept "becouse i want to lern" as valid)
     - Technical correctness (accept wrong/incomplete explanations)
     - Length (accept short answers like "yes" or "good company")
     - Relevance (if they attempted to answer the question, accept it)
     Only reject text answers if completely off-topic or gibberish.
  
  8. General Rule for non-text: If the answer seems like a joke, sarcasm, or clearly impossible, classify as "other".
  
  If the answer is UNFEASIBLE or UNREASONABLE:
  - Classify as "other" (not "answer")
  - Set follow_up_question to a polite clarification request
  - Example: "I noticed you mentioned 100 years. Could you please provide your actual notice period? For example: immediate, 1 month, 2 months, etc."
  
  If the answer is FEASIBLE and REASONABLE:
  -> follow_up_question = "Move to next Question"  (this EXACT hardcoded string, nothing else)

- Case B - Related but does not answer (classified "other"):
  The messages are on-topic or partially relevant to the PENDING QUESTION but do not actually provide the requested information (vague, off-target, incomplete, unfeasible, unreasonable, or a non-answer acknowledgement).
  -> B1 - The reply is unclear, vague, incomplete, or UNFEASIBLE/UNREASONABLE and asking again could get the correct information:
     follow_up_question = a REPHRASED version of the PENDING QUESTION with guidance on what's expected: same meaning, different simpler wording, short and WhatsApp-friendly. Include examples of valid answers when the original answer was unreasonable.
     Example for "100 years" notice period: "Could you please provide your actual notice period? For example: immediate, 1 month, 2 months, etc."
  -> B2 - The reply is clear but you cannot decide a sensible next question (it needs a human recruiter: a decision, negotiation, an exception, or information Eyepax has not provided):
     follow_up_question = null. Never guess a question in this case, leave it null so the conversation is handed to a human, and state the reason in "reason".

- Case C - Totally irrelevant (classified "other"):
  The messages have no connection to any Eyepax question (spam, random content, unrelated chatter, unreadable media, or off-topic personal questions).
  SPECIAL: If it's just a trailing greeting like "Hi" after a valid answer, set follow_up_question = null and reason = "Trailing greeting after answer - ignored"
  For other irrelevant messages:
  -> follow_up_question = a short polite message asking the candidate to provide a relevant answer to the PENDING QUESTION, briefly restating what is needed. Example: "Sorry, I didn't quite get that. Could you please tell me your notice period?"

- Case D - Applicant question (classified "question"):
  Does NOT apply when the applicant's question is personal, off-topic, or has no connection to the interview — those are Case C "other".
  -> follow_up_question = null  (the applicant's question is handled by a separate process)

- If there is no PENDING QUESTION at all (nothing left unanswered), use "Move to next Question" for valid answers and null for everything else.

Input Format:
{
  "latest_messages": [
    {
      "message_id": <int>,
      "message_parent_id": <int>,
      "message_from": "<string>",
      "message_to": "<string>",
      "message": "<string>",
      "message_date_and_time": "<datetime>",
      "escalation_id": <int>,
      "parent_escalation_id": <int>,
      "answer_type": "<string>" | null
    }
  ],
  "conversation_history": [
    {
      "message_id": <int>,
      "message_parent_id": <int>,
      "message_from": "<string>",
      "message_to": "<string>",
      "message": "<string>",
      "message_date_and_time": "<datetime>",
      "escalation_id": <int>,
      "parent_escalation_id": <int>,
      "answer_type": "<string>" | null
    }
  ]
}

Output Format:
{
  "classifications": [
    {
      "type": "answer | question | other",
      "related_message_id": <int>,
      "parent_escalation_id": <int>,
      "extracted_answer": <string> | null,
      "answer_type": "<string>" | null,
      "reason": <string> | null,
      "follow_up_question": <string> | null,
      "grouped_message_ids": [<int>, <int>, ...],
      "representative_message_id": <int>
    }
  ]
}

CRITICAL: 
- Every classification MUST include "grouped_message_ids" array containing the message_id values from "latest_messages" that were grouped into this classification.
- Every classification MUST include "representative_message_id" - the most representative message from grouped_message_ids.
- representative_message_id MUST be one of the values in grouped_message_ids array.
- For "answer": Select the message that best represents the extracted_answer (most complete/specific).
- For "question": Select the message containing the actual question (not greetings).
- For "other": Select the first message in the group.

Return ONLY a valid JSON object. Do not echo or repeat the input data. Do not wrap the output in markdown code fences. Always return "classifications" as an array even if there is only one classification.

Batch Grouping Examples:

Example 1 - GROUP multiple answer messages:
History contains Eyepax question:
  id 101 (answer_type: "number"): "How many years of experience do you have?"
Latest applicant messages:
  id 110: "I have experience"
  id 111: "2 years in Java"
  id 112: "3 in JavaScript"
  id 113: "Also have experience in project management of 2 years"
  id 114: "in the IT fields"

Output:
{
  "classifications": [
    { 
      "type": "answer", 
      "related_message_id": 101, 
      "parent_escalation_id": 0, 
      "extracted_answer": "7", 
      "answer_type": "number", 
      "reason": "Grouped 5 messages: 2 years Java + 3 years JavaScript + 2 years project management = 7 years total in IT", 
      "follow_up_question": "Move to next Question",
      "grouped_message_ids": [110, 111, 112, 113, 114],
      "representative_message_id": 112
    }
  ]
}

Example 2 - GROUP answer, SEPARATE off-topic question and greeting:
History contains Eyepax question:
  id 201 (answer_type: "number"): "How many years of experience do you have?"
Latest applicant messages:
  id 210: "I have experience"
  id 211: "2 years in Java"
  id 212: "3 in JavaScript"
  id 213: "Can I get this job?"
  id 214: "Hi"

Output:
{
  "classifications": [
    { 
      "type": "answer", 
      "related_message_id": 201, 
      "parent_escalation_id": 0, 
      "extracted_answer": "5", 
      "answer_type": "number", 
      "reason": "Grouped 3 messages: 2 years Java + 3 years JavaScript = 5 years total", 
      "follow_up_question": "Move to next Question",
      "grouped_message_ids": [210, 211, 212],
      "representative_message_id": 211
    },
    { 
      "type": "question", 
      "related_message_id": 0, 
      "parent_escalation_id": 0, 
      "extracted_answer": null, 
      "answer_type": null, 
      "reason": "Applicant asks about job chances", 
      "follow_up_question": null,
      "grouped_message_ids": [213],
      "representative_message_id": 213
    },
    { 
      "type": "other", 
      "related_message_id": 201, 
      "parent_escalation_id": 0, 
      "extracted_answer": null, 
      "answer_type": null, 
      "reason": "Trailing greeting after answer - ignored", 
      "follow_up_question": null,
      "grouped_message_ids": [214],
      "representative_message_id": 214
    }
  ]
}

Example 3 - IGNORE trailing greeting when answer is complete:
History contains Eyepax question:
  id 301 (answer_type: "number"): "How many years of experience do you have?"
Latest applicant messages:
  id 310: "I have 5 years experience"
  id 311: "Hi"

Output:
{
  "classifications": [
    { 
      "type": "answer", 
      "related_message_id": 301, 
      "parent_escalation_id": 0, 
      "extracted_answer": "5", 
      "answer_type": "number", 
      "reason": "Complete answer provided, trailing greeting ignored", 
      "follow_up_question": "Move to next Question",
      "grouped_message_ids": [310],
      "representative_message_id": 310
    }
  ]
}

Example 4 - UNFEASIBLE answer requires follow-up:
History contains Eyepax question:
  id 401 (answer_type: "text"): "What is your notice period?"
Latest applicant messages:
  id 410: "100 years"

Output:
{
  "classifications": [
    { 
      "type": "other", 
      "related_message_id": 401, 
      "parent_escalation_id": 0, 
      "extracted_answer": null, 
      "answer_type": null, 
      "reason": "Unfeasible answer: 100 years is not a realistic notice period", 
      "follow_up_question": "I noticed you mentioned 100 years. Could you please provide your actual notice period? For example: immediate, 1 month, 2 months, etc.",
      "grouped_message_ids": [410],
      "representative_message_id": 410
    }
  ]
}

Example 5 - UNREASONABLE experience value:
History contains Eyepax question:
  id 501 (answer_type: "number"): "How many years of experience do you have?"
Latest applicant messages:
  id 510: "200 years"

Output:
{
  "classifications": [
    { 
      "type": "other", 
      "related_message_id": 501, 
      "parent_escalation_id": 0, 
      "extracted_answer": null, 
      "answer_type": null, 
      "reason": "Unreasonable answer: 200 years exceeds realistic working career", 
      "follow_up_question": "I noticed you mentioned 200 years. Could you please provide your actual years of experience? For example: 2 years, 5 years, 10 years, etc.",
      "grouped_message_ids": [510],
      "representative_message_id": 510
    }
  ]
}

Example 6 - VAGUE boolean answer:
History contains Eyepax question:
  id 601 (answer_type: "boolean"): "Are you available for immediate joining?"
Latest applicant messages:
  id 610: "Maybe"

Output:
{
  "classifications": [
    { 
      "type": "other", 
      "related_message_id": 601, 
      "parent_escalation_id": 0, 
      "extracted_answer": null, 
      "answer_type": null, 
      "reason": "Vague answer to yes/no question", 
      "follow_up_question": "Could you please confirm: Are you available for immediate joining? Please answer yes or no.",
      "grouped_message_ids": [610],
      "representative_message_id": 610
    }
  ]
}

Example 7 - NUMBER type extraction (remove units):
History contains Eyepax question:
  id 701 (answer_type: "number"): "What is your age?"
Latest applicant messages:
  id 710: "40 years old"

Output:
{
  "classifications": [
    { 
      "type": "answer", 
      "related_message_id": 701, 
      "parent_escalation_id": 0, 
      "extracted_answer": "40", 
      "answer_type": "number", 
      "reason": "Age provided, extracted numeric value", 
      "follow_up_question": "Move to next Question",
      "grouped_message_ids": [710],
      "representative_message_id": 710
    }
  ]
}

Example 8 - TEXT type EXACT COPY (no modification):
History contains Eyepax question:
  id 801 (answer_type: "text"): "What is RAG server?"
Latest applicant messages:
  id 810: "rag server is for ai to get information from database"

Output:
{
  "classifications": [
    { 
      "type": "answer", 
      "related_message_id": 801, 
      "parent_escalation_id": 0, 
      "extracted_answer": "rag server is for ai to get information from database", 
      "answer_type": "text", 
      "reason": "Text answer provided verbatim", 
      "follow_up_question": "Move to next Question",
      "grouped_message_ids": [810],
      "representative_message_id": 810
    }
  ]
}

Example 9 - TEXT with typos (keep EXACT):
History contains Eyepax question:
  id 901 (answer_type: "text"): "Why do you want to join our company?"
Latest applicant messages:
  id 910: "becouse i want to lern new technologys"

Output:
{
  "classifications": [
    { 
      "type": "answer", 
      "related_message_id": 901, 
      "parent_escalation_id": 0, 
      "extracted_answer": "becouse i want to lern new technologys", 
      "answer_type": "text", 
      "reason": "Text answer kept verbatim with original spelling", 
      "follow_up_question": "Move to next Question",
      "grouped_message_ids": [910],
      "representative_message_id": 910
    }
  ]
}

Example 10 - CURRENCY type extraction (remove symbols):
History contains Eyepax question:
  id 1001 (answer_type: "currency"): "What is your expected salary?"
Latest applicant messages:
  id 1010: "LKR 250,000"

Output:
{
  "classifications": [
    { 
      "type": "answer", 
      "related_message_id": 1001, 
      "parent_escalation_id": 0, 
      "extracted_answer": "250000", 
      "answer_type": "currency", 
      "reason": "Salary amount extracted without currency symbol and commas", 
      "follow_up_question": "Move to next Question",
      "grouped_message_ids": [1010],
      "representative_message_id": 1010
    }
  ]
}

[Input Messages as a JSON]


================================================================================

AI Input (BATCH):
{
  "latest_messages": [
    {
      "message_id": 3790,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "RT-34567",
      "message_date_and_time": "2026-10-20 12:22:04",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ],
  "conversation_history": [
    {
      "message_id": 3788,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Hi *Charith Wickramasinghe*,\n\nThank you for your interest in career opportunities with Eyepax and for taking the time to share your CV with us.\n\nWe're pleased to confirm we've received your application. Our team is reviewing your profile and will be in touch soon.\n\nWarm regards,\nEyepax Talent Acquisition Team",
      "message_date_and_time": "2026-10-20 12:21:50",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3789,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Hi *Charith Wickramasinghe*, could you please share your vacancy code so we can process your application faster?",
      "message_date_and_time": "2026-10-20 12:21:52",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ]
}

AI Response (BATCH):
{
  "classifications": [
    {
      "type": "answer",
      "related_message_id": 3789,
      "parent_escalation_id": 0,
      "extracted_answer": "RT-34567",
      "reason": "Applicant provided the requested vacancy code in response to the pending question",
      "grouped_message_ids": [
        3790
      ],
      "representative_message_id": 3790,
      "follow_up_question": "Move to next Question"
    }
  ]
}


================================================================================

AI Input (BATCH):
{
  "latest_messages": [
    {
      "message_id": 3792,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "From where can i get the vacancy code your istructions are not celar",
      "message_date_and_time": "2026-10-20 12:32:33",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ],
  "conversation_history": [
    {
      "message_id": 3788,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Hi *Charith Wickramasinghe*,\n\nThank you for your interest in career opportunities with Eyepax and for taking the time to share your CV with us.\n\nWe're pleased to confirm we've received your application. Our team is reviewing your profile and will be in touch soon.\n\nWarm regards,\nEyepax Talent Acquisition Team",
      "message_date_and_time": "2026-10-20 12:21:50",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3789,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Hi *Charith Wickramasinghe*, could you please share your vacancy code so we can process your application faster?",
      "message_date_and_time": "2026-10-20 12:21:52",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3790,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "RT-34567",
      "message_date_and_time": "2026-10-20 12:22:04",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3791,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Hi Charith Wickramasinghe, the vacancy code you provided is invalid.\n\nPlease visit our Careers page and check the available vacancies, then send us the correct vacancy code.\n\nCareers Page: [CAREERS_PAGE_URL]\n\nIf the vacancy you applied for is not suitable or is no longer available on the Careers page, but you would still like to apply for a suitable vacancy, reply with [VACANCY_CODE].",
      "message_date_and_time": "2026-10-20 12:22:43",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ]
}

AI Response (BATCH):
{
  "classifications": [
    {
      "type": "other",
      "related_message_id": 3791,
      "parent_escalation_id": 0,
      "extracted_answer": null,
      "reason": "Applicant is not answering the pending request for a correct vacancy code; they are asking for clarification on where to find the vacancy code and stating the instructions are unclear. This is a clarification request about Eyepax's own instructions that the bot cannot resolve, so it is escalated to a recruiter.",
      "grouped_message_ids": [
        3792
      ],
      "representative_message_id": 3792,
      "follow_up_question": null
    }
  ]
}


================================================================================

AI Input (BATCH):
{
  "latest_messages": [
    {
      "message_id": 3794,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "I went to the URL you sent, then i navigated to company page. But still cannot see the vacancy code or vacancy",
      "message_date_and_time": "2026-10-20 12:35:24",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ],
  "conversation_history": [
    {
      "message_id": 3788,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Hi *Charith Wickramasinghe*,\n\nThank you for your interest in career opportunities with Eyepax and for taking the time to share your CV with us.\n\nWe're pleased to confirm we've received your application. Our team is reviewing your profile and will be in touch soon.\n\nWarm regards,\nEyepax Talent Acquisition Team",
      "message_date_and_time": "2026-10-20 12:21:50",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3789,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Hi *Charith Wickramasinghe*, could you please share your vacancy code so we can process your application faster?",
      "message_date_and_time": "2026-10-20 12:21:52",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3790,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "RT-34567",
      "message_date_and_time": "2026-10-20 12:22:04",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3791,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Hi Charith Wickramasinghe, the vacancy code you provided is invalid.\n\nPlease visit our Careers page and check the available vacancies, then send us the correct vacancy code.\n\nCareers Page: [CAREERS_PAGE_URL]\n\nIf the vacancy you applied for is not suitable or is no longer available on the Careers page, but you would still like to apply for a suitable vacancy, reply with [VACANCY_CODE].",
      "message_date_and_time": "2026-10-20 12:22:43",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3792,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "From where can i get the vacancy code your istructions are not celar",
      "message_date_and_time": "2026-10-20 12:32:33",
      "escalation_id": 410,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3793,
      "message_parent_id": 3792,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Can you tell me the exact steps you followed",
      "message_date_and_time": "2026-10-20 12:34:17",
      "escalation_id": 410,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ]
}

AI Response (BATCH):
{
  "classifications": [
    {
      "type": "answer",
      "related_message_id": 3793,
      "parent_escalation_id": 0,
      "extracted_answer": "I went to the URL you sent, then i navigated to company page. But still cannot see the vacancy code or vacancy",
      "reason": "Applicant describes the exact steps followed on the Careers page, which directly answers Eyepax's pending question 'Can you tell me the exact steps you followed'",
      "grouped_message_ids": [
        3794
      ],
      "representative_message_id": 3794,
      "follow_up_question": "Move to next Question"
    }
  ]
}


================================================================================

AI Input (BATCH):
{
  "latest_messages": [
    {
      "message_id": 3795,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Is the steps i given are incorrect?",
      "message_date_and_time": "2026-10-20 12:36:48",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ],
  "conversation_history": [
    {
      "message_id": 3788,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Hi *Charith Wickramasinghe*,\n\nThank you for your interest in career opportunities with Eyepax and for taking the time to share your CV with us.\n\nWe're pleased to confirm we've received your application. Our team is reviewing your profile and will be in touch soon.\n\nWarm regards,\nEyepax Talent Acquisition Team",
      "message_date_and_time": "2026-10-20 12:21:50",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3789,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Hi *Charith Wickramasinghe*, could you please share your vacancy code so we can process your application faster?",
      "message_date_and_time": "2026-10-20 12:21:52",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3790,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "RT-34567",
      "message_date_and_time": "2026-10-20 12:22:04",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3791,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Hi Charith Wickramasinghe, the vacancy code you provided is invalid.\n\nPlease visit our Careers page and check the available vacancies, then send us the correct vacancy code.\n\nCareers Page: [CAREERS_PAGE_URL]\n\nIf the vacancy you applied for is not suitable or is no longer available on the Careers page, but you would still like to apply for a suitable vacancy, reply with [VACANCY_CODE].",
      "message_date_and_time": "2026-10-20 12:22:43",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3792,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "From where can i get the vacancy code your istructions are not celar",
      "message_date_and_time": "2026-10-20 12:32:33",
      "escalation_id": 410,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3793,
      "message_parent_id": 3792,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Can you tell me the exact steps you followed",
      "message_date_and_time": "2026-10-20 12:34:17",
      "escalation_id": 410,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3794,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "I went to the URL you sent, then i navigated to company page. But still cannot see the vacancy code or vacancy",
      "message_date_and_time": "2026-10-20 12:35:24",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ]
}

AI Response (BATCH):
{
  "classifications": [
    {
      "type": "question",
      "related_message_id": 3793,
      "parent_escalation_id": 410,
      "extracted_answer": null,
      "reason": "Applicant asks whether the steps they described are incorrect - a clarification question about the vacancy code application process, which continues the existing escalation chain",
      "grouped_message_ids": [
        3795
      ],
      "representative_message_id": 3795,
      "follow_up_question": null
    }
  ]
}


================================================================================

AI Input (BATCH):
{
  "latest_messages": [
    {
      "message_id": 3797,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Yes now i can see it vacancy code is EC-87",
      "message_date_and_time": "2026-10-20 12:39:48",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ],
  "conversation_history": [
    {
      "message_id": 3788,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Hi *Charith Wickramasinghe*,\n\nThank you for your interest in career opportunities with Eyepax and for taking the time to share your CV with us.\n\nWe're pleased to confirm we've received your application. Our team is reviewing your profile and will be in touch soon.\n\nWarm regards,\nEyepax Talent Acquisition Team",
      "message_date_and_time": "2026-10-20 12:21:50",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3789,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Hi *Charith Wickramasinghe*, could you please share your vacancy code so we can process your application faster?",
      "message_date_and_time": "2026-10-20 12:21:52",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3790,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "RT-34567",
      "message_date_and_time": "2026-10-20 12:22:04",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3791,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Hi Charith Wickramasinghe, the vacancy code you provided is invalid.\n\nPlease visit our Careers page and check the available vacancies, then send us the correct vacancy code.\n\nCareers Page: [CAREERS_PAGE_URL]\n\nIf the vacancy you applied for is not suitable or is no longer available on the Careers page, but you would still like to apply for a suitable vacancy, reply with [VACANCY_CODE].",
      "message_date_and_time": "2026-10-20 12:22:43",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3792,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "From where can i get the vacancy code your istructions are not celar",
      "message_date_and_time": "2026-10-20 12:32:33",
      "escalation_id": 410,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3793,
      "message_parent_id": 3792,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Can you tell me the exact steps you followed",
      "message_date_and_time": "2026-10-20 12:34:17",
      "escalation_id": 410,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3794,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "I went to the URL you sent, then i navigated to company page. But still cannot see the vacancy code or vacancy",
      "message_date_and_time": "2026-10-20 12:35:24",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3795,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Is the steps i given are incorrect?",
      "message_date_and_time": "2026-10-20 12:36:48",
      "escalation_id": 411,
      "parent_escalation_id": 410,
      "answer_type": "text"
    },
    {
      "message_id": 3796,
      "message_parent_id": 3795,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Yes you have to go exact carrer site mentioned above. Scroll down, select the vacancy you applied and navigate inside\nunder the title you can see the vacancy code please send it",
      "message_date_and_time": "2026-10-20 12:39:12",
      "escalation_id": 411,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ]
}

AI Response (BATCH):
{
  "classifications": [
    {
      "type": "answer",
      "related_message_id": 3796,
      "parent_escalation_id": 0,
      "extracted_answer": "EC-87",
      "reason": "Applicant confirms they can now see the vacancy and provides the vacancy code requested in Eyepax's latest instruction (message 3796, originally requested in 3789).",
      "grouped_message_ids": [
        3797
      ],
      "representative_message_id": 3797,
      "follow_up_question": "Move to next Question"
    }
  ]
}


================================================================================

AI Input (BATCH):
{
  "latest_messages": [
    {
      "message_id": 3798,
      "message_parent_id": 3789,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Yes now i can see it vacancy code is EC-87",
      "message_date_and_time": "2026-10-20 12:41:43",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ],
  "conversation_history": [
    {
      "message_id": 3788,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Hi *Charith Wickramasinghe*,\n\nThank you for your interest in career opportunities with Eyepax and for taking the time to share your CV with us.\n\nWe're pleased to confirm we've received your application. Our team is reviewing your profile and will be in touch soon.\n\nWarm regards,\nEyepax Talent Acquisition Team",
      "message_date_and_time": "2026-10-20 12:21:50",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3789,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Hi *Charith Wickramasinghe*, could you please share your vacancy code so we can process your application faster?",
      "message_date_and_time": "2026-10-20 12:21:52",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3790,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "RT-34567",
      "message_date_and_time": "2026-10-20 12:22:04",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3791,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Hi Charith Wickramasinghe, the vacancy code you provided is invalid.\n\nPlease visit our Careers page and check the available vacancies, then send us the correct vacancy code.\n\nCareers Page: [CAREERS_PAGE_URL]\n\nIf the vacancy you applied for is not suitable or is no longer available on the Careers page, but you would still like to apply for a suitable vacancy, reply with [VACANCY_CODE].",
      "message_date_and_time": "2026-10-20 12:22:43",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3792,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "From where can i get the vacancy code your istructions are not celar",
      "message_date_and_time": "2026-10-20 12:32:33",
      "escalation_id": 410,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3793,
      "message_parent_id": 3792,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Can you tell me the exact steps you followed",
      "message_date_and_time": "2026-10-20 12:34:17",
      "escalation_id": 410,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3794,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "I went to the URL you sent, then i navigated to company page. But still cannot see the vacancy code or vacancy",
      "message_date_and_time": "2026-10-20 12:35:24",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3795,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Is the steps i given are incorrect?",
      "message_date_and_time": "2026-10-20 12:36:48",
      "escalation_id": 411,
      "parent_escalation_id": 410,
      "answer_type": "text"
    },
    {
      "message_id": 3796,
      "message_parent_id": 3795,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Yes you have to go exact carrer site mentioned above. Scroll down, select the vacancy you applied and navigate inside\nunder the title you can see the vacancy code please send it",
      "message_date_and_time": "2026-10-20 12:39:12",
      "escalation_id": 411,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3797,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Yes now i can see it vacancy code is EC-87",
      "message_date_and_time": "2026-10-20 12:39:48",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ]
}

AI Response (BATCH):
{
  "classifications": [
    {
      "type": "answer",
      "related_message_id": 3789,
      "parent_escalation_id": 0,
      "extracted_answer": "EC-87",
      "reason": "Applicant confirms they can now see the vacancy on the careers page and provides the vacancy code EC-87, which answers Eyepax's request for the vacancy code (message 3789). This repeats the same reply sent earlier at message 3797.",
      "grouped_message_ids": [
        3798
      ],
      "representative_message_id": 3798,
      "follow_up_question": "Move to next Question"
    }
  ]
}


================================================================================

AI Input (BATCH):
{
  "latest_messages": [
    {
      "message_id": 3800,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "System developer",
      "message_date_and_time": "2026-10-20 12:44:38",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ],
  "conversation_history": [
    {
      "message_id": 3790,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "RT-34567",
      "message_date_and_time": "2026-10-20 12:22:04",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3791,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Hi Charith Wickramasinghe, the vacancy code you provided is invalid.\n\nPlease visit our Careers page and check the available vacancies, then send us the correct vacancy code.\n\nCareers Page: [CAREERS_PAGE_URL]\n\nIf the vacancy you applied for is not suitable or is no longer available on the Careers page, but you would still like to apply for a suitable vacancy, reply with [VACANCY_CODE].",
      "message_date_and_time": "2026-10-20 12:22:43",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3792,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "From where can i get the vacancy code your istructions are not celar",
      "message_date_and_time": "2026-10-20 12:32:33",
      "escalation_id": 410,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3793,
      "message_parent_id": 3792,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Can you tell me the exact steps you followed",
      "message_date_and_time": "2026-10-20 12:34:17",
      "escalation_id": 410,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3794,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "I went to the URL you sent, then i navigated to company page. But still cannot see the vacancy code or vacancy",
      "message_date_and_time": "2026-10-20 12:35:24",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3795,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Is the steps i given are incorrect?",
      "message_date_and_time": "2026-10-20 12:36:48",
      "escalation_id": 411,
      "parent_escalation_id": 410,
      "answer_type": "text"
    },
    {
      "message_id": 3796,
      "message_parent_id": 3795,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Yes you have to go exact carrer site mentioned above. Scroll down, select the vacancy you applied and navigate inside\nunder the title you can see the vacancy code please send it",
      "message_date_and_time": "2026-10-20 12:39:12",
      "escalation_id": 411,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3797,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Yes now i can see it vacancy code is EC-87",
      "message_date_and_time": "2026-10-20 12:39:48",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3798,
      "message_parent_id": 3789,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Yes now i can see it vacancy code is EC-87",
      "message_date_and_time": "2026-10-20 12:41:43",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3799,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "What is your current role?",
      "message_date_and_time": "2026-10-20 12:44:22",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ]
}

AI Response (BATCH):
{
  "classifications": [
    {
      "type": "answer",
      "related_message_id": 3799,
      "parent_escalation_id": 0,
      "extracted_answer": "System developer",
      "answer_type": "text",
      "reason": "Directly answers the pending question about current role, copied verbatim",
      "grouped_message_ids": [
        3800
      ],
      "representative_message_id": 3800,
      "follow_up_question": "Move to next Question"
    }
  ]
}


================================================================================

AI Input (BATCH):
{
  "latest_messages": [
    {
      "message_id": 3802,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "7 years and 10 months",
      "message_date_and_time": "2026-10-20 12:45:54",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ],
  "conversation_history": [
    {
      "message_id": 3792,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "From where can i get the vacancy code your istructions are not celar",
      "message_date_and_time": "2026-10-20 12:32:33",
      "escalation_id": 410,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3793,
      "message_parent_id": 3792,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Can you tell me the exact steps you followed",
      "message_date_and_time": "2026-10-20 12:34:17",
      "escalation_id": 410,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3794,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "I went to the URL you sent, then i navigated to company page. But still cannot see the vacancy code or vacancy",
      "message_date_and_time": "2026-10-20 12:35:24",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3795,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Is the steps i given are incorrect?",
      "message_date_and_time": "2026-10-20 12:36:48",
      "escalation_id": 411,
      "parent_escalation_id": 410,
      "answer_type": "text"
    },
    {
      "message_id": 3796,
      "message_parent_id": 3795,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Yes you have to go exact carrer site mentioned above. Scroll down, select the vacancy you applied and navigate inside\nunder the title you can see the vacancy code please send it",
      "message_date_and_time": "2026-10-20 12:39:12",
      "escalation_id": 411,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3797,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Yes now i can see it vacancy code is EC-87",
      "message_date_and_time": "2026-10-20 12:39:48",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3798,
      "message_parent_id": 3789,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Yes now i can see it vacancy code is EC-87",
      "message_date_and_time": "2026-10-20 12:41:43",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3799,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "What is your current role?",
      "message_date_and_time": "2026-10-20 12:44:22",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3800,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "System developer",
      "message_date_and_time": "2026-10-20 12:44:38",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3801,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "How many years of experience do you have?",
      "message_date_and_time": "2026-10-20 12:45:25",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "number"
    }
  ]
}

AI Response (BATCH):
{
  "classifications": [
    {
      "type": "answer",
      "related_message_id": 3801,
      "parent_escalation_id": 0,
      "extracted_answer": "7",
      "answer_type": "number",
      "reason": "Answers the pending experience question with 7 years and 10 months; extracted the numeric years value (10 months noted but removed as a unit per number formatting rules)",
      "grouped_message_ids": [
        3802
      ],
      "representative_message_id": 3802,
      "follow_up_question": "Move to next Question"
    }
  ]
}


================================================================================

AI Input (BATCH):
{
  "latest_messages": [
    {
      "message_id": 3804,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "I work as a waiter",
      "message_date_and_time": "2026-10-20 12:47:08",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ],
  "conversation_history": [
    {
      "message_id": 3794,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "I went to the URL you sent, then i navigated to company page. But still cannot see the vacancy code or vacancy",
      "message_date_and_time": "2026-10-20 12:35:24",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3795,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Is the steps i given are incorrect?",
      "message_date_and_time": "2026-10-20 12:36:48",
      "escalation_id": 411,
      "parent_escalation_id": 410,
      "answer_type": "text"
    },
    {
      "message_id": 3796,
      "message_parent_id": 3795,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Yes you have to go exact carrer site mentioned above. Scroll down, select the vacancy you applied and navigate inside\nunder the title you can see the vacancy code please send it",
      "message_date_and_time": "2026-10-20 12:39:12",
      "escalation_id": 411,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3797,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Yes now i can see it vacancy code is EC-87",
      "message_date_and_time": "2026-10-20 12:39:48",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3798,
      "message_parent_id": 3789,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Yes now i can see it vacancy code is EC-87",
      "message_date_and_time": "2026-10-20 12:41:43",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3799,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "What is your current role?",
      "message_date_and_time": "2026-10-20 12:44:22",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3800,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "System developer",
      "message_date_and_time": "2026-10-20 12:44:38",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3801,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "How many years of experience do you have?",
      "message_date_and_time": "2026-10-20 12:45:25",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "number"
    },
    {
      "message_id": 3802,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "7 years and 10 months",
      "message_date_and_time": "2026-10-20 12:45:54",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3803,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Which programming languages have you worked with?",
      "message_date_and_time": "2026-10-20 12:46:38",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ]
}

AI Response (BATCH):
{
  "classifications": [
    {
      "type": "other",
      "related_message_id": 3803,
      "parent_escalation_id": 0,
      "extracted_answer": null,
      "reason": "Applicant replies about their job role (waiter) instead of listing programming languages — does not answer the pending question",
      "grouped_message_ids": [
        3804
      ],
      "representative_message_id": 3804,
      "follow_up_question": "Sorry, I didn't quite get that. Could you please list the programming languages you have worked with? For example: Java, JavaScript, Python, etc."
    }
  ]
}


================================================================================

AI Input (BATCH):
{
  "latest_messages": [
    {
      "message_id": 3806,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Java, JavaScript, Python",
      "message_date_and_time": "2026-10-20 12:48:16",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3807,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": ",net",
      "message_date_and_time": "2026-10-20 12:48:28",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3808,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "go lang",
      "message_date_and_time": "2026-10-20 12:48:35",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ],
  "conversation_history": [
    {
      "message_id": 3796,
      "message_parent_id": 3795,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Yes you have to go exact carrer site mentioned above. Scroll down, select the vacancy you applied and navigate inside\nunder the title you can see the vacancy code please send it",
      "message_date_and_time": "2026-10-20 12:39:12",
      "escalation_id": 411,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3797,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Yes now i can see it vacancy code is EC-87",
      "message_date_and_time": "2026-10-20 12:39:48",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3798,
      "message_parent_id": 3789,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Yes now i can see it vacancy code is EC-87",
      "message_date_and_time": "2026-10-20 12:41:43",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3799,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "What is your current role?",
      "message_date_and_time": "2026-10-20 12:44:22",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3800,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "System developer",
      "message_date_and_time": "2026-10-20 12:44:38",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3801,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "How many years of experience do you have?",
      "message_date_and_time": "2026-10-20 12:45:25",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "number"
    },
    {
      "message_id": 3802,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "7 years and 10 months",
      "message_date_and_time": "2026-10-20 12:45:54",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3803,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Which programming languages have you worked with?",
      "message_date_and_time": "2026-10-20 12:46:38",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3804,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "I work as a waiter",
      "message_date_and_time": "2026-10-20 12:47:08",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3805,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Sorry, I didn't quite get that. Could you please list the programming languages you have worked with? For example: Java, JavaScript, Python, etc.",
      "message_date_and_time": "2026-10-20 12:47:43",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ]
}

AI Response (BATCH):
{
  "classifications": [
    {
      "type": "answer",
      "related_message_id": 3803,
      "parent_escalation_id": 0,
      "extracted_answer": "Java, JavaScript, Python, .net, go lang",
      "answer_type": "text",
      "reason": "Grouped 3 rapid messages listing programming languages: Java, JavaScript, Python, .net, go lang (re-asked question at message 3805)",
      "grouped_message_ids": [
        3806,
        3807,
        3808
      ],
      "representative_message_id": 3806,
      "follow_up_question": "Move to next Question"
    }
  ]
}


================================================================================

AI Input (BATCH):
{
  "latest_messages": [
    {
      "message_id": 3810,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Yes/No",
      "message_date_and_time": "2026-10-20 12:49:59",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3811,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Yes/No",
      "message_date_and_time": "2026-10-20 12:50:00",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ],
  "conversation_history": [
    {
      "message_id": 3800,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "System developer",
      "message_date_and_time": "2026-10-20 12:44:38",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3801,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "How many years of experience do you have?",
      "message_date_and_time": "2026-10-20 12:45:25",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "number"
    },
    {
      "message_id": 3802,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "7 years and 10 months",
      "message_date_and_time": "2026-10-20 12:45:54",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3803,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Which programming languages have you worked with?",
      "message_date_and_time": "2026-10-20 12:46:38",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3804,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "I work as a waiter",
      "message_date_and_time": "2026-10-20 12:47:08",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3805,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Sorry, I didn't quite get that. Could you please list the programming languages you have worked with? For example: Java, JavaScript, Python, etc.",
      "message_date_and_time": "2026-10-20 12:47:43",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3806,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Java, JavaScript, Python",
      "message_date_and_time": "2026-10-20 12:48:16",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3807,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": ",net",
      "message_date_and_time": "2026-10-20 12:48:28",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3808,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "go lang",
      "message_date_and_time": "2026-10-20 12:48:35",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3809,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Have you worked with databases and developed APIs before?(Yes/No)",
      "message_date_and_time": "2026-10-20 12:49:22",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    }
  ]
}

AI Response (BATCH):
{
  "classifications": [
    {
      "type": "other",
      "related_message_id": 3809,
      "parent_escalation_id": 0,
      "extracted_answer": null,
      "reason": "Applicant echoed the prompt text \"Yes/No\" twice instead of giving a clear yes or no, so the boolean question remains unanswered",
      "grouped_message_ids": [
        3810,
        3811
      ],
      "representative_message_id": 3810,
      "follow_up_question": "Could you please confirm: have you worked with databases and developed APIs before? Please answer yes or no."
    }
  ]
}


================================================================================

AI Input (BATCH):
{
  "latest_messages": [
    {
      "message_id": 3813,
      "message_parent_id": 3801,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Sorry i have 5 years of experiance as a system developer",
      "message_date_and_time": "2026-10-20 12:51:18",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3814,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "1 year as an intern",
      "message_date_and_time": "2026-10-20 12:51:24",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3815,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "2 and half years as a QA",
      "message_date_and_time": "2026-10-20 12:51:32",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3816,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "1 .5 years as  a CFO",
      "message_date_and_time": "2026-10-20 12:51:42",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ],
  "conversation_history": [
    {
      "message_id": 3812,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Could you please confirm: have you worked with databases and developed APIs before? Please answer yes or no.",
      "message_date_and_time": "2026-10-20 12:50:36",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 3811,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Yes/No",
      "message_date_and_time": "2026-10-20 12:50:00",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3810,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Yes/No",
      "message_date_and_time": "2026-10-20 12:49:59",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3809,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Have you worked with databases and developed APIs before?(Yes/No)",
      "message_date_and_time": "2026-10-20 12:49:22",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 3808,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "go lang",
      "message_date_and_time": "2026-10-20 12:48:35",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3807,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": ",net",
      "message_date_and_time": "2026-10-20 12:48:28",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3806,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Java, JavaScript, Python",
      "message_date_and_time": "2026-10-20 12:48:16",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3805,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Sorry, I didn't quite get that. Could you please list the programming languages you have worked with? For example: Java, JavaScript, Python, etc.",
      "message_date_and_time": "2026-10-20 12:47:43",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3804,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "I work as a waiter",
      "message_date_and_time": "2026-10-20 12:47:08",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3803,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Which programming languages have you worked with?",
      "message_date_and_time": "2026-10-20 12:46:38",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3801,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "How many years of experience do you have?",
      "message_date_and_time": "2026-10-20 12:45:25",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "number"
    }
  ]
}

AI Response (BATCH):
{
  "classifications": [
    {
      "type": "answer",
      "related_message_id": 3801,
      "parent_escalation_id": 0,
      "extracted_answer": "10",
      "answer_type": "number",
      "reason": "Grouped 4 messages answering the years-of-experience question: 5 years as system developer + 1 year as intern + 2.5 years as QA + 1.5 years as CFO = 10 years total",
      "grouped_message_ids": [
        3813,
        3814,
        3815,
        3816
      ],
      "representative_message_id": 3813,
      "follow_up_question": "Move to next Question"
    }
  ]
}


================================================================================

AI Input (BATCH):
{
  "latest_messages": [
    {
      "message_id": 3817,
      "message_parent_id": 3809,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Database Yes",
      "message_date_and_time": "2026-10-20 12:53:23",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3818,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "API No",
      "message_date_and_time": "2026-10-20 12:53:26",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ],
  "conversation_history": [
    {
      "message_id": 3807,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": ",net",
      "message_date_and_time": "2026-10-20 12:48:28",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3808,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "go lang",
      "message_date_and_time": "2026-10-20 12:48:35",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3809,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Have you worked with databases and developed APIs before?(Yes/No)",
      "message_date_and_time": "2026-10-20 12:49:22",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 3810,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Yes/No",
      "message_date_and_time": "2026-10-20 12:49:59",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3811,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Yes/No",
      "message_date_and_time": "2026-10-20 12:50:00",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3812,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Could you please confirm: have you worked with databases and developed APIs before? Please answer yes or no.",
      "message_date_and_time": "2026-10-20 12:50:36",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 3813,
      "message_parent_id": 3801,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Sorry i have 5 years of experiance as a system developer",
      "message_date_and_time": "2026-10-20 12:51:18",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3814,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "1 year as an intern",
      "message_date_and_time": "2026-10-20 12:51:24",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3815,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "2 and half years as a QA",
      "message_date_and_time": "2026-10-20 12:51:32",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3816,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "1 .5 years as  a CFO",
      "message_date_and_time": "2026-10-20 12:51:42",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ]
}

AI Response (BATCH):
{
  "classifications": [
    {
      "type": "other",
      "related_message_id": 3812,
      "parent_escalation_id": 0,
      "extracted_answer": null,
      "reason": "Applicant gave a split answer (databases: yes, APIs: no) to a boolean question that requires a single clear yes/no, so it cannot be resolved to one boolean value",
      "grouped_message_ids": [
        3817,
        3818
      ],
      "representative_message_id": 3817,
      "follow_up_question": "Thanks for clarifying. Just to confirm overall: have you worked with databases AND developed APIs before? Please answer yes or no."
    }
  ]
}


================================================================================

AI Input (BATCH):
{
  "latest_messages": [
    {
      "message_id": 3820,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Database Yes",
      "message_date_and_time": "2026-10-20 12:55:45",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3821,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "API No",
      "message_date_and_time": "2026-10-20 12:55:50",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ],
  "conversation_history": [
    {
      "message_id": 3810,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Yes/No",
      "message_date_and_time": "2026-10-20 12:49:59",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3811,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Yes/No",
      "message_date_and_time": "2026-10-20 12:50:00",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3812,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Could you please confirm: have you worked with databases and developed APIs before? Please answer yes or no.",
      "message_date_and_time": "2026-10-20 12:50:36",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 3813,
      "message_parent_id": 3801,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Sorry i have 5 years of experiance as a system developer",
      "message_date_and_time": "2026-10-20 12:51:18",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3814,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "1 year as an intern",
      "message_date_and_time": "2026-10-20 12:51:24",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3815,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "2 and half years as a QA",
      "message_date_and_time": "2026-10-20 12:51:32",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3816,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "1 .5 years as  a CFO",
      "message_date_and_time": "2026-10-20 12:51:42",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3817,
      "message_parent_id": 3809,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Database Yes",
      "message_date_and_time": "2026-10-20 12:53:23",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3818,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "API No",
      "message_date_and_time": "2026-10-20 12:53:26",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3819,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Thanks for clarifying. Just to confirm overall: have you worked with databases AND developed APIs before? Please answer yes or no.",
      "message_date_and_time": "2026-10-20 12:54:03",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    }
  ]
}

AI Response (BATCH):
{
  "classifications": [
    {
      "type": "answer",
      "related_message_id": 3819,
      "parent_escalation_id": 0,
      "extracted_answer": "false",
      "answer_type": "boolean",
      "reason": "Grouped 2 messages splitting the AND question: databases = Yes, APIs = No, so overall (both databases AND APIs) = false",
      "grouped_message_ids": [
        3820,
        3821
      ],
      "representative_message_id": 3820,
      "follow_up_question": "Move to next Question"
    }
  ]
}


================================================================================

AI Input (BATCH):
{
  "latest_messages": [
    {
      "message_id": 3823,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "1",
      "message_date_and_time": "2026-10-20 12:57:22",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ],
  "conversation_history": [
    {
      "message_id": 3813,
      "message_parent_id": 3801,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Sorry i have 5 years of experiance as a system developer",
      "message_date_and_time": "2026-10-20 12:51:18",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3814,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "1 year as an intern",
      "message_date_and_time": "2026-10-20 12:51:24",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3815,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "2 and half years as a QA",
      "message_date_and_time": "2026-10-20 12:51:32",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3816,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "1 .5 years as  a CFO",
      "message_date_and_time": "2026-10-20 12:51:42",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3817,
      "message_parent_id": 3809,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Database Yes",
      "message_date_and_time": "2026-10-20 12:53:23",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3818,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "API No",
      "message_date_and_time": "2026-10-20 12:53:26",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3819,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Thanks for clarifying. Just to confirm overall: have you worked with databases AND developed APIs before? Please answer yes or no.",
      "message_date_and_time": "2026-10-20 12:54:03",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 3820,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Database Yes",
      "message_date_and_time": "2026-10-20 12:55:45",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3821,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "API No",
      "message_date_and_time": "2026-10-20 12:55:50",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3822,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "What is your notice period?",
      "message_date_and_time": "2026-10-20 12:56:33",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ]
}

AI Response (BATCH):
{
  "classifications": [
    {
      "type": "answer",
      "related_message_id": 3822,
      "parent_escalation_id": 0,
      "extracted_answer": "1",
      "answer_type": "text",
      "reason": "Applicant replied '1' to the notice period question; text answer accepted verbatim.",
      "grouped_message_ids": [
        3823
      ],
      "representative_message_id": 3823,
      "follow_up_question": "Move to next Question"
    }
  ]
}


================================================================================

AI Input (BATCH):
{
  "latest_messages": [
    {
      "message_id": 3825,
      "message_parent_id": 3822,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "actually",
      "message_date_and_time": "2026-10-20 12:58:57",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3826,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "it's",
      "message_date_and_time": "2026-10-20 12:58:59",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3827,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "1",
      "message_date_and_time": "2026-10-20 12:59:00",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3828,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "month",
      "message_date_and_time": "2026-10-20 12:59:02",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3829,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "message was sent",
      "message_date_and_time": "2026-10-20 12:59:08",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3830,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "before i aswer",
      "message_date_and_time": "2026-10-20 12:59:12",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ],
  "conversation_history": [
    {
      "message_id": 3815,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "2 and half years as a QA",
      "message_date_and_time": "2026-10-20 12:51:32",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3816,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "1 .5 years as  a CFO",
      "message_date_and_time": "2026-10-20 12:51:42",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3817,
      "message_parent_id": 3809,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Database Yes",
      "message_date_and_time": "2026-10-20 12:53:23",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3818,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "API No",
      "message_date_and_time": "2026-10-20 12:53:26",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3819,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Thanks for clarifying. Just to confirm overall: have you worked with databases AND developed APIs before? Please answer yes or no.",
      "message_date_and_time": "2026-10-20 12:54:03",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 3820,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Database Yes",
      "message_date_and_time": "2026-10-20 12:55:45",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3821,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "API No",
      "message_date_and_time": "2026-10-20 12:55:50",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3822,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "What is your notice period?",
      "message_date_and_time": "2026-10-20 12:56:33",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3823,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "1",
      "message_date_and_time": "2026-10-20 12:57:22",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3824,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "✅ Thank you for completing the Short Listed interview stage! We will review your answers and get back to you soon.",
      "message_date_and_time": "2026-10-20 12:58:10",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ]
}

AI Response (BATCH):
{
  "classifications": [
    {
      "type": "answer",
      "related_message_id": 3822,
      "parent_escalation_id": 0,
      "extracted_answer": "actually it's 1 month",
      "answer_type": "text",
      "reason": "Grouped 4 messages (3825-3828) that together clarify the notice period as 1 month, confirming/correcting the earlier ambiguous '1' sent in reply to the notice period question",
      "grouped_message_ids": [
        3825,
        3826,
        3827,
        3828
      ],
      "representative_message_id": 3828,
      "follow_up_question": "Move to next Question"
    },
    {
      "type": "other",
      "related_message_id": 3822,
      "parent_escalation_id": 0,
      "extracted_answer": null,
      "reason": "Meta-comment about message timing ('message was sent before i answer') - no additional answer content, and the interview stage has already been confirmed complete by Eyepax",
      "grouped_message_ids": [
        3829,
        3830
      ],
      "representative_message_id": 3829,
      "follow_up_question": null
    }
  ]
}


================================================================================

AI Input (BATCH):
{
  "latest_messages": [
    {
      "message_id": 3832,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Yes.",
      "message_date_and_time": "2026-10-20 13:03:04",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3833,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "I have worked with many agile teams.",
      "message_date_and_time": "2026-10-20 13:03:10",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3834,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "And i have attended their sprint process such as.",
      "message_date_and_time": "2026-10-20 13:03:15",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3835,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Sprint planning,",
      "message_date_and_time": "2026-10-20 13:03:20",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3836,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "sprint retro,",
      "message_date_and_time": "2026-10-20 13:03:24",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3837,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "daily stand up,",
      "message_date_and_time": "2026-10-20 13:03:28",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3838,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "backlog groomming",
      "message_date_and_time": "2026-10-20 13:03:30",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ],
  "conversation_history": [
    {
      "message_id": 3822,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "What is your notice period?",
      "message_date_and_time": "2026-10-20 12:56:33",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3823,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "1",
      "message_date_and_time": "2026-10-20 12:57:22",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3824,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "✅ Thank you for completing the Short Listed interview stage! We will review your answers and get back to you soon.",
      "message_date_and_time": "2026-10-20 12:58:10",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3825,
      "message_parent_id": 3822,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "actually",
      "message_date_and_time": "2026-10-20 12:58:57",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3826,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "it's",
      "message_date_and_time": "2026-10-20 12:58:59",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3827,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "1",
      "message_date_and_time": "2026-10-20 12:59:00",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3828,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "month",
      "message_date_and_time": "2026-10-20 12:59:02",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3829,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "message was sent",
      "message_date_and_time": "2026-10-20 12:59:08",
      "escalation_id": 412,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3830,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "before i aswer",
      "message_date_and_time": "2026-10-20 12:59:12",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3831,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Are you comfortable working in a team?(Yes/No)",
      "message_date_and_time": "2026-10-20 13:01:03",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    }
  ]
}

AI Response (BATCH):
{
  "classifications": [
    {
      "type": "answer",
      "related_message_id": 3831,
      "parent_escalation_id": 0,
      "extracted_answer": "true",
      "answer_type": "boolean",
      "reason": "Grouped 7 messages: clear 'Yes' plus supporting detail about working with many agile teams and attending sprint planning, sprint retro, daily stand-up, and backlog grooming; all respond to the team-comfort boolean question.",
      "grouped_message_ids": [
        3832,
        3833,
        3834,
        3835,
        3836,
        3837,
        3838
      ],
      "representative_message_id": 3832,
      "follow_up_question": "Move to next Question"
    }
  ]
}


================================================================================

AI Input (BATCH):
{
  "latest_messages": [
    {
      "message_id": 3840,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "1.Java\n2.Python\n3.PHP\n4.Selenium\n5.Pytest\n6.Playwright",
      "message_date_and_time": "2026-10-20 13:05:22",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ],
  "conversation_history": [
    {
      "message_id": 3830,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "before i aswer",
      "message_date_and_time": "2026-10-20 12:59:12",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3831,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Are you comfortable working in a team?(Yes/No)",
      "message_date_and_time": "2026-10-20 13:01:03",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 3832,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Yes.",
      "message_date_and_time": "2026-10-20 13:03:04",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3833,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "I have worked with many agile teams.",
      "message_date_and_time": "2026-10-20 13:03:10",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3834,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "And i have attended their sprint process such as.",
      "message_date_and_time": "2026-10-20 13:03:15",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3835,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Sprint planning,",
      "message_date_and_time": "2026-10-20 13:03:20",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3836,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "sprint retro,",
      "message_date_and_time": "2026-10-20 13:03:24",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3837,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "daily stand up,",
      "message_date_and_time": "2026-10-20 13:03:28",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3838,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "backlog groomming",
      "message_date_and_time": "2026-10-20 13:03:30",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3839,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "What frameworks and programming languages have you used the most?",
      "message_date_and_time": "2026-10-20 13:04:15",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ]
}

AI Response (BATCH):
{
  "classifications": [
    {
      "type": "answer",
      "related_message_id": 3839,
      "parent_escalation_id": 0,
      "extracted_answer": "1.Java\n2.Python\n3.PHP\n4.Selenium\n5.Pytest\n6.Playwright",
      "answer_type": "text",
      "reason": "Applicant answered the pending question about frameworks and programming languages with a numbered list; kept verbatim as required for text answers",
      "grouped_message_ids": [
        3840
      ],
      "representative_message_id": 3840,
      "follow_up_question": "Move to next Question"
    }
  ]
}


================================================================================

AI Input (BATCH):
{
  "latest_messages": [
    {
      "message_id": 3842,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "None",
      "message_date_and_time": "2026-10-20 13:06:36",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3843,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "6.7",
      "message_date_and_time": "2026-10-20 13:06:42",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ],
  "conversation_history": [
    {
      "message_id": 3832,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Yes.",
      "message_date_and_time": "2026-10-20 13:03:04",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3833,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "I have worked with many agile teams.",
      "message_date_and_time": "2026-10-20 13:03:10",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3834,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "And i have attended their sprint process such as.",
      "message_date_and_time": "2026-10-20 13:03:15",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3835,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Sprint planning,",
      "message_date_and_time": "2026-10-20 13:03:20",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3836,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "sprint retro,",
      "message_date_and_time": "2026-10-20 13:03:24",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3837,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "daily stand up,",
      "message_date_and_time": "2026-10-20 13:03:28",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3838,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "backlog groomming",
      "message_date_and_time": "2026-10-20 13:03:30",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3839,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "What frameworks and programming languages have you used the most?",
      "message_date_and_time": "2026-10-20 13:04:15",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3840,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "1.Java\n2.Python\n3.PHP\n4.Selenium\n5.Pytest\n6.Playwright",
      "message_date_and_time": "2026-10-20 13:05:22",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3841,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "On a scale of 1.0 to 5.0, how confident are you in making high-impact decisions?",
      "message_date_and_time": "2026-10-20 13:06:06",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "decimal"
    }
  ]
}

AI Response (BATCH):
{
  "classifications": [
    {
      "type": "other",
      "related_message_id": 3841,
      "parent_escalation_id": 0,
      "extracted_answer": null,
      "reason": "Applicant replied \"None\" and \"6.7\" to a question asking for a rating on a 1.0 to 5.0 scale. \"None\" is not a rating and 6.7 is outside the given scale, so the answer is unfeasible/unclear.",
      "grouped_message_ids": [
        3842,
        3843
      ],
      "representative_message_id": 3842,
      "follow_up_question": "Could you please rate your confidence in making high-impact decisions on a scale of 1.0 to 5.0? For example: 3.0, 4.5, etc."
    }
  ]
}


================================================================================

AI Input (BATCH):
{
  "latest_messages": [
    {
      "message_id": 3845,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "None",
      "message_date_and_time": "2026-10-20 13:07:54",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ],
  "conversation_history": [
    {
      "message_id": 3835,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Sprint planning,",
      "message_date_and_time": "2026-10-20 13:03:20",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3836,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "sprint retro,",
      "message_date_and_time": "2026-10-20 13:03:24",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3837,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "daily stand up,",
      "message_date_and_time": "2026-10-20 13:03:28",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3838,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "backlog groomming",
      "message_date_and_time": "2026-10-20 13:03:30",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3839,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "What frameworks and programming languages have you used the most?",
      "message_date_and_time": "2026-10-20 13:04:15",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3840,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "1.Java\n2.Python\n3.PHP\n4.Selenium\n5.Pytest\n6.Playwright",
      "message_date_and_time": "2026-10-20 13:05:22",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3841,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "On a scale of 1.0 to 5.0, how confident are you in making high-impact decisions?",
      "message_date_and_time": "2026-10-20 13:06:06",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "decimal"
    },
    {
      "message_id": 3842,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "None",
      "message_date_and_time": "2026-10-20 13:06:36",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3843,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "6.7",
      "message_date_and_time": "2026-10-20 13:06:42",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3844,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Could you please rate your confidence in making high-impact decisions on a scale of 1.0 to 5.0? For example: 3.0, 4.5, etc.",
      "message_date_and_time": "2026-10-20 13:07:20",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "decimal"
    }
  ]
}

AI Response (BATCH):
{
  "classifications": [
    {
      "type": "other",
      "related_message_id": 3844,
      "parent_escalation_id": 0,
      "extracted_answer": null,
      "reason": "Reply 'None' does not provide a numeric rating for the 1.0-5.0 confidence scale question, so it cannot be treated as a valid decimal answer.",
      "grouped_message_ids": [
        3845
      ],
      "representative_message_id": 3845,
      "follow_up_question": "Could you please give a number between 1.0 and 5.0 for your confidence in making high-impact decisions? For example: 2.0, 3.5, 4.0"
    }
  ]
}


================================================================================

AI Input (BATCH):
{
  "latest_messages": [
    {
      "message_id": 3847,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "4.9",
      "message_date_and_time": "2026-10-20 13:09:03",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ],
  "conversation_history": [
    {
      "message_id": 3837,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "daily stand up,",
      "message_date_and_time": "2026-10-20 13:03:28",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3838,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "backlog groomming",
      "message_date_and_time": "2026-10-20 13:03:30",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3839,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "What frameworks and programming languages have you used the most?",
      "message_date_and_time": "2026-10-20 13:04:15",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3840,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "1.Java\n2.Python\n3.PHP\n4.Selenium\n5.Pytest\n6.Playwright",
      "message_date_and_time": "2026-10-20 13:05:22",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3841,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "On a scale of 1.0 to 5.0, how confident are you in making high-impact decisions?",
      "message_date_and_time": "2026-10-20 13:06:06",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "decimal"
    },
    {
      "message_id": 3842,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "None",
      "message_date_and_time": "2026-10-20 13:06:36",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3843,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "6.7",
      "message_date_and_time": "2026-10-20 13:06:42",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3844,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Could you please rate your confidence in making high-impact decisions on a scale of 1.0 to 5.0? For example: 3.0, 4.5, etc.",
      "message_date_and_time": "2026-10-20 13:07:20",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "decimal"
    },
    {
      "message_id": 3845,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "None",
      "message_date_and_time": "2026-10-20 13:07:54",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3846,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Could you please give a number between 1.0 and 5.0 for your confidence in making high-impact decisions? For example: 2.0, 3.5, 4.0",
      "message_date_and_time": "2026-10-20 13:08:29",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "decimal"
    }
  ]
}

AI Response (BATCH):
{
  "classifications": [
    {
      "type": "answer",
      "related_message_id": 3846,
      "parent_escalation_id": 0,
      "extracted_answer": "4.9",
      "answer_type": "decimal",
      "reason": "Applicant provided a single decimal rating of 4.9, which is within the requested 1.0-5.0 scale for confidence in making high-impact decisions",
      "grouped_message_ids": [
        3847
      ],
      "representative_message_id": 3847,
      "follow_up_question": "Move to next Question"
    }
  ]
}


================================================================================

AI Input (BATCH):
{
  "latest_messages": [
    {
      "message_id": 3849,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Tell us about a challenge you faced and how you resolved it.",
      "message_date_and_time": "2026-10-20 13:10:16",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ],
  "conversation_history": [
    {
      "message_id": 3839,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "What frameworks and programming languages have you used the most?",
      "message_date_and_time": "2026-10-20 13:04:15",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3840,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "1.Java\n2.Python\n3.PHP\n4.Selenium\n5.Pytest\n6.Playwright",
      "message_date_and_time": "2026-10-20 13:05:22",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3841,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "On a scale of 1.0 to 5.0, how confident are you in making high-impact decisions?",
      "message_date_and_time": "2026-10-20 13:06:06",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "decimal"
    },
    {
      "message_id": 3842,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "None",
      "message_date_and_time": "2026-10-20 13:06:36",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3843,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "6.7",
      "message_date_and_time": "2026-10-20 13:06:42",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3844,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Could you please rate your confidence in making high-impact decisions on a scale of 1.0 to 5.0? For example: 3.0, 4.5, etc.",
      "message_date_and_time": "2026-10-20 13:07:20",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "decimal"
    },
    {
      "message_id": 3845,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "None",
      "message_date_and_time": "2026-10-20 13:07:54",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3846,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Could you please give a number between 1.0 and 5.0 for your confidence in making high-impact decisions? For example: 2.0, 3.5, 4.0",
      "message_date_and_time": "2026-10-20 13:08:29",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "decimal"
    },
    {
      "message_id": 3847,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "4.9",
      "message_date_and_time": "2026-10-20 13:09:03",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3848,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Tell us about a challenge you faced and how you resolved it.",
      "message_date_and_time": "2026-10-20 13:09:44",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ]
}

AI Response (BATCH):
{
  "classifications": [
    {
      "type": "other",
      "related_message_id": 3848,
      "parent_escalation_id": 0,
      "extracted_answer": null,
      "reason": "Applicant only repeated the pending question wording back instead of sharing a challenge and how it was resolved; no actual answer content provided",
      "grouped_message_ids": [
        3849
      ],
      "representative_message_id": 3849,
      "follow_up_question": "Could you share a specific example of a challenge you faced and the steps you took to resolve it? For example: a tight deadline, a difficult bug, or a team conflict."
    }
  ]
}


================================================================================

AI Input (BATCH):
{
  "latest_messages": [
    {
      "message_id": 3851,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "One time i faced production bug gone live. i stayed calm and resolve it with my teams support and added it as a hot fix",
      "message_date_and_time": "2026-10-20 13:11:52",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3852,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "for the after math we",
      "message_date_and_time": "2026-10-20 13:11:58",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3853,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "added those to the test case sheet regression and discussed in retro why it happened",
      "message_date_and_time": "2026-10-20 13:12:22",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ],
  "conversation_history": [
    {
      "message_id": 3841,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "On a scale of 1.0 to 5.0, how confident are you in making high-impact decisions?",
      "message_date_and_time": "2026-10-20 13:06:06",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "decimal"
    },
    {
      "message_id": 3842,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "None",
      "message_date_and_time": "2026-10-20 13:06:36",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3843,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "6.7",
      "message_date_and_time": "2026-10-20 13:06:42",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3844,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Could you please rate your confidence in making high-impact decisions on a scale of 1.0 to 5.0? For example: 3.0, 4.5, etc.",
      "message_date_and_time": "2026-10-20 13:07:20",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "decimal"
    },
    {
      "message_id": 3845,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "None",
      "message_date_and_time": "2026-10-20 13:07:54",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3846,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Could you please give a number between 1.0 and 5.0 for your confidence in making high-impact decisions? For example: 2.0, 3.5, 4.0",
      "message_date_and_time": "2026-10-20 13:08:29",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "decimal"
    },
    {
      "message_id": 3847,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "4.9",
      "message_date_and_time": "2026-10-20 13:09:03",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3848,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Tell us about a challenge you faced and how you resolved it.",
      "message_date_and_time": "2026-10-20 13:09:44",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3849,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Tell us about a challenge you faced and how you resolved it.",
      "message_date_and_time": "2026-10-20 13:10:16",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3850,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Could you share a specific example of a challenge you faced and the steps you took to resolve it? For example: a tight deadline, a difficult bug, or a team conflict.",
      "message_date_and_time": "2026-10-20 13:10:51",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ]
}

AI Response (BATCH):
{
  "classifications": [
    {
      "type": "answer",
      "related_message_id": 3850,
      "parent_escalation_id": 0,
      "extracted_answer": "One time i faced production bug gone live. i stayed calm and resolve it with my teams support and added it as a hot fix for the after math we added those to the test case sheet regression and discussed in retro why it happened",
      "answer_type": "text",
      "reason": "Grouped 3 messages forming a single text answer describing a challenge (production bug) and how it was resolved; text kept verbatim from applicant's words",
      "grouped_message_ids": [
        3851,
        3852,
        3853
      ],
      "representative_message_id": 3851,
      "follow_up_question": "Move to next Question"
    }
  ]
}


================================================================================

AI Input (BATCH):
{
  "latest_messages": [
    {
      "message_id": 3855,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "By debigging",
      "message_date_and_time": "2026-10-20 13:13:27",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3856,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "fix also added through it",
      "message_date_and_time": "2026-10-20 13:13:42",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ],
  "conversation_history": [
    {
      "message_id": 3845,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "None",
      "message_date_and_time": "2026-10-20 13:07:54",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3846,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Could you please give a number between 1.0 and 5.0 for your confidence in making high-impact decisions? For example: 2.0, 3.5, 4.0",
      "message_date_and_time": "2026-10-20 13:08:29",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "decimal"
    },
    {
      "message_id": 3847,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "4.9",
      "message_date_and_time": "2026-10-20 13:09:03",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3848,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Tell us about a challenge you faced and how you resolved it.",
      "message_date_and_time": "2026-10-20 13:09:44",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3849,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Tell us about a challenge you faced and how you resolved it.",
      "message_date_and_time": "2026-10-20 13:10:16",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3850,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Could you share a specific example of a challenge you faced and the steps you took to resolve it? For example: a tight deadline, a difficult bug, or a team conflict.",
      "message_date_and_time": "2026-10-20 13:10:51",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3851,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "One time i faced production bug gone live. i stayed calm and resolve it with my teams support and added it as a hot fix",
      "message_date_and_time": "2026-10-20 13:11:52",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3852,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "for the after math we",
      "message_date_and_time": "2026-10-20 13:11:58",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3853,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "added those to the test case sheet regression and discussed in retro why it happened",
      "message_date_and_time": "2026-10-20 13:12:22",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3854,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "How do you find and fix bugs in your code?",
      "message_date_and_time": "2026-10-20 13:13:07",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ]
}

AI Response (BATCH):
{
  "classifications": [
    {
      "type": "answer",
      "related_message_id": 3854,
      "parent_escalation_id": 0,
      "extracted_answer": "By debigging fix also added through it",
      "answer_type": "text",
      "reason": "Grouped 2 messages that together attempt to answer the pending question about how the applicant finds and fixes bugs; text kept verbatim including original spelling",
      "grouped_message_ids": [
        3855,
        3856
      ],
      "representative_message_id": 3855,
      "follow_up_question": "Move to next Question"
    }
  ]
}


================================================================================

AI Input (BATCH):
{
  "latest_messages": [
    {
      "message_id": 3859,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Yes",
      "message_date_and_time": "2026-10-20 13:15:48",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ],
  "conversation_history": [
    {
      "message_id": 3849,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Tell us about a challenge you faced and how you resolved it.",
      "message_date_and_time": "2026-10-20 13:10:16",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3850,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Could you share a specific example of a challenge you faced and the steps you took to resolve it? For example: a tight deadline, a difficult bug, or a team conflict.",
      "message_date_and_time": "2026-10-20 13:10:51",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3851,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "One time i faced production bug gone live. i stayed calm and resolve it with my teams support and added it as a hot fix",
      "message_date_and_time": "2026-10-20 13:11:52",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3852,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "for the after math we",
      "message_date_and_time": "2026-10-20 13:11:58",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3853,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "added those to the test case sheet regression and discussed in retro why it happened",
      "message_date_and_time": "2026-10-20 13:12:22",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3854,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "How do you find and fix bugs in your code?",
      "message_date_and_time": "2026-10-20 13:13:07",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3855,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "By debigging",
      "message_date_and_time": "2026-10-20 13:13:27",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3856,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "fix also added through it",
      "message_date_and_time": "2026-10-20 13:13:42",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3857,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "✅ Thank you for completing the Interview Called interview stage! We will review your answers and get back to you soon.",
      "message_date_and_time": "2026-10-20 13:14:26",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 3858,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Have you worked in an Agile team and familiar with agile process?(Yes/No)",
      "message_date_and_time": "2026-10-20 13:15:22",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    }
  ]
}

AI Response (BATCH):
{
  "classifications": [
    {
      "type": "answer",
      "related_message_id": 3858,
      "parent_escalation_id": 0,
      "extracted_answer": "true",
      "answer_type": "boolean",
      "reason": "Applicant replied 'Yes' to the pending boolean question about Agile team experience and familiarity with agile process",
      "grouped_message_ids": [
        3859
      ],
      "representative_message_id": 3859,
      "follow_up_question": "Move to next Question"
    }
  ]
}


================================================================================

AI Input (BATCH):
{
  "latest_messages": [
    {
      "message_id": 3861,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "I'm good at handling the tight deadlines. I prioritize my work accordingly and communicate to the respective party",
      "message_date_and_time": "2026-10-20 13:16:53",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ],
  "conversation_history": [
    {
      "message_id": 3851,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "One time i faced production bug gone live. i stayed calm and resolve it with my teams support and added it as a hot fix",
      "message_date_and_time": "2026-10-20 13:11:52",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3852,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "for the after math we",
      "message_date_and_time": "2026-10-20 13:11:58",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3853,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "added those to the test case sheet regression and discussed in retro why it happened",
      "message_date_and_time": "2026-10-20 13:12:22",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3854,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "How do you find and fix bugs in your code?",
      "message_date_and_time": "2026-10-20 13:13:07",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3855,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "By debigging",
      "message_date_and_time": "2026-10-20 13:13:27",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3856,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "fix also added through it",
      "message_date_and_time": "2026-10-20 13:13:42",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3857,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "✅ Thank you for completing the Interview Called interview stage! We will review your answers and get back to you soon.",
      "message_date_and_time": "2026-10-20 13:14:26",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 3858,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Have you worked in an Agile team and familiar with agile process?(Yes/No)",
      "message_date_and_time": "2026-10-20 13:15:22",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 3859,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Yes",
      "message_date_and_time": "2026-10-20 13:15:48",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3860,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "How do you handle tight deadlines?",
      "message_date_and_time": "2026-10-20 13:16:29",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ]
}

AI Response (BATCH):
{
  "classifications": [
    {
      "type": "answer",
      "related_message_id": 3860,
      "parent_escalation_id": 0,
      "extracted_answer": "I'm good at handling the tight deadlines. I prioritize my work accordingly and communicate to the respective party",
      "answer_type": "text",
      "reason": "Single message directly answers the pending Eyepax question about handling tight deadlines; text answer kept verbatim",
      "grouped_message_ids": [
        3861
      ],
      "representative_message_id": 3861,
      "follow_up_question": "Move to next Question"
    }
  ]
}


================================================================================

AI Input (BATCH):
{
  "latest_messages": [
    {
      "message_id": 3863,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Based on high priority and high severity",
      "message_date_and_time": "2026-10-20 13:18:03",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ],
  "conversation_history": [
    {
      "message_id": 3853,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "added those to the test case sheet regression and discussed in retro why it happened",
      "message_date_and_time": "2026-10-20 13:12:22",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3854,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "How do you find and fix bugs in your code?",
      "message_date_and_time": "2026-10-20 13:13:07",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3855,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "By debigging",
      "message_date_and_time": "2026-10-20 13:13:27",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3856,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "fix also added through it",
      "message_date_and_time": "2026-10-20 13:13:42",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3857,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "✅ Thank you for completing the Interview Called interview stage! We will review your answers and get back to you soon.",
      "message_date_and_time": "2026-10-20 13:14:26",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 3858,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Have you worked in an Agile team and familiar with agile process?(Yes/No)",
      "message_date_and_time": "2026-10-20 13:15:22",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 3859,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Yes",
      "message_date_and_time": "2026-10-20 13:15:48",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3860,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "How do you handle tight deadlines?",
      "message_date_and_time": "2026-10-20 13:16:29",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3861,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "I'm good at handling the tight deadlines. I prioritize my work accordingly and communicate to the respective party",
      "message_date_and_time": "2026-10-20 13:16:53",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3862,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "How do you prioritize your work when multiple tasks are assigned?",
      "message_date_and_time": "2026-10-20 13:17:36",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ]
}

AI Response (BATCH):
{
  "classifications": [
    {
      "type": "answer",
      "related_message_id": 3862,
      "parent_escalation_id": 0,
      "extracted_answer": "Based on high priority and high severity",
      "answer_type": "text",
      "reason": "Direct text answer to the pending question about prioritizing work when multiple tasks are assigned; kept verbatim",
      "grouped_message_ids": [
        3863
      ],
      "representative_message_id": 3863,
      "follow_up_question": "Move to next Question"
    }
  ]
}


================================================================================

AI Input (BATCH):
{
  "latest_messages": [
    {
      "message_id": 3865,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "I can join first weekday of first month of next year",
      "message_date_and_time": "2026-10-20 13:19:28",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ],
  "conversation_history": [
    {
      "message_id": 3855,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "By debigging",
      "message_date_and_time": "2026-10-20 13:13:27",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3856,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "fix also added through it",
      "message_date_and_time": "2026-10-20 13:13:42",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3857,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "✅ Thank you for completing the Interview Called interview stage! We will review your answers and get back to you soon.",
      "message_date_and_time": "2026-10-20 13:14:26",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 3858,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Have you worked in an Agile team and familiar with agile process?(Yes/No)",
      "message_date_and_time": "2026-10-20 13:15:22",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 3859,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Yes",
      "message_date_and_time": "2026-10-20 13:15:48",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3860,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "How do you handle tight deadlines?",
      "message_date_and_time": "2026-10-20 13:16:29",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3861,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "I'm good at handling the tight deadlines. I prioritize my work accordingly and communicate to the respective party",
      "message_date_and_time": "2026-10-20 13:16:53",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3862,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "How do you prioritize your work when multiple tasks are assigned?",
      "message_date_and_time": "2026-10-20 13:17:36",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3863,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Based on high priority and high severity",
      "message_date_and_time": "2026-10-20 13:18:03",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3864,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "What is your earliest available joining date? Please provide the exact date.(MM/DD/YYYY)",
      "message_date_and_time": "2026-10-20 13:18:47",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "date"
    }
  ]
}

AI Response (BATCH):
{
  "classifications": [
    {
      "type": "other",
      "related_message_id": 3864,
      "parent_escalation_id": 0,
      "extracted_answer": null,
      "reason": "The message is on-topic but does not give the exact date the question asked for; it only describes a relative time ('first weekday of first month of next year'), so no valid date in MM/DD/YYYY format can be extracted.",
      "grouped_message_ids": [
        3865
      ],
      "representative_message_id": 3865,
      "follow_up_question": "Could you please provide your earliest available joining date as an exact date in MM/DD/YYYY format? For example: 01/15/2027."
    }
  ]
}


================================================================================

AI Input (BATCH):
{
  "latest_messages": [
    {
      "message_id": 3867,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "January 1st of next year",
      "message_date_and_time": "2026-10-20 13:20:44",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ],
  "conversation_history": [
    {
      "message_id": 3857,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "✅ Thank you for completing the Interview Called interview stage! We will review your answers and get back to you soon.",
      "message_date_and_time": "2026-10-20 13:14:26",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 3858,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Have you worked in an Agile team and familiar with agile process?(Yes/No)",
      "message_date_and_time": "2026-10-20 13:15:22",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 3859,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Yes",
      "message_date_and_time": "2026-10-20 13:15:48",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3860,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "How do you handle tight deadlines?",
      "message_date_and_time": "2026-10-20 13:16:29",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3861,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "I'm good at handling the tight deadlines. I prioritize my work accordingly and communicate to the respective party",
      "message_date_and_time": "2026-10-20 13:16:53",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3862,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "How do you prioritize your work when multiple tasks are assigned?",
      "message_date_and_time": "2026-10-20 13:17:36",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3863,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Based on high priority and high severity",
      "message_date_and_time": "2026-10-20 13:18:03",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3864,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "What is your earliest available joining date? Please provide the exact date.(MM/DD/YYYY)",
      "message_date_and_time": "2026-10-20 13:18:47",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "date"
    },
    {
      "message_id": 3865,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "I can join first weekday of first month of next year",
      "message_date_and_time": "2026-10-20 13:19:28",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3866,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Could you please provide your earliest available joining date as an exact date in MM/DD/YYYY format? For example: 01/15/2027.",
      "message_date_and_time": "2026-10-20 13:20:06",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "date"
    }
  ]
}

AI Response (BATCH):
{
  "classifications": [
    {
      "type": "answer",
      "related_message_id": 3866,
      "parent_escalation_id": 0,
      "extracted_answer": "2027-01-01",
      "answer_type": "date",
      "reason": "Applicant provided their earliest joining date as 'January 1st of next year'; given the conversation date of 2026-10-20, this resolves to 2027-01-01, matching the requested MM/DD/YYYY date format.",
      "grouped_message_ids": [
        3867
      ],
      "representative_message_id": 3867,
      "follow_up_question": "Move to next Question"
    }
  ]
}


================================================================================

AI Input (BATCH):
{
  "latest_messages": [
    {
      "message_id": 3869,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "0 USD",
      "message_date_and_time": "2026-10-20 13:22:03",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ],
  "conversation_history": [
    {
      "message_id": 3859,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Yes",
      "message_date_and_time": "2026-10-20 13:15:48",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3860,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "How do you handle tight deadlines?",
      "message_date_and_time": "2026-10-20 13:16:29",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3861,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "I'm good at handling the tight deadlines. I prioritize my work accordingly and communicate to the respective party",
      "message_date_and_time": "2026-10-20 13:16:53",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3862,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "How do you prioritize your work when multiple tasks are assigned?",
      "message_date_and_time": "2026-10-20 13:17:36",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3863,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Based on high priority and high severity",
      "message_date_and_time": "2026-10-20 13:18:03",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3864,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "What is your earliest available joining date? Please provide the exact date.(MM/DD/YYYY)",
      "message_date_and_time": "2026-10-20 13:18:47",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "date"
    },
    {
      "message_id": 3865,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "I can join first weekday of first month of next year",
      "message_date_and_time": "2026-10-20 13:19:28",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3866,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Could you please provide your earliest available joining date as an exact date in MM/DD/YYYY format? For example: 01/15/2027.",
      "message_date_and_time": "2026-10-20 13:20:06",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "date"
    },
    {
      "message_id": 3867,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "January 1st of next year",
      "message_date_and_time": "2026-10-20 13:20:44",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3868,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "What is your expected salary in USD?",
      "message_date_and_time": "2026-10-20 13:21:28",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "currency"
    }
  ]
}

AI Response (BATCH):
{
  "classifications": [
    {
      "type": "other",
      "related_message_id": 3868,
      "parent_escalation_id": 0,
      "extracted_answer": null,
      "reason": "Unreasonable answer: 0 USD is not a realistic salary expectation, so the currency question was not genuinely answered",
      "grouped_message_ids": [
        3869
      ],
      "representative_message_id": 3869,
      "follow_up_question": "I noticed you mentioned 0 USD. Could you please provide your actual expected monthly salary in USD? For example: 1500, 2500, 4000, etc."
    }
  ]
}


================================================================================

AI Input (BATCH):
{
  "latest_messages": [
    {
      "message_id": 3871,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "4000",
      "message_date_and_time": "2026-10-20 13:23:18",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ],
  "conversation_history": [
    {
      "message_id": 3861,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "I'm good at handling the tight deadlines. I prioritize my work accordingly and communicate to the respective party",
      "message_date_and_time": "2026-10-20 13:16:53",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3862,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "How do you prioritize your work when multiple tasks are assigned?",
      "message_date_and_time": "2026-10-20 13:17:36",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3863,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Based on high priority and high severity",
      "message_date_and_time": "2026-10-20 13:18:03",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3864,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "What is your earliest available joining date? Please provide the exact date.(MM/DD/YYYY)",
      "message_date_and_time": "2026-10-20 13:18:47",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "date"
    },
    {
      "message_id": 3865,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "I can join first weekday of first month of next year",
      "message_date_and_time": "2026-10-20 13:19:28",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3866,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Could you please provide your earliest available joining date as an exact date in MM/DD/YYYY format? For example: 01/15/2027.",
      "message_date_and_time": "2026-10-20 13:20:06",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "date"
    },
    {
      "message_id": 3867,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "January 1st of next year",
      "message_date_and_time": "2026-10-20 13:20:44",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3868,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "What is your expected salary in USD?",
      "message_date_and_time": "2026-10-20 13:21:28",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "currency"
    },
    {
      "message_id": 3869,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "0 USD",
      "message_date_and_time": "2026-10-20 13:22:03",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 3870,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "I noticed you mentioned 0 USD. Could you please provide your actual expected monthly salary in USD? For example: 1500, 2500, 4000, etc.",
      "message_date_and_time": "2026-10-20 13:22:41",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "currency"
    }
  ]
}

AI Response (BATCH):
{
  "classifications": [
    {
      "type": "answer",
      "related_message_id": 3870,
      "parent_escalation_id": 0,
      "extracted_answer": "4000",
      "answer_type": "currency",
      "reason": "Applicant provided 4000 USD as expected monthly salary, answering the rephrased currency question",
      "grouped_message_ids": [
        3871
      ],
      "representative_message_id": 3871,
      "follow_up_question": "Move to next Question"
    }
  ]
}
