GithubHelp home page GithubHelp logo

dhivya3818 / amazon-connect-chat-translate-demo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from voicefoundry-cloud-public/amazon-connect-chat-translate-demo

0.0 0.0 0.0 1.03 MB

Amplify project to demonstrate Amazon Connect Chat with realtime language detection and translation

License: MIT License

JavaScript 85.91% HTML 5.50% Shell 0.19% CSS 8.40%

amazon-connect-chat-translate-demo's Introduction

Translate CCP Demo for Amazon Connect

This is a sample project that demonstrates using Amazon Translate with Amazon Connect chat to perform real-time translation on chat messages, allowing a user to support dozens of languages. The web app supports multi-chat allow an Amazon COnnect Chat user to support multiple languages concurrently. Deployment is using the Amplify UI (No CLI access required) and is using serverless architecture. Deployment takes about 10 minutes.

Demo

Architecture

Pre-Reqs

Install

Click the below button

amplifybutton

  • Connect to Github
  • Click on 'Create new role' then Next: Permissions > Next: Tags > Next: Review finally Create role

Expand Environment variables and add the below 2

  • REACT_APP_CONNECT_REGION = 'AWS Region' (Example eu-west-2)
  • REACT_APP_CONNECT_INSTANCE_URL = 'Amazon Connect URL' (Example https://<<INSTANCE_NAME>>.awsapps.com/connect)

Once the app is ready, about 8 mins, you then need to update the allow the WebApp to allow CCP to be loaded as an iFrame.

  • Navigate to the Amazon Connect console, and select on your Amazon Connect instance name
  • Goto Approved origins then + Add origin
  • Enter the URL that Amplify generated for you, then click Add (Example URL https://main.d13aaabbbccc.amplifyapp.com)

Testing

  • Login to the amplify web app, create an account, then login to Connect
  • Start a customer chat (Goto https://<yourConnectInstanceURL>/connect/test-chat)
  • Connect through to your agent that's running the new WebApp
  • As the customer type some text in French and you'll see the agent translate app show 'Translate - (fr) French'
  • As the agent type in English into the translate textbox and press enter. This will be converted to french and sent back to the customer as french

Custom Terminologies

Features

Costs

All the services used are included within the AWS Free tier offer. However, should you exceed this you will be charged for the services consumed. Please see the clean up section to delete all deployed infrastructure.

Todo

  • More testing & code clean up
  • Enable language selection for the customer side
  • Enable language section for the agent side
  • Translate message prior connect to an agent
  • Store state locally to survive page refresh
  • Prevent translation attempt for same language pairs

Clean up

Within the amplify UI navigate to your app, on the top right select Actions and then Delete app.

amazon-connect-chat-translate-demo's People

Contributors

danbloy avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.