Clearly instruct it in the system prompt to conclude the call once tasks are complete, use conditional logic to detect no further user needs, and ensure the endCall function is properly integrated and triggered without waiting for explicit goodbyes..