GHL tool not working properly (ghl_get_contact)
# support
n
Hi, I've been having trouble using GHL tools in VAPI. I'm trying to get the contacts information for the assistant to be able to call the user by their name, or to schedule an appointment. The problems I get: - getting the callers phone number -Inconsistency (It works 1/3 times on average) -If I interrupted the 'Start Request Message' it won't work (Call ID: 7bbe4d06-f7a0-4000-bb48-8e028ff565b3) -Sometimes it takes few tries to be able to get phone number and use it for the tool (call ID: c60c3733-6853-4708-ad59-72a492144068) -Sometimes, when the tool works, it executes 2 or 3 times (Call ID: c9f3320c-46b5-4ed1-a3fc-536a781ccb7d) I've been struggling with this for a week now. Please let me know if you need any more information. https://cdn.discordapp.com/attachments/1415799945180745829/1415799969167704177/image.png?ex=68c485f8&is=68c33478&hm=e849824c9ffd0100b54520f2945aa640739ca4f34ac1396ef0a6f53c6320f6da& https://cdn.discordapp.com/attachments/1415799945180745829/1415799970031992992/image.png?ex=68c485f9&is=68c33479&hm=34ca0e1e439eb0b2245a29b5f4bf741900190216a2d118389f4ab01e457e5074& https://cdn.discordapp.com/attachments/1415799945180745829/1415799970438844426/image.png?ex=68c485f9&is=68c33479&hm=0f7d72d4f01989550ab1cc98f7913576bccf5f4a0d44cbce1d0ec3c02dee5c89&
v
Suggestion: To reduce "Invalid arguments" errors with
ghl_get_contact
, ensure your assistant always captures the caller's phone number before calling the tool. For example, in your system prompt or logic, add a check like:
Copy code
js
if (callerPhoneNumber) {
  callTool('ghl_get_contact', { phone: callerPhoneNumber });
} else {
  // Prompt user or handle missing number
}
This helps guarantee the tool receives valid input every time and avoids duplicate or failed executions. Sources: - [GoHighLevel Tool Best Practices](https://docs.vapi.ai/tools/go-high-level#best-practices) - [GoHighLevel Get Contact Tool](https://docs.vapi.ai/tools/go-high-level#gohighlevel-get-contact-tool)
c
Hi Niko369blt, To address issues with the
ghl_get_contact
tool, ensure you've followed these setup steps: 1. **Verify Configuration**: Make sure your GoHighLevel account is connected to Vapi. You can do this by navigating to the Vapi Dashboard, then going to Providers Keys > Tools Provider > GoHighLevel and checking if it's connected. 2. **Tool Creation**: Confirm the tool was correctly created: - Go to Dashboard > Tools page, and see if the
ghl_get_contact
tool is listed. - Ensure it is configured correctly. This tool requires an email or phone number to search for existing contacts. 3. **Check Authorization**: The tool requires the proper authorization. Make sure you've allowed Vapi access to your GoHighLevel account during setup. 4. **Tool Usage**: Follow the designed workflow to use
ghl_get_contact
before creating new contacts or appointments. This helps prevent duplicate entries. If the tool is still not returning the expected results, consider reviewing the details of your API calls or ensuring there are no connectivity issues between Vapi and GoHighLevel. For further guidance, check the [GoHighLevel Integration guide](https://docs.vapi.ai/tools/go-high-level) for any additional setup details.
2 Views