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

# Troubleshooting your agent

> Fix the most common problems with agent answers: wrong sources, made-up facts, and inconsistent formats.

Most agent problems come from instructions that leave room for interpretation, or from knowledge that's too broad. Start with the symptom that matches what you see, change one thing at a time, and test the result in the preview of the Agent Builder.

## The agent doesn't find the right source

* **Limit the knowledge.** Give the agent only the sources it needs. For example, a process support agent only needs your process pages, not your whole Notion workspace.
* **Say where to look.** Add hints to the instructions, like "look for documents titled X or that mention Y."
* **Describe each source.** When you add knowledge, describe what the data contains. The agent uses the description to decide when to search it.
* **Organize your documents.** Sometimes the fix is on the data side: group related pages in one folder, or keep a dedicated Slack channel for a topic.

## The agent makes things up

* **Allow it to not know.** Models try to answer even when they don't have the information. Add an instruction like "If you don't find the answer in the documents, say you don't know."
* **Say what to avoid.** For example: "Don't speculate. Only use facts from the documents you found."
* **Ask for steps.** Tell the agent to work step by step, like "First search the documents, then summarize what you found, then answer."
* **Try another model.** For complex tasks, open the model picker, click **More models**, and choose a more capable model. Some models also show a **Reasoning effort** slider: raise it for tasks that need deeper reasoning. See [Auto models and the model picker](https://docs.dust.tt/docs/user-documentation/agents/model-selection.md).
* **Start a new conversation.** Very long conversations make it harder for the model to keep track of everything. When answers drift, start fresh.

## The output format isn't consistent

* **Describe the format.** State exactly how you want the answer presented, like "Present the data in a table with columns A, B, and C."
* **Give an example.** Paste an example of the output you expect in the instructions.
* **Use structured output.** If another system reads the answers, set a JSON schema. See [Structured output format](https://docs.dust.tt/docs/user-documentation/agents/structured-output-format.md).

## Get help from Sidekick

In the Agent Builder, [Sidekick](https://docs.dust.tt/docs/user-documentation/agents/default-agents/agent-builder-sidekick.md) can review your instructions, explain why the agent behaves a certain way, and suggest targeted changes. Accept the ones that make sense, then test again in the preview.

## Related

> [card] [How to write effective instructions](https://docs.dust.tt/docs/user-documentation/agents/llm-best-practices/how-to-write-effective-instructions.md)
>
> Write instructions that get consistent results.

> [card] [Agent Builder Sidekick](https://docs.dust.tt/docs/user-documentation/agents/default-agents/agent-builder-sidekick.md)
>
> Get help with instructions, tools, and knowledge.

> [card] [Auto models and the model picker](https://docs.dust.tt/docs/user-documentation/agents/model-selection.md)
>
> Choose the model your agent uses.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.