https://retellai.com/?utm_source=discord&utm_medium=seo logo
How can I test an agent
# ❓・ai-evy-support
j
@AI Evy How can I test an agent? My microphone is connected and it's not receiving my inbound sound when I test audio
a
Thanks for tagging me @joaquincorrales. I'll look through relevant sources and get back to you shortly.
### Answer For audio issues when testing your agent, here are the troubleshooting steps you should follow [(1) ]() : Step 1: Test Connection with Postman First, verify your websocket connection by testing it in Postman : 1. Open Postman and create a new WebSocket request 2. Enter your WebSocket URL and click "Connect" 3. Navigate to the "Message" tab, enter "Hello", and click "Send" You should receive the message back in your server indicating a successful connection . Step 2: Verify Endpoint Protocol Make sure your URL protocol matches the connection type : - HTTPS Endpoints: Use
wss://
prefix for secure WebSocket connections - HTTP Endpoints: Use
ws://
prefix for standard WebSocket connections Step 3: Check for Trailing Slash Some server setups might not allow a trailing slash in the URL : - Correct Format: ` - Incorrect Format (sometimes) : ` Step 4: Check for Retell Server Response Add logging to verify your websocket is receiving data from Retell : - Add logging in your websocket code to see if the websocket is connected - Add logging in your websocket message code to check if you receive the message from Retell server If your call disconnects after a couple seconds, check if your server setup supports WebSocket - for example, Vercel edge functions and serverless functions cannot act as a websocket server .
​ To learn more, see the sources I considered: [[1] Troubleshooting Guide](https://docs.retellai.com/integrate-llm/troubleshooting) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
I'm just testing it in the retellai.com dashboard
@AI Evy I'm just testing it in the retellai.com dashboard
a
Thanks for the follow-up, @joaquincorrales. I'll get back to you soon.
### Answer For testing your agent in the Retell AI dashboard, you can use the web call testing feature [(1) ]() . In the agent detail page, click "Test" to make a web call to test your agent . If you're experiencing microphone issues during web testing where your inbound sound isn't being received, this could be a browser permission or audio device configuration issue. Make sure your browser has microphone permissions enabled for the Retell AI dashboard and that your microphone is properly selected as the input device in your browser settings. The testing suite also includes debugging features for conversation flow agents [(2) ]() . If you're having issues with agent responses during testing, you can click the "Debug" button on the agent's response to troubleshoot common problems .
​ To learn more, see the sources I considered: [[1] Web call testing](https://docs.retellai.com/test/test-web) [[2] Debug your agent response](https://docs.retellai.com/test/llm-playground-debug) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
@AI Evy what's the cost per knowledbase after 10? Also is there a limit on the number of agents
a
Thanks for the follow-up, @joaquincorrales. I'll get back to you soon.
### Answer ### Knowledge Base Pricing After the first 10 free knowledge bases, additional knowledge bases cost $8 per month [(1) ]() . This pricing is consistent across the documentation, with the first 10 knowledge bases being free and additional ones billed at $8/month per knowledge base [(2) ]() . Additionally, using knowledge base functionality incurs a usage charge of $0.005 per minute of calls that have knowledge base enabled [(1) ]() . This rate applies regardless of whether your agent uses 1 or many knowledge bases . ### Agent Limits I don't have information about limits on the number of agents based on the available sources. The documentation doesn't specify any restrictions on agent creation or usage limits. If you need more specific information about agent limits or have other questions about Retell AI's pricing structure, I'd recommend checking the official pricing page or contacting support directly.
​ 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) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
@AI Evy can we use numbers we have on twilio
a
Thanks for the follow-up, @joaquincorrales. I'll get back to you soon.
### Answer Yes, you can use existing Twilio numbers with Retell AI through SIP trunking [(1) ]() . Here's how to set it up: ## Setting Up Twilio Numbers with Retell AI Step 1: Create Elastic SIP Trunking in Twilio 1. Create the trunk and give it a name 2. Setup termination (for outbound calls) - the termination SIP URI is important for later steps 3. Setup origination (for inbound calls) - specify Retell's SIP server address as the origination SIP URI:
sip:5t4n6j0wnrl.sip.livekit.cloud
Step 2: Move Numbers to Elastic SIP Trunking Move your existing Twilio numbers to the elastic SIP trunk you created . Step 3: Import Numbers to Retell Import the number to Retell using the termination SIP URI from Step 1 . You can do this through the dashboard or programmatically using the Import Number API [(2) ]() .
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const phoneNumberResponse = await client.phoneNumber.import({
 phone_number: '+14157774444',
 termination_uri: 'someuri.pstn.twilio.com',
}) ;
console.log(phoneNumberResponse.inbound_agent_id) ;
Once imported, the number will show up in your Retell dashboard and you can make and receive calls just like numbers purchased directly from Retell [(1) ]() . ## Alternative Options You can also port your existing numbers to Twilio and then use them with Retell [(3) ]() . Additionally, call forwarding from your existing number to a Retell/Twilio number is another indirect option .
​ To learn more, see the sources I considered: [[1] Twilio](https://docs.retellai.com/deploy/twilio) [[2] Import Phone Number](https://docs.retellai.com/api-references/import-phone-number) [[3] Phone numbers](https://discord.com/channels/1186424376300679209/1278412505177260054) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.