attach_knowledge_to_agent
Connect knowledge bases to an agent to enable RAG-powered, grounded answers. Replaces all current attachments, so pass the complete list of knowledge base IDs.
Instructions
Connect knowledge bases to an agent for RAG-powered conversations.
Once attached, the agent automatically searches these knowledge bases when callers ask questions. The agent retrieves relevant chunks and uses them to give accurate, grounded answers instead of hallucinating.
This REPLACES all current attachments — pass the complete list of knowledge base IDs you want attached, not just new additions. To add a new KB without removing existing ones, include all current IDs plus the new one.
Multiple knowledge bases can be attached to the same agent. The system searches across all of them and returns the most relevant chunks regardless of which KB they came from.
Args: agent_id: The agent to connect knowledge to knowledge_base_ids: Complete list of KB IDs to attach
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | Yes | ||
| knowledge_base_ids | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||