Nameless
10/23/2026, 11:25 AMAI Evy
10/23/2026, 11:25 AMAI Evy
10/23/2026, 11:26 AMsip_outbound_trunk_config, which includes termination_uri, auth_username, and transport.[(2)]() You can read it via the phone number endpoints, for example:AI Evy
10/23/2026, 11:26 AMjavascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: process.env['RETELL_API_KEY'], // This is the default and can be omitted
});
const phoneNumberResponse = await client.phoneNumber.retrieve('+14157774444');
console.log(phoneNumberResponse.last_modification_timestamp);
[(2)]()
## RAG (Knowledge Base)
Retell AI offers knowledge base integration for RAG. Conversation flows accept knowledge_base_ids and a kb_config for RAG retrieval configuration.[(3)]()
Behavior to be aware of:
- **Semantic retrieval**: Only a limited number of relevant chunks are surfaced per query, so the knowledge base works best for contextual Q&A rather than exhaustive lookups. For complete, finite lists (like a restaurant menu), putting all items directly in the prompt is the recommended approach.[(4)]()
- **Chunking**: Loading information in smaller, categorized chunks can improve accuracy, and pricing or other exact data is better fetched from your backend than stored in the knowledge base.[(4)]()
- **Past conversations**: RAG isn't the right fit for remembering a user's previous calls. Instead, pass a summarized version of the conversation history into the prompt using dynamic variables.[(5)]()AI Evy
10/23/2026, 11:26 AMAI Evy
10/23/2026, 11:26 AMNameless
10/23/2026, 11:29 AMAI Evy
10/23/2026, 11:29 AMAI Evy
10/23/2026, 11:29 AMAI Evy
10/23/2026, 11:29 AMAI Evy
10/23/2026, 11:29 AM