---
title: "Example: evaluate candidates"
description: A hiring flow with two tasks that evaluate every CV and prepare the interview when your team approves the candidate.
---

This example builds a complete hiring flow: the agent receives the CV in the conversation, one task evaluates it against your job postings and, when someone on your team approves the evaluation, another task prepares the interview. Nothing is sent to the candidate unless your team decides so.

:::note[Before you start]
You need the admin role and an agent with three tables in its data store: one for candidates with data capture turned on (in the example, `tabla_rrhh`), one for job postings (`job_postings`) with the criteria of each role, and one for evaluations (`evaluations`) with a review column that has a default value, for example `review_status` = `pending`. See [Capture customer data](/en/conversations/capture-customer-data).
:::

## Task 1: evaluate every candidate

1. **Use the template**

    In **Automated tasks**, click **New task**, choose the agent and, in **Start from a template (optional)**, choose **Evaluate candidate**.

2. **Check the trigger**

    The template uses **A record is completed** with the candidates table: the task runs once for every CV the agent finishes capturing.

3. **Check the instructions**

    The instructions evaluate the candidate against each active job posting (or against the role they apply for, if they mention it), score the criteria, and explain the result. Adjust them to the way you evaluate.

4. **Check the actions**

    The template saves each evaluation in `evaluations` with **Save to a table**. If you want, add **Notify the team** with the condition `classification` equals `fit` and turn on **Also by email**, so you only hear about suitable candidates.

5. **Test and turn it on**

    Create the task with **Turn the task on when creating it** off. On its card, open the **⋮** menu and choose **Test** with a candidate you already have. If the result works for you, turn it on with the card's switch.

## Task 2: follow up approved candidates

1. **Create the task**

    Create another task with the same agent, for example "Approved follow-up".

2. **Trigger it on approval**

    In **When it runs**, choose **When something happens** and **A record changes**, with the `evaluations` table. In **When any of these columns changes**, check `review_status`. In **Conditions (optional)**, add `review_status` equals `approved`.

3. **Ask for a summary**

    In **Instructions**, ask for a summary to schedule the interview (name, contact, score, and questions to check), and check the three tables in **What information can it look up?**.

4. **Open a review case**

    In **Result**, choose **Custom data** (for example `candidate_name` and `summary`) and add **Open a review case** with a **Reason** such as "Evaluation approved: schedule the interview".

When someone on your team changes `review_status` to `approved` on an evaluation, the second task runs once and the case shows up in **Review cases**, ready to schedule the interview. Because rows written by tasks never trigger «A record changes», the first task never triggers the second one on its own.

:::tip
Use the **Runs** tab to follow the flow: you see every evaluation, the ones that did not meet the criterion, and how many credits each one used.
:::

## Next steps

**[See the runs](/en/automated-tasks/task-runs)**

Follow what each task did.

**[MCP connectors](/en/mcp-connectors/connect-mcp-server)**

Add tools from your hiring software to your tasks.
