Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/vrashmanyu605-eng/Langchain_Interview_Multi_Agents_Flow/llms.txt

Use this file to discover all available pages before exploring further.

The pipeline includes three interview agents, one for each hiring round. All three share the same input requirements (candidate_profile and jd_analysis) and can be called in any order after those two fields are available. Each agent produces a structured question bank optimized for its round: HR focuses on behavioral and cultural signals, Technical on depth and problem-solving, and CEO on leadership and strategic thinking. Their outputs flow into both the evaluation agent and the email agent.

HR interview agent

The HR interview agent generates 15 behavioral and situational questions tailored to the candidate’s background and the role’s expectations. It also produces evaluation criteria for each focus area and a list of red flags to watch for during the interview.

Source code

from llm import llm


def hr_interview_agent(state):

    candidate_profile = state["candidate_profile"]

    jd_analysis = state["jd_analysis"]

    response = llm.invoke(
        f"""
        You are an HR Interview Agent.

        Generate personalized HR interview questions.

        Candidate:
        {candidate_profile}

        JD:
        {jd_analysis}

        Focus Areas:
        - communication
        - teamwork
        - conflict handling
        - ownership
        - motivation
        - adaptability

        Generate:
        - 15 HR questions
        - evaluation criteria
        - red flags

        Return structured JSON only.
        """
    )

    return {
        "hr_questions": response.content
    }

Inputs

candidate_profile
string
required
The structured JSON profile produced by the resume parser agent.
jd_analysis
string
required
The structured JSON analysis produced by the JD analysis agent.

Output

hr_questions
string
A JSON string containing 15 HR questions, evaluation criteria per focus area, and a list of red flags. Read by the evaluation agent and the email agent.

Focus areas

AreaWhat to probe
CommunicationClarity, structure, and confidence in articulating ideas
TeamworkCollaboration patterns and cross-functional experience
Conflict handlingHow the candidate navigates disagreements with peers or managers
OwnershipAccountability for outcomes, including failures
MotivationWhat drives the candidate and whether it aligns with the role
AdaptabilityResponse to change, ambiguity, and shifting priorities

Example output

{
  "questions": [
    {
      "question": "Describe a time you handled a difficult team conflict.",
      "focus": "conflict handling"
    },
    {
      "question": "Tell me about a project where you took ownership of a failing initiative.",
      "focus": "ownership"
    }
  ],
  "evaluation_criteria": {
    "communication": "Clear and structured responses",
    "ownership": "Takes responsibility without deflecting blame"
  },
  "red_flags": ["Blames teammates", "No ownership of failures"]
}

State diagram

Requires: candidate_profile, jd_analysis

hr_interview_agent

Provides: hr_questions

Build docs developers (and LLMs) love