CallHangUp

The CallHangUp action terminates an active voice call. When the AI Employee determines the conversation is complete, this action gracefully ends the phone connection, schedules follow-up management, and handles post-call cleanup. It also handles chat channel termination.

Triggering event:

  • end_conversation_tool — Triggered when the AI Employee decides to end the conversation.

How it works

  1. The AI Employee determines that the conversation should end (e.g., the caller's request has been fulfilled or the caller wants to hang up).
  2. The action marks the conversation as concluded in the persona attributes.
  3. An extend_session event is sent to prevent premature disconnection during cleanup.
  4. For phone calls: Sends a stop_call command to the Newo Voice integration with the configured timeout.
  5. For chat conversations: Schedules a follow-up update event.
  6. A follow-up management event is scheduled with a 5-second delay to handle any post-call tasks.

Configuration

AttributeDescription
project_attributes_setting_voice_integration_serviceThe voice integration in use: "NEWO Voice Integration".
project_attributes_setting_voice_stop_call_timeoutSeconds to wait before disconnecting the call. Default: 6.

Commands sent

The following command is issued:

SendCommand(
  commandIdn="stop_call",
  integrationIdn="newo_voice",
  connectorIdn="newo_voice_connector",
  waitSeconds="6"
)

System events triggered

EventDescription
extend_sessionExtends the current session to allow cleanup before termination.
convoagent_update_followupSchedules follow-up management with a 5-second delay. The follow-up interval is set to -1 (disabled) with reason "hang up".