https://retellai.com/?utm_source=discord&utm_medium=seo logo
, how can I dynamically change KB via API for a si...
# ❓・ai-evy-support
i
@AI Evy , how can I dynamically change KB via API for a single agent?
a
Thanks for tagging me @intrvuz_76124. I'll look through relevant sources and get back to you shortly.
### Answer Based on the available sources, I don't have specific documentation about an API endpoint to dynamically update or change the knowledge base assigned to an existing agent. The sources show how to create [(1) ]() , retrieve [(2) ]() , and list [(3) ]() knowledge bases, but don't include an agent update endpoint that modifies the knowledge base assignment. However, the sources do mention that you can assign knowledge bases at the node level in conversation flows [(4) ]() , which allows different nodes to use different knowledge bases for more accurate, context-specific responses . Check out these potentially useful sources that may have more information about agent configuration: - [Create Knowledge Base]() - [Get Knowledge Base]() - [Node KB, Role-Based Access, Outbound SMS API & More]() Would you like me to provide a general answer about typical patterns for updating agent configurations via API?
​ To learn more, see the sources I considered: [[1] Create Knowledge Base](https://docs.retellai.com/api-references/create-knowledge-base) [[2] Get Knowledge Base](https://docs.retellai.com/api-references/get-knowledge-base) [[3] List Knowledge Bases](https://docs.retellai.com/api-references/list-knowledge-bases) [[4] Node KB, Role-Based Access, Outbound SMS API & More](https://www.retellai.com/changelog/node-kb-role-based-access-outbound-sms-api-more) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.