Rate this page:

Conversation

Represents a CCAI conversation instance.

Constructors

constructor

Copy URL

Parameters

Methods

addEventListener

Copy URL

void

addEventListener(

Conversation

event,

Function

callback
)

Adds a handler for the specified CCAI.Events.Conversation event. Use only functions as handlers; anything except a function leads to an error and scenario termination when a handler is called.

Parameters

Returns

  • type:

    void

addParticipant

Copy URL

Participant

addParticipant(

ParticipantSettings

settings
)

Adds a participant to the conversation.

Parameters

Returns

removeEventListener

Copy URL

void

removeEventListener(

Conversation

event,

Function

callback
)

Removes a handler for the specified CCAI.Events.Conversation event.

Parameters

Returns

  • type:

    void

removeParticipant

Copy URL

void

removeParticipant(

Participant

participant
)

Removes a participant from the conversation.

Parameters

Returns

  • type:

    void