SlideShare a Scribd company logo
JIMMY DAHLQVIST | 2023-11-08 | Øredev 2023
Building a serverless AI powered
translation bot
AI Powered event-driven translation bot
@jimmydahlqvist
Todays agenda
• Generative AI
• Traditionell AI
• AWS AI landscape
• Demo / Build it
• AWS Services
Summary
@jimmydahlqvist
Hello, I'm
JIMMY DAHLQVIST
Father of two girls
Serverless enthusiast
AWS Ambassador
AWS Community Builder
Head of AWS at Sigma Technology Cloud
§
@jimmydahlqvist
What is Generative AI?
• Creates new content, music, images, stories, conversations
• Uses large models trained on massive amount of data
• Foundation Models
@jimmydahlqvist
Powered by foundation models
• Pre-trained on huge amount of data
• Applied in wide range of contexts
• Customise with your domain specific tasks and data
@jimmydahlqvist
Amazon Bedrock
• Easy to build and scale GenAI application
• Several different Foundation Models
• Customise with you organisations data
• Pay for what you use
@jimmydahlqvist
Traditional AI - An Overview
• Expert Systems
• Narrow Focus
• Stability & Predictability
• Fast and less expensive
Image Credit: Amazon Web Services
@jimmydahlqvist
You don’t have to be an
expert in AI to use AI
What we are building?
@jimmydahlqvist
Architecture Overview
Services in the solution
@jimmydahlqvist
Amazon Translate
• Neural machine translation service by AWS
• Translate text in real-time or batch modes
• Supports 70+ languages and variants
@jimmydahlqvist
Amazon Translate
• Uses sequence-to-sequence models for context-aware translations
• Employs attention mechanisms to weigh significance
• Continuous training for updated and refined models
• Highly accurate
@jimmydahlqvist
Amazon Polly
• Text-to-Speech (TTS) service
• Utilizes deep learning to synthesize human-like speech
• Offers a spectrum of voices and languages
@jimmydahlqvist
Amazon Polly
• Advanced deep learning techniques for natural speech
• Real-time processing for instant speech synthesis
• Emphasizes on prosody: pitch, duration, and intensity
• Speech Synthesis Markup Language (SSML)
@jimmydahlqvist
Amazon Comprehend
• Natural Language Processing (NLP) service
• Discovers insights and relationships in text
• Uses machine learning without manual intervention
@jimmydahlqvist
Amazon Comprehend
• Utilizes pre-trained models for analysis tasks
• Sentiment analysis, entity recognition, language detection, and more
• Supports custom classifiers and entity recognition
@jimmydahlqvist
Amazon Api Gateway
• Fully managed service to create, publish, and monitor APIs
• RESTful APIs and WebSocket APIs
• Integration with AWS services
• Built-in security with authorization and access control
• Throttling and caching capabilities
@jimmydahlqvist
Amazon EventBridge
• Fully managed and serverless
• AWS services as targets
• API destinations
• EventBridge to EventBridge
• Easy to build event-driven architecture
• Low price
@jimmydahlqvist
AWS StepFunctions
• Resilient workflow automation
• Built-in error handling
• Cost effective
• Powerful service integrations
@jimmydahlqvist
AWS Lambda
• Run code in response to events
• Automatic scaling,
• Supports multiple programming languages
• No infrastructure management
Build time!
@jimmydahlqvist
Architecture Overview
@jimmydahlqvist
Translation Service
@jimmydahlqvist
Architecture Overview
@jimmydahlqvist
Voice Service
Build time!
@jimmydahlqvist
Summary
• AWS AI Services for Text and Voice
• Serverless and Event-Driven application
@jimmydahlqvist
@jimmydahlqvist
https://www.linkedin.com/in/dahlqvistjimmy/
https://jimmydqv.com | https://dev.to/jimmydqv
THANK YOU

More Related Content

PPTX
AWS AI Services
PPTX
Building a serverless AI powered translation service
PDF
AWS의 새로운 언어, 음성, 텍스트 처리 인공지능 서비스::Vikram Anbazhagan::AWS Summit Seoul 2018
PPTX
Danilo Poccia & Massimo Re Rerre - vmugit usercon
PDF
Artificial Intelligence on the AWS Platform
PDF
Leveraging Generative AI to Drive Nonprofit Innovation
PDF
Introduction to AI/ML with AWS
PPTX
Introduction to Artificial Intelligence (AI) at Amazon
AWS AI Services
Building a serverless AI powered translation service
AWS의 새로운 언어, 음성, 텍스트 처리 인공지능 서비스::Vikram Anbazhagan::AWS Summit Seoul 2018
Danilo Poccia & Massimo Re Rerre - vmugit usercon
Artificial Intelligence on the AWS Platform
Leveraging Generative AI to Drive Nonprofit Innovation
Introduction to AI/ML with AWS
Introduction to Artificial Intelligence (AI) at Amazon

Similar to AI Powered event-driven translation bot (20)

PDF
IoT, AI, ML Mix or How to Deal with New Technologies (Borys Pratsiuk Technolo...
PDF
AWS_AI_Services_2023_edition_1679400999.pdf
PDF
3-in-1 talk on Serverless Chatbots, Alexa skills & Voice UI best practices (t...
PDF
Introducation to Gen AI | ppt presentation
PPTX
AI and Innovations on AWS
PDF
Amazon Bedrock - ML innovation is in Amazon’s DNA
PDF
Suresh Poopandi_Generative AI On AWS-MidWestCommunityDay-Final.pdf
PPTX
AWS Machine Learning Language Services (May 2018)
PDF
An Overview to Artificial Intelligence Services at AWS
PPTX
Building AI-powered Serverless Applications on AWS
PDF
Tomasz Stachlewski, Solutions Architect, Amazon – Artificial Intelligence in ...
PPTX
AI on a PI
PDF
AI & ML on AWS: State of the Union
PDF
Building smart applications with AWS AI services (October 2019)
PPTX
Trending AI tools to kickstart your own Business.pptx
PPTX
Devoxx: Building AI-powered applications on AWS
PDF
DN 2017 | Machines are Learning - Bringing Powerful Artificial Intelligence t...
PPTX
Innovating with Machine Learning on AWS - Travel & Hospitality (November 2018)
PPTX
Aws cloud computing conference
PDF
Breaking Language Barriers with AI - AWS Summit
IoT, AI, ML Mix or How to Deal with New Technologies (Borys Pratsiuk Technolo...
AWS_AI_Services_2023_edition_1679400999.pdf
3-in-1 talk on Serverless Chatbots, Alexa skills & Voice UI best practices (t...
Introducation to Gen AI | ppt presentation
AI and Innovations on AWS
Amazon Bedrock - ML innovation is in Amazon’s DNA
Suresh Poopandi_Generative AI On AWS-MidWestCommunityDay-Final.pdf
AWS Machine Learning Language Services (May 2018)
An Overview to Artificial Intelligence Services at AWS
Building AI-powered Serverless Applications on AWS
Tomasz Stachlewski, Solutions Architect, Amazon – Artificial Intelligence in ...
AI on a PI
AI & ML on AWS: State of the Union
Building smart applications with AWS AI services (October 2019)
Trending AI tools to kickstart your own Business.pptx
Devoxx: Building AI-powered applications on AWS
DN 2017 | Machines are Learning - Bringing Powerful Artificial Intelligence t...
Innovating with Machine Learning on AWS - Travel & Hospitality (November 2018)
Aws cloud computing conference
Breaking Language Barriers with AI - AWS Summit
Ad

More from Jimmy Dahlqvist (20)

PPTX
Event-driven and serverless in the world of IoT
PPTX
Building resilient serverless workloads: Navigating through failures
PPTX
Serverless website analytics with Lambda@Edge
PPTX
AWS ECS and AWS Fargate demystified: run serverless containers
PPTX
Cloud-grilled delights a high-tech approach to perfect BBQ
PPTX
Building-resilient-serverless-workloads-Navigating-through-failure
PPTX
Serverless website analytics with Lambda@Edge
PPTX
Encrypting data in S3 with Stepfunctions
PPTX
Serverless cloud architecture patterns
PPTX
Serverless and event-driven in a world of IoT
PPTX
Event-driven and serverless in the world of IoT
PPTX
IoT Enabled Smoker for Great BBQ
PPTX
Building a serverless event driven Slack Bot
PPTX
IoT Enabled smoker for Great BBQ
PPTX
IoT enable smoker for great BBQ
PPTX
Autoscaled Github Runners using StepFunctions
PPTX
EventBridge Patterns and real world use case
PPTX
re:Invent Recap Breakfast
PPTX
CI/CD As first and last line of defence
PPTX
Introduction to testing in Cloud / AWS
Event-driven and serverless in the world of IoT
Building resilient serverless workloads: Navigating through failures
Serverless website analytics with Lambda@Edge
AWS ECS and AWS Fargate demystified: run serverless containers
Cloud-grilled delights a high-tech approach to perfect BBQ
Building-resilient-serverless-workloads-Navigating-through-failure
Serverless website analytics with Lambda@Edge
Encrypting data in S3 with Stepfunctions
Serverless cloud architecture patterns
Serverless and event-driven in a world of IoT
Event-driven and serverless in the world of IoT
IoT Enabled Smoker for Great BBQ
Building a serverless event driven Slack Bot
IoT Enabled smoker for Great BBQ
IoT enable smoker for great BBQ
Autoscaled Github Runners using StepFunctions
EventBridge Patterns and real world use case
re:Invent Recap Breakfast
CI/CD As first and last line of defence
Introduction to testing in Cloud / AWS
Ad

Recently uploaded (20)

PPTX
SAP Ariba Sourcing PPT for learning material
PDF
How to Ensure Data Integrity During Shopify Migration_ Best Practices for Sec...
PPTX
June-4-Sermon-Powerpoint.pptx USE THIS FOR YOUR MOTIVATION
PPTX
Introduction to Information and Communication Technology
PPTX
introduction about ICD -10 & ICD-11 ppt.pptx
PDF
Cloud-Scale Log Monitoring _ Datadog.pdf
PPTX
presentation_pfe-universite-molay-seltan.pptx
PPTX
Introduction about ICD -10 and ICD11 on 5.8.25.pptx
PDF
Slides PDF The World Game (s) Eco Economic Epochs.pdf
PPTX
international classification of diseases ICD-10 review PPT.pptx
PPTX
Job_Card_System_Styled_lorem_ipsum_.pptx
PPTX
Funds Management Learning Material for Beg
PDF
Vigrab.top – Online Tool for Downloading and Converting Social Media Videos a...
PPTX
Power Point - Lesson 3_2.pptx grad school presentation
PPTX
INTERNET------BASICS-------UPDATED PPT PRESENTATION
PDF
Automated vs Manual WooCommerce to Shopify Migration_ Pros & Cons.pdf
PDF
Testing WebRTC applications at scale.pdf
PDF
Decoding a Decade: 10 Years of Applied CTI Discipline
PDF
Sims 4 Historia para lo sims 4 para jugar
PDF
FINAL CALL-6th International Conference on Networks & IOT (NeTIOT 2025)
SAP Ariba Sourcing PPT for learning material
How to Ensure Data Integrity During Shopify Migration_ Best Practices for Sec...
June-4-Sermon-Powerpoint.pptx USE THIS FOR YOUR MOTIVATION
Introduction to Information and Communication Technology
introduction about ICD -10 & ICD-11 ppt.pptx
Cloud-Scale Log Monitoring _ Datadog.pdf
presentation_pfe-universite-molay-seltan.pptx
Introduction about ICD -10 and ICD11 on 5.8.25.pptx
Slides PDF The World Game (s) Eco Economic Epochs.pdf
international classification of diseases ICD-10 review PPT.pptx
Job_Card_System_Styled_lorem_ipsum_.pptx
Funds Management Learning Material for Beg
Vigrab.top – Online Tool for Downloading and Converting Social Media Videos a...
Power Point - Lesson 3_2.pptx grad school presentation
INTERNET------BASICS-------UPDATED PPT PRESENTATION
Automated vs Manual WooCommerce to Shopify Migration_ Pros & Cons.pdf
Testing WebRTC applications at scale.pdf
Decoding a Decade: 10 Years of Applied CTI Discipline
Sims 4 Historia para lo sims 4 para jugar
FINAL CALL-6th International Conference on Networks & IOT (NeTIOT 2025)

AI Powered event-driven translation bot

Editor's Notes

  • #2: Building a serverless AI powered stranslation bot, or service. This talk is actually based on a solution that I have built for my tech blog. I have created a serverless AI pipeline that does some really nice things. We will go in a bit further on that later. Todays session will NOT be slide heavy, instead I will focus a lot more on building here on stage.
  • #3: AI is basically all around us these days, from translastions, to text to speech, personlized ads and so many other use cases. With generative AI getting a major boost the interest for AI has also skyrocketed. When I submitted this talk genertive AI was already a hot topic, but during the last 8– 10 months since I submitted this it has litterly exploded in interest, with so many services being released. Today however, we will not be speaking about Generative AI, we’ll focus on some traditional AI service from AWS and we’ll be focusing on building something. All images in this presentation has been made with Genartive AI and Dall-e
  • #8: What is generative AI? The answer actually lies in that first word “Generative” it can create new content, everything from music, text, stories, images and much much more. Like all AI it’s powered by ML models, and in this case very large models refered to as ”Foundation models”…. https://youtu.be/5EDOTtYmkmI?si=EJOUbBetEM-wy9P6&t=169
  • #9: Foundation models are trained huge amount of data and is the latest advancement in Machine Learning, but like with everything else they are not magic. With RAG “Retreival Augmented Generation” you can use the foundation model on you domain specific data, with that you could build your own highly advances support chat bot. Imagine being an airline and where you can train a model on your data and then let your customers book, cancel, rebook their trips in a very efficienr manner that normal chat bots today cant. The use for Generative AI great and it can be in so many places, I think we are now on a very interesting journey where we have just started to take off.
  • #10: Amazon has their own Service, Bedrock, around Generative AI where you only pay for what you use. It come with support for several foundation models from different vendors, like Hugging face, but also their own model Titan. It’s possible to customise bedrock on your own organisations data, which is very important I think. Enough about generative AI. Today we are going to build things with good old fashin traditional AI.
  • #12: So what is the difference? As models in Generative AI can do many things, the models used in traditional AI rae tailored towards one single use case, like translations or text to speech. They are expert systems with a narrow focus. The tarditional models can also be faster and less expensive than the huge generative versions.
  • #13: Modern AI services leverage a diverse range of machine learning models, each tailored for specific types of tasks. In supervised learning, models are trained on labeled data, with classic models like Linear Regression and more advanced ones like Neural Networks. Unsupervised learning, on the other hand, finds hidden patterns in data, with techniques like K-Means Clustering. Reinforcement learning revolves around agents learning by interacting with their environment, as seen in Q-learning. Deep Learning, a subset of ML, employs deep neural structures for complex tasks, with models like CNNs popular for image recognition. "
  • #16: This is an image from AWS that show their different layers from the ML frameworks and infrastructure to the specialized AI services in the top. Where we have AI service for different use-cases, like image recognition, text translations, text to speech and many many more. In this picture we are missing the bits an pices about generative AI, as Bedrock was release just a few weeks ago.
  • #17: What I think is very good about the services that AWS offer is that you don’t need to be an expert in AI to be using AI. You can use the services that AWS provide to build som really interesting and cool things. And if you combine Generative AI with these traditional services you can build something really powerful. One good example of this is from a blog post from AWS, where you use Generative AI to generate images, and then use AWS image services like recognize to moderate the generated image.
  • #24: Now!! What are we building ??? This is what this session is all about! Building something!
  • #25: Arch overview
  • #28: But before we do any changes, just let us look at what an event can be defined as
  • #30: Amazon Translate leverages the latest in neural machine translation technology to offer precise and fluent translations. Whether you need instantaneous translations or bulk text conversions, Amazon Translate caters to various demands. And with support for over 70 languages and their variants, its reach is truly global.
  • #31: he secret sauce of Amazon Translate is its neural network architecture. By utilizing sequence-to-sequence models, it maintains context throughout translations. The attention mechanisms further fine-tune this by weighing the significance of each word or phrase. And, with continuous training, the service keeps evolving for better accuracy
  • #32: Amazon Polly is AWS's premier Text-to-Speech service. At its core is a deep learning model, trained to transform text into lifelike speech. With a variety of voice options and broad language support, Polly paves the way for myriad applications, from audiobooks to virtual assistants.
  • #33: The neural foundation of Amazon Polly ensures the speech it generates isn't robotic or artificial. By mimicking human neural patterns, it processes text in real-time and emphasizes prosody—the rhythm, stress, and intonation of speech. This is crucial to produce speech that sounds natural and relatable. Polly offers a wealth of advanced features tailored to developers' needs. With Speech Marks, one can synchronize speech output with visual animations or displays. Lexicons allow customization of pronunciations to align with specific requirements. And, as an AWS cornerstone, Polly seamlessly meshes with other services, be it storing audio files in S3 or leveraging Lambda for serverless computation.
  • #34: Amazon comprehend is a Natural Language Service (NLP). That will help you find insights and relation ships in any unstrcutured data It requires no ML expertise, it’s just a set of APIs that you can use easily,
  • #35: Comprehend is robust and flexible. It comes equipped with a suite of pre-trained models for tasks like sentiment analysis or entity recognition. But businesses aren't limited to these: Comprehend allows for custom models tailored to specific needs. And, as expected of an AWS service, it integrates smoothly with the broader AWS ecosystem for comprehensive data solutions." When designing the presentation, ensure consistent visual themes and high-quality visuals to maximize engagement and understanding. And there is no servers to provision