ema
05/15/2024, 4:21 PMVapi Support
05/15/2024, 4:21 PMVapi Support
05/15/2024, 4:21 PMname
, description
, and parameters
.
- Functions are used for specific tasks, like booking an appointment or fetching data.
- You typically define functions in the assistant's configuration and specify a server URL where Vapi sends function call information [(1)]() , [(2)]() .
2. **Tools**:
- Tools are a more recent and flexible way to handle function-like operations.
- Configured with a type (e.g., "function"), messages, and server details.
- Tools can include various types of messages to communicate different stages of execution, such as "request-start" and "request-complete".
- Tools support both synchronous and asynchronous behavior by setting the async
property [(3)]() , [(4)]() .
In essence, tools provide a more versatile framework for defining operations that can be incorporated into conversations, improving the functionality and interaction flow over traditional functions [(5)]() .Sahil
05/15/2024, 4:58 PM