https://retellai.com/?utm_source=discord&utm_medium=seo logo
I want to create an agent for Technical Support fo...
# ❓・ai-evy-support
d
@AI Evy I want to create an agent for Technical Support for my application, I will have a knowledgebase setup, can you guide me through creating the agent?
a
Thanks for tagging me @drfrex. I'll look through relevant sources and get back to you shortly.
### Answer I'll guide you through creating a technical support agent with knowledge base integration using Retell AI. ## Step 1: Create and Configure Knowledge Base First, create your knowledge base with your technical documentation [(1) ]() . Knowledge bases are collections of information sources that your agent can access during calls . You can add: - Website content via URLs - Documents (PDF, DOC, TXT, etc.) - Custom text snippets The knowledge base will automatically chunk, embed, and store your content in a vector database . During calls, the agent uses the transcript to find relevant chunks and feed them to the LLM as context . ## Step 2: Create the Agent Use the Create Agent API to set up your technical support agent [(2) ]() :
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const agentResponse = await client.agent.create({
 response_engine: { llm_id: 'llm_234sdertfsdsfsdf', type: 'retell-llm' },
 voice_id: '11labs-Adrian',
}) ;
console.log(agentResponse.agent_id) ;
​ To learn more, see the sources I considered: [[1] Knowledge Base](https://docs.retellai.com/build/knowledge-base) [[2] Create Agent](https://docs.retellai.com/api-references/create-agent) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
## Step 3: Connect Knowledge Base to Agent Once your agent is created, connect your knowledge base [(1) ]() : 1. Open the agent editor 2. Locate the "Knowledge Base" section 3. Select the knowledge base items you want to use The agent will automatically use this information when responding to queries related to your technical documentation . Retrieved knowledge base content will be appended to the LLM prompt under the header ///## Related Knowledge Base Contexts . ## Important Configuration Notes - You don't need to change your prompt to use the knowledge base - it works automatically - The system retrieves relevant information before every response generation - Knowledge base retrieval adds minimal latency (generally under 100ms) ## Pricing Knowledge base usage costs $0.005 per minute of calls that have knowledge base enabled . The first 10 knowledge bases are free, with additional ones at $8/month each . To prevent the agent from generating information not in your knowledge base, you can add this prompt :
Copy code
Only answer using the information in ## Related Knowledge Base Contexts.
If ## Related Knowledge Base Contexts is missing or does not contain relevant information, respond:
"There is no related information in knowledge base."
Thanks for the feedback, glad I was helpful.