Mr.snack
03/08/2025, 3:53 PMVapi Support Bot
03/08/2025, 3:55 PMjson
{
"type": "function",
"messages": [
{ "type": "request-start", "content": "Initiating the process..." },
{ "type": "request-complete", "content": "Process completed." },
{ "type": "request-failed", "content": "Process failed." }
],
"function": {
"name": "exampleFunction",
"parameters": {
"type": "object",
"properties": {
"param1": { "type": "string" },
"param2": { "type": "integer" }
}
},
"description": "Sample function"
},
"async": false,
"server": { "url": "https://api.server.com" }
}
The key part for your parameters is in the function.parameters
object where you define the structure of your parameters [source](https://docs.vapi.ai/tools/custom-tools).
For your specific issue with user input being sent as argument variables, make sure you're properly defining your parameter object and that variables are correctly referenced and interpolated. If configured improperly, this can result in unresolved placeholders being sent rather than the resolved variable [source](https://discord.com/channels/1211482211119796234/1211483291191083018/1315677399026765855).
When your server receives the function call, it should respond with a properly formatted JSON that includes the toolCallId
and `result`:
json
{
"results": [
{
"toolCallId": "unique_call_id",
"result": "Processed result"
}
]
}
Is there a specific part of the parameter configuration you're having trouble with?
Sources:
- [Vapi Custom Tools Documentation](https://docs.vapi.ai/tools/custom-tools)
- [Discord Channel Discussion](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1315677399026765855)Vapi Support Bot
03/08/2025, 3:55 PMMr.snack
03/08/2025, 4:14 PMMr.snack
03/08/2025, 7:20 PMMr.snack
03/08/2025, 7:40 PMbadbunny2222
03/08/2025, 7:40 PMbadbunny2222
03/08/2025, 7:41 PMPen π»
03/08/2025, 7:51 PMbadbunny2222
03/08/2025, 7:53 PMbadbunny2222
03/08/2025, 7:53 PMPen π»
03/08/2025, 7:54 PMPen π»
03/08/2025, 7:54 PMbadbunny2222
03/08/2025, 7:54 PMbadbunny2222
03/08/2025, 7:54 PMPen π»
03/08/2025, 7:56 PMbadbunny2222
03/08/2025, 8:21 PMbadbunny2222
03/08/2025, 8:22 PMbadbunny2222
03/08/2025, 8:22 PMbadbunny2222
03/08/2025, 8:22 PMbadbunny2222
03/08/2025, 10:15 PMthevin
03/09/2025, 8:54 AMthevin
03/09/2025, 8:57 AMPen π»
03/09/2025, 9:07 AMbadbunny2222
03/09/2025, 9:13 AMbadbunny2222
03/09/2025, 9:13 AMbadbunny2222
03/09/2025, 9:13 AMShabnamE
03/09/2025, 4:42 PMbadbunny2222
03/09/2025, 4:46 PMbadbunny2222
03/09/2025, 4:46 PMShubham Bajaj
03/10/2025, 7:14 PMShabnamE
03/20/2025, 8:42 AMShabnamE
03/20/2025, 8:45 AMKyle
03/22/2025, 3:54 AM