API Details
| Field | Value |
|---|---|
| Method | POST |
| Endpoint | https://{{host}}/agentai/api/v1/hooks/{{botId}} |
| Content Type | application/json |
| Authorization | auth: {{JWT}} — See How to generate the JWT Token |
Path Parameters
| Parameter | Required | Description |
|---|---|---|
host | Yes | The environment URL. For example, https://platform.kore.ai. |
botId | Yes | AI Agent ID or Stream ID. Available on the General Settings page of the AI Agent. |
Sample Request
Body Parameters
| Parameter | Required | Description |
|---|---|---|
conversationId | Yes | Unique identifier of the conversation. |
botId | Yes | Unique identifier of the bot. |
events | Yes | List of events to trigger. |
events[].name | Yes | Name of the event. For example, "END_OF_CONVERSATION". |
events[].reason | Yes | Reason for ending the conversation. For example, agent_initiated. |
events[].language | Yes | Language of the conversation. For example, en. |
events[].experience | Yes | Interaction type. For example, voice or chat. |
events[].participant | Yes | Participant details associated with the event. |
events[].participant.identity | Yes | Unique participant identifier. |
events[].participant.name | Yes | Display name of the participant. |
events[].participant.type | Yes | Participant type. For example, agent. |
events[].participant.customFields | No | Custom metadata associated with the participant. |
events[].participant.customFields.agentEmail | No | Agent email identifier. |
events[].participant.customFields.queueId | No | Queue identifier. |
events[].participant.customFields.queueName | No | Queue name. |