endCall function arguments
# support
v
Yes, you can add arguments to the endCall function. According to the information I found, the endCall function can accept parameters such as
callId
,
reason
, and
timestamp
. Here's how you might modify your configuration:
Copy code
json
"model": {
    "model": "gpt-4o",
    "tools": [
        {
            "type": "endCall",
            "function": {
                "arguments": {
                    "reason": "All questions answered, ending the call."
                }
            }
        }
    ],
}
This allows your assistant to end calls with contextual information. Source: - [Discord conversation about endCall parameters](https://discord.com/channels/1211482211119796234/1305929557144240159)
a
@Vapi Support Bot Can I add final message as an argument?
v
Yes, you can add a final message using the
endCallMessage
parameter. This is the message your assistant will say before ending the call.
Copy code
json
"model": {
    "model": "gpt-4o",
    "tools": [
        {
            "type": "endCall"
        }
    ],
    "endCallMessage": "Thanks for your time."
}
If unspecified, the assistant will hang up without saying anything. Sources: - [Vapi Documentation API Reference](https://docs.vapi.ai/api-reference/assistants/delete) - [Vapi Documentation Outbound Sales Example](https://docs.vapi.ai/examples/outbound-sales)
c
Could you please add a description to your support.