Skip to main content
← Back to API List Use the Hooks API to send conversation lifecycle events to Agent AI. This API supports:
  • Internal transfer events (NA, cold, warm)
  • Conversation summary trigger events
  • End-of-conversation events
  • User/Agent Message propagation
Send all events to the same endpoint using the appropriate event name and payload structure.

Path Parameters

Request Body

The following fields are mandatory for user/agent message events:
  • query
  • agentId
  • experience
  • author.type
  • source
  • sendUserMessage
  • sendAgentMessage
  • language
Consider the following field for events such as internal transfer, end of conversation, or trigger summary: "events": [{ ... }]

Supported Events

Internal Transfer Event

Tracks agent join and exit actions, including cold and warm transfers.

Event Name

INTERNAL_TRANSFER_EVENT

Event Structure

Field Description

Transfer Types

Transfer Flow Scenarios

Cold Transfer Flow

In this scenario, Agent-1 accepts the call and redirects it to Agent-2, and later Agent-3 gets the call.
  • Customer connects to Agent 1 → NA + entry
  • Agent 1 exits the conversation → cold + exit
  • Agent 2 accepts the conversation → cold + entry
  • Agent 2 exits the conversation → cold + exit
  • Agent 3 accepts the conversation → cold + entry
  • Conversation ends → Last agent → NA + exit

Warm Transfer Flow

  • Customer connects to Agent 1 → NA + entry
  • Agent 1 invites Agent 2 as a consultant
  • Agent 2 joins → warm + entry
  • Agent 1 invites Agent 3 as a consultant
  • Agent 3 joins → warm + entry
  • Agent 2 leaves → warm + exit
  • Agent 3 leaves → warm + exit
  • Conversation ends → Agent 1 exits → NA + exit

Redial Scenario

  • Customer connects to Agent 1 → NA + entry
    • Conversation drops unexpectedly
  • Agent reconnects to the same conversation → redial + entry
    • Conversation continues without creating a new segment
  • Conversation ends → Agent 1 exits → NA + exit

Trigger Summary Event

Triggers the generation of a conversation summary.

Event Name

TRIGGER_SUMMARY_EVENT

Event Structure

Field Description

End of Conversation Event

Notifies Agent AI that the conversation has terminated.

Event Name

END_OF_CONVERSATION
Invoke this event only once, at the final termination of the conversation—whether normal or unexpected—to prevent duplicate processing.

Event Structure

Field Description

Event Payload Examples

No Transfer

First Agent Accepts (INTERNAL_TRANSFER_EVENT) This event triggers when the first agent accepts the customer interaction (not a transfer). Entry Scenario: The system triggers this scenario when the Agent AI widget loads with transition as entry along with the agent details. Exit Scenario: The system triggers this scenario at the end of the interaction with transition as exit along with the agent details.

Cold Transfer: New Agent Joins

(INTERNAL_TRANSFER_EVENT) The system triggers this scenario when the internal conversation transfer happens between Agent-1 to Agent-2.

Cold Transfer: Agent-1 Exits

(INTERNAL_TRANSFER_EVENT)

Warm Transfer: Agent-2 Joins

(INTERNAL_TRANSFER_EVENT) The system triggers this scenario when one or multiple agents join the conversation as consultants.

Warm Transfer: Agent-1 Leaves

(INTERNAL_TRANSFER_EVENT)

Redial Scenario

(INTERNAL_TRANSFER_EVENT) Similar to the General Entry Scenario, this redundant operation creates multiple segments for the same agent with the initial segment start time.
Sample cURL for Redial:

Standard Conversation Flow: Event Sequence

For any conversation lifecycle, the system must trigger the following events in the prescribed order to ensure accurate analytics, proper session tracking, and complete reporting within Kore.ai. Key Rule: Every conversation must begin with Step 1 and end with Steps 3 and 5 at minimum. The system triggers steps 2 and 4 based on the conversation context (for example, transfers or summary generation).

Abrupt Conversation End (Redial): Event Sequence

When a conversation drops unexpectedly (for example, due to a network failure or system disconnection), you must follow this event sequence to re-establish the session and close it properly. The conversationId remains the same as the original dropped call to maintain session continuity.
In a redial scenario, keep the conversationId the same as the original dropped call. This ensures the system treats the session as a continuation, not a new conversation, and preserves the full interaction history for analytics.

Sample Request

Responses

Success: 200 OK or
Error (Invalid botId):