# How does Lalela work out what an agent was looking for?

From How it works, “Inferring the question”:

> An agent never sends the user's question to the site. Lalela infers it from evidence:
>
> 1. A query the agent sent to the site's `/ask` endpoint or site search, which is close to the literal question.
> 2. Which pages the agent fetched together, in what order and how quickly.
> 3. What those pages say.
>
> Every inferred question is labelled as inferred, with its evidence and a confidence score measured against real prompts.

Source: [https://lalela.dev/answers/how-intent/source](https://lalela.dev/answers/how-intent/source)
