hello_14019
12/17/2024, 5:21 AMAI Evy
12/17/2024, 5:21 AMAI Evy
12/17/2024, 5:22 AMtypescript
general_tools=[
{
"type": "end_call",
"name": "end_call",
"description":
"End the call with user only when user explicitly requests it",
},
],AI Evy
12/17/2024, 5:22 AMhello_14019
12/17/2024, 5:23 AMAI Evy
12/17/2024, 5:23 AMAI Evy
12/17/2024, 5:23 AMjson
{
"type": "object",
"properties": {
"name": {
"type": "string"
},
"phone": {
"type": "string"
},
"email": {
"type": "string"
},
"reason": {
"type": "string"
}
},
"required": [
"name",
"phone",
"email",
"reason"
]
}
Note that when Retell sends the request to your webhook, it will include both the call information and the arguments you defined in the schema .
One important note: If you hit the custom tool API again for the same tool, it will replace the existing tool even if you change the name [(2)]() .AI Evy
12/17/2024, 5:23 AMhello_14019
12/17/2024, 5:26 AMhello_14019
12/17/2024, 5:26 AMAI Evy
12/17/2024, 5:27 AMAI Evy
12/17/2024, 5:27 AMAI Evy
12/17/2024, 5:27 AM