Close Menu
    DevStackTipsDevStackTips
    • Home
    • News & Updates
      1. Tech & Work
      2. View All

      The Case For Minimal WordPress Setups: A Contrarian View On Theme Frameworks

      June 4, 2025

      How To Fix Largest Contentful Paint Issues With Subpart Analysis

      June 4, 2025

      How To Prevent WordPress SQL Injection Attacks

      June 4, 2025

      Smashing Animations Part 4: Optimising SVGs

      June 4, 2025

      I test AI tools for a living. Here are 3 image generators I actually use and how

      June 4, 2025

      The world’s smallest 65W USB-C charger is my latest travel essential

      June 4, 2025

      This Spotlight alternative for Mac is my secret weapon for AI-powered search

      June 4, 2025

      Tech prophet Mary Meeker just dropped a massive report on AI trends – here’s your TL;DR

      June 4, 2025
    • Development
      1. Algorithms & Data Structures
      2. Artificial Intelligence
      3. Back-End Development
      4. Databases
      5. Front-End Development
      6. Libraries & Frameworks
      7. Machine Learning
      8. Security
      9. Software Engineering
      10. Tools & IDEs
      11. Web Design
      12. Web Development
      13. Web Security
      14. Programming Languages
        • PHP
        • JavaScript
      Featured

      Beyond AEM: How Adobe Sensei Powers the Full Enterprise Experience

      June 4, 2025
      Recent

      Beyond AEM: How Adobe Sensei Powers the Full Enterprise Experience

      June 4, 2025

      Simplify Negative Relation Queries with Laravel’s whereDoesntHaveRelation Methods

      June 4, 2025

      Cast Model Properties to a Uri Instance in 12.17

      June 4, 2025
    • Operating Systems
      1. Windows
      2. Linux
      3. macOS
      Featured

      My Favorite Obsidian Plugins and Their Hidden Settings

      June 4, 2025
      Recent

      My Favorite Obsidian Plugins and Their Hidden Settings

      June 4, 2025

      Rilasciata /e/OS 3.0: Nuova Vita per Android Senza Google, Più Privacy e Controllo per l’Utente

      June 4, 2025

      Rilasciata Oracle Linux 9.6: Scopri le Novità e i Miglioramenti nella Sicurezza e nelle Prestazioni

      June 4, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»Development»Machine Learning»Elevate business productivity with Amazon Q and Amazon Connect

    Elevate business productivity with Amazon Q and Amazon Connect

    April 15, 2025

    Modern banking faces dual challenges: delivering rapid loan processing while maintaining robust security against sophisticated fraud. Amazon Q Business provides AI-driven analysis of regulatory requirements and lending patterns. Additionally, you can now report fraud from the same interface with a custom plugin capability that can integrate with Amazon Connect. This fusion of technology transforms traditional lending by enabling faster processing times, faster fraud prevention, and a seamless user experience.

    Amazon Q Business is a generative AI-powered assistant that can answer questions, provide summaries, generate content, and securely complete tasks based on data and information in your enterprise systems. Amazon Q Business provides plugins to interact with popular third-party applications, such as Jira, ServiceNow, Salesforce, PagerDuty, and more. Administrators can enable these plugins with a ready-to-use library of over 50 actions to their Amazon Q Business application. Where pre-built plugins are not available, Amazon Q Business provides capabilities to build custom plugins to integrate with your application. Plugins help streamline tasks and boost productivity by integrating external services into the Amazon Q Business chat interface.

    Amazon Connect is an AI-powered application that provides one seamless experience for your contact center customers and users. It’s comprised of a full suite of features across communication channels. Amazon Connect Cases, a feature of Amazon Connect, allows your agents to track and manage customer issues that require multiple interactions, follow-up tasks, and teams in your contact center. Agents can document customer issues with the relevant case details, such as date/time opened, issue summary, customer information, and status, in a single unified view.

    The solution integrates with Okta Identity Management Platform to provide robust authentication, authorization, and single sign-on (SSO) capabilities across applications. Okta can support enterprise federation clients like Active Directory, LDAP, or Ping.

    For loan approval officers reviewing mortgage applications, the seamless integration of Amazon Q Business directly into their primary workflow transforms the user experience. Rather than context-switching between applications, officers can harness the capabilities of Amazon Q to conduct research, analyze data, and report potential fraud cases within their mortgage approval interface.

    In this post, we demonstrate how to elevate business productivity by leveraging Amazon Q to provide insights that enable research, data analysis, and report potential fraud cases within Amazon Connect.

    Solution overview

    The following diagram illustrates the solution architecture.

    Architecture

    The solution includes the following steps:

    1. Users in Okta are configured to be federated to AWS IAM Identity Center, and a unique ID (audience) is configured for an Amazon API Gateway
    2. When the user chooses to chat in the web application, the following flow is initiated:
      1. The Amazon Q Business application uses the client ID and client secret key to exchange the Okta-generated JSON Web Token (JWT) with IAM Identity Center. The token includes the AWS Security Token Service (AWS STS) context identity.
      2. A temporary token is issued to the application server to assume the role and access the Amazon Q Business API.
    3. The Amazon Q Business application fetches information from the Amazon Simple Storage Service (Amazon S3) data source to answer questions or generate summaries.
    4. The Amazon Q custom plugin uses an Open API schema to discover and understand the capabilities of the API Gateway API.
    5. A client secret is stored in AWS Secrets Manager and the information is provided to the plugin.
    6. The plugin assumes the AWS Identity and Access Management (IAM) role with the kms:decrypt action to access the secrets in Secret Manager.
    7. When a user wants to send a case, the custom plugin invokes the API hosted on API Gateway.
    8. API Gateway uses the same Okta user’s session and authorizes the access.
    9. API Gateway invokes AWS Lambda to create a case in Amazon Connect.
    10. Lambda hosted in Amazon Virtual Private Cloud (Amazon VPC) internally calls the Amazon Connect API using an Amazon Connect VPC interface endpoint powered by AWS PrivateLink.
    11. The contact center agents can also use Amazon Q in Connect to further assist the user.

    Prerequisites

    The following prerequisites need to be met before you can build the solution:

    • Have a valid AWS account.
    • Have an Amazon Q Business Pro subscription to create Amazon Q applications.
    • Have the service-linked IAM role AWSServiceRoleForQBusiness. If you don’t have one, create it with the amazonaws.com service name.
    • Have an IAM role in the account that will allow the AWS CloudFormation template to create new roles and add policies. If you have administrator access to the account, no action is required.
    • Enable logging in AWS CloudTrail for operational and risk auditing.

    Okta prerequisites:

    1. Have an Okta developer account and setup an application and API. If you do not have an Okta, please see the following instructions.

    Set up an application and API in Okta

    Complete the following steps to set up an application and API in Okta:

    1. Log in to the Okta console.
    2. Provide credentials and choose Login.
    3. Choose Continue with Google.
    4. You might need to set up multi-factor authentication following the instructions on the page.
    5. Log in using the authentication code.
    6. In the navigation pane, choose Applications and choose Create App Integration.

    Okta Developer edition

    1. Select OIDC – OpenID for Sign-in method and Web Application for Application type, then choose Next.

    Create new app integration

    1. For App integration name, enter a name (for example, myConnectApp).
    2. Select Authorization Code and Refresh Token for Grant type.
    3. Select Skip group assignment for now for Control Access.
    4. Choose Save to create an application.
    5. Take note of the client ID and secret.

    Add Authentication server and metadata

    1. In the navigation pane, choose Security, then choose API.
    2. Choose Add Authorization Server, provide the necessary details, and choose Save.

    Add authorization server

    1. Take note of the Audience value and choose Metadata URI.

    Audience is provided as an input to the CloudFormation template later in the section.

    add audience and metadata url

    The response will provide the metadata.

    1. From the response, take note of the following:
      • issuer
      • authorization_endpoint
      • token_endpoint
    2. Under Scopes, choose Add Scope, provide the name write/tasks, and choose Create.

    Add scope

    1. On the Access Policies tab, choose Add Policy.
    2. Provide a name and description.
    3. Select The following clients and choose the application by entering my in the text box and choosing the application created earlier.
    4. Choose Create Policy to add a policy.

    add policy

    1. Choose Add Rule to add a rule and select only Authorization Code for Grant type is.
    2. For Scopes requested, select The following scopes, then enter write in the text box and select the write/tasks
    3. Adjust Access token lifetime is and Refresh token lifetime is to minutes.
    4. Add but will expire if not used every as 5 minutes.
    5. Choose Create rule to create the rule.

    Add rule

    Add users

    1. In the navigation pane, choose Directory and choose People.
    2. Choose Add person.

    add person

    1. Complete the fields:
      1. First name
      2. Last name
      3. Username (use the same as the primary email)
      4. Primary email
    2. Select Send user activation email now.
    3. Choose Save to save the user.

    add and save person

    1. You will receive an email. Choose the link in the email to activate the user.
    2. Choose Groups, then choose Add group to add the group.
    3. Provide a name and optional description.
    4. Refresh the page and choose the newly created group.
    5. Choose Assign people to assign users.
    6. Add the newly created user by choosing the plus sign next to the user.

    assign person

    1. Under Applications, select the application name created earlier.
    2. On the Assignments tab, choose Assign to People.

    assign app to people

    1. Select the user and choose Assign.
    2. Choose Done to complete the assignment.

    assign user

    Set up Okta as an identity source in IAM Identity Center

    Complete the following steps to set up Okta as an identity source:

    1. Enable an IAM Identity Center instance.
    2. Configure SAML and SCIM with Okta and IAM Identity Center.
    3. On the IAM Identity Center console, navigate to the instance.
    4. Under Settings, copy the value Instance ARN. You will need it when you run the CloudFormation template.

    Deploy resources using AWS CloudFormation

    In this step, we use a CloudFormation template to deploy a Lambda function, configure the REST API, and create identities. Complete the following steps:

    1. Open the AWS CloudFormation console in the us-east-1 AWS Region.
    2. Choose Create stack.
    3. Download the CloudFormation template and upload it in the Specify template
    4. Choose Next.
    5. For Stack name, enter a name (for example, QIntegrationWithConnect).
    6. In the Parameters section, provide values for the following:
      1. Audience
      2. AuthorizationUrl
      3. ClientId
      4. ClientSecret
      5. IdcInstanceArn
      6. Issuer
      7. TokenUrl

    Add parameters to CloudFormation

    1. Choose Next.
    2. Keep the other values as default and select I acknowledge that AWS CloudFormation might create IAM resources in the Capabilities.
    3. Select I acknowledge that AWS CloudFormation might require the following capability: CAPABILITY_AUTO_EXPAND in the Capabilities.
    4. Choose Submit to create the CloudFormation stack.
    5. After the successful deployment of the stack, on the Outputs tab, note the value for ALBDNSName.

    The CloudFormation template does not deploy certificates for Application Load Balancer. We strongly recommend creating a secure listener for the Application Load Balancer and deploying at least one certificate.

    Assign user to Amazon Q Application

    1. On the Amazon Q Business console, navigate to the application named qbusiness-connect-case.
    2. Under User Access, choose Manage user access.
    3. On the user tab, choose Add groups and users and search for the user you created in Okta and propagated in IAM Identity Center.
    4. Choose Assign and Done.

    Add Q users

    1. Choose Confirm to confirm the subscription.
    2. Copy the link for Deployed URL.

    Q URL

    1. Create a callback URL: <Deployed URL>/oauth/callback.

    We recommend that you enable a budget policy notification to prevent unwanted billing.

    Configure login credentials for the web application

    Complete the following steps to configure login credentials for the web application:

    1. Navigate to the Okta developer login.
    2. Under Applications, choose the web application myConnectApp created earlier.
    3. Choose Edit in the General Settings
    4. Enter the callback URL for Sign-in redirect URIs.
    5. Choose Save.

    Q Redirect URL

    Sync the knowledge base

    Complete the following steps to sync your knowledge base:

    1. On the Amazon S3 console, choose Buckets in the navigation pane.
    2. Search for AmazonQDataSourceBucket and choose the bucket.
    3. Download the sample AnyBank regulations document.
    4. Upload the PDF file to the S3 bucket.
    5. On the Amazon Q Business console, navigate to the Amazon Q Business application.
    6. In the Data sources section, select the data source.
    7. Choose Sync now to sync the data source.

    Q data source

    Embed the web application

    Complete the following steps to embed the web application:

    1. On the Amazon Q Business console, under Enhancements, choose Amazon Q embedded.
    2. Choose Add allowed website.
    3. For Enter website URL, enter http://<ALBDNSName>.

    Test the solution

    Complete the following steps to test the solution:

    1. Copy the ALBDNSName value from the outputs section of the CloudFormation stack and open it in a browser.

    You will see an AnyBank website.

    anybank portal page

    1. Choose Chat with us and the Okta sign-in page will pop up.
    2. Provide the sign-in details.

    Okta single singon

    1. Upon verification, close the browser tab.
    2. Navigate to the Amazon Q Business application in the chat window.
    3. In the chat window, enter “What are the Fraud Detection and Prevention Measures?”

    Amazon Q Business will provide the answers from the knowledge base.

    Next, let’s assume that you detected a fraud and want to create a case.

    1. Choose the plugin CreateCase and ask the question, “Can you create a case reporting fraud?”

    create case

    Amazon Q Business generates the title of the case based on the question.

    Create case custom plugin submission page

    1. Choose Submit.
    2. If Amazon Q Business asks you to authorize your access, choose Authorize.

    The CreateCase plugin will create a case in Amazon Connect

    1. Navigate to Amazon Connect and open the access URL in a browser.
    2. Provide the user name admin and get the password from visiting the parameter store in AWS Systems Manager.

    Connect login page

    1. Choose Agent Workspace.

    Agent workspace in Amazon Connect

    You can see the case that was created by Amazon Q Business using the custom plugin.

    Case in Amazon Connect

    Clean up

    To avoid incurring future charges, delete the resources that you created and clean up your account:

    1. Empty the contents of the S3 buckets you created as part of the CloudFormation stack.
    2. Delete the CloudFormation stack you created as part of this post.
    3. Disable the application from IAM Identity Center.

    Conclusion

    As businesses navigate the ever-changing corporate environment, the combination of Amazon Q Business and Amazon Connect emerges as a transformative approach to optimizing employee assistance and operational effectiveness. Harnessing the capabilities of AI-powered assistants and advanced contact center tools, organizations can empower their teams to access data, initiate support requests, and collaborate cohesively through a unified solution. This post showcased a banking portal, but this can be used for other industrial sectors or organizational verticals.

    Stay up to date with the latest advancements in generative AI and start building on AWS. If you’re seeking assistance on how to begin, check out the Generative AI Innovation Center.


    About the Authors

    Sujatha Dantuluri is a seasoned Senior Solutions Architect in the US federal civilian team at AWS, with over two decades of experience supporting commercial and federal government clients. Her expertise lies in architecting mission-critical solutions and working closely with customers to ensure their success. Sujatha is an accomplished public speaker, frequently sharing her insights and knowledge at industry events and conferences. She has contributed to IEEE standards and is passionate about empowering others through her engaging presentations and thought-provoking ideas.

    Dr Anil Giri is a Solutions Architect at Amazon Web Services. He works with enterprise software and SaaS customers to help them build generative AI applications and implement serverless architectures on AWS. His focus is on guiding clients to create innovative, scalable solutions using cutting-edge cloud technologies.

    Source: Read More 

    Hostinger
    Facebook Twitter Reddit Email Copy Link
    Previous ArticleOptimizing Mixtral 8x7B on Amazon SageMaker with AWS Inferentia2
    Next Article From Logic to Confusion: MIT Researchers Show How Simple Prompt Tweaks Derail LLM Reasoning

    Related Posts

    Machine Learning

    How to Evaluate Jailbreak Methods: A Case Study with the StrongREJECT Benchmark

    June 4, 2025
    Machine Learning

    A Coding Implementation to Build an Advanced Web Intelligence Agent with Tavily and Gemini AI

    June 4, 2025
    Leave A Reply Cancel Reply

    Continue Reading

    Case Study: Troa 25′ Folio

    News & Updates

    How an ‘internet of agents’ could help AIs connect and work together

    News & Updates

    Le notizie minori del mondo GNU/Linux e dintorni della settimana nr 48/2024

    Development

    Thanks to Xbox’s price hike, the Series S is now more expensive than the PS5

    News & Updates

    Highlights

    Call of Duty: Black Ops 6 is PS5’s most-downloaded game for three consecutive months

    January 13, 2025

    Call of Duty: Black Ops 6 topped PlayStation 5’s most downloaded games for three months…

    Clapper Media Player Adds New Features, Official Windows Build

    February 11, 2025

    CVE-2025-47945 – Donetick Weak Default JWT Signing Secret in Donetick Task Management App

    May 17, 2025

    Grab Split Fiction at a great discount, giving both you and a buddy access to the game

    March 16, 2025
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.