Recommendations and best practices for Amazon Connect Agent Workspace
Use the following recommendations and best practices to optimize applications in Amazon Connect Agent Workspace.
Topics
Ensuring that apps can only be embedded in the Connect agent workspace
It is recommended that apps correctly set the Content Security Policy
Content-Security-Policy: frame-ancestors https://*.awsapps.com https://*.my.connect.aws;
Using multiple domains within an app
Apps that use multiple domains, such as those supporting login flows, must add additional domains to the approved origins list on the application configuration. Both the domain specified in the AccessUrl and any additional domains added to the Approved Origins will be incorporated into the Content Security Policy for the agent workspace, allowing iframe integration for these domains.
Initializing streams
Initializing the CCP via streams, even if hidden, is not supported in third-party applications. You must instead use contact and agent events when they are available.
Accessibility
The best practice is for your application to meet accessibility guidelines such as
WCAG AA 2.1
Automated Accessibility Testing Tools
-
axe: an open-source accessibility testing engine that can be integrated into your development workflow. It provides automated testing of web pages and applications for accessibility issues based on WCAG 2.1 standards.
-
Pa11y: a command-line interface that allows you to automate accessibility testing of web pages. It can be integrated into your continuous integration (CI) process to catch accessibility issues early in the development cycle.
-
Lighthouse: an open-source, automated tool for improving the quality of web pages. It includes an accessibility audit feature that can identify common accessibility issues and provide suggestions for improvement.
-
WAVE: a suite of evaluation tools that help authors make their web content more accessible to individuals with disabilities. It provides a browser extension and an online tool for automated accessibility testing.
Manual Accessibility Testing Tools
-
Screen Readers: Use screen readers such as NVDA (NonVisual Desktop Access), JAWS (Job Access With Speech), and VoiceOver to manually test how users with visual impairments interact with your application.
-
Keyboard Navigation: Test the application using only a keyboard for navigation to ensure that all interactive elements, such as links and form controls, can be accessed and used without a mouse.
-
Color Contrast Checkers: Manual assessment of color contrast using tools like WebAIM's Contrast Checker to ensure that text and graphical elements have sufficient contrast for readability.
-
User Testing: Conduct manual accessibility testing with users who have disabilities to gain insights into how they interact with your application and to identify any barriers they may encounter. By using a combination of automated and manual tools, you can provide a comprehensive picture of your application's accessibility compliance. When documenting the testing process, be sure to include details about the tools used, the specific tests performed, and the results obtained to demonstrate your commitment to accessibility.
Theming and styling
Our App SDK