Optional
autoAuto-wrapup timer for the task This is used to automatically wrap up tasks after a specified duration as defined in AutoWrapup
Event data received in the Contact Center events. Contains detailed task information including interaction details, media resources, and participant data as defined in TaskData
Map associating tasks with their corresponding call identifiers.
Answers or accepts an incoming task. Once accepted, the task will be assigned to the agent and trigger a TASK_EVENTS.TASK_ASSIGNED event. The response will contain updated agent contact information as defined in AgentContact.
Promise
await task.accept();
Initiates a consultation with another agent or queue.
Consultation details including destination and type
Promise
await task.consult({ to: "agentId", destinationType: "agent" });
Initiates a consult conference (merge consult call with main call).
Promise
await task.consultConference();
Transfers the task after consultation.
Optional
consultTransferPayload: ConsultTransferPayLoadDetails for consult transfer (optional)
Promise
await task.consultTransfer({ to: "agentId", destinationType: "agent" });
Declines an incoming task for Browser Login
Promise
await task.decline();
Ends/terminates the current task.
Promise
await task.end();
Ends an ongoing consultation.
Details for ending the consultation
Promise
await task.endConsult({ isConsult: true, taskId: "taskId" });
Exits from an ongoing conference.
Promise
await task.exitConference();
Places the current task on hold.
Promise
await task.hold();
Pauses the recording for current task.
Promise
await task.pauseRecording();
Resumes a task that was previously on hold.
Promise
await task.resume();
Resumes a previously paused recording.
Parameters for resuming the recording
Promise
await task.resumeRecording({
autoResumed: false
});
Transfers the task to another agent or queue.
Transfer details including destination and type
Promise
await task.transfer({ to: "queueId", destinationType: "queue" });
Transfers the conference to another participant.
Promise
await task.transferConference();
Initiates wrap-up process for the task with specified details.
Wrap-up details including reason and auxiliary code
Promise
await task.wrapup({
wrapUpReason: "Customer issue resolved",
auxCodeId: "RESOLVED"
});
Interface for managing task-related operations in the contact center Extends EventEmitter to support event-driven task updates