Amazon Lex Guida Per Gli Sviluppatori Amazon Lex Guida Per Gli Sviluppatori

Total Page:16

File Type:pdf, Size:1020Kb

Amazon Lex Guida Per Gli Sviluppatori Amazon Lex Guida Per Gli Sviluppatori Amazon Lex Guida per gli sviluppatori Amazon Lex Guida per gli sviluppatori Amazon Lex: Guida per gli sviluppatori Copyright © Amazon Web Services, Inc. and/or its affiliates. All rights reserved. Amazon's trademarks and trade dress may not be used in connection with any product or service that is not Amazon's, in any manner that is likely to cause confusion among customers, or in any manner that disparages or discredits Amazon. All other trademarks not owned by Amazon are the property of their respective owners, who may or may not be affiliated with, connected to, or sponsored by Amazon. Amazon Lex Guida per gli sviluppatori Table of Contents Che cos'è Amazon Lex? ...................................................................................................................... 1 Primo utilizzo di Amazon Lex? ..................................................................................................... 2 Come funziona ................................................................................................................................... 3 Lingue supportate ....................................................................................................................... 5 Lingue e lingue supportate ................................................................................................... 5 Lingue e impostazioni locali supportate dalle caratteristicheAmazon Lex ...................................... 5 Modello di programmazione ......................................................................................................... 5 Operazioni API di costruzione dei modelli ............................................................................... 6 Operazioni API di runtime .................................................................................................... 7 Funzioni Lambda come hook di codici ................................................................................... 7 Gestione dei messaggi .............................................................................................................. 10 Tipi di messaggi ............................................................................................................... 10 Contesti per la configurazione di messaggi ........................................................................... 11 Formati di messaggio supportati .......................................................................................... 15 Gruppi di messaggi ........................................................................................................... 15 Schede di risposta ............................................................................................................ 16 Gestione del contesto di una conversazione ................................................................................. 20 Impostazione del contesto dell'intento .................................................................................. 20 Utilizzo dei valori di slot predefiniti ....................................................................................... 22 Impostazione degli attributi di sessione ................................................................................ 23 Impostazione degli attributi di richiesta ................................................................................. 24 Impostazione del timeout di sessione ................................................................................... 26 Condivisione di informazioni tra intenti diversi ........................................................................ 27 Impostazione di attributi complessi ...................................................................................... 27 Using Confidence Scores ........................................................................................................... 28 Session Management ........................................................................................................ 30 Log delle conversazioni ............................................................................................................. 30 Policy IAM per i log delle conversazioni ............................................................................... 31 Configurazione dei log delle conversazioni ............................................................................ 33 Crittografare i log delle conversazioni ................................................................................... 36 Visualizzare i log di testo in Amazon CloudWatch Logs .......................................................... 37 Accesso ai log audio in Amazon S3 .................................................................................... 39 Monitorare lo stato del log delle conversazioni con i parametri CloudWatch ................................ 40 Gestione delle sessioni .............................................................................................................. 40 Cambiare intento .............................................................................................................. 41 Riprendere un intento precedente ........................................................................................ 42 Avviare una nuova sessione ............................................................................................... 42 Convalidare valori di slot .................................................................................................... 43 Opzioni di distribuzione .............................................................................................................. 43 Intenti incorporati e tipi di slot ..................................................................................................... 43 Intenti incorporati .............................................................................................................. 43 Tipi di slot integrati ........................................................................................................... 55 Tipi di slot personalizzati ............................................................................................................ 62 Offuscamento degli slot ............................................................................................................. 63 Analisi delle emozioni ................................................................................................................ 64 Tagging di risorse ..................................................................................................................... 65 Tagging delle risorse ......................................................................................................... 65 Restrizioni applicate ai tag ................................................................................................. 66 Tagging delle risorse (console) ........................................................................................... 66 Tagging delle risorse (AWS CLI) ......................................................................................... 67 Nozioni di base ................................................................................................................................ 69 Fase 1: impostazione di un account ............................................................................................ 69 Registrazione ad AWS ....................................................................................................... 69 Creazione di un utente IAM ................................................................................................ 70 iii Amazon Lex Guida per gli sviluppatori Fase successiva ............................................................................................................... 70 Fase 2: configurazione diAWS CLI .............................................................................................. 70 ...................................................................................................................................... 71 Fase 3: nozioni di base (console) ................................................................................................ 71 Esercizio 1: Creazione di un bot utilizzando un piano ............................................................. 72 Esercizio 2: Crea un bot personalizzato ............................................................................... 98 Esercizio 3. Pubblicazione di una versione e creazione di un alias .......................................... 109 Step 4: Getting Started (AWS CLI) ............................................................................................ 110 Exercise 1: Create a Bot .................................................................................................. 110 Exercise 2: Add a New Utterance ...................................................................................... 122 Exercise 3: Add a Lambda Function .................................................................................. 126 Exercise 4: Publish a Version ........................................................................................... 129 Exercise 5: Create an Alias .............................................................................................. 133 Exercise 6: Clean Up ....................................................................................................... 134 Funzione Versioni multiple e alias .....................................................................................................
Recommended publications
  • Cloud Methodologies for a Seamless Integrated Chatbot
    Published by : International Journal of Engineering Research & Technology (IJERT) http://www.ijert.org ISSN: 2278-0181 Vol. 9 Issue 08, August-2020 Cloud Methodologies for A Seamless Integrated Chatbot Sharan Kumar Paratala Rajagopal IEEE Member Senior Manager, Capgemini America, Inc. Dallas, Texas, USA Abstract—This research paper provides details of connecting C. Seamless AWS integrations Amazon connect to Amazon pinpoint to send SMS and also Amazon Lex provides built-in integration with AWS provides some insights on how it can be integrated with social Lambda and Amazon CloudWatch and you can easily platforms such as Facebook messaging and WhatsApp. Amazon integrate with many other services on the AWS platform Lex can be leveraged as standalone bot on the website or can be including Amazon Cognito and Amazon DynamoDB. You triggered from Amazon connect for Intelligent voice responses. can take advantage of the power of the AWS platform for Keywords—Amazon Lex, Amazon Connect, Amazon Pinpoint, security, monitoring, user authentication, business logic, WhatsApp, Facebook Messaging. storage and mobile app development. I. INTRODUCTION D. Cost effective Amazon Lex [1] is a service for building conversational With Amazon Lex, there are no upfront costs or minimum interfaces into any application using voice and text. Amazon fees. You are only charged for the text or speech requests that Lex provides the advanced deep learning functionalities of are made. Amazon Lex’ pay-as-you-go pricing and low cost automatic speech recognition (ASR) for converting speech to per request makes it a cost-effective way to build text, and natural language understanding (NLU) to recognize conversational interfaces anywhere.
    [Show full text]
  • Interactive Attendee Guide for Oil & Gas Professionals
    oil & gas Interactive attendee guide for Oil & Gas Professionals Hello, On behalf of the entire AWS Worldwide Oil & Gas team, welcome to re:Invent 2018! This year’s conference is going to be our Welcome. biggest yet, with 50,000+ attendees and more than 2,000 technical sessions. To get the most out of re:Invent, we encourage you to take advantage of the resources outlined in this document, including our “How to re:Invent” video series. Keep in mind that reserved seating goes live on October 11. You can start planning your schedule at any time by logging into your account, visiting the session catalog, and marking sessions of interest. Although re:Invent is a big conference, the strength of the Oil & Gas community makes it feel much smaller. We look forward to seeing you in Vegas! Arno van den Haak Business Development, AWS Worldwide Oil & Gas © 2018 | Amazon Web Services. All rights reserved. Table of contents What to expect in 2018 » Let’s get started. re:Invent agenda » Oil & Gas sessions » This guide is designed to help attendees of AWS re:Invent 2018 plan their experience and identify breakout sessions and events of interest. It is intended to complement the re:Invent app, Other recommended sessions » which will help attendees navigate the conference on-site. Networking opportunities » Click on the links to navigate this guide. Executive Summit overview » Event venues and logistics » AWS Oil & Gas contacts » © 2018 | Amazon Web Services. All rights reserved. What to expect Networking re:Invent Agenda Oil & Gas Other Recommended Executive Summit Event Venue AWS Oil & Gas in 2018 Sessions Sessions Opportunities Overview and Logistics Expert Contacts What Where AWS re:Invent is a learning conference hosted by Amazon Web We are taking over Las Vegas--with events at the ARIA, Vdara, Services (AWS) for the global cloud computing community.
    [Show full text]
  • Foregrounding Narrative Production in Serial Fiction Publishing
    University of Rhode Island DigitalCommons@URI Open Access Dissertations 2017 To Start, Continue, and Conclude: Foregrounding Narrative Production in Serial Fiction Publishing Gabriel E. Romaguera University of Rhode Island, [email protected] Follow this and additional works at: https://digitalcommons.uri.edu/oa_diss Recommended Citation Romaguera, Gabriel E., "To Start, Continue, and Conclude: Foregrounding Narrative Production in Serial Fiction Publishing" (2017). Open Access Dissertations. Paper 619. https://digitalcommons.uri.edu/oa_diss/619 This Dissertation is brought to you for free and open access by DigitalCommons@URI. It has been accepted for inclusion in Open Access Dissertations by an authorized administrator of DigitalCommons@URI. For more information, please contact [email protected]. TO START, CONTINUE, AND CONCLUDE: FOREGROUNDING NARRATIVE PRODUCTION IN SERIAL FICTION PUBLISHING BY GABRIEL E. ROMAGUERA A DISSERTATION SUBMITTED IN PARTIAL FULLFILLMENT OF THE REQUIREMENTS FOR THE DEGREE OF DOCTOR OF PHILOSOPHY IN ENGLISH UNIVERSITY OF RHODE ISLAND 2017 DOCTOR OF PHILOSOPHY DISSERTATION OF Gabriel E. Romaguera APPROVED: Dissertation Committee: Major Professor Valerie Karno Carolyn Betensky Ian Reyes Nasser H. Zawia DEAN OF THE GRADUATE SCHOOL UNIVERSITY OF RHODE ISLAND 2017 Abstract This dissertation explores the author-text-reader relationship throughout the publication of works of serial fiction in different media. Following Pierre Bourdieu’s notion of authorial autonomy within the fields of cultural production, I trace the outside influence that nonauthorial agents infuse into the narrative production of the serialized. To further delve into the economic factors and media standards that encompass serial publishing, I incorporate David Hesmondhalgh’s study of market forces, originally used to supplement Bourdieu’s analysis of fields.
    [Show full text]
  • Just ASK: Building an Architecture for Extensible Self-Service Spoken Language Understanding
    Just ASK: Building an Architecture for Extensible Self-Service Spoken Language Understanding Anjishnu Kumar Arpit Gupta Julian Chan Amazon.com Amazon.com Amazon.com [email protected] [email protected] [email protected] Sam Tucker Bjorn Hoffmeister Markus Dreyer Amazon.com Amazon.com Amazon.com [email protected] [email protected] [email protected] Stanislav Peshterliev Ankur Gandhe Denis Filiminov Amazon.com Amazon.com Amazon.com [email protected] [email protected] [email protected] Ariya Rastrow Christian Monson Agnika Kumar Amazon.com Amazon.com Amazon.com [email protected] [email protected] [email protected] Abstract This paper presents the design of the machine learning architecture that underlies the Alexa Skills Kit (ASK) a large scale Spoken Language Understanding (SLU) Software Development Kit (SDK) that enables developers to extend the capabil- ities of Amazon’s virtual assistant, Alexa. At Amazon, the infrastructure powers over 25,000 skills deployed through the ASK, as well as AWS’s Amazon Lex SLU Service. The ASK emphasizes flexibility, predictability and a rapid iteration cy- cle for third party developers. It imposes inductive biases that allow it to learn robust SLU models from extremely small and sparse datasets and, in doing so, re- moves significant barriers to entry for software developers and dialogue systems arXiv:1711.00549v4 [cs.CL] 2 Mar 2018 researchers. 1 Introduction Amazon’s Alexa is a popular digital assistant that was not designed around a smart phone, but rather as a service for ambient computing [1] in the home. Due to the intuitiveness of the Voice User Interface (VUI), the demand from software engineering teams for voice controlled features far out- stripped the pace at which the language experts designing Alexa’s SLU system could accommodate them.
    [Show full text]
  • Modernizing Your Contact Center with Amazon Connect
    Modernizing your Contact Center with Amazon Connect © 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Maintaining effective contact centers has never been more urgent How do I keep my How do I set up a help How do I manage contact center desk to rapidly inquiry volume that operational while my staff respond to customers outpaces are working about a global crisis? my current contact from home? center’s capacity? © 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Empowering agents to work from anywhere “ Amazon Connect enables us to create job opportunities $27k Monthly savings for people who have a good reason to work from home. To us, that means people with disabilities, military Minutes to spouses and people in economically depressed areas. onboard The pay-as-you-go pricing allows us to add new agents 20 new agents simply by creating new users in the Amazon Connect console and it helps us save money by doing so. Our agents have found Amazon Connect reliable and we’ve seen a dramatic decrease in agent churn. ” 100% Remote workforce - Jonas Nicholson, CEO – Direct Interactions © 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Customer Service supports… Amazon strives to be earth’s most Millions customer Dozenscentric company 32 of customers of languages countries Over 70,000 Customer Service Associates Amazon Connect is helping companies transform customer experience Easy to use, omnichannel cloud-based contact-center service that scales to support businesses of any size Amazon Connect Skills-based Voice & chat Real-time and High-quality Pay-as-you-go contact routing recording historical analytics voice capability pricing © 2020, Amazon Web Services, Inc.
    [Show full text]
  • User Guide Amazon Chime User Guide
    Amazon Chime User Guide Amazon Chime User Guide Amazon Chime: User Guide Copyright © Amazon Web Services, Inc. and/or its affiliates. All rights reserved. Amazon's trademarks and trade dress may not be used in connection with any product or service that is not Amazon's, in any manner that is likely to cause confusion among customers, or in any manner that disparages or discredits Amazon. All other trademarks not owned by Amazon are the property of their respective owners, who may or may not be affiliated with, connected to, or sponsored by Amazon. Amazon Chime User Guide Table of Contents What is Amazon Chime? ..................................................................................................................... 1 Joining an Amazon Chime meeting quickly .................................................................................... 1 How to get started with Amazon Chime ....................................................................................... 1 Creating an Amazon Chime administrator account .......................................................................... 1 Getting started .................................................................................................................................. 2 System requirements .................................................................................................................. 2 Windows ........................................................................................................................... 2 macOS .............................................................................................................................
    [Show full text]
  • Serverless Bot Framework Implementation Guide Serverless Bot Framework Implementation Guide
    Serverless Bot Framework Implementation Guide Serverless Bot Framework Implementation Guide Serverless Bot Framework: Implementation Guide Copyright © Amazon Web Services, Inc. and/or its affiliates. All rights reserved. Amazon's trademarks and trade dress may not be used in connection with any product or service that is not Amazon's, in any manner that is likely to cause confusion among customers, or in any manner that disparages or discredits Amazon. All other trademarks not owned by Amazon are the property of their respective owners, who may or may not be affiliated with, connected to, or sponsored by Amazon. Serverless Bot Framework Implementation Guide Table of Contents Welcome ........................................................................................................................................... 1 Overview ........................................................................................................................................... 2 Cost .......................................................................................................................................... 2 Example cost table ............................................................................................................. 2 Architecture ............................................................................................................................... 3 Solution Features ............................................................................................................................... 5 Supported Languages
    [Show full text]
  • Building Intelligent Contact Centre Solutions in the Cloud
    Building intelligent contact centre solutions in the cloud Kirillos Akram Solutions Architect, AWS Worldwide Public Sector Francisco Gonzalez Solutions Architect, AWS Worldwide Public Sector © 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved Agenda • Overview of Amazon Connect • Integration with other AWS Services • Integration with other WEB Applications • Demo © 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Overview of Amazon Connect © 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved Amazon strives to be earth’s most customer centric company Amazon Customer Service supports… Millions Dozens 32 of customers of languages countries Over 70,000 Customer Service Associates © 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. So we built it © 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Connect Easy to use, omnichannel cloud-based contact center service that scales to support businesses of any size The fastest path to customer service innovation. Skills-based contact Voice & chat Real-time and High-quality routing recording historical analytics voice capability © 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Connect differentiators Dynamic, personal, and Open platform natural contact flows 100% Self-service AWS services configuration cloud-based & partners Pay only for the value delivered to your customers © 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Contact Flow Engine—customer experience example No, I’d rather rebook for the same Yes, time tomorrow, is thank you! that possible? Incoming customer call Hi Nikki Wolf, Yes, that flight is available I apologize that your departing at 9:00 AM out of flight was cancelled.
    [Show full text]
  • Amazon Connect Lex4ec2 Patch Status Check – Solution Design and Setup Guide
    Amazon Connect Lex4EC2 Patch Status Check – Solution Design and Setup Guide Technical Guide March 8, 2021 Notices Customers are responsible for making their own independent assessment of the information in this document. This document: (a) is for informational purposes only, (b) represents current AWS product offerings and practices, which are subject to change without notice, and (c) does not create any commitments or assurances from AWS and its affiliates, suppliers or licensors. AWS products or services are provided “as is” without warranties, representations, or conditions of any kind, whether express or implied. The responsibilities and liabilities of AWS to its customers are controlled by AWS agreements, and this document is not part of, nor does it modify, any agreement between AWS and its customers. © 2021 Amazon Web Services, Inc. or its affiliates. All rights reserved. Contents Before you begin ................................................................................................................. 1 Architecture and design ....................................................................................................... 1 Known caller authentication flow ..................................................................................... 2 Unknown caller authentication flow ................................................................................. 3 Chat client authentication flow ......................................................................................... 5 Components and information architecture
    [Show full text]
  • Augmented Reality in Sumerian
    Amazon Sumerian Amazon Sumerian by Tutorials By Brian Moakley & Gur Raunaq Singh Copyright ©2019 Razeware LLC. Notice of Rights All rights reserved. No part of this book or corresponding materials (such as text, images, or source code) may be reproduced or distributed by any means without prior written permission of the copyright owner. Notice of Liability This book and all corresponding materials (such as source code) are provided on an “as is” basis, without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose, and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in action of contract, tort or otherwise, arising from, out of or in connection with the software or the use of other dealing in the software. Trademarks All trademarks and registered trademarks appearing in this book are the property of their own respective owners. raywenderlich.com 2 Amazon Sumerian Table of Contents: Overview About the Cover...................................................................................... 13 What You Need........................................................................................ 17 Book License............................................................................................. 19 Project Files & Forum............................................................................ 20 Foreword...................................................................................................
    [Show full text]
  • Track 5 Amazon Connect Paul&Lili
    Amazon Connect Customer Service Experience The Art of the Possible Paul Chen Lili Chan Head – Solutions Architect ASEAN Senior Specialist Solutions Architect Amazon Web Services Amazon Web Services © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. Typical on-premises contact center stack Customer Agent Typical on-premises contact center stack Carrier connectivity Customer Agent Typical on-premises contact center stack Carrier Interactive connectivity voice response Customer Agent Typical on-premises contact center stack Carrier Interactive connectivity voice response Customer Agent Speech CTI recognition Typical on-premises contact center stack Carrier Interactive Call connectivity voice response routing Customer Agent Speech CTI recognition Typical on-premises contact center stack Carrier Interactive Call Call connectivity voice response routing recording Customer Agent Speech PBX CTI recognition connectivity TypicalAmazon on Connect-premises simplifies contact this center dramatically stack Carrier Interactive Call Call connectivity voice response routing recording Customer Agent Speech PBX Reporting CTI recognition connectivity Amazon Connect Easy to use, omnichannel cloud-based contact center service Skills-based Voice & Real-time and High-quality contact chat historical voice routing recording analytics capability Business of any size FASTEST path to customer service INNOVATION Customers Contact Flow Engine—customer experience example Contact Flow Engine—customer experience example No, I’d rather rebook for the same Yes, time tomorrow, is thank you! that possible? Incoming customer call Hi Nikki Wolf, Yes, that flight is available I apologize that your departing at 9:00 AM out of flight was cancelled. San Francisco, arriving in I can rebook you for the Seattle at 11:45 AM. CRM content Flight Booking next available flight, I can book you in seat 12C, System departing at 10pm, would it’s an aisle.
    [Show full text]
  • Contact Center Optimization for Financial Services Why Are Financial Institutions Transforming Their Contact Centers?
    Contact center optimization for Financial Services Why are financial institutions transforming their contact centers? The Financial Services industry has relied on contact centers for decades—but traditional solutions aren’t keeping up with customer expectations for instant, personal engagement. Consumers across retail banking, insurance, and wealth management expect more personalized advice from call center agents and admit that they would buy more products if they received personalized offers over the phone. In addition to confronting changing customer demands, financial institutions face significant expenditures for traditional contact centers, which often involve multiple third-party vendors with complex licensing models. With Amazon Connect, Financial Services organizations can improve their customer engagement while reducing costs and simplifying their contact center technology stack. 2 Why did we build Amazon Connect? Amazon Connect harnesses the same contact center technology that 70,000 Amazon customer What is Amazon Connect? service associates use in 32 countries, powering millions of customer interactions. To deliver exceptional customer experiences, Amazon Amazon Connect is a self-service, cloud-based contact center service that enables needed a contact center solution that was reliable, Financial Services companies to deliver improved customer service at a lower cost and simple to manage, open, and could scale to meet surges in demand. in a pay-as-you-use model. However, Amazon found that traditional contact Non-technical users can manage customer service agents, track performance metrics, center solutions couldn’t meet its needs. Using its and design workflows for incoming calls without specialized skills. And Amazon Connect experience running an enterprise-scale customer easily integrates with other AWS services such as Amazon Transcribe and Amazon service organization, Amazon built its own easy-to-use Comprehend allowing users to leverage machine learning and analytics capabilities.
    [Show full text]