### Answer
Yes, you can connect knowledge bases to your agent through the API. The knowledge base will be used automatically when added to an agent, without needing to change your prompt [(1)](
) .
To connect a knowledge base to an agent:
1. First create your knowledge base through the dashboard or API
2. Then link the knowledge base to your agent through the agent editor
The knowledge base will be used automatically during calls to retrieve relevant information before the agent responds . Each workspace comes with 10 free knowledge bases, with additional ones available for $8/month per knowledge base [(2)](
) .
When using the knowledge base:
- It adds about 100ms of latency impact [(1)](
)
- Costs $0.005 per minute of calls with knowledge base enabled [(2)](
)
- Works automatically without prompt changes [(1)](
)
For best practices with knowledge bases:
- Use markdown format with clear paragraphs
- Group relevant information together
- Avoid ambiguity and use specific references