hellgoat.
08/25/2025, 8:25 PMAI Evy
08/25/2025, 8:25 PMAI Evy
08/25/2025, 8:25 PMAI Evy
08/25/2025, 8:25 PMAI Evy
08/25/2025, 8:25 PMAI Evy
08/25/2025, 8:25 PMhellgoat.
08/26/2025, 2:23 PMhellgoat.
08/26/2025, 2:23 PMAI Evy
08/26/2025, 2:23 PMAI Evy
08/26/2025, 2:24 PMjavascript
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() ;
The knowledge base will be processed and made available to your agent once the status changes from "in_progress" to "complete" [(3) ]() [(2) ]() .AI Evy
08/26/2025, 2:24 PMAI Evy
08/26/2025, 2:24 PMhellgoat.
08/27/2025, 10:05 AMhellgoat.
08/27/2025, 10:06 AMAI Evy
08/27/2025, 10:06 AMAI Evy
08/27/2025, 10:06 AMAI Evy
08/27/2025, 10:06 AMAI Evy
08/27/2025, 10:06 AMAI Evy
08/27/2025, 10:06 AM