#I am trying to build an agent for interviews. The interview is divided into multiple stages (person

1 messages · Page 1 of 1 (latest)

slim yewBOT
#
AI-generated Answer for ohnponte_05019

Using a single agent for the entire interview process be convenient, but it may lead to issues like skipping steps or incomplete questioning, as you've experienced. Splitting the interview into multiple agents, each dedicated to a specific stage, could help ensure thoroughness and consistency. For example:

  1. Personal Information Agent: Focuses solely on gathering basic details.
  2. Experience Agent: Handles questions about work history, responsibilities, and skills.
  3. Legal Validation Agent: Reviews and validates legal documents.
  4. Tips Agent: Provides advice for the face-to-face interview.

This modular approach allows each agent to specialize in its task, reducing the risk of missed steps. Additionally, it can make troubleshooting and improving individual stages easier. However, it may require more effort to coordinate the flow between agents.

If you prefer to stick with a single agent, you could refine its logic by implementing stricter step-by-step workflows or adding checkpoints to ensure all questions are asked before moving to the next stage.

fossil sail
#

With only one agent, how could I do a step by step workflow? so that I don't skip steps or stages of the interview.

slim yewBOT
#
AI-generated Answer for ohnponte_05019

To ensure a single agent follows a step-by-step workflow without stages, you can implement a structured process with clear checkpoints. Here are some suggestions:

1. Define a Sequential Workflow

  • Break the interview into distinct stages (e.g., personal information, experience, legal validation, tips for face-to-face interviews).
  • Create a checklist for each stage with specific questions or tasks that must be completed before moving to the next stage.

2. Use Conditional Logic

  • Program the agent to only proceed to the next stage once all required questions in the current stage are answered. For example:
    • If the agent is asking about experience, ensure it asks all predefined questions (e.g., responsibilities, achievements) before moving forward.

3. Implement Stage Confirmation

  • After completing each stage, the agent can summarize the responses and confirm with the user before proceeding. For example:
    • "We’ve completed the personal information section. Does everything look correct before we move on to the next stage?"

4. Use Prompts to Guide the Agent

  • Provide the agent with explicit instructions for each stage. For example:
    • Stage 1: Ask for name, age, and contact details.
    • Stage 2: Ask about work experience, responsibilities, and achievements.
    • Stage 3: Validate legal documents by requesting specific files.
    • Stage 4: Provide tips for face-to-face interviews.

5. Track Progress

  • Use a progress tracker to monitor which stages have been completed. This can be implemented as a variable that updates after each stage is finished.

6. Prevent Skipping

  • Add safeguards to ensure the agent cannot skip stages. For example:
    • If the user tries to move ahead, the agent can respond: "We need to complete the current section before proceeding."

7. Test Thoroughly

  • Run multiple test scenarios to identify gaps or skipped steps. Adjust the workflow based on feedback.

By structuring the workflow and adding checks, you can ensure the single agent handles the interview systematically without skipping steps.

fossil sail
#

Give me an example of a prompt that follows the recommendations.

slim yewBOT
#
AI-generated Answer for ohnponte_05019

To ensure a step-by-step workflow with a single agent, you can use a structured prompt that explicitly outlines the stages of the interview and instructs the agent to complete each stage before moving to the next. Here's an example:


Prompt Example:

"You are conducting an interview divided into four stages:

  1. Personal Information: Collect the candidate's name, age, and contact details.
  2. Experience: Ask about their previous roles, responsibilities, and achievements.
  3. Validation of Legal Documents: Confirm the availability of required legal documents (e.g., ID, work permits).
  4. Tips for Face-to-Face Interview: Provide advice on how to prepare for an in-person interview.

Follow these steps in order, and do not proceed to the next stage until the current stage is fully completed. After finishing each stage, confirm with the candidate that all questions have been answered before moving forward."


This prompt ensures the agent adheres to the workflow and avoids skipping steps. You can also add instructions for the agent to summarize the responses at the end of each stage to confirm completeness.

fossil sail
#

If the interview is in Spanish, the prompt should be in Spanish?

slim yewBOT
#
AI-generated Answer for ohnponte_05019

Yes, if the interview is conducted in Spanish, the prompt should also be in Spanish to ensure the agent understands and responds appropriately. This helps maintain consistency and clarity throughout the interaction.

fossil sail
#

This is a part that is failing, usually skipping point 12.2.
12. Experiencia laboral:

12.1 Últimos 3 empleos:
    El objetivo acá es obtener los detalles de los últimos 3 empleos que haya tenido el candidato en estados unidos o en su país de origen. Por cada empleo, se debe obtener:
        - Si el trabajo fue en estados unidos o en otro país
        - El nombre del empleador
        - El cargo
        - Responsabilidades
        - Ejemplos completos de las tareas realizadas "¿Qué tareas hacías exactamente?"
        - Tiempo trabajado en meses o años
        - Razón por la que se dejó el trabajo o si aún se encuentra en ese cargo
        - Si el puesto es en housekeeping, housekeeper o algo relacionado, SIEMPRE preguntar: "¿Trabajabas en hoteles o en qué tipo de lugares hacías ese trabajo?"
12.2 Validación de experiencia obligatoria:
    Si el cargo al que esta aplicando el candidato requiere experiencia entonces debes validar que el candidato cuente con dicha experiencia;
    Esto se puede comprobar haciendo preguntas específicas de acuerdo al cargo:
    Por ejemplo para un cargo relacionado a Housekeeping se podrían preguntar cosas como:
        - ¿Dónde trabajó específicamente en housekeeping?
        - ¿Cuántas habitaciones limpiaba al día?
        - ¿En qué turno trabajaba?
        - ¿Cuántas horas a la semana?
        - ¿Cuáles eran sus responsabilidades exactas?
        - ¿Cuánto tiempo estuvo en ese trabajo?
        - ¿Quién era su jefe o supervisor?
        **Realiza por lo menos 3 preguntas para comprobarlo.**
    - Si el candidato no posee la experiencia requerida entonces debes finalizar la entrevista por esta razón.
12.3 Agencias de staffing en Estados Unidos:
    Valida si la persona ha trabajado anteriormente para alguna agencia de empleo en Estados Unidos, en caso de que si obtener el nombre de la agencia y cuando trabajó con esta.