C
04/14/2024, 8:15 AMVapi Support
04/14/2024, 8:16 AMVapi Support
04/14/2024, 8:16 AMfunctions
array of your assistant's definition.
Here's a structure on how to define a custom function such as fetchTechnicalInfo
in your model's definition:
json
{
"functions": [
{
"name": "fetchTechnicalInfo",
"description": "Fetch technical information based on the user's specified problem",
"parameters": {
"type": "object",
"properties": {
"problem": {
"type": "string",
"description": "The problem specified by the user"
}
},
"required": ["problem"]
}
}
]
}
[(1)]()
Remember to include instructions within your assistant's system messages on when and how to trigger this custom function based on the conversation's context. Ensure that you have the logic on your server to handle the function call, process it, and return the necessary response or action back to the assistant.
If the assistant is speaking the function call back to you instead of executing it, ensure that the function trigger is correctly defined within your system messages and that your server is properly configured to handle requests from Vapi.C
04/14/2024, 8:16 AMVapi Support
04/14/2024, 8:17 AMSahil
04/14/2024, 8:21 AMSahil
04/14/2024, 8:21 AMC
04/14/2024, 8:33 AMSahil
04/14/2024, 8:46 AMSahil
04/14/2024, 8:52 AMaraSh
04/17/2024, 9:51 PMVapi Support
04/17/2024, 9:51 PMVapi Support
04/17/2024, 9:51 PMSahil
04/18/2024, 7:45 AM