https://github.com/webexsamples/webex-js-sdk-cc-demo
https://github.com/webexsamples/webex-js-sdk-cc-demo
Last synced: 16 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/webexsamples/webex-js-sdk-cc-demo
- Owner: WebexSamples
- License: other
- Created: 2025-04-07T14:32:09.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2026-02-10T12:26:02.000Z (about 1 month ago)
- Last Synced: 2026-02-10T16:59:08.116Z (about 1 month ago)
- Language: JavaScript
- Size: 393 KB
- Stars: 0
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Webex Contact Center SDK Demo
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.
## Table of Contents
- [Running the Application](#running-the-application)
- [Features and Limitations](#features-and-limitations)
- [Documentation](#documentation)
- [Project Structure](#project-structure)
- [Thanks!](#thanks)
## Running the Application
From the project root:
1. **Install dependencies:** `npm install`
2. **Start the app:**
- **CDN version:** `npm run server:cdn` — serves at `http://localhost:3000`
- **NPM version:** `npm run server:npm` — runs Parcel and opens `http://localhost:3000`
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](https://app.vidcast.io/share/b7c4ee45-9bb9-4a07-bae3-4c10d0239903).
## Features and Limitations
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
## Documentation
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
## Project Structure
- `src/` — Single source for the app: `index.html`, `app.js`, `styles.css`. The HTML includes a placeholder ``; the CDN build injects unpkg script tags there.
- `dist/cdn/` — Generated by `npm run build:cdn` (unpkg scripts injected, app.js built for classic script). Served by `npm run server:cdn`.
- Root `package.json` — Holds all dependencies (`@webex/plugin-cc`, Parcel, etc.). Run `npm run server:npm` to start the app with Parcel from `src/`.
## Thanks!
We truly appreciate your contribution to the Webex Samples!
Made with <3 by the Webex Developer Relations Team at Cisco