﻿================================================================================
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 ONLY "latest_message". Never classify history entries. Use "conversation_history" only as a read-only reference to find matching Eyepax questions. Group messages from "latest_messages" array when they form a cohesive answer.
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.
   Off-topic personal questions from the applicant that have NO connection to the job, company, or interview are NOT classified as "question". They are classified as "other" (Case C). The "question" type is ONLY for job/company/interview-related questions.
8. Classify as "answer" ONLY when the message genuinely provides 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"
      If the year is missing, use the next occurrence of that day on or after TODAY (see Date Questions rule).
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.
     CURRENCY MISMATCH: If the Eyepax question names a currency (e.g. "in USD", "(LKR)", "$") and the applicant gives the amount in a DIFFERENT currency (e.g. question asks USD, applicant says "100000LKR", "Rs. 300,000", "300k rupees"):
       - Classify as "other" (not "answer"). Do NOT convert the amount yourself.
       - follow_up_question = a short polite request for the amount in the asked currency, mentioning what they gave.
         Example: "Thanks! You mentioned 100,000 LKR. Could you please share your expected monthly salary in USD?"
     If the applicant gives only a number with no currency, assume it is in the asked currency and accept it.
     If the question names no currency, accept any currency.
  
  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: Judge the date against what the question asks and against TODAY.
     TODAY = the date part of "message_date_and_time" of the latest applicant message in "latest_messages".
     For future-looking questions (joining date, start date, availability, "when can you join"):
       - A date BEFORE TODAY is INVALID (already passed). Classify as "other" and ask for a future date.
         Example (TODAY 2026-10-28, answer "2026-01-01"): "The date 2026-01-01 has already passed. Could you please share your preferred joining date from today onwards (YYYY-MM-DD)?"
       - A date MORE THAN 6 MONTHS AFTER TODAY is INVALID (too far in the future). Classify as "other" and ask to confirm or give a nearer date.
         Example (TODAY 2026-10-28, answer "2030-01-03"): "You mentioned 2030-01-03, which is quite far ahead. Could you please confirm your preferred joining date, or share an earlier date (YYYY-MM-DD)?"
       - A date from TODAY up to 6 months after TODAY is valid.
     For past-looking questions (date of birth, graduation date, last working day already passed), the date must not be in the future and not before 1950.
     Impossible dates (e.g. 2026-02-30) are INVALID → Classify as "other" and ask again.
  
  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, or incomplete (including UNFEASIBLE/UNREASONABLE answers like "100 years" for notice period) 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).
  CRITICAL: An applicant asking a personal or completely off-topic question is classified as "other" here — NOT as "question" (Case D).
  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
    }
  ]
}

Example 11 - CURRENCY MISMATCH (question asks USD, answer in LKR):
History contains Eyepax question:
  id 1101 (answer_type: "currency"): "What is your expected monthly salary (in USD)?"
Latest applicant messages:
  id 1110: "100000LKR"

Output:
{
  "classifications": [
    {
      "type": "other",
      "related_message_id": 1101,
      "parent_escalation_id": 0,
      "extracted_answer": null,
      "answer_type": null,
      "reason": "Amount given in LKR but the question asks for USD",
      "follow_up_question": "Thanks! You mentioned 100,000 LKR. Could you please share your expected monthly salary in USD?",
      "grouped_message_ids": [1110],
      "representative_message_id": 1110
    }
  ]
}

Example 12 - DATE already passed:
History contains Eyepax question:
  id 1201 (answer_type: "date"): "What is your preferred joining date (YYYY-MM-DD)?"
Latest applicant messages:
  id 1210 (message_date_and_time "2026-10-28 11:30:00"): "2026-01-01"

Output:
{
  "classifications": [
    {
      "type": "other",
      "related_message_id": 1201,
      "parent_escalation_id": 0,
      "extracted_answer": null,
      "answer_type": null,
      "reason": "Joining date 2026-01-01 is before today (2026-10-28)",
      "follow_up_question": "The date 2026-01-01 has already passed. Could you please share your preferred joining date from today onwards (YYYY-MM-DD)?",
      "grouped_message_ids": [1210],
      "representative_message_id": 1210
    }
  ]
}

Example 13 - DATE too far in the future:
History contains Eyepax question:
  id 1301 (answer_type: "date"): "What is your preferred joining date (YYYY-MM-DD)?"
Latest applicant messages:
  id 1310 (message_date_and_time "2026-10-28 11:30:00"): "2030-01-03"

Output:
{
  "classifications": [
    {
      "type": "other",
      "related_message_id": 1301,
      "parent_escalation_id": 0,
      "extracted_answer": null,
      "answer_type": null,
      "reason": "Joining date 2030-01-03 is more than 6 months after today (2026-10-28)",
      "follow_up_question": "You mentioned 2030-01-03, which is quite far ahead. Could you please confirm your preferred joining date, or share an earlier date (YYYY-MM-DD)?",
      "grouped_message_ids": [1310],
      "representative_message_id": 1310
    }
  ]
}

Example 14 - Valid joining date:
History contains Eyepax question:
  id 1401 (answer_type: "date"): "What is your preferred joining date (YYYY-MM-DD)?"
Latest applicant messages:
  id 1410 (message_date_and_time "2026-10-28 11:30:00"): "1st of December"

Output:
{
  "classifications": [
    {
      "type": "answer",
      "related_message_id": 1401,
      "parent_escalation_id": 0,
      "extracted_answer": "2026-12-01",
      "answer_type": "date",
      "reason": "Joining date within 6 months of today; year taken as the next occurrence",
      "follow_up_question": "Move to next Question",
      "grouped_message_ids": [1410],
      "representative_message_id": 1410
    }
  ]
}

[Input Messages as a JSON]


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

AI Input (BATCH):
{
  "latest_messages": [
    {
      "message_id": 6125,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "My company have 60 working days policy",
      "message_date_and_time": "2026-11-05 18:32:34",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ],
  "conversation_history": [
    {
      "message_id": 6123,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Hi *Kavindu Lakshan Perera*,\n\nThank you for your interest in the Tech Lead - Full Stack (Ec-89) position 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-11-05 17:58:30",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6124,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "What is your notice period (in days)?\nExplain it in number of working days concept",
      "message_date_and_time": "2026-11-05 17:59:15",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "number"
    }
  ]
}

AI Response (BATCH):
{
  "classifications": [
    {
      "type": "answer",
      "related_message_id": 6124,
      "parent_escalation_id": 0,
      "extracted_answer": "60",
      "answer_type": "number",
      "reason": "Applicant answered the notice period question in working days (60 working days ≈ 3 months, within the acceptable 0-6 month range); numeric value extracted",
      "grouped_message_ids": [
        6125
      ],
      "representative_message_id": 6125,
      "follow_up_question": "Move to next Question"
    }
  ]
}


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

AI Input (BATCH):
{
  "latest_messages": [
    {
      "message_id": 6127,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "At the moment i don't have any new information for you",
      "message_date_and_time": "2026-11-05 18:36:43",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ],
  "conversation_history": [
    {
      "message_id": 6123,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Hi *Kavindu Lakshan Perera*,\n\nThank you for your interest in the Tech Lead - Full Stack (Ec-89) position 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-11-05 17:58:30",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6124,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "What is your notice period (in days)?\nExplain it in number of working days concept",
      "message_date_and_time": "2026-11-05 17:59:15",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "number"
    },
    {
      "message_id": 6125,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "My company have 60 working days policy",
      "message_date_and_time": "2026-11-05 18:32:34",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6126,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Do you have any joining notes or constraints? Please inform if there are any question or problems to be inform from your side",
      "message_date_and_time": "2026-11-05 18:33:29",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ]
}

AI Response (BATCH):
{
  "classifications": [
    {
      "type": "answer",
      "related_message_id": 6126,
      "parent_escalation_id": 0,
      "extracted_answer": "At the moment i don't have any new information for you",
      "answer_type": "text",
      "reason": "Text answer provided verbatim indicating no joining notes or constraints",
      "grouped_message_ids": [
        6127
      ],
      "representative_message_id": 6127,
      "follow_up_question": "Move to next Question"
    }
  ]
}


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

AI Input (BATCH):
{
  "latest_messages": [
    {
      "message_id": 6129,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "700",
      "message_date_and_time": "2026-11-05 18:38:49",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ],
  "conversation_history": [
    {
      "message_id": 6123,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Hi *Kavindu Lakshan Perera*,\n\nThank you for your interest in the Tech Lead - Full Stack (Ec-89) position 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-11-05 17:58:30",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6124,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "What is your notice period (in days)?\nExplain it in number of working days concept",
      "message_date_and_time": "2026-11-05 17:59:15",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "number"
    },
    {
      "message_id": 6125,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "My company have 60 working days policy",
      "message_date_and_time": "2026-11-05 18:32:34",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6126,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Do you have any joining notes or constraints? Please inform if there are any question or problems to be inform from your side",
      "message_date_and_time": "2026-11-05 18:33:29",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6127,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "At the moment i don't have any new information for you",
      "message_date_and_time": "2026-11-05 18:36:43",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6128,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "What is your expected monthly salary (in USD)?\nOur company will pay in USD currency. Therefore convert you desired salary in USD and reply.",
      "message_date_and_time": "2026-11-05 18:37:14",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "decimal"
    }
  ]
}

AI Response (BATCH):
{
  "classifications": [
    {
      "type": "answer",
      "related_message_id": 6128,
      "parent_escalation_id": 0,
      "extracted_answer": "700",
      "answer_type": "decimal",
      "reason": "Applicant answers the pending salary question with a bare number 700; since no currency was stated, it is assumed to be in USD as asked by Eyepax",
      "grouped_message_ids": [
        6129
      ],
      "representative_message_id": 6129,
      "follow_up_question": "Move to next Question"
    }
  ]
}


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

AI Input (BATCH):
{
  "latest_messages": [
    {
      "message_id": 6131,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "i don't want to expose that to you",
      "message_date_and_time": "2026-11-05 18:40:22",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ],
  "conversation_history": [
    {
      "message_id": 6123,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Hi *Kavindu Lakshan Perera*,\n\nThank you for your interest in the Tech Lead - Full Stack (Ec-89) position 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-11-05 17:58:30",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6124,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "What is your notice period (in days)?\nExplain it in number of working days concept",
      "message_date_and_time": "2026-11-05 17:59:15",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "number"
    },
    {
      "message_id": 6125,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "My company have 60 working days policy",
      "message_date_and_time": "2026-11-05 18:32:34",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6126,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Do you have any joining notes or constraints? Please inform if there are any question or problems to be inform from your side",
      "message_date_and_time": "2026-11-05 18:33:29",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6127,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "At the moment i don't have any new information for you",
      "message_date_and_time": "2026-11-05 18:36:43",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6128,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "What is your expected monthly salary (in USD)?\nOur company will pay in USD currency. Therefore convert you desired salary in USD and reply.",
      "message_date_and_time": "2026-11-05 18:37:14",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "decimal"
    },
    {
      "message_id": 6129,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "700",
      "message_date_and_time": "2026-11-05 18:38:49",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6130,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "What is your current monthly salary (in USD)?",
      "message_date_and_time": "2026-11-05 18:39:22",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "decimal"
    }
  ]
}

AI Response (BATCH):
{
  "classifications": [
    {
      "type": "other",
      "related_message_id": 6130,
      "parent_escalation_id": 0,
      "extracted_answer": null,
      "reason": "Applicant declined to share their current monthly salary. The message is related to the pending question but does not provide the requested information, and a refusal to disclose salary is a negotiation/exception matter that needs a human recruiter to handle.",
      "grouped_message_ids": [
        6131
      ],
      "representative_message_id": 6131,
      "follow_up_question": null
    }
  ]
}


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

AI Input (BATCH):
{
  "latest_messages": [
    {
      "message_id": 6133,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "0",
      "message_date_and_time": "2026-11-05 18:44:51",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ],
  "conversation_history": [
    {
      "message_id": 6123,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Hi *Kavindu Lakshan Perera*,\n\nThank you for your interest in the Tech Lead - Full Stack (Ec-89) position 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-11-05 17:58:30",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6124,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "What is your notice period (in days)?\nExplain it in number of working days concept",
      "message_date_and_time": "2026-11-05 17:59:15",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "number"
    },
    {
      "message_id": 6125,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "My company have 60 working days policy",
      "message_date_and_time": "2026-11-05 18:32:34",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6126,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Do you have any joining notes or constraints? Please inform if there are any question or problems to be inform from your side",
      "message_date_and_time": "2026-11-05 18:33:29",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6127,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "At the moment i don't have any new information for you",
      "message_date_and_time": "2026-11-05 18:36:43",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6128,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "What is your expected monthly salary (in USD)?\nOur company will pay in USD currency. Therefore convert you desired salary in USD and reply.",
      "message_date_and_time": "2026-11-05 18:37:14",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "decimal"
    },
    {
      "message_id": 6129,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "700",
      "message_date_and_time": "2026-11-05 18:38:49",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6130,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "What is your current monthly salary (in USD)?",
      "message_date_and_time": "2026-11-05 18:39:22",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "decimal"
    },
    {
      "message_id": 6131,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "i don't want to expose that to you",
      "message_date_and_time": "2026-11-05 18:40:22",
      "escalation_id": 466,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6132,
      "message_parent_id": 6131,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "If you don't like top expose the current salary please note it and reply as 0 to the sent message",
      "message_date_and_time": "2026-11-05 18:42:17",
      "escalation_id": 466,
      "parent_escalation_id": 0,
      "answer_type": "decimal"
    }
  ]
}

AI Response (BATCH):
{
  "classifications": [
    {
      "type": "answer",
      "related_message_id": 6132,
      "parent_escalation_id": 0,
      "extracted_answer": "0",
      "answer_type": "decimal",
      "reason": "Applicant replied '0' as instructed by Eyepax to indicate they prefer not to disclose their current monthly salary",
      "grouped_message_ids": [
        6133
      ],
      "representative_message_id": 6133,
      "follow_up_question": "Move to next Question"
    }
  ]
}


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

AI Input (BATCH):
{
  "latest_messages": [
    {
      "message_id": 6135,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "I like to join on next monday",
      "message_date_and_time": "2026-11-05 18:46:54",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ],
  "conversation_history": [
    {
      "message_id": 6125,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "My company have 60 working days policy",
      "message_date_and_time": "2026-11-05 18:32:34",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6126,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Do you have any joining notes or constraints? Please inform if there are any question or problems to be inform from your side",
      "message_date_and_time": "2026-11-05 18:33:29",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6127,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "At the moment i don't have any new information for you",
      "message_date_and_time": "2026-11-05 18:36:43",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6128,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "What is your expected monthly salary (in USD)?\nOur company will pay in USD currency. Therefore convert you desired salary in USD and reply.",
      "message_date_and_time": "2026-11-05 18:37:14",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "decimal"
    },
    {
      "message_id": 6129,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "700",
      "message_date_and_time": "2026-11-05 18:38:49",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6130,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "What is your current monthly salary (in USD)?",
      "message_date_and_time": "2026-11-05 18:39:22",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "decimal"
    },
    {
      "message_id": 6131,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "i don't want to expose that to you",
      "message_date_and_time": "2026-11-05 18:40:22",
      "escalation_id": 466,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6132,
      "message_parent_id": 6131,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "If you don't like top expose the current salary please note it and reply as 0 to the sent message",
      "message_date_and_time": "2026-11-05 18:42:17",
      "escalation_id": 466,
      "parent_escalation_id": 0,
      "answer_type": "decimal"
    },
    {
      "message_id": 6133,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "0",
      "message_date_and_time": "2026-11-05 18:44:51",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6134,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "What is your preferred joining date (YYYY-MM-DD)?",
      "message_date_and_time": "2026-11-05 18:45:36",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "date"
    }
  ]
}

AI Response (BATCH):
{
  "classifications": [
    {
      "type": "answer",
      "related_message_id": 6134,
      "parent_escalation_id": 0,
      "extracted_answer": "2026-11-09",
      "answer_type": "date",
      "reason": "Applicant said 'next monday'; today is 2026-11-05 (Thursday), so next Monday resolves to 2026-11-09, which is within 6 months from today",
      "grouped_message_ids": [
        6135
      ],
      "representative_message_id": 6135,
      "follow_up_question": "Move to next Question"
    }
  ]
}


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

AI Input (BATCH):
{
  "latest_messages": [
    {
      "message_id": 6138,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "What kind of databases do you company expecting me to be flurnet",
      "message_date_and_time": "2026-11-05 18:50:59",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ],
  "conversation_history": [
    {
      "message_id": 6128,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "What is your expected monthly salary (in USD)?\nOur company will pay in USD currency. Therefore convert you desired salary in USD and reply.",
      "message_date_and_time": "2026-11-05 18:37:14",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "decimal"
    },
    {
      "message_id": 6129,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "700",
      "message_date_and_time": "2026-11-05 18:38:49",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6130,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "What is your current monthly salary (in USD)?",
      "message_date_and_time": "2026-11-05 18:39:22",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "decimal"
    },
    {
      "message_id": 6131,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "i don't want to expose that to you",
      "message_date_and_time": "2026-11-05 18:40:22",
      "escalation_id": 466,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6132,
      "message_parent_id": 6131,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "If you don't like top expose the current salary please note it and reply as 0 to the sent message",
      "message_date_and_time": "2026-11-05 18:42:17",
      "escalation_id": 466,
      "parent_escalation_id": 0,
      "answer_type": "decimal"
    },
    {
      "message_id": 6133,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "0",
      "message_date_and_time": "2026-11-05 18:44:51",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6134,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "What is your preferred joining date (YYYY-MM-DD)?",
      "message_date_and_time": "2026-11-05 18:45:36",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "date"
    },
    {
      "message_id": 6135,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "I like to join on next monday",
      "message_date_and_time": "2026-11-05 18:46:54",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6136,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "✅ Thank you for completing the Standard Questions For Applicant stage! We will review your answers and get back to you soon.",
      "message_date_and_time": "2026-11-05 18:47:38",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6137,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Have you worked with databases before?(Yes/No)",
      "message_date_and_time": "2026-11-05 18:50:18",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    }
  ]
}

AI Response (BATCH):
{
  "classifications": [
    {
      "type": "question",
      "related_message_id": 6137,
      "parent_escalation_id": 0,
      "extracted_answer": null,
      "reason": "Applicant asks a job-related question about which database technologies the company expects, instead of answering the pending yes/no question about database experience",
      "grouped_message_ids": [
        6138
      ],
      "representative_message_id": 6138,
      "follow_up_question": null
    }
  ]
}


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

AI Input (BATCH):
{
  "latest_messages": [
    {
      "message_id": 6141,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "i have worked with both database technologies",
      "message_date_and_time": "2026-11-05 19:05:29",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ],
  "conversation_history": [
    {
      "message_id": 6130,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "What is your current monthly salary (in USD)?",
      "message_date_and_time": "2026-11-05 18:39:22",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "decimal"
    },
    {
      "message_id": 6131,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "i don't want to expose that to you",
      "message_date_and_time": "2026-11-05 18:40:22",
      "escalation_id": 466,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6132,
      "message_parent_id": 6131,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "If you don't like top expose the current salary please note it and reply as 0 to the sent message",
      "message_date_and_time": "2026-11-05 18:42:17",
      "escalation_id": 466,
      "parent_escalation_id": 0,
      "answer_type": "decimal"
    },
    {
      "message_id": 6133,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "0",
      "message_date_and_time": "2026-11-05 18:44:51",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6134,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "What is your preferred joining date (YYYY-MM-DD)?",
      "message_date_and_time": "2026-11-05 18:45:36",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "date"
    },
    {
      "message_id": 6135,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "I like to join on next monday",
      "message_date_and_time": "2026-11-05 18:46:54",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6136,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "✅ Thank you for completing the Standard Questions For Applicant stage! We will review your answers and get back to you soon.",
      "message_date_and_time": "2026-11-05 18:47:38",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6137,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Have you worked with databases before?(Yes/No)",
      "message_date_and_time": "2026-11-05 18:50:18",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 6138,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "What kind of databases do you company expecting me to be flurnet",
      "message_date_and_time": "2026-11-05 18:50:59",
      "escalation_id": 467,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6140,
      "message_parent_id": 6138,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "For this position we are expecting mostly my SQL , and fire base",
      "message_date_and_time": "2026-11-05 19:02:17",
      "escalation_id": 467,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    }
  ]
}

AI Response (BATCH):
{
  "classifications": [
    {
      "type": "answer",
      "related_message_id": 6137,
      "parent_escalation_id": 0,
      "extracted_answer": "true",
      "answer_type": "boolean",
      "reason": "Applicant confirms having worked with both MySQL and Firebase, which is an affirmative answer to the yes/no database experience question",
      "grouped_message_ids": [
        6141
      ],
      "representative_message_id": 6141,
      "follow_up_question": "Move to next Question"
    }
  ]
}


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

AI Input (BATCH):
{
  "latest_messages": [
    {
      "message_id": 6144,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Yes",
      "message_date_and_time": "2026-11-05 19:16:14",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ],
  "conversation_history": [
    {
      "message_id": 6133,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "0",
      "message_date_and_time": "2026-11-05 18:44:51",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6134,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "What is your preferred joining date (YYYY-MM-DD)?",
      "message_date_and_time": "2026-11-05 18:45:36",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "date"
    },
    {
      "message_id": 6135,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "I like to join on next monday",
      "message_date_and_time": "2026-11-05 18:46:54",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6136,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "✅ Thank you for completing the Standard Questions For Applicant stage! We will review your answers and get back to you soon.",
      "message_date_and_time": "2026-11-05 18:47:38",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6137,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Have you worked with databases before?(Yes/No)",
      "message_date_and_time": "2026-11-05 18:50:18",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 6138,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "What kind of databases do you company expecting me to be flurnet",
      "message_date_and_time": "2026-11-05 18:50:59",
      "escalation_id": 467,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6140,
      "message_parent_id": 6138,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "For this position we are expecting mostly my SQL , and fire base",
      "message_date_and_time": "2026-11-05 19:02:17",
      "escalation_id": 467,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 6141,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "i have worked with both database technologies",
      "message_date_and_time": "2026-11-05 19:05:29",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6142,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "How many years of experience do you have with Go or PHP?",
      "message_date_and_time": "2026-11-05 19:06:01",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "number"
    },
    {
      "message_id": 6143,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Hi, just to confirm: have you worked with databases before? Please reply Yes or No.",
      "message_date_and_time": "2026-11-05 19:15:29",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    }
  ]
}

AI Response (BATCH):
{
  "classifications": [
    {
      "type": "answer",
      "related_message_id": 6143,
      "parent_escalation_id": 0,
      "extracted_answer": "true",
      "answer_type": "boolean",
      "reason": "Applicant replies \"Yes\" to the pending confirmation question asking whether they have worked with databases before",
      "grouped_message_ids": [
        6144
      ],
      "representative_message_id": 6144,
      "follow_up_question": "Move to next Question"
    }
  ]
}


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

AI Input (BATCH):
{
  "latest_messages": [
    {
      "message_id": 6146,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "I worked with 6  years with my SQL and 2 years with fire base",
      "message_date_and_time": "2026-11-05 19:18:27",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ],
  "conversation_history": [
    {
      "message_id": 6135,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "I like to join on next monday",
      "message_date_and_time": "2026-11-05 18:46:54",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6136,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "✅ Thank you for completing the Standard Questions For Applicant stage! We will review your answers and get back to you soon.",
      "message_date_and_time": "2026-11-05 18:47:38",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6137,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Have you worked with databases before?(Yes/No)",
      "message_date_and_time": "2026-11-05 18:50:18",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 6138,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "What kind of databases do you company expecting me to be flurnet",
      "message_date_and_time": "2026-11-05 18:50:59",
      "escalation_id": 467,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6140,
      "message_parent_id": 6138,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "For this position we are expecting mostly my SQL , and fire base",
      "message_date_and_time": "2026-11-05 19:02:17",
      "escalation_id": 467,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 6141,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "i have worked with both database technologies",
      "message_date_and_time": "2026-11-05 19:05:29",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6142,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "How many years of experience do you have with Go or PHP?",
      "message_date_and_time": "2026-11-05 19:06:01",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "number"
    },
    {
      "message_id": 6143,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Hi, just to confirm: have you worked with databases before? Please reply Yes or No.",
      "message_date_and_time": "2026-11-05 19:15:29",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 6144,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Yes",
      "message_date_and_time": "2026-11-05 19:16:14",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6145,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Thanks for your reply. You mentioned you have worked with databases—could you please clarify your experience a bit more?",
      "message_date_and_time": "2026-11-05 19:17:45",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    }
  ]
}

AI Response (BATCH):
{
  "classifications": [
    {
      "type": "answer",
      "related_message_id": 6145,
      "parent_escalation_id": 0,
      "extracted_answer": "true",
      "answer_type": "boolean",
      "reason": "Applicant answered the clarification request about database experience, confirming they have worked with these databases: 6 years with MySQL and 2 years with Firebase (equivalent to 'yes').",
      "grouped_message_ids": [
        6146
      ],
      "representative_message_id": 6146,
      "follow_up_question": "Move to next Question"
    }
  ]
}


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

AI Input (BATCH):
{
  "latest_messages": [
    {
      "message_id": 6148,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "I clearly  answered as yes",
      "message_date_and_time": "2026-11-05 19:23:16",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ],
  "conversation_history": [
    {
      "message_id": 6137,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Have you worked with databases before?(Yes/No)",
      "message_date_and_time": "2026-11-05 18:50:18",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 6138,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "What kind of databases do you company expecting me to be flurnet",
      "message_date_and_time": "2026-11-05 18:50:59",
      "escalation_id": 467,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6140,
      "message_parent_id": 6138,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "For this position we are expecting mostly my SQL , and fire base",
      "message_date_and_time": "2026-11-05 19:02:17",
      "escalation_id": 467,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 6141,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "i have worked with both database technologies",
      "message_date_and_time": "2026-11-05 19:05:29",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6142,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "How many years of experience do you have with Go or PHP?",
      "message_date_and_time": "2026-11-05 19:06:01",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "number"
    },
    {
      "message_id": 6143,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Hi, just to confirm: have you worked with databases before? Please reply Yes or No.",
      "message_date_and_time": "2026-11-05 19:15:29",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 6144,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Yes",
      "message_date_and_time": "2026-11-05 19:16:14",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6145,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Thanks for your reply. You mentioned you have worked with databases—could you please clarify your experience a bit more?",
      "message_date_and_time": "2026-11-05 19:17:45",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 6146,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "I worked with 6  years with my SQL and 2 years with fire base",
      "message_date_and_time": "2026-11-05 19:18:27",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6147,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Thanks, but your last reply didn’t answer whether you’ve worked with databases before. Could you please confirm yes or no?",
      "message_date_and_time": "2026-11-05 19:22:14",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    }
  ]
}

AI Response (BATCH):
{
  "classifications": [
    {
      "type": "answer",
      "related_message_id": 6147,
      "parent_escalation_id": 0,
      "extracted_answer": "true",
      "answer_type": "boolean",
      "reason": "Applicant confirms their earlier 'Yes' reply to the yes/no database question, so this is a clear affirmative answer to the pending confirmation (message 6147)",
      "grouped_message_ids": [
        6148
      ],
      "representative_message_id": 6148,
      "follow_up_question": "Move to next Question"
    }
  ]
}


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

AI Input (BATCH):
{
  "latest_messages": [
    {
      "message_id": 6149,
      "message_parent_id": 6142,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "I haven't worked with these mentioned languages",
      "message_date_and_time": "2026-11-05 19:27:49",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ],
  "conversation_history": [
    {
      "message_id": 6138,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "What kind of databases do you company expecting me to be flurnet",
      "message_date_and_time": "2026-11-05 18:50:59",
      "escalation_id": 467,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6140,
      "message_parent_id": 6138,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "For this position we are expecting mostly my SQL , and fire base",
      "message_date_and_time": "2026-11-05 19:02:17",
      "escalation_id": 467,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 6141,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "i have worked with both database technologies",
      "message_date_and_time": "2026-11-05 19:05:29",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6142,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "How many years of experience do you have with Go or PHP?",
      "message_date_and_time": "2026-11-05 19:06:01",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "number"
    },
    {
      "message_id": 6143,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Hi, just to confirm: have you worked with databases before? Please reply Yes or No.",
      "message_date_and_time": "2026-11-05 19:15:29",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 6144,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Yes",
      "message_date_and_time": "2026-11-05 19:16:14",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6145,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Thanks for your reply. You mentioned you have worked with databases—could you please clarify your experience a bit more?",
      "message_date_and_time": "2026-11-05 19:17:45",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 6146,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "I worked with 6  years with my SQL and 2 years with fire base",
      "message_date_and_time": "2026-11-05 19:18:27",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6147,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Thanks, but your last reply didn’t answer whether you’ve worked with databases before. Could you please confirm yes or no?",
      "message_date_and_time": "2026-11-05 19:22:14",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 6148,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "I clearly  answered as yes",
      "message_date_and_time": "2026-11-05 19:23:16",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ]
}

AI Response (BATCH):
{
  "classifications": [
    {
      "type": "answer",
      "related_message_id": 6142,
      "parent_escalation_id": 0,
      "extracted_answer": "0",
      "answer_type": "number",
      "reason": "Applicant indicates no experience with the mentioned languages (Go/PHP), which effectively answers 0 years.",
      "grouped_message_ids": [
        6149
      ],
      "representative_message_id": 6149,
      "follow_up_question": "Move to next Question"
    }
  ]
}


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

AI Input (BATCH):
{
  "latest_messages": [
    {
      "message_id": 6151,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "yes i have a degree on computer science from UOC",
      "message_date_and_time": "2026-11-05 19:31:59",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ],
  "conversation_history": [
    {
      "message_id": 6141,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "i have worked with both database technologies",
      "message_date_and_time": "2026-11-05 19:05:29",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6142,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "How many years of experience do you have with Go or PHP?",
      "message_date_and_time": "2026-11-05 19:06:01",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "number"
    },
    {
      "message_id": 6143,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Hi, just to confirm: have you worked with databases before? Please reply Yes or No.",
      "message_date_and_time": "2026-11-05 19:15:29",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 6144,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Yes",
      "message_date_and_time": "2026-11-05 19:16:14",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6145,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Thanks for your reply. You mentioned you have worked with databases—could you please clarify your experience a bit more?",
      "message_date_and_time": "2026-11-05 19:17:45",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 6146,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "I worked with 6  years with my SQL and 2 years with fire base",
      "message_date_and_time": "2026-11-05 19:18:27",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6147,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Thanks, but your last reply didn’t answer whether you’ve worked with databases before. Could you please confirm yes or no?",
      "message_date_and_time": "2026-11-05 19:22:14",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 6148,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "I clearly  answered as yes",
      "message_date_and_time": "2026-11-05 19:23:16",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6149,
      "message_parent_id": 6142,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "I haven't worked with these mentioned languages",
      "message_date_and_time": "2026-11-05 19:27:49",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6150,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "What is your highest completed level of education?\nOur least expectation is to have Degree on computer science to be qualified for this role",
      "message_date_and_time": "2026-11-05 19:28:24",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ]
}

AI Response (BATCH):
{
  "classifications": [
    {
      "type": "answer",
      "related_message_id": 6150,
      "parent_escalation_id": 0,
      "extracted_answer": "yes i have a degree on computer science from UOC",
      "answer_type": "text",
      "reason": "Applicant answers the pending education question with a verbatim text response",
      "grouped_message_ids": [
        6151
      ],
      "representative_message_id": 6151,
      "follow_up_question": "Move to next Question"
    }
  ]
}


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

AI Input (BATCH):
{
  "latest_messages": [
    {
      "message_id": 6157,
      "message_parent_id": 6153,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "No i am not i can join imidiately",
      "message_date_and_time": "2026-11-05 22:53:18",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ],
  "conversation_history": [
    {
      "message_id": 6144,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Yes",
      "message_date_and_time": "2026-11-05 19:16:14",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6145,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Thanks for your reply. You mentioned you have worked with databases—could you please clarify your experience a bit more?",
      "message_date_and_time": "2026-11-05 19:17:45",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 6146,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "I worked with 6  years with my SQL and 2 years with fire base",
      "message_date_and_time": "2026-11-05 19:18:27",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6147,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Thanks, but your last reply didn’t answer whether you’ve worked with databases before. Could you please confirm yes or no?",
      "message_date_and_time": "2026-11-05 19:22:14",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 6148,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "I clearly  answered as yes",
      "message_date_and_time": "2026-11-05 19:23:16",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6149,
      "message_parent_id": 6142,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "I haven't worked with these mentioned languages",
      "message_date_and_time": "2026-11-05 19:27:49",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6150,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "What is your highest completed level of education?\nOur least expectation is to have Degree on computer science to be qualified for this role",
      "message_date_and_time": "2026-11-05 19:28:24",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6151,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "yes i have a degree on computer science from UOC",
      "message_date_and_time": "2026-11-05 19:31:59",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6152,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "✅ Thank you for completing the Screening questions stage! We will review your answers and get back to you soon.",
      "message_date_and_time": "2026-11-05 19:32:28",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6153,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Are you currently employed?",
      "message_date_and_time": "2026-11-05 19:36:18",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    }
  ]
}

AI Response (BATCH):
{
  "classifications": [
    {
      "type": "answer",
      "related_message_id": 6153,
      "parent_escalation_id": 0,
      "extracted_answer": "false",
      "answer_type": "boolean",
      "reason": "Applicant answers the 'Are you currently employed?' question with 'No i am not' and adds availability to join immediately.",
      "grouped_message_ids": [
        6157
      ],
      "representative_message_id": 6157,
      "follow_up_question": "Move to next Question"
    }
  ]
}


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

AI Input (BATCH):
{
  "latest_messages": [
    {
      "message_id": 6160,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "no i'm currently un employed, and have been for a several month. Hope this won't be a blocker for the onboarding process",
      "message_date_and_time": "2026-11-05 22:56:57",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6161,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "on other hand as a plus point",
      "message_date_and_time": "2026-11-05 22:57:05",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6162,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "i can join immediately",
      "message_date_and_time": "2026-11-05 22:57:11",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ],
  "conversation_history": [
    {
      "message_id": 6147,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Thanks, but your last reply didn’t answer whether you’ve worked with databases before. Could you please confirm yes or no?",
      "message_date_and_time": "2026-11-05 19:22:14",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 6148,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "I clearly  answered as yes",
      "message_date_and_time": "2026-11-05 19:23:16",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6149,
      "message_parent_id": 6142,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "I haven't worked with these mentioned languages",
      "message_date_and_time": "2026-11-05 19:27:49",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6150,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "What is your highest completed level of education?\nOur least expectation is to have Degree on computer science to be qualified for this role",
      "message_date_and_time": "2026-11-05 19:28:24",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6151,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "yes i have a degree on computer science from UOC",
      "message_date_and_time": "2026-11-05 19:31:59",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6152,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "✅ Thank you for completing the Screening questions stage! We will review your answers and get back to you soon.",
      "message_date_and_time": "2026-11-05 19:32:28",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6153,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Are you currently employed?",
      "message_date_and_time": "2026-11-05 19:36:18",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 6157,
      "message_parent_id": 6153,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "No i am not i can join imidiately",
      "message_date_and_time": "2026-11-05 22:53:18",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6158,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Are you willing to work in a hybrid office environment?",
      "message_date_and_time": "2026-11-05 22:54:15",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 6159,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Hi, just to confirm, are you currently employed?",
      "message_date_and_time": "2026-11-05 22:55:34",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    }
  ]
}

AI Response (BATCH):
{
  "classifications": [
    {
      "type": "answer",
      "related_message_id": 6159,
      "parent_escalation_id": 0,
      "extracted_answer": "false",
      "answer_type": "boolean",
      "reason": "Grouped 3 messages: applicant confirms they are currently unemployed (several months), notes it as a plus since they can join immediately - answers the 'currently employed' yes/no question",
      "grouped_message_ids": [
        6160,
        6161,
        6162
      ],
      "representative_message_id": 6160,
      "follow_up_question": "Move to next Question"
    }
  ]
}


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

AI Input (BATCH):
{
  "latest_messages": [
    {
      "message_id": 6163,
      "message_parent_id": 6158,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "May be",
      "message_date_and_time": "2026-11-05 23:04:47",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ],
  "conversation_history": [
    {
      "message_id": 6150,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "What is your highest completed level of education?\nOur least expectation is to have Degree on computer science to be qualified for this role",
      "message_date_and_time": "2026-11-05 19:28:24",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6151,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "yes i have a degree on computer science from UOC",
      "message_date_and_time": "2026-11-05 19:31:59",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6152,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "✅ Thank you for completing the Screening questions stage! We will review your answers and get back to you soon.",
      "message_date_and_time": "2026-11-05 19:32:28",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6153,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Are you currently employed?",
      "message_date_and_time": "2026-11-05 19:36:18",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 6157,
      "message_parent_id": 6153,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "No i am not i can join imidiately",
      "message_date_and_time": "2026-11-05 22:53:18",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6158,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Are you willing to work in a hybrid office environment?",
      "message_date_and_time": "2026-11-05 22:54:15",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 6159,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Hi, just to confirm, are you currently employed?",
      "message_date_and_time": "2026-11-05 22:55:34",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 6160,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "no i'm currently un employed, and have been for a several month. Hope this won't be a blocker for the onboarding process",
      "message_date_and_time": "2026-11-05 22:56:57",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6161,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "on other hand as a plus point",
      "message_date_and_time": "2026-11-05 22:57:05",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6162,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "i can join immediately",
      "message_date_and_time": "2026-11-05 22:57:11",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ]
}

AI Response (BATCH):
{
  "classifications": [
    {
      "type": "other",
      "related_message_id": 6158,
      "parent_escalation_id": 0,
      "extracted_answer": null,
      "reason": "Vague answer to a yes/no question: 'May be' does not clearly confirm willingness to work in a hybrid office environment",
      "grouped_message_ids": [
        6163
      ],
      "representative_message_id": 6163,
      "follow_up_question": "Could you please confirm: are you willing to work in a hybrid office environment (partly in office, partly remote)? Please answer yes or no."
    }
  ]
}


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

AI Input (BATCH):
{
  "latest_messages": [
    {
      "message_id": 6165,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "No",
      "message_date_and_time": "2026-11-06 01:30:40",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ],
  "conversation_history": [
    {
      "message_id": 6152,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "✅ Thank you for completing the Screening questions stage! We will review your answers and get back to you soon.",
      "message_date_and_time": "2026-11-05 19:32:28",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6153,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Are you currently employed?",
      "message_date_and_time": "2026-11-05 19:36:18",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 6157,
      "message_parent_id": 6153,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "No i am not i can join imidiately",
      "message_date_and_time": "2026-11-05 22:53:18",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6158,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Are you willing to work in a hybrid office environment?",
      "message_date_and_time": "2026-11-05 22:54:15",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 6159,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Hi, just to confirm, are you currently employed?",
      "message_date_and_time": "2026-11-05 22:55:34",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 6160,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "no i'm currently un employed, and have been for a several month. Hope this won't be a blocker for the onboarding process",
      "message_date_and_time": "2026-11-05 22:56:57",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6161,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "on other hand as a plus point",
      "message_date_and_time": "2026-11-05 22:57:05",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6162,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "i can join immediately",
      "message_date_and_time": "2026-11-05 22:57:11",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6163,
      "message_parent_id": 6158,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "May be",
      "message_date_and_time": "2026-11-05 23:04:47",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6164,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Could you please confirm: are you willing to work in a hybrid office environment (partly in office, partly remote)? Please answer yes or no.",
      "message_date_and_time": "2026-11-06 00:43:28",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    }
  ]
}

AI Response (BATCH):
{
  "classifications": [
    {
      "type": "answer",
      "related_message_id": 6164,
      "parent_escalation_id": 0,
      "extracted_answer": "false",
      "answer_type": "boolean",
      "reason": "Clear 'No' answer to the pending yes/no question about willingness to work in a hybrid office environment",
      "grouped_message_ids": [
        6165
      ],
      "representative_message_id": 6165,
      "follow_up_question": "Move to next Question"
    }
  ]
}


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

AI Input (BATCH):
{
  "latest_messages": [
    {
      "message_id": 6168,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "No",
      "message_date_and_time": "2026-11-06 01:33:07",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ],
  "conversation_history": [
    {
      "message_id": 6158,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Are you willing to work in a hybrid office environment?",
      "message_date_and_time": "2026-11-05 22:54:15",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 6159,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Hi, just to confirm, are you currently employed?",
      "message_date_and_time": "2026-11-05 22:55:34",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 6160,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "no i'm currently un employed, and have been for a several month. Hope this won't be a blocker for the onboarding process",
      "message_date_and_time": "2026-11-05 22:56:57",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6161,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "on other hand as a plus point",
      "message_date_and_time": "2026-11-05 22:57:05",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6162,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "i can join immediately",
      "message_date_and_time": "2026-11-05 22:57:11",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6163,
      "message_parent_id": 6158,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "May be",
      "message_date_and_time": "2026-11-05 23:04:47",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6164,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Could you please confirm: are you willing to work in a hybrid office environment (partly in office, partly remote)? Please answer yes or no.",
      "message_date_and_time": "2026-11-06 00:43:28",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 6165,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "No",
      "message_date_and_time": "2026-11-06 01:30:40",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6166,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "What is your total professional experience (in years)?",
      "message_date_and_time": "2026-11-06 01:31:27",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "number"
    },
    {
      "message_id": 6167,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Hi, could you please confirm whether you’d be open to a hybrid working setup?",
      "message_date_and_time": "2026-11-06 01:32:23",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    }
  ]
}

AI Response (BATCH):
{
  "classifications": [
    {
      "type": "answer",
      "related_message_id": 6167,
      "parent_escalation_id": 0,
      "extracted_answer": "false",
      "answer_type": "boolean",
      "reason": "Applicant's 'No' directly answers the pending yes/no question about willingness to work in a hybrid setup",
      "grouped_message_ids": [
        6168
      ],
      "representative_message_id": 6168,
      "follow_up_question": "Move to next Question"
    }
  ]
}


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

AI Input (BATCH):
{
  "latest_messages": [
    {
      "message_id": 6171,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "oh sorry i like to work in a hybrid set up",
      "message_date_and_time": "2026-11-06 01:38:38",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ],
  "conversation_history": [
    {
      "message_id": 6160,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "no i'm currently un employed, and have been for a several month. Hope this won't be a blocker for the onboarding process",
      "message_date_and_time": "2026-11-05 22:56:57",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6161,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "on other hand as a plus point",
      "message_date_and_time": "2026-11-05 22:57:05",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6162,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "i can join immediately",
      "message_date_and_time": "2026-11-05 22:57:11",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6163,
      "message_parent_id": 6158,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "May be",
      "message_date_and_time": "2026-11-05 23:04:47",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6164,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Could you please confirm: are you willing to work in a hybrid office environment (partly in office, partly remote)? Please answer yes or no.",
      "message_date_and_time": "2026-11-06 00:43:28",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 6165,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "No",
      "message_date_and_time": "2026-11-06 01:30:40",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6166,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "What is your total professional experience (in years)?",
      "message_date_and_time": "2026-11-06 01:31:27",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "number"
    },
    {
      "message_id": 6167,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Hi, could you please confirm whether you’d be open to a hybrid working setup?",
      "message_date_and_time": "2026-11-06 01:32:23",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 6168,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "No",
      "message_date_and_time": "2026-11-06 01:33:07",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6169,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Hi, just checking—would you be open to a hybrid office setup?",
      "message_date_and_time": "2026-11-06 01:34:55",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    }
  ]
}

AI Response (BATCH):
{
  "classifications": [
    {
      "type": "answer",
      "related_message_id": 6169,
      "parent_escalation_id": 0,
      "extracted_answer": "true",
      "answer_type": "boolean",
      "reason": "Applicant confirms willingness to work in a hybrid setup, answering the pending hybrid-work question affirmatively.",
      "grouped_message_ids": [
        6171
      ],
      "representative_message_id": 6171,
      "follow_up_question": "Move to next Question"
    }
  ]
}


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

AI Input (BATCH):
{
  "latest_messages": [
    {
      "message_id": 6172,
      "message_parent_id": 6166,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "i have experiance as QA 2",
      "message_date_and_time": "2026-11-06 01:40:45",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6173,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "dev as",
      "message_date_and_time": "2026-11-06 01:40:48",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6174,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "4",
      "message_date_and_time": "2026-11-06 01:40:50",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6175,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "what did you ask",
      "message_date_and_time": "2026-11-06 01:40:56",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6176,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "another 3 as a lead",
      "message_date_and_time": "2026-11-06 01:41:05",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ],
  "conversation_history": [
    {
      "message_id": 6161,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "on other hand as a plus point",
      "message_date_and_time": "2026-11-05 22:57:05",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6162,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "i can join immediately",
      "message_date_and_time": "2026-11-05 22:57:11",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6163,
      "message_parent_id": 6158,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "May be",
      "message_date_and_time": "2026-11-05 23:04:47",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6164,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Could you please confirm: are you willing to work in a hybrid office environment (partly in office, partly remote)? Please answer yes or no.",
      "message_date_and_time": "2026-11-06 00:43:28",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 6165,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "No",
      "message_date_and_time": "2026-11-06 01:30:40",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6166,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "What is your total professional experience (in years)?",
      "message_date_and_time": "2026-11-06 01:31:27",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "number"
    },
    {
      "message_id": 6167,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Hi, could you please confirm whether you’d be open to a hybrid working setup?",
      "message_date_and_time": "2026-11-06 01:32:23",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 6168,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "No",
      "message_date_and_time": "2026-11-06 01:33:07",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6169,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Hi, just checking—would you be open to a hybrid office setup?",
      "message_date_and_time": "2026-11-06 01:34:55",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 6171,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "oh sorry i like to work in a hybrid set up",
      "message_date_and_time": "2026-11-06 01:38:38",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ]
}

AI Response (BATCH):
{
  "classifications": [
    {
      "type": "answer",
      "related_message_id": 6166,
      "parent_escalation_id": 0,
      "extracted_answer": "9",
      "answer_type": "number",
      "reason": "Grouped 4 messages answering total professional experience: 2 years as QA + 4 years as dev + 3 years as lead = 9 years total",
      "grouped_message_ids": [
        6172,
        6173,
        6174,
        6176
      ],
      "representative_message_id": 6172,
      "follow_up_question": "Move to next Question"
    },
    {
      "type": "other",
      "related_message_id": 6166,
      "parent_escalation_id": 0,
      "extracted_answer": null,
      "reason": "Applicant asks 'what did you ask' - clarification request about the wording of the pending question, needs a human recruiter to restate it",
      "grouped_message_ids": [
        6175
      ],
      "representative_message_id": 6175,
      "follow_up_question": null
    }
  ]
}


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

AI Input (BATCH):
{
  "latest_messages": [
    {
      "message_id": 6179,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "i mentioned in clear english",
      "message_date_and_time": "2026-11-06 01:44:06",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ],
  "conversation_history": [
    {
      "message_id": 6168,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "No",
      "message_date_and_time": "2026-11-06 01:33:07",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6169,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Hi, just checking—would you be open to a hybrid office setup?",
      "message_date_and_time": "2026-11-06 01:34:55",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 6171,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "oh sorry i like to work in a hybrid set up",
      "message_date_and_time": "2026-11-06 01:38:38",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6172,
      "message_parent_id": 6166,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "i have experiance as QA 2",
      "message_date_and_time": "2026-11-06 01:40:45",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6173,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "dev as",
      "message_date_and_time": "2026-11-06 01:40:48",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6174,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "4",
      "message_date_and_time": "2026-11-06 01:40:50",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6175,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "what did you ask",
      "message_date_and_time": "2026-11-06 01:40:56",
      "escalation_id": 468,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6176,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "another 3 as a lead",
      "message_date_and_time": "2026-11-06 01:41:05",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6177,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "What is your current job title or role?",
      "message_date_and_time": "2026-11-06 01:41:41",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6178,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Hi, could you please resend your total professional experience in years in clear English?",
      "message_date_and_time": "2026-11-06 01:42:58",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "number"
    }
  ]
}

AI Response (BATCH):
{
  "classifications": [
    {
      "type": "other",
      "related_message_id": 6178,
      "parent_escalation_id": 0,
      "extracted_answer": null,
      "reason": "Applicant pushes back with 'i mentioned in clear english' instead of providing the total years of experience requested; no numeric answer given, so it does not satisfy the pending question. Rewording the question may elicit the number.",
      "grouped_message_ids": [
        6179
      ],
      "representative_message_id": 6179,
      "follow_up_question": "Sorry for the confusion! Could you please just share your total professional experience as a number of years? For example: 3 years, 4 years, 5 years, etc."
    }
  ]
}


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

AI Input (BATCH):
{
  "latest_messages": [
    {
      "message_id": 6181,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "9 years",
      "message_date_and_time": "2026-11-06 01:44:55",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ],
  "conversation_history": [
    {
      "message_id": 6171,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "oh sorry i like to work in a hybrid set up",
      "message_date_and_time": "2026-11-06 01:38:38",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6172,
      "message_parent_id": 6166,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "i have experiance as QA 2",
      "message_date_and_time": "2026-11-06 01:40:45",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6173,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "dev as",
      "message_date_and_time": "2026-11-06 01:40:48",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6174,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "4",
      "message_date_and_time": "2026-11-06 01:40:50",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6175,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "what did you ask",
      "message_date_and_time": "2026-11-06 01:40:56",
      "escalation_id": 468,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6176,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "another 3 as a lead",
      "message_date_and_time": "2026-11-06 01:41:05",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6177,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "What is your current job title or role?",
      "message_date_and_time": "2026-11-06 01:41:41",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6178,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Hi, could you please resend your total professional experience in years in clear English?",
      "message_date_and_time": "2026-11-06 01:42:58",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "number"
    },
    {
      "message_id": 6179,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "i mentioned in clear english",
      "message_date_and_time": "2026-11-06 01:44:06",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6180,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Sorry for the confusion! Could you please just share your total professional experience as a number of years? For example: 3 years, 4 years, 5 years, etc.",
      "message_date_and_time": "2026-11-06 01:44:26",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "number"
    }
  ]
}

AI Response (BATCH):
{
  "classifications": [
    {
      "type": "answer",
      "related_message_id": 6180,
      "parent_escalation_id": 0,
      "extracted_answer": "9",
      "answer_type": "number",
      "reason": "Applicant provided total professional experience as 9 years, answering the pending question requesting a numeric value",
      "grouped_message_ids": [
        6181
      ],
      "representative_message_id": 6181,
      "follow_up_question": "Move to next Question"
    }
  ]
}


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

AI Input (BATCH):
{
  "latest_messages": [
    {
      "message_id": 6182,
      "message_parent_id": 6177,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "let's see",
      "message_date_and_time": "2026-11-06 01:45:53",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6183,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "at the ear;y stages of my career",
      "message_date_and_time": "2026-11-06 01:46:04",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ],
  "conversation_history": [
    {
      "message_id": 6172,
      "message_parent_id": 6166,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "i have experiance as QA 2",
      "message_date_and_time": "2026-11-06 01:40:45",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6173,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "dev as",
      "message_date_and_time": "2026-11-06 01:40:48",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6174,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "4",
      "message_date_and_time": "2026-11-06 01:40:50",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6175,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "what did you ask",
      "message_date_and_time": "2026-11-06 01:40:56",
      "escalation_id": 468,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6176,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "another 3 as a lead",
      "message_date_and_time": "2026-11-06 01:41:05",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6177,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "What is your current job title or role?",
      "message_date_and_time": "2026-11-06 01:41:41",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6178,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Hi, could you please resend your total professional experience in years in clear English?",
      "message_date_and_time": "2026-11-06 01:42:58",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "number"
    },
    {
      "message_id": 6179,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "i mentioned in clear english",
      "message_date_and_time": "2026-11-06 01:44:06",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6180,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Sorry for the confusion! Could you please just share your total professional experience as a number of years? For example: 3 years, 4 years, 5 years, etc.",
      "message_date_and_time": "2026-11-06 01:44:26",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "number"
    },
    {
      "message_id": 6181,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "9 years",
      "message_date_and_time": "2026-11-06 01:44:55",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ]
}

AI Response (BATCH):
{
  "classifications": [
    {
      "type": "other",
      "related_message_id": 6177,
      "parent_escalation_id": 0,
      "extracted_answer": null,
      "reason": "Vague response about career stage, does not provide the requested job title or role",
      "grouped_message_ids": [
        6182,
        6183
      ],
      "representative_message_id": 6182,
      "follow_up_question": "Could you please share your current job title or role? For example: Software Engineer, QA Engineer, etc."
    }
  ]
}


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

AI Input (BATCH):
{
  "latest_messages": [
    {
      "message_id": 6184,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "i worked as a QA engineer",
      "message_date_and_time": "2026-11-06 01:46:10",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6186,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "in recenmt days i go by",
      "message_date_and_time": "2026-11-06 01:46:18",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6187,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Tech lead",
      "message_date_and_time": "2026-11-06 01:46:22",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ],
  "conversation_history": [
    {
      "message_id": 6174,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "4",
      "message_date_and_time": "2026-11-06 01:40:50",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6175,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "what did you ask",
      "message_date_and_time": "2026-11-06 01:40:56",
      "escalation_id": 468,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6176,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "another 3 as a lead",
      "message_date_and_time": "2026-11-06 01:41:05",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6177,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "What is your current job title or role?",
      "message_date_and_time": "2026-11-06 01:41:41",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6178,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Hi, could you please resend your total professional experience in years in clear English?",
      "message_date_and_time": "2026-11-06 01:42:58",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "number"
    },
    {
      "message_id": 6179,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "i mentioned in clear english",
      "message_date_and_time": "2026-11-06 01:44:06",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6180,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Sorry for the confusion! Could you please just share your total professional experience as a number of years? For example: 3 years, 4 years, 5 years, etc.",
      "message_date_and_time": "2026-11-06 01:44:26",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "number"
    },
    {
      "message_id": 6181,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "9 years",
      "message_date_and_time": "2026-11-06 01:44:55",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6182,
      "message_parent_id": 6177,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "let's see",
      "message_date_and_time": "2026-11-06 01:45:53",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6183,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "at the ear;y stages of my career",
      "message_date_and_time": "2026-11-06 01:46:04",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ]
}

AI Response (BATCH):
{
  "classifications": [
    {
      "type": "answer",
      "related_message_id": 6177,
      "parent_escalation_id": 0,
      "extracted_answer": "i worked as a QA engineer in recenmt days i go by Tech lead",
      "answer_type": "text",
      "reason": "Grouped 3 messages answering current job title/role",
      "grouped_message_ids": [
        6184,
        6186,
        6187
      ],
      "representative_message_id": 6187,
      "follow_up_question": "Move to next Question"
    }
  ]
}


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

AI Input (BATCH):
{
  "latest_messages": [
    {
      "message_id": 6190,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "then it will be tech lead",
      "message_date_and_time": "2026-11-06 01:50:55",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ],
  "conversation_history": [
    {
      "message_id": 6180,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Sorry for the confusion! Could you please just share your total professional experience as a number of years? For example: 3 years, 4 years, 5 years, etc.",
      "message_date_and_time": "2026-11-06 01:44:26",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "number"
    },
    {
      "message_id": 6181,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "9 years",
      "message_date_and_time": "2026-11-06 01:44:55",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6182,
      "message_parent_id": 6177,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "let's see",
      "message_date_and_time": "2026-11-06 01:45:53",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6183,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "at the ear;y stages of my career",
      "message_date_and_time": "2026-11-06 01:46:04",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6184,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "i worked as a QA engineer",
      "message_date_and_time": "2026-11-06 01:46:10",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6185,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Could you please share your current job title or role? For example: Software Engineer, QA Engineer, etc.",
      "message_date_and_time": "2026-11-06 01:46:17",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6186,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "in recenmt days i go by",
      "message_date_and_time": "2026-11-06 01:46:18",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6187,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Tech lead",
      "message_date_and_time": "2026-11-06 01:46:22",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6188,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "What's the favorite characteristic you like about this job role?",
      "message_date_and_time": "2026-11-06 01:46:56",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6189,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Hi, could you please share just your latest job title/role?",
      "message_date_and_time": "2026-11-06 01:48:37",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ]
}

AI Response (BATCH):
{
  "classifications": [
    {
      "type": "answer",
      "related_message_id": 6189,
      "parent_escalation_id": 0,
      "extracted_answer": "then it will be tech lead",
      "answer_type": "text",
      "reason": "Applicant confirms their latest job title as Tech Lead, answering the re-asked question about latest job title/role; text answer kept verbatim",
      "grouped_message_ids": [
        6190
      ],
      "representative_message_id": 6190,
      "follow_up_question": "Move to next Question"
    }
  ]
}


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

AI Input (BATCH):
{
  "latest_messages": [
    {
      "message_id": 6192,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Tech lead",
      "message_date_and_time": "2026-11-06 01:53:38",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ],
  "conversation_history": [
    {
      "message_id": 6182,
      "message_parent_id": 6177,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "let's see",
      "message_date_and_time": "2026-11-06 01:45:53",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6183,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "at the ear;y stages of my career",
      "message_date_and_time": "2026-11-06 01:46:04",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6184,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "i worked as a QA engineer",
      "message_date_and_time": "2026-11-06 01:46:10",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6185,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Could you please share your current job title or role? For example: Software Engineer, QA Engineer, etc.",
      "message_date_and_time": "2026-11-06 01:46:17",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6186,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "in recenmt days i go by",
      "message_date_and_time": "2026-11-06 01:46:18",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6187,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Tech lead",
      "message_date_and_time": "2026-11-06 01:46:22",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6188,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "What's the favorite characteristic you like about this job role?",
      "message_date_and_time": "2026-11-06 01:46:56",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6189,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Hi, could you please share just your latest job title/role?",
      "message_date_and_time": "2026-11-06 01:48:37",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6190,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "then it will be tech lead",
      "message_date_and_time": "2026-11-06 01:50:55",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6191,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Hi, could you please confirm your current job title/role for our records?",
      "message_date_and_time": "2026-11-06 01:52:49",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ]
}

AI Response (BATCH):
{
  "classifications": [
    {
      "type": "answer",
      "related_message_id": 6191,
      "parent_escalation_id": 0,
      "extracted_answer": "Tech lead",
      "answer_type": "text",
      "reason": "Applicant directly answers the pending question about their current job title/role; text kept verbatim",
      "grouped_message_ids": [
        6192
      ],
      "representative_message_id": 6192,
      "follow_up_question": "Move to next Question"
    }
  ]
}


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

AI Input (BATCH):
{
  "latest_messages": [
    {
      "message_id": 6193,
      "message_parent_id": 6188,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Challenges in this job motivates me to who i want to be",
      "message_date_and_time": "2026-11-06 01:54:04",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ],
  "conversation_history": [
    {
      "message_id": 6183,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "at the ear;y stages of my career",
      "message_date_and_time": "2026-11-06 01:46:04",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6184,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "i worked as a QA engineer",
      "message_date_and_time": "2026-11-06 01:46:10",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6185,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Could you please share your current job title or role? For example: Software Engineer, QA Engineer, etc.",
      "message_date_and_time": "2026-11-06 01:46:17",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6186,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "in recenmt days i go by",
      "message_date_and_time": "2026-11-06 01:46:18",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6187,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Tech lead",
      "message_date_and_time": "2026-11-06 01:46:22",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6188,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "What's the favorite characteristic you like about this job role?",
      "message_date_and_time": "2026-11-06 01:46:56",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6189,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Hi, could you please share just your latest job title/role?",
      "message_date_and_time": "2026-11-06 01:48:37",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6190,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "then it will be tech lead",
      "message_date_and_time": "2026-11-06 01:50:55",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6191,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Hi, could you please confirm your current job title/role for our records?",
      "message_date_and_time": "2026-11-06 01:52:49",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6192,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Tech lead",
      "message_date_and_time": "2026-11-06 01:53:38",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ]
}

AI Response (BATCH):
{
  "classifications": [
    {
      "type": "answer",
      "related_message_id": 6188,
      "parent_escalation_id": 0,
      "extracted_answer": "Challenges in this job motivates me to who i want to be",
      "answer_type": "text",
      "reason": "Applicant answers the question about the favorite characteristic of the job role; text kept verbatim, separate from the already-answered job title question (6191/6192)",
      "grouped_message_ids": [
        6193
      ],
      "representative_message_id": 6193,
      "follow_up_question": "Move to next Question"
    }
  ]
}


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

AI Input (BATCH):
{
  "latest_messages": [
    {
      "message_id": 6195,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "4.5",
      "message_date_and_time": "2026-11-06 01:55:05",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ],
  "conversation_history": [
    {
      "message_id": 6185,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Could you please share your current job title or role? For example: Software Engineer, QA Engineer, etc.",
      "message_date_and_time": "2026-11-06 01:46:17",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6186,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "in recenmt days i go by",
      "message_date_and_time": "2026-11-06 01:46:18",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6187,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Tech lead",
      "message_date_and_time": "2026-11-06 01:46:22",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6188,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "What's the favorite characteristic you like about this job role?",
      "message_date_and_time": "2026-11-06 01:46:56",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6189,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Hi, could you please share just your latest job title/role?",
      "message_date_and_time": "2026-11-06 01:48:37",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6190,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "then it will be tech lead",
      "message_date_and_time": "2026-11-06 01:50:55",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6191,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Hi, could you please confirm your current job title/role for our records?",
      "message_date_and_time": "2026-11-06 01:52:49",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6192,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Tech lead",
      "message_date_and_time": "2026-11-06 01:53:38",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6193,
      "message_parent_id": 6188,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Challenges in this job motivates me to who i want to be",
      "message_date_and_time": "2026-11-06 01:54:04",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6194,
      "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 leading teams through high-pressure situations?",
      "message_date_and_time": "2026-11-06 01:54:36",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "decimal"
    }
  ]
}

AI Response (BATCH):
{
  "classifications": [
    {
      "type": "answer",
      "related_message_id": 6194,
      "parent_escalation_id": 0,
      "extracted_answer": "4.5",
      "answer_type": "decimal",
      "reason": "Applicant provided a confidence rating of 4.5, which is within the valid 1.0 to 5.0 scale",
      "grouped_message_ids": [
        6195
      ],
      "representative_message_id": 6195,
      "follow_up_question": "Move to next Question"
    }
  ]
}


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

AI Input (BATCH):
{
  "latest_messages": [
    {
      "message_id": 6198,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "4.25",
      "message_date_and_time": "2026-11-06 02:06:57",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ],
  "conversation_history": [
    {
      "message_id": 6188,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "What's the favorite characteristic you like about this job role?",
      "message_date_and_time": "2026-11-06 01:46:56",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6189,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Hi, could you please share just your latest job title/role?",
      "message_date_and_time": "2026-11-06 01:48:37",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6190,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "then it will be tech lead",
      "message_date_and_time": "2026-11-06 01:50:55",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6191,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Hi, could you please confirm your current job title/role for our records?",
      "message_date_and_time": "2026-11-06 01:52:49",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6192,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Tech lead",
      "message_date_and_time": "2026-11-06 01:53:38",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6193,
      "message_parent_id": 6188,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Challenges in this job motivates me to who i want to be",
      "message_date_and_time": "2026-11-06 01:54:04",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6194,
      "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 leading teams through high-pressure situations?",
      "message_date_and_time": "2026-11-06 01:54:36",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "decimal"
    },
    {
      "message_id": 6195,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "4.5",
      "message_date_and_time": "2026-11-06 01:55:05",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6196,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "✅ Thank you for completing the Onboard testing level questions stage! We will review your answers and get back to you soon.",
      "message_date_and_time": "2026-11-06 01:55:35",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6197,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Hi, could you please rate your confidence in leading teams during high-pressure situations on a 1–5 scale again?",
      "message_date_and_time": "2026-11-06 01:57:04",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "decimal"
    }
  ]
}

AI Response (BATCH):
{
  "classifications": [
    {
      "type": "answer",
      "related_message_id": 6197,
      "parent_escalation_id": 0,
      "extracted_answer": "4.25",
      "answer_type": "decimal",
      "reason": "Applicant provided a decimal rating of 4.25 on the 1–5 confidence scale, which answers the pending question and is within the valid range",
      "grouped_message_ids": [
        6198
      ],
      "representative_message_id": 6198,
      "follow_up_question": "Move to next Question"
    }
  ]
}


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

AI Input (BATCH):
{
  "latest_messages": [
    {
      "message_id": 6200,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Yes",
      "message_date_and_time": "2026-11-06 02:09:27",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6201,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "no",
      "message_date_and_time": "2026-11-06 02:09:29",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6202,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "maybe",
      "message_date_and_time": "2026-11-06 02:09:30",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ],
  "conversation_history": [
    {
      "message_id": 6190,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "then it will be tech lead",
      "message_date_and_time": "2026-11-06 01:50:55",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6191,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Hi, could you please confirm your current job title/role for our records?",
      "message_date_and_time": "2026-11-06 01:52:49",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6192,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Tech lead",
      "message_date_and_time": "2026-11-06 01:53:38",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6193,
      "message_parent_id": 6188,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Challenges in this job motivates me to who i want to be",
      "message_date_and_time": "2026-11-06 01:54:04",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6194,
      "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 leading teams through high-pressure situations?",
      "message_date_and_time": "2026-11-06 01:54:36",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "decimal"
    },
    {
      "message_id": 6195,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "4.5",
      "message_date_and_time": "2026-11-06 01:55:05",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6196,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "✅ Thank you for completing the Onboard testing level questions stage! We will review your answers and get back to you soon.",
      "message_date_and_time": "2026-11-06 01:55:35",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6197,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Hi, could you please rate your confidence in leading teams during high-pressure situations on a 1–5 scale again?",
      "message_date_and_time": "2026-11-06 01:57:04",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "decimal"
    },
    {
      "message_id": 6198,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "4.25",
      "message_date_and_time": "2026-11-06 02:06:57",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6199,
      "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-11-06 02:09:00",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    }
  ]
}

AI Response (BATCH):
{
  "classifications": [
    {
      "type": "other",
      "related_message_id": 6199,
      "parent_escalation_id": 0,
      "extracted_answer": null,
      "reason": "Conflicting replies to a yes/no question: 'Yes', then 'no', then 'maybe' - no clear boolean answer can be extracted",
      "grouped_message_ids": [
        6200,
        6201,
        6202
      ],
      "representative_message_id": 6200,
      "follow_up_question": "Could you please confirm with a single answer: Are you comfortable working in a team? Please reply yes or no."
    }
  ]
}


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

AI Input (BATCH):
{
  "latest_messages": [
    {
      "message_id": 6204,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Yes",
      "message_date_and_time": "2026-11-06 02:10:26",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ],
  "conversation_history": [
    {
      "message_id": 6194,
      "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 leading teams through high-pressure situations?",
      "message_date_and_time": "2026-11-06 01:54:36",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "decimal"
    },
    {
      "message_id": 6195,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "4.5",
      "message_date_and_time": "2026-11-06 01:55:05",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6196,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "✅ Thank you for completing the Onboard testing level questions stage! We will review your answers and get back to you soon.",
      "message_date_and_time": "2026-11-06 01:55:35",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6197,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Hi, could you please rate your confidence in leading teams during high-pressure situations on a 1–5 scale again?",
      "message_date_and_time": "2026-11-06 01:57:04",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "decimal"
    },
    {
      "message_id": 6198,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "4.25",
      "message_date_and_time": "2026-11-06 02:06:57",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6199,
      "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-11-06 02:09:00",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 6200,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Yes",
      "message_date_and_time": "2026-11-06 02:09:27",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6201,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "no",
      "message_date_and_time": "2026-11-06 02:09:29",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6202,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "maybe",
      "message_date_and_time": "2026-11-06 02:09:30",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6203,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Could you please confirm with a single answer: Are you comfortable working in a team? Please reply yes or no.",
      "message_date_and_time": "2026-11-06 02:09:52",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    }
  ]
}

AI Response (BATCH):
{
  "classifications": [
    {
      "type": "answer",
      "related_message_id": 6203,
      "parent_escalation_id": 0,
      "extracted_answer": "true",
      "answer_type": "boolean",
      "reason": "Applicant clearly confirms 'Yes' to the re-asked yes/no question about being comfortable working in a team",
      "grouped_message_ids": [
        6204
      ],
      "representative_message_id": 6204,
      "follow_up_question": "Move to next Question"
    }
  ]
}


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

AI Input (BATCH):
{
  "latest_messages": [
    {
      "message_id": 6206,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "5",
      "message_date_and_time": "2026-11-06 02:13:34",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ],
  "conversation_history": [
    {
      "message_id": 6196,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "✅ Thank you for completing the Onboard testing level questions stage! We will review your answers and get back to you soon.",
      "message_date_and_time": "2026-11-06 01:55:35",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6197,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Hi, could you please rate your confidence in leading teams during high-pressure situations on a 1–5 scale again?",
      "message_date_and_time": "2026-11-06 01:57:04",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "decimal"
    },
    {
      "message_id": 6198,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "4.25",
      "message_date_and_time": "2026-11-06 02:06:57",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6199,
      "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-11-06 02:09:00",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 6200,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Yes",
      "message_date_and_time": "2026-11-06 02:09:27",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6201,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "no",
      "message_date_and_time": "2026-11-06 02:09:29",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6202,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "maybe",
      "message_date_and_time": "2026-11-06 02:09:30",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6203,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Could you please confirm with a single answer: Are you comfortable working in a team? Please reply yes or no.",
      "message_date_and_time": "2026-11-06 02:09:52",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 6204,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Yes",
      "message_date_and_time": "2026-11-06 02:10:26",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6205,
      "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-11-06 02:10:57",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    }
  ]
}

AI Response (BATCH):
{
  "classifications": [
    {
      "type": "answer",
      "related_message_id": 6205,
      "parent_escalation_id": 0,
      "extracted_answer": "5",
      "answer_type": "boolean",
      "reason": "Applicant answered the pending confidence-scale question with a single value (5) on the requested 1.0-5.0 scale",
      "grouped_message_ids": [
        6206
      ],
      "representative_message_id": 6206,
      "follow_up_question": "Move to next Question"
    }
  ]
}


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

AI Input (BATCH):
{
  "latest_messages": [
    {
      "message_id": 6207,
      "message_parent_id": 6205,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Yes",
      "message_date_and_time": "2026-11-06 02:17:57",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ],
  "conversation_history": [
    {
      "message_id": 6197,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Hi, could you please rate your confidence in leading teams during high-pressure situations on a 1–5 scale again?",
      "message_date_and_time": "2026-11-06 01:57:04",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "decimal"
    },
    {
      "message_id": 6198,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "4.25",
      "message_date_and_time": "2026-11-06 02:06:57",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6199,
      "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-11-06 02:09:00",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 6200,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Yes",
      "message_date_and_time": "2026-11-06 02:09:27",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6201,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "no",
      "message_date_and_time": "2026-11-06 02:09:29",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6202,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "maybe",
      "message_date_and_time": "2026-11-06 02:09:30",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6203,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Could you please confirm with a single answer: Are you comfortable working in a team? Please reply yes or no.",
      "message_date_and_time": "2026-11-06 02:09:52",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 6204,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Yes",
      "message_date_and_time": "2026-11-06 02:10:26",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6205,
      "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-11-06 02:10:57",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 6206,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "5",
      "message_date_and_time": "2026-11-06 02:13:34",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ]
}

AI Response (BATCH):
{
  "classifications": [
    {
      "type": "other",
      "related_message_id": 6205,
      "parent_escalation_id": 0,
      "extracted_answer": null,
      "reason": "Applicant replied \"Yes\" to a question asking for a 1.0-5.0 confidence rating, so it does not provide a usable scale value",
      "grouped_message_ids": [
        6207
      ],
      "representative_message_id": 6207,
      "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, or 5.0"
    }
  ]
}


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

AI Input (BATCH):
{
  "latest_messages": [
    {
      "message_id": 6209,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Yes i'm very confident making the important decisions it would be a 5",
      "message_date_and_time": "2026-11-06 02:19:58",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ],
  "conversation_history": [
    {
      "message_id": 6199,
      "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-11-06 02:09:00",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 6200,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Yes",
      "message_date_and_time": "2026-11-06 02:09:27",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6201,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "no",
      "message_date_and_time": "2026-11-06 02:09:29",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6202,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "maybe",
      "message_date_and_time": "2026-11-06 02:09:30",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6203,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Could you please confirm with a single answer: Are you comfortable working in a team? Please reply yes or no.",
      "message_date_and_time": "2026-11-06 02:09:52",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 6204,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Yes",
      "message_date_and_time": "2026-11-06 02:10:26",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6205,
      "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-11-06 02:10:57",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 6206,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "5",
      "message_date_and_time": "2026-11-06 02:13:34",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6207,
      "message_parent_id": 6205,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Yes",
      "message_date_and_time": "2026-11-06 02:17:57",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6208,
      "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, or 5.0",
      "message_date_and_time": "2026-11-06 02:18:21",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    }
  ]
}

AI Response (BATCH):
{
  "classifications": [
    {
      "type": "answer",
      "related_message_id": 6208,
      "parent_escalation_id": 0,
      "extracted_answer": "true",
      "answer_type": "boolean",
      "reason": "Applicant confirms high confidence and gives a rating of 5 on the 1.0-5.0 scale; converted to boolean per the matched question's answer_type",
      "grouped_message_ids": [
        6209
      ],
      "representative_message_id": 6209,
      "follow_up_question": "Move to next Question"
    }
  ]
}


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

AI Input (BATCH):
{
  "latest_messages": [
    {
      "message_id": 6211,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "I worked with my team and resolved the ossue",
      "message_date_and_time": "2026-11-06 02:21:24",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ],
  "conversation_history": [
    {
      "message_id": 6201,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "no",
      "message_date_and_time": "2026-11-06 02:09:29",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6202,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "maybe",
      "message_date_and_time": "2026-11-06 02:09:30",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6203,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Could you please confirm with a single answer: Are you comfortable working in a team? Please reply yes or no.",
      "message_date_and_time": "2026-11-06 02:09:52",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 6204,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Yes",
      "message_date_and_time": "2026-11-06 02:10:26",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6205,
      "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-11-06 02:10:57",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 6206,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "5",
      "message_date_and_time": "2026-11-06 02:13:34",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6207,
      "message_parent_id": 6205,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Yes",
      "message_date_and_time": "2026-11-06 02:17:57",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6208,
      "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, or 5.0",
      "message_date_and_time": "2026-11-06 02:18:21",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 6209,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Yes i'm very confident making the important decisions it would be a 5",
      "message_date_and_time": "2026-11-06 02:19:58",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6210,
      "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-11-06 02:20:31",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ]
}

AI Response (BATCH):
{
  "classifications": [
    {
      "type": "answer",
      "related_message_id": 6210,
      "parent_escalation_id": 0,
      "extracted_answer": "I worked with my team and resolved the ossue",
      "answer_type": "text",
      "reason": "Text answer to the pending challenge/resolution question, copied verbatim including original spelling",
      "grouped_message_ids": [
        6211
      ],
      "representative_message_id": 6211,
      "follow_up_question": "Move to next Question"
    }
  ]
}


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

AI Input (BATCH):
{
  "latest_messages": [
    {
      "message_id": 6214,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Yes",
      "message_date_and_time": "2026-11-06 02:23:40",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ],
  "conversation_history": [
    {
      "message_id": 6204,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Yes",
      "message_date_and_time": "2026-11-06 02:10:26",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6205,
      "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-11-06 02:10:57",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 6206,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "5",
      "message_date_and_time": "2026-11-06 02:13:34",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6207,
      "message_parent_id": 6205,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Yes",
      "message_date_and_time": "2026-11-06 02:17:57",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6208,
      "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, or 5.0",
      "message_date_and_time": "2026-11-06 02:18:21",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 6209,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Yes i'm very confident making the important decisions it would be a 5",
      "message_date_and_time": "2026-11-06 02:19:58",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6210,
      "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-11-06 02:20:31",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6211,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "I worked with my team and resolved the ossue",
      "message_date_and_time": "2026-11-06 02:21:24",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6212,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "✅ Thank you for completing the First level interview questions stage! We will review your answers and get back to you soon.",
      "message_date_and_time": "2026-11-06 02:21:54",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6213,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Are you available to start within the next 30 days?",
      "message_date_and_time": "2026-11-06 02:23:08",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    }
  ]
}

AI Response (BATCH):
{
  "classifications": [
    {
      "type": "answer",
      "related_message_id": 6213,
      "parent_escalation_id": 0,
      "extracted_answer": "true",
      "answer_type": "boolean",
      "reason": "Applicant answered the yes/no availability question with a clear 'Yes'",
      "grouped_message_ids": [
        6214
      ],
      "representative_message_id": 6214,
      "follow_up_question": "Move to next Question"
    }
  ]
}


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

AI Input (BATCH):
{
  "latest_messages": [
    {
      "message_id": 6216,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Yes",
      "message_date_and_time": "2026-11-06 02:24:28",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ],
  "conversation_history": [
    {
      "message_id": 6206,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "5",
      "message_date_and_time": "2026-11-06 02:13:34",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6207,
      "message_parent_id": 6205,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Yes",
      "message_date_and_time": "2026-11-06 02:17:57",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6208,
      "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, or 5.0",
      "message_date_and_time": "2026-11-06 02:18:21",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 6209,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Yes i'm very confident making the important decisions it would be a 5",
      "message_date_and_time": "2026-11-06 02:19:58",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6210,
      "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-11-06 02:20:31",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6211,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "I worked with my team and resolved the ossue",
      "message_date_and_time": "2026-11-06 02:21:24",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6212,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "✅ Thank you for completing the First level interview questions stage! We will review your answers and get back to you soon.",
      "message_date_and_time": "2026-11-06 02:21:54",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6213,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Are you available to start within the next 30 days?",
      "message_date_and_time": "2026-11-06 02:23:08",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 6214,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Yes",
      "message_date_and_time": "2026-11-06 02:23:40",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6215,
      "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-11-06 02:24:09",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    }
  ]
}

AI Response (BATCH):
{
  "classifications": [
    {
      "type": "answer",
      "related_message_id": 6215,
      "parent_escalation_id": 0,
      "extracted_answer": "true",
      "answer_type": "boolean",
      "reason": "Applicant answered 'Yes' to the pending yes/no question about Agile team experience",
      "grouped_message_ids": [
        6216
      ],
      "representative_message_id": 6216,
      "follow_up_question": "Move to next Question"
    }
  ]
}


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

AI Input (BATCH):
{
  "latest_messages": [
    {
      "message_id": 6218,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "by working vigilantee",
      "message_date_and_time": "2026-11-06 02:25:17",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ],
  "conversation_history": [
    {
      "message_id": 6208,
      "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, or 5.0",
      "message_date_and_time": "2026-11-06 02:18:21",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 6209,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Yes i'm very confident making the important decisions it would be a 5",
      "message_date_and_time": "2026-11-06 02:19:58",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6210,
      "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-11-06 02:20:31",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6211,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "I worked with my team and resolved the ossue",
      "message_date_and_time": "2026-11-06 02:21:24",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6212,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "✅ Thank you for completing the First level interview questions stage! We will review your answers and get back to you soon.",
      "message_date_and_time": "2026-11-06 02:21:54",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6213,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Are you available to start within the next 30 days?",
      "message_date_and_time": "2026-11-06 02:23:08",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 6214,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Yes",
      "message_date_and_time": "2026-11-06 02:23:40",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6215,
      "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-11-06 02:24:09",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 6216,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Yes",
      "message_date_and_time": "2026-11-06 02:24:28",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6217,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "How do you handle tight deadlines?",
      "message_date_and_time": "2026-11-06 02:24:57",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ]
}

AI Response (BATCH):
{
  "classifications": [
    {
      "type": "answer",
      "related_message_id": 6217,
      "parent_escalation_id": 0,
      "extracted_answer": "by working vigilantee",
      "answer_type": "text",
      "reason": "Text answer provided verbatim to the pending question 'How do you handle tight deadlines?'",
      "grouped_message_ids": [
        6218
      ],
      "representative_message_id": 6218,
      "follow_up_question": "Move to next Question"
    }
  ]
}


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

AI Input (BATCH):
{
  "latest_messages": [
    {
      "message_id": 6220,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "i like dogs",
      "message_date_and_time": "2026-11-06 02:26:09",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ],
  "conversation_history": [
    {
      "message_id": 6210,
      "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-11-06 02:20:31",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6211,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "I worked with my team and resolved the ossue",
      "message_date_and_time": "2026-11-06 02:21:24",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6212,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "✅ Thank you for completing the First level interview questions stage! We will review your answers and get back to you soon.",
      "message_date_and_time": "2026-11-06 02:21:54",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6213,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Are you available to start within the next 30 days?",
      "message_date_and_time": "2026-11-06 02:23:08",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 6214,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Yes",
      "message_date_and_time": "2026-11-06 02:23:40",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6215,
      "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-11-06 02:24:09",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 6216,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Yes",
      "message_date_and_time": "2026-11-06 02:24:28",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6217,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "How do you handle tight deadlines?",
      "message_date_and_time": "2026-11-06 02:24:57",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6218,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "by working vigilantee",
      "message_date_and_time": "2026-11-06 02:25:17",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6219,
      "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-11-06 02:25:48",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ]
}

AI Response (BATCH):
{
  "classifications": [
    {
      "type": "other",
      "related_message_id": 6219,
      "parent_escalation_id": 0,
      "extracted_answer": null,
      "reason": "Off-topic message with no connection to the pending question about a challenge faced and how it was resolved",
      "grouped_message_ids": [
        6220
      ],
      "representative_message_id": 6220,
      "follow_up_question": "Sorry, I didn't quite get that. Could you please tell us about a challenge you faced and how you resolved it?"
    }
  ]
}


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

AI Input (BATCH):
{
  "latest_messages": [
    {
      "message_id": 6222,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "i like cats",
      "message_date_and_time": "2026-11-06 02:26:58",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ],
  "conversation_history": [
    {
      "message_id": 6212,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "✅ Thank you for completing the First level interview questions stage! We will review your answers and get back to you soon.",
      "message_date_and_time": "2026-11-06 02:21:54",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6213,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Are you available to start within the next 30 days?",
      "message_date_and_time": "2026-11-06 02:23:08",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 6214,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Yes",
      "message_date_and_time": "2026-11-06 02:23:40",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6215,
      "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-11-06 02:24:09",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 6216,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Yes",
      "message_date_and_time": "2026-11-06 02:24:28",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6217,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "How do you handle tight deadlines?",
      "message_date_and_time": "2026-11-06 02:24:57",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6218,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "by working vigilantee",
      "message_date_and_time": "2026-11-06 02:25:17",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6219,
      "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-11-06 02:25:48",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6220,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "i like dogs",
      "message_date_and_time": "2026-11-06 02:26:09",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6221,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Sorry, I didn't quite get that. Could you please tell us about a challenge you faced and how you resolved it?",
      "message_date_and_time": "2026-11-06 02:26:30",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ]
}

AI Response (BATCH):
{
  "classifications": [
    {
      "type": "other",
      "related_message_id": 6221,
      "parent_escalation_id": 0,
      "extracted_answer": null,
      "reason": "Off-topic personal statement ('i like cats') with no connection to the pending question about a challenge faced and how it was resolved",
      "grouped_message_ids": [
        6222
      ],
      "representative_message_id": 6222,
      "follow_up_question": "Sorry, I didn't quite get that. Could you please tell us about a challenge you faced and how you resolved it?"
    }
  ]
}


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

AI Input (BATCH):
{
  "latest_messages": [
    {
      "message_id": 6224,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "i like flowers",
      "message_date_and_time": "2026-11-06 02:27:42",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ],
  "conversation_history": [
    {
      "message_id": 6214,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Yes",
      "message_date_and_time": "2026-11-06 02:23:40",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6215,
      "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-11-06 02:24:09",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 6216,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Yes",
      "message_date_and_time": "2026-11-06 02:24:28",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6217,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "How do you handle tight deadlines?",
      "message_date_and_time": "2026-11-06 02:24:57",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6218,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "by working vigilantee",
      "message_date_and_time": "2026-11-06 02:25:17",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6219,
      "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-11-06 02:25:48",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6220,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "i like dogs",
      "message_date_and_time": "2026-11-06 02:26:09",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6221,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Sorry, I didn't quite get that. Could you please tell us about a challenge you faced and how you resolved it?",
      "message_date_and_time": "2026-11-06 02:26:30",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6222,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "i like cats",
      "message_date_and_time": "2026-11-06 02:26:58",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6223,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Sorry, I didn't quite get that. Could you please tell us about a challenge you faced and how you resolved it?",
      "message_date_and_time": "2026-11-06 02:27:20",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ]
}

AI Response (BATCH):
{
  "classifications": [
    {
      "type": "other",
      "related_message_id": 6223,
      "parent_escalation_id": 0,
      "extracted_answer": null,
      "reason": "Message is unrelated to the pending question about a challenge faced and how it was resolved; no relevant information provided",
      "grouped_message_ids": [
        6224
      ],
      "representative_message_id": 6224,
      "follow_up_question": "Sorry, I didn't quite get that. Could you please tell us about a challenge you faced at work and how you resolved it?"
    }
  ]
}


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

AI Input (BATCH):
{
  "latest_messages": [
    {
      "message_id": 6226,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "i worked with my team based on the prioratization and worked to resolve conflicts step by step",
      "message_date_and_time": "2026-11-06 02:29:13",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ],
  "conversation_history": [
    {
      "message_id": 6216,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Yes",
      "message_date_and_time": "2026-11-06 02:24:28",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6217,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "How do you handle tight deadlines?",
      "message_date_and_time": "2026-11-06 02:24:57",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6218,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "by working vigilantee",
      "message_date_and_time": "2026-11-06 02:25:17",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6219,
      "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-11-06 02:25:48",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6220,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "i like dogs",
      "message_date_and_time": "2026-11-06 02:26:09",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6221,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Sorry, I didn't quite get that. Could you please tell us about a challenge you faced and how you resolved it?",
      "message_date_and_time": "2026-11-06 02:26:30",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6222,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "i like cats",
      "message_date_and_time": "2026-11-06 02:26:58",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6223,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Sorry, I didn't quite get that. Could you please tell us about a challenge you faced and how you resolved it?",
      "message_date_and_time": "2026-11-06 02:27:20",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6224,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "i like flowers",
      "message_date_and_time": "2026-11-06 02:27:42",
      "escalation_id": 469,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6225,
      "message_parent_id": 6224,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Tell us about a challenge you faced and how you resolved it.",
      "message_date_and_time": "2026-11-06 02:28:27",
      "escalation_id": 469,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ]
}

AI Response (BATCH):
{
  "classifications": [
    {
      "type": "answer",
      "related_message_id": 6225,
      "parent_escalation_id": 0,
      "extracted_answer": "i worked with my team based on the prioratization and worked to resolve conflicts step by step",
      "answer_type": "text",
      "reason": "Applicant describes a teamwork challenge and resolving conflicts step by step, answering the pending challenge/resolution question; text kept verbatim",
      "grouped_message_ids": [
        6226
      ],
      "representative_message_id": 6226,
      "follow_up_question": "Move to next Question"
    }
  ]
}


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

AI Input (BATCH):
{
  "latest_messages": [
    {
      "message_id": 6229,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "5",
      "message_date_and_time": "2026-11-06 02:35:37",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ],
  "conversation_history": [
    {
      "message_id": 6219,
      "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-11-06 02:25:48",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6220,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "i like dogs",
      "message_date_and_time": "2026-11-06 02:26:09",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6221,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Sorry, I didn't quite get that. Could you please tell us about a challenge you faced and how you resolved it?",
      "message_date_and_time": "2026-11-06 02:26:30",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6222,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "i like cats",
      "message_date_and_time": "2026-11-06 02:26:58",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6223,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Sorry, I didn't quite get that. Could you please tell us about a challenge you faced and how you resolved it?",
      "message_date_and_time": "2026-11-06 02:27:20",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6224,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "i like flowers",
      "message_date_and_time": "2026-11-06 02:27:42",
      "escalation_id": 469,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6225,
      "message_parent_id": 6224,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Tell us about a challenge you faced and how you resolved it.",
      "message_date_and_time": "2026-11-06 02:28:27",
      "escalation_id": 469,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6226,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "i worked with my team based on the prioratization and worked to resolve conflicts step by step",
      "message_date_and_time": "2026-11-06 02:29:13",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6227,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "✅ Thank you for completing the Client level interview questions stage! We will review your answers and get back to you soon.",
      "message_date_and_time": "2026-11-06 02:29:45",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6228,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "How many projects have you worked on in the last 3 years?",
      "message_date_and_time": "2026-11-06 02:33:04",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "number"
    }
  ]
}

AI Response (BATCH):
{
  "classifications": [
    {
      "type": "answer",
      "related_message_id": 6228,
      "parent_escalation_id": 0,
      "extracted_answer": "5",
      "answer_type": "number",
      "reason": "Applicant answered the pending question about the number of projects worked on in the last 3 years with a single numeric message",
      "grouped_message_ids": [
        6229
      ],
      "representative_message_id": 6229,
      "follow_up_question": "Move to next Question"
    }
  ]
}


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

AI Input (BATCH):
{
  "latest_messages": [
    {
      "message_id": 6232,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Yes",
      "message_date_and_time": "2026-11-06 02:41:06",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ],
  "conversation_history": [
    {
      "message_id": 6222,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "i like cats",
      "message_date_and_time": "2026-11-06 02:26:58",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6223,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Sorry, I didn't quite get that. Could you please tell us about a challenge you faced and how you resolved it?",
      "message_date_and_time": "2026-11-06 02:27:20",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6224,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "i like flowers",
      "message_date_and_time": "2026-11-06 02:27:42",
      "escalation_id": 469,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6225,
      "message_parent_id": 6224,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Tell us about a challenge you faced and how you resolved it.",
      "message_date_and_time": "2026-11-06 02:28:27",
      "escalation_id": 469,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6226,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "i worked with my team based on the prioratization and worked to resolve conflicts step by step",
      "message_date_and_time": "2026-11-06 02:29:13",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6227,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "✅ Thank you for completing the Client level interview questions stage! We will review your answers and get back to you soon.",
      "message_date_and_time": "2026-11-06 02:29:45",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6228,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "How many projects have you worked on in the last 3 years?",
      "message_date_and_time": "2026-11-06 02:33:04",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "number"
    },
    {
      "message_id": 6229,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "5",
      "message_date_and_time": "2026-11-06 02:35:37",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6230,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "✅ Thank you for completing the Final Interview Questions stage! We will review your answers and get back to you soon.",
      "message_date_and_time": "2026-11-06 02:36:06",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6231,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Currently our budget is 600USD take home, would you like to join with us under mentioned salary",
      "message_date_and_time": "2026-11-06 02:39:41",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    }
  ]
}

AI Response (BATCH):
{
  "classifications": [
    {
      "type": "answer",
      "related_message_id": 6231,
      "parent_escalation_id": 0,
      "extracted_answer": "true",
      "answer_type": "boolean",
      "reason": "Applicant clearly answered 'Yes' to the yes/no question about joining at the 600USD take-home salary",
      "grouped_message_ids": [
        6232
      ],
      "representative_message_id": 6232,
      "follow_up_question": "Move to next Question"
    }
  ]
}


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

AI Input (BATCH):
{
  "latest_messages": [
    {
      "message_id": 6234,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Yes",
      "message_date_and_time": "2026-11-06 02:41:58",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ],
  "conversation_history": [
    {
      "message_id": 6224,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "i like flowers",
      "message_date_and_time": "2026-11-06 02:27:42",
      "escalation_id": 469,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6225,
      "message_parent_id": 6224,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Tell us about a challenge you faced and how you resolved it.",
      "message_date_and_time": "2026-11-06 02:28:27",
      "escalation_id": 469,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6226,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "i worked with my team based on the prioratization and worked to resolve conflicts step by step",
      "message_date_and_time": "2026-11-06 02:29:13",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6227,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "✅ Thank you for completing the Client level interview questions stage! We will review your answers and get back to you soon.",
      "message_date_and_time": "2026-11-06 02:29:45",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6228,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "How many projects have you worked on in the last 3 years?",
      "message_date_and_time": "2026-11-06 02:33:04",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "number"
    },
    {
      "message_id": 6229,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "5",
      "message_date_and_time": "2026-11-06 02:35:37",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6230,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "✅ Thank you for completing the Final Interview Questions stage! We will review your answers and get back to you soon.",
      "message_date_and_time": "2026-11-06 02:36:06",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6231,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Currently our budget is 600USD take home, would you like to join with us under mentioned salary",
      "message_date_and_time": "2026-11-06 02:39:41",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 6232,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Yes",
      "message_date_and_time": "2026-11-06 02:41:06",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6233,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Can you reduce the notice period after negotiating with your current company",
      "message_date_and_time": "2026-11-06 02:41:34",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    }
  ]
}

AI Response (BATCH):
{
  "classifications": [
    {
      "type": "answer",
      "related_message_id": 6233,
      "parent_escalation_id": 0,
      "extracted_answer": "true",
      "answer_type": "boolean",
      "reason": "Applicant replied 'Yes' to the pending yes/no question about reducing the notice period after negotiating with their current company",
      "grouped_message_ids": [
        6234
      ],
      "representative_message_id": 6234,
      "follow_up_question": "Move to next Question"
    }
  ]
}


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

AI Input (BATCH):
{
  "latest_messages": [
    {
      "message_id": 6236,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Sri lanka",
      "message_date_and_time": "2026-11-06 02:42:57",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ],
  "conversation_history": [
    {
      "message_id": 6226,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "i worked with my team based on the prioratization and worked to resolve conflicts step by step",
      "message_date_and_time": "2026-11-06 02:29:13",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6227,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "✅ Thank you for completing the Client level interview questions stage! We will review your answers and get back to you soon.",
      "message_date_and_time": "2026-11-06 02:29:45",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6228,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "How many projects have you worked on in the last 3 years?",
      "message_date_and_time": "2026-11-06 02:33:04",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "number"
    },
    {
      "message_id": 6229,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "5",
      "message_date_and_time": "2026-11-06 02:35:37",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6230,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "✅ Thank you for completing the Final Interview Questions stage! We will review your answers and get back to you soon.",
      "message_date_and_time": "2026-11-06 02:36:06",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6231,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Currently our budget is 600USD take home, would you like to join with us under mentioned salary",
      "message_date_and_time": "2026-11-06 02:39:41",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 6232,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Yes",
      "message_date_and_time": "2026-11-06 02:41:06",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6233,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "Can you reduce the notice period after negotiating with your current company",
      "message_date_and_time": "2026-11-06 02:41:34",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "boolean"
    },
    {
      "message_id": 6234,
      "message_parent_id": -1,
      "message_from": "applicant",
      "message_to": "eyepax",
      "message": "Yes",
      "message_date_and_time": "2026-11-06 02:41:58",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    },
    {
      "message_id": 6235,
      "message_parent_id": -1,
      "message_from": "eyepax",
      "message_to": "applicant",
      "message": "What country are you currently based in?",
      "message_date_and_time": "2026-11-06 02:42:28",
      "escalation_id": 0,
      "parent_escalation_id": 0,
      "answer_type": "text"
    }
  ]
}

AI Response (BATCH):
{
  "classifications": [
    {
      "type": "answer",
      "related_message_id": 6235,
      "parent_escalation_id": 0,
      "extracted_answer": "Sri lanka",
      "answer_type": "text",
      "reason": "Direct answer to the pending question about the applicant's current country of residence, kept verbatim",
      "grouped_message_ids": [
        6236
      ],
      "representative_message_id": 6236,
      "follow_up_question": "Move to next Question"
    }
  ]
}
