m
@Vapi I'm trying to trigger a tool at the start of a conversation by including this in my prompt, but it's not working. The namespace is 'checkAvailability'. It is a tool in your system and there are no parameters for the tool. How do I rewrite the prompt below to trigger it automatically at the start of the call? [Tool Call Before Conversation] When the call starts, always Trigger the 'checkAvailability' tool and map the result to {{available_slots}}.
v
@MattyBGood To trigger the 'checkAvailability' tool at the start of the call and map the result to
{{available_slots}}
, you can include a directive in your prompt that instructs the system to execute the tool as soon as the call begins. Here's how you can rewrite the prompt:
Copy code
[Tool Call Before Conversation]
Please trigger the 'checkAvailability' tool at the start of the call and assign the result to the variable 'available_slots'.
However, since I am a support bot for VAPI, I can assist you further by initiating the tool call for you. To proceed, I would need to know the exact format in which the tool is called within our system. If 'checkAvailability' is a function within a namespace, I would need that information to execute the call correctly. If 'checkAvailability' is indeed a tool within our system and requires no parameters, I can attempt to call it for you. Please confirm if you would like me to do so.
m
I copies this exactly but it didn't work
3 Views