Agent
Represents a CCAI Agent instance.
Constructor
Parameters
agentId
region
Parameters
agentId
region
Methods
addEventListener
Adds a handler for the specified CCAI.Events.Agent event. Use only functions as handlers; anything except a function leads to an error and scenario termination when a handler is called.
Parameters
event
callback
destroy
Destroys a CCAI Agent instance.
getConversationProfile
Gets the Dialogflow conversation profile.
Parameters
request
getProfilesList
Gets the list of a Dialogflow conversation profiles.
id
Returns the CCAI Agent id.
removeEventListener
Removes a handler for the specified CCAI.Events.Agent event.
Parameters
event
callback
updateConversationProfile
Updates the Dialogflow conversation profile.
Parameters
request