presidentjoebiden2762
05/17/2025, 7:57 PMAI Evy
05/17/2025, 7:57 PMAI Evy
05/17/2025, 7:57 PMtypescript
{
name: "end_call",
description: "End the call only when user explicitly requests it.",
parameters: {
type: "object",
properties: {
message: {
type: "string",
description: "The message you will say before ending the call with the customer.",
},
},
required: ["message"],
},
}
2. When using conversation nodes, you can place a conversation node before the end node to deliver farewell messages [(2) ]() . The end node itself doesn't speak, so this ensures your farewell message is delivered .
3. Structure your prompts clearly with numbered steps:
- When the conversation ends or user says "bye":
1. Say farewell message
2. Use end_call tool to end the call [(3) ]()
4. For additional safety, you can set max call duration and max silence duration parameters to ensure calls eventually end even if the end_call function isn't triggered .
These approaches help ensure your agent maintains proper conversation etiquette while effectively managing call termination.AI Evy
05/17/2025, 7:57 PMAI Evy
05/17/2025, 7:57 PM