How Can I Reference a Parameter Passed By a Tool in Vapi in GHL?
My goal is that whenever the lead says they want to enable DND/be removed from our contacts list during the call, the tool called "EnableDNDWorkflow" will be triggered and which triggers a workflow I made in GHL to enable DND for that contact.
The tool has the following description:
If the lead wants to opt-out or enable DND, fire this function to trigger a workflow in GoHighLevel named "Lead Opts Out During Vapi Call"
And has a string parameter called "LeadsPhone" with the following description:
The lead's phone number
In GHL, I have a workflow that's responsible with enabling DND for the lead. It has "Inbound Webhook" as the trigger linked to the tool. So that when the tool fires, it will trigger the workflow in GHL. The connection is fine. The tool is able to trigger the workflow in GHL.
The problem is, the workflow is unable to identify the lead who wants to enable DND. That's why I have the "LeadsPhone". So that the workflow can search for a phone number in the CRM that matches with "LeadsPhone". But I can't seem to access the "LeadsPhone" parameter within GHL even though it's being passed by the tool.
The tool has the following description:
If the lead wants to opt-out or enable DND, fire this function to trigger a workflow in GoHighLevel named "Lead Opts Out During Vapi Call"
And has a string parameter called "LeadsPhone" with the following description:
The lead's phone number
In GHL, I have a workflow that's responsible with enabling DND for the lead. It has "Inbound Webhook" as the trigger linked to the tool. So that when the tool fires, it will trigger the workflow in GHL. The connection is fine. The tool is able to trigger the workflow in GHL.
The problem is, the workflow is unable to identify the lead who wants to enable DND. That's why I have the "LeadsPhone". So that the workflow can search for a phone number in the CRM that matches with "LeadsPhone". But I can't seem to access the "LeadsPhone" parameter within GHL even though it's being passed by the tool.