djmichaelscoop
10/28/2025, 11:40 AMAI Evy
10/28/2025, 11:40 AMAI Evy
10/28/2025, 11:41 AMAI Evy
10/28/2025, 11:41 AMAI Evy
10/28/2025, 11:41 AMjavascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: 'YOUR_RETELL_API_KEY',
}) ;
async function main() {
const knowledgeBaseResponse = await client.knowledgeBase.create({
knowledge_base_name: "Sample KB",
knowledge_base_texts: [
{
text: "Hello, how are you?",
title: "Sample Question",
},
],
knowledge_base_urls: [
"<https://www.retellai.com%22,>
"<https://docs.retellai.com%22,>
],
knowledge_base_files: [
fs.createReadStream("../sample.txt") ,
],
}) ;
console.log(knowledgeBaseResponse.knowledge_base_id) ;
}
main() ;
If you're encountering this error even with the "try it" feature in the documentation, the Retell team has acknowledged knowledge base issues in the past [(1) ]() . I recommend reaching out to Retell support directly for assistance with this server-side issue.
Check out these potentially useful sources: [Create Knowledge Base]() , [Knowledge Base]()
Would you like me to provide a general answer based on my knowledge instead?