> ## Documentation Index
> Fetch the complete documentation index at: https://docs.jelou.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# AI Task

> Executes an AI task with a structured response to process data or make decisions

The **AI Task** node makes a call to a language model (LLM) to process information and return a structured result. Unlike the AI Agent node, which maintains a continuous conversation with the user, the AI Task executes a targeted task and returns its result without interacting directly with the user.

## When to use AI Task vs AI Agent

| Scenario                                       | Recommended node                   |
| :--------------------------------------------- | :--------------------------------- |
| Converse with the user autonomously            | [AI Agent](/guides/nodos/ai-agent) |
| Classify a message into categories             | **AI Task**                        |
| Extract data from text (name, date, amount)    | **AI Task**                        |
| Summarize information to make a decision       | **AI Task**                        |
| Generate a response based on extensive context | [AI Agent](/guides/nodos/ai-agent) |

## Configuration

AI Task uses the same configuration fields as the AI Agent:

* **Model**: LLM to use
* **Instructions**: Prompt that defines what task to execute
* **Temperature**: Creativity control (0 = precise, 1 = creative)
* **Knowledge bases**: Documents and datastores for context
* **MCPs and Tools**: Available external tools

[See model and instructions configuration details](/guides/agentes-ia)

## Key difference: structured response

The AI Task does not need the `end_function` function like the AI Agent. Instead, it directly returns a result in JSON format that you can save in memory to use in subsequent nodes (for example, in a Conditional node).
**Instructions:**

The result is saved in memory and you can use a Conditional node to direct the flow based on the detected category.
