AgentsEvents
Add the following line to your scenario code to use the events:
require(Modules.Cartesia);
Constants
Server acknowledgment of the start event, confirming stream configuration. https://docs.cartesia.ai/line/integrations/web-calls#ack-event
Parameters
client:
The Cartesia.AgentsClient instance.
data:
{customEvent: string, payload: Object}
OptionalThe 'payload' parameter contains the event's data.
Indicates the agent wants to clear/interrupt the current audio stream. https://docs.cartesia.ai/line/integrations/web-calls#clear-event
Parameters
client:
The Cartesia.AgentsClient instance.
data:
{customEvent: string, payload: Object}
OptionalThe 'payload' parameter contains the event's data.
Contains information about connector.
Parameters
client:
The Cartesia.AgentsClient instance.
data:
{customEvent: string, payload: Object}
OptionalThe 'payload' parameter contains the event's data.
Server sends custom metadata from the agent. https://docs.cartesia.ai/line/integrations/web-calls#custom-event-2
Parameters
client:
The Cartesia.AgentsClient instance.
data:
{customEvent: string, payload: Object}
OptionalThe 'payload' parameter contains the event's data.
Server sends DTMF tones from the agent. https://docs.cartesia.ai/line/integrations/web-calls#dtmf-event-2
Parameters
client:
The Cartesia.AgentsClient instance.
data:
{customEvent: string, payload: Object}
OptionalThe 'payload' parameter contains the event's data.
The HTTP response event.
Parameters
client:
The Cartesia.AgentsClient instance.
data:
{customEvent: string, payload: Object}
OptionalThe 'payload' parameter contains the event's data.
The unknown event.
Parameters
client:
The Cartesia.AgentsClient instance.
data:
{customEvent: string, payload: Object}
OptionalThe 'payload' parameter contains the event's data.
The WebSocket error response event.
Parameters
client:
The Cartesia.AgentsClient instance.
data:
{customEvent: string, payload: Object}
OptionalThe 'payload' parameter contains the event's data.