Agent stops speaking when i ask about location
# support
m
I have no idea if you can have direct access to internet but im trying to have the bot reccomend me some medical clinics close to me, i give it my postal code but then it just goes silent… in some cases testing with other voice providers it does work but they are fake clinics, example bot says: clinic abc123. Anyone know how to link it to google maps maybe ?
v
Hi @M. Leclerc, I'm an AI assistant for Vapi. I'll analyze available sources and get back to you shortly.
----------------------------- **While I generate an answer, here are some sources that might be helpful**: * [Dashboard]() * [Connecting Your Custom LLM to Vapi: A Comprehensive Guide]() * [Frequently Asked Questions]() * [Prompting Guide]() -----------------------------
### Answer It sounds like you're encountering an issue where your assistant stops responding when asked to provide location-based information, such as recommending nearby medical clinics. This might be related to how your assistant is configured to handle specific tasks and its access to external data sources like Google Maps. To address this issue in Vapi, you can integrate external APIs (like Google Maps) to fetch real-time data and enhance the assistant's functionality. However, directly implementing this within Vapi might require custom development outside of Vapi’s standard capabilities. Here's a general approach to integrating Google Maps or similar services: 1. **Use Function Calls**: Set up function calling in your assistant's configuration to invoke external services. You need to handle API calls to services like Google Maps on your server and then pass the relevant data (like clinic names and addresses) back to the assistant. Vapi allows customization and integration through server URLs where these API interactions can be managed [(1)]() . 2. **Custom LLM Integration**: If you're using a custom language model, you can customize it to interpret location-based queries and fetch data accordingly. This involves setting up a custom server to handle requests and responses between Vapi and your chosen APIs [(2)]() . 3. **Handling Data in Real-Time**: Ensure that your backend is capable of processing real-time data and interacting seamlessly with Vapi. This may involve real-time data processing and communication protocols that maintain low latency, crucial for seamless user interactions [(3)]() . For further guidance on integrating external APIs with Vapi or handling specific s
cenarios like fetching location-based data, you might consider checking out Vapi’s detailed documentation on integrating custom LLMs and function calling [(2)]() .
s
Can you send me the latest call id?
m
6782af82-7726-45d9-aac6-21d92d49af25 Here is the most recent call i did where i finally made it tell my it was a simulation and she does not have access to live internet so she told me fake clinic names, i guess il have to figure out how to connect it to google maps, make.com maybe?
s
Lower your temperature to 0.25 and add a prompt related to it. Also, expose data using google maps.
it will fix your issue
m
By expose data do you mean a function from connecting with make.com?
s
Yup.
4 Views