https://retellai.com/?utm_source=discord&utm_medium=seo logo
if I dont add any knowledge base, what will be the...
# ❓・ai-evy-support
d
@AI Evy if I dont add any knowledge base, what will be the knowledge base of the voice agent by default? what information can it access by default? Can it tell me the latest news if I ask question about the most recent news? if not, how can i make the voice agent search, find, retrieve news on any topic?
a
Thanks for tagging me @dzei2234. I'll look through relevant sources and get back to you shortly.
### Answer Without adding a knowledge base, your Retell AI voice agent operates with the base knowledge of the underlying LLM (Large Language Model) that powers it [(1) ]() . However, the sources don't specify exactly what default information the agent can access or whether it can provide real-time news updates. The knowledge base feature is specifically designed to enhance agents with additional context beyond their base training . Knowledge bases provide agents with access to your specific information sources including website content, documents, and custom text snippets . To enable your voice agent to search and retrieve news on any topic, you would need to: 1. Create a knowledge base with news sources by using one of these methods [(1) ]() [(2) ]() : - **Scrape from webpages**: Upload news website sitemaps with auto-sync every 24 hours [(2) ]() - **Upload files**: Add news documents in supported formats - **Add text manually**: Copy and paste news content 2. **Enable auto-refreshing**: You can set up auto-refreshing to re-fetch URLs every 24 hours to ensure the latest content is reflected [(1) ]() The knowledge base feature costs an additional $0.005 per minute for usage, with 10 free knowledge bases included per workspace [(2) ]() . For real-time news retrieval capabilities beyond what's available in knowledge bases, you might need to integrate external APIs through webhooks, though the specific implementation details for news A
​ To learn more, see the sources I considered: [[1] Knowledge Base](https://docs.retellai.com/build/knowledge-base) [[2] Knowledge base, Verified phone number, Realtime API and more](https://www.retellai.com/changelog/knowledge-base-verified-phone-number-realtime-api-and-more) ​
PIs aren't covered in the available sources.
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
d
@AI Evy okay then tell me this. for example i collect the entire call transcript in a google sheet. now after the first call, when someone calls back, i want the voice agent to remember all the contexts from all the previous calls. how can I do that?
a
Thanks for the follow-up, @dzei2234. I'll get back to you soon.
### Answer Based on the available sources, there are a couple of approaches to help your voice agent remember previous call contexts: ## Using Dynamic Variables You can inject call-specific context using dynamic variables when creating calls [(1) ]() [(2) ]() [(3) ]() . These are key-value pairs that inject into your agent's prompt. For example:
Copy code
json
{
  "retell_llm_dynamic_variables": {
    "customer_name": "John Doe"
  }
}
[(1) ]() You could populate these variables with previous call information from your Google Sheet when initiating a new call. The
override_dynamic_variables
parameter in the Update Call API allows you to add or override dynamic variables during an active call [(3) ]() . ## Using Knowledge Base The knowledge base feature allows you to provide additional context to your agent [(4) ]() . You can add custom text snippets to a knowledge base, with a maximum of 50 text snippets per knowledge base . One community member suggested building your own API to load transcripts into the knowledge base, though they recommended filtering rather than loading all transcripts blindly [(5) ]() . ## Important Considerations - Knowledge bases support URL sources (max 500 URLs) , text snippets (max 50) , and file uploads (max 25 files) [(4) ]() - Knowledge base usage adds $0.005 per minute to call costs - Each workspace includes 10 free knowledge bases - The knowledge base retrieves relevant information automatically during calls using the transcript so far For your specific use case of storing transcripts in Google Sheets and retrieving them for subsequent calls, you would likely need to build custom integration logic that: 1. Fetches relevant previous transcripts from your Google Sheet 2. Either injects them via dynamic variables when creating the call, or adds them to a knowledge base The sources don't provide a built-in feature that automatically syncs Google Sheets with Retell AI for conversation history.
​ To learn more, see the sources I considered: [[1] Create Web Call](https://docs.retellai.com/api-references/create-web-call) [[2] Create Phone Call](https://docs.retellai.com/api-references/create-phone-call) [[3] Update Call](https://docs.retellai.com/api-references/update-call) [[4] Knowledge Base](https://docs.retellai.com/build/knowledge-base) [[5] Load Transcript to Knowledge base](https://discord.com/channels/1186424376300679209/1364500039652872253) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
d
@AI Evy tell me how inbound webhook works\
a
Thanks for the follow-up, @dzei2234. I'll get back to you soon.
### Answer ### Answer The inbound call webhook allows you to customize how inbound calls are handled before they connect to an agent [(1) ]() . It's configured at the phone number level and lets you override agent settings, set dynamic variables, and provide call-specific context [(1) ]() [(2) ](

▾

) . ## How It Works When someone calls your Retell AI number, the webhook triggers before the call connects [(1) ]() . Here's the flow: 1. **Webhook Request**: Retell sends a
POST
request to your endpoint with payload containing : -
agent_id
(if the number has an inbound agent set) -
from_number
(caller's number) -
to_number
(your Retell number) 2. **Your Response**: You return a JSON response with optional fields : -
override_agent_id
- route to a different agent -
override_agent_version
- specify agent version -
dynamic_variables
- inject call-specific context -
metadata
- add custom metadata 3. **Call Processing**: Based on your response, Retell connects the call with your specified configuration . ## Configuration Set up the webhook in your phone number settings by adding the
inbound_webhook_url
[(3) ]() [(4) ]() :
Copy code
json
{
  "inbound_webhook_url": "<https://example.com/inbound-webhook%22>
}
[(3) ]() ## Sample Request Payload
Copy code
json
{
  "event": "call_inbound",
  "call_inbound": {
    "agent_id": "agent_12345",
    "from_number": "+12137771234",
    "to_number": "+12137771235"
  }
}
[(1) ]() ## Sample Response
Copy code
json
{
  "call_inbound": {
    "override_agent_id": "agent_12345",
    "override_agent_version": 1,
    "dynamic_variables": {
      "customer_name": "John Doe"
    },
    "metadata": {
      "random_id": "12345"
    }
  }
}
## Key Details - **Timeout**: 10 seconds - **Retries**: Up to 3 attempts if no 2xx status received - **Security**: Verify using your Retell API Key - **Call State**: The call object isn't created yet when the webhook fires ## Common Use Cases You can use the inbound webhook to [(1) ]() [(5) ](

▾

) [(2) ](

▾

) [(6) ]() : - Route different callers to different agents based on their phone number - Look up caller information in your CRM/database - Set personalized greetings using dynamic variables - Reject calls selectively (respond without
override_agent_id
) [(1) ]() The webhook operates at the phone number level, not the agent level, allowing one number to route to multiple agents based on caller context [(2) ](

▾

) .
​ To learn more, see the sources I considered: [[1] Inbound call webhook](https://docs.retellai.com/features/inbound-call-webhook) [[2] Personalization with Airtable](

https://www.youtube.com/watch?v=U8jdhkqOOhE▾

) [[3] Import Phone Number](https://docs.retellai.com/api-references/import-phone-number) [[4] Get Phone Number](https://docs.retellai.com/api-references/get-phone-number) [[5] Personalization with Airtable](

https://www.youtube.com/watch?v=U8jdhkqOOhE▾

) [[6] Discord message from @qcumbers1_cc on 2025-01-13](https://discord.com/channels/1186424376300679209/1186462578310910112/1328265873055551539) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.