This repository contains a sample application demonstrating the use of Webex Contact Center SDK. It showcases how to build a simple agent desktop application with basic call control features.
From the project root:
- Install dependencies:
npm install - Start the app:
- CDN version:
npm run server:cdn— serves athttp://localhost:3000 - NPM version:
npm run server:npm— runs Parcel and openshttp://localhost:3000
- CDN version:
Enter your access token and follow the on-screen instructions to initialize the SDK. For a step-by-step guide, see the Sample App Tutorial.
This demo showcases the following features:
- SDK initialization with an access token
- Agent login/logout
- Setting agent state
- Handling incoming calls
- Basic call controls (answer, decline, hold, mute, end)
Important Limitations:
- Only basic call control features are fully implemented
- Consult and transfer flows require manual destination entry and may not work as expected in all scenarios
- Some features may change in future releases
For more detailed information:
- Refer to the Webex Contact Center SDK documentation
- See the documentation provided with your SDK access for API details and implementation guidelines
src/— Single source for the app:index.html,app.js,styles.css. The HTML includes a placeholder<!-- UNPKG_INJECT -->; the CDN build injects unpkg script tags there.dist/cdn/— Generated bynpm run build:cdn(unpkg scripts injected, app.js built for classic script). Served bynpm run server:cdn.- Root
package.json— Holds all dependencies (@webex/plugin-cc, Parcel, etc.). Runnpm run server:npmto start the app with Parcel fromsrc/.
We truly appreciate your contribution to the Webex Samples!
Made with <3 by the Webex Developer Relations Team at Cisco