I am working on ZCC integration and trying to implement a feature that triggers a popup window with dynamic HTML content on agent desktop on incoming interaction. The content would include the data that gets returned from an API call with hyperlinks to other pages. Initially, I attempted to use Node.js code that included modules like fs, path and open but then received the error: require is not defined. After switching to browser-compatible code using window.open(), I then encountered a separate error: ‘Window is not defined’
• Is it possible to open a custom popup window (or browser tab) from within the Zoom Contact Center web interface via script widget?
• If so, what is the recommended approach or API for accomplishing this?
• Are there specific limitations or contexts (e.g., sandboxing, event timing) that prevent the use of window.open() or similar browser methods in ZCC?
If this functionality is not supported what’s the best practices Zoom recommend.
The script widget is executed in the Zoom Contact Center cloud service, not on the agent’s computer. The script widget is intended to be used for backend API calls, not for agent screen pop.
Please take a look at this article for launching a URL, Launching a URL during engagements
Note, you can use a script widget in the Flow to collect data, and store them as variables, and those variables can then be added to the Launch URL as query parameters.