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.
- 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.
Get help from Sidekick
In the Agent Builder, Sidekick 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
How to write effective instructions
Write instructions that get consistent results.
Agent Builder Sidekick
Get help with instructions, tools, and knowledge.
Auto models and the model picker
Choose the model your agent uses.