אמזון לקס הוא שירות לבניית ממשקי שיחה לכל אפליקציה באמצעות קול וטקסט. עם Amazon Lex, אתה יכול בקלות לבנות שפה מתוחכמת וטבעית, בוטים לשיחה (צ'טבוטים), סוכנים וירטואליים ומערכות תגובה קולית אינטראקטיבית (IVR). כעת אתה יכול להשתמש בדקדוקים בתעשייה כדי להאיץ את פיתוח IVR באמזון לקס כחלק ממאמץ הגירת ה-IVR שלך. דקדוקי תעשייה הם קבוצה של קובצי XML הזמינים כ- סוג משבצת דקדוק. אתה יכול לבחור מתוך מגוון של דקדוקי תעשייה מובנים מראש על פני תחומים, כגון שירותים פיננסיים, ביטוח וטלקום. בפוסט זה, אנו סוקרים את הדקדוקים בתעשייה עבור תעשיות אלו ומשתמשים בהם כדי ליצור חוויות IVR.
שירותים פיננסיים
אתה יכול להשתמש באמזון לקס בתחום השירותים הפיננסיים כדי להפוך אינטראקציות עם שירות לקוחות לאוטומטיות כגון תשלומים בכרטיסי אשראי, בקשות להלוואות למשכנתא, סטטוס תיק ועדכוני חשבון. במהלך אינטראקציות אלו, תזרים IVR צריך לאסוף מספר פרטים, כולל מספר כרטיס אשראי, מזהה הלוואת משכנתא ופרטי תיק, כדי למלא את בקשת המשתמש. אנו משתמשים בדקדוקים של תעשיית השירותים הפיננסיים בשיחה לדוגמה הבאה:
סוכן: ברוכים הבאים לבנק ACME. כדי להתחיל, האם אוכל לקבל את מזהה החשבון שלך?
משתמש: כן, זה AB12345.
IVR: הבנתי. איך אני יכול לעזור לך?
משתמש: ברצוני להעביר כספים לחשבון החיסכון שלי.
IVR: בטח. כמה תרצה להעביר?
משתמש: 100 דולר
IVR: מעולה, תודה.
הדקדוקים הבאים נתמכים עבור שירותים פיננסיים: מזהה חשבון, מספר כרטיס אשראי, סכום העברה ופורמטים שונים של תאריכים כגון תאריך תפוגה (mm/yy) ותאריך תשלום (mm/dd).
בואו נסקור את המדגם מזהה חשבון דקדוק. אתה יכול להתייחס לדקדוקים האחרים ב- תיעוד.
<?xml version="1.0" encoding="UTF-8" ?>
<grammar xmlns="http://www.w3.org/2001/06/grammar" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.w3.org/2001/06/grammar http://www.w3.org/TR/speech-grammar/grammar.xsd" xml:lang="en-US" version="1.0" root="main" mode="voice" tag-format="semantics/1.0"> <!-- Test Cases Grammar will support the following inputs: Scenario 1: Input: My account number is A B C 1 2 3 4 Output: ABC1234 Scenario 2: Input: My account number is 1 2 3 4 A B C Output: 1234ABC Scenario 3: Input: Hmm My account number is 1 2 3 4 A B C 1 Output: 123ABC1 --> <rule id="main" scope="public"> <tag>out=""</tag> <item><ruleref uri="#alphanumeric"/><tag>out += rules.alphanumeric.alphanum;</tag></item> <item repeat="0-1"><ruleref uri="#alphabets"/><tag>out += rules.alphabets.letters;</tag></item> <item repeat="0-1"><ruleref uri="#digits"/><tag>out += rules.digits.numbers</tag></item> </rule> <rule id="text"> <item repeat="0-1"><ruleref uri="#hesitation"/></item> <one-of> <item repeat="0-1">account number is</item> <item repeat="0-1">Account Number</item> <item repeat="0-1">Here is my Account Number </item> <item repeat="0-1">Yes, It is</item> <item repeat="0-1">Yes It is</item> <item repeat="0-1">Yes It's</item> <item repeat="0-1">My account Id is</item> <item repeat="0-1">This is the account Id</item> <item repeat="0-1">account Id</item> </one-of> </rule> <rule id="hesitation"> <one-of> <item>Hmm</item> <item>Mmm</item> <item>My</item> </one-of> </rule> <rule id="alphanumeric" scope="public"> <tag>out.alphanum=""</tag> <item><ruleref uri="#alphabets"/><tag>out.alphanum += rules.alphabets.letters;</tag></item> <item repeat="0-1"><ruleref uri="#digits"/><tag>out.alphanum += rules.digits.numbers</tag></item> </rule> <rule id="alphabets"> <item repeat="0-1"><ruleref uri="#text"/></item> <tag>out.letters=""</tag> <tag>out.firstOccurence=""</tag> <item repeat="0-1"><ruleref uri="#digits"/><tag>out.firstOccurence += rules.digits.numbers; out.letters += out.firstOccurence;</tag></item> <item repeat="1-"> <one-of> <item>A<tag>out.letters+='A';</tag></item> <item>B<tag>out.letters+='B';</tag></item> <item>C<tag>out.letters+='C';</tag></item> <item>D<tag>out.letters+='D';</tag></item> <item>E<tag>out.letters+='E';</tag></item> <item>F<tag>out.letters+='F';</tag></item> <item>G<tag>out.letters+='G';</tag></item> <item>H<tag>out.letters+='H';</tag></item> <item>I<tag>out.letters+='I';</tag></item> <item>J<tag>out.letters+='J';</tag></item> <item>K<tag>out.letters+='K';</tag></item> <item>L<tag>out.letters+='L';</tag></item> <item>M<tag>out.letters+='M';</tag></item> <item>N<tag>out.letters+='N';</tag></item> <item>O<tag>out.letters+='O';</tag></item> <item>P<tag>out.letters+='P';</tag></item> <item>Q<tag>out.letters+='Q';</tag></item> <item>R<tag>out.letters+='R';</tag></item> <item>S<tag>out.letters+='S';</tag></item> <item>T<tag>out.letters+='T';</tag></item> <item>U<tag>out.letters+='U';</tag></item> <item>V<tag>out.letters+='V';</tag></item> <item>W<tag>out.letters+='W';</tag></item> <item>X<tag>out.letters+='X';</tag></item> <item>Y<tag>out.letters+='Y';</tag></item> <item>Z<tag>out.letters+='Z';</tag></item> </one-of> </item> </rule> <rule id="digits"> <item repeat="0-1"><ruleref uri="#text"/></item> <tag>out.numbers=""</tag> <item repeat="1-10"> <one-of> <item>0<tag>out.numbers+=0;</tag></item> <item>1<tag>out.numbers+=1;</tag></item> <item>2<tag>out.numbers+=2;</tag></item> <item>3<tag>out.numbers+=3;</tag></item> <item>4<tag>out.numbers+=4;</tag></item> <item>5<tag>out.numbers+=5;</tag></item> <item>6<tag>out.numbers+=6;</tag></item> <item>7<tag>out.numbers+=7;</tag></item> <item>8<tag>out.numbers+=8;</tag></item> <item>9<tag>out.numbers+=9;</tag></item> </one-of> </item> </rule>
</grammar>
שימוש בדקדוק התעשייה לשירותים פיננסיים
כדי ליצור את הבוט לדוגמה ולהוסיף את הדקדוקים, בצע את השלבים הבאים. זה יוצר בוט אמזון לקס בשם Financialbot
ומוסיף את הדקדוקים לשירותים פיננסיים, שאנו מאחסנים בהם שירות אחסון פשוט של אמזון (אמזון S3):
- הורד את הבוט של Amazon Lex הגדרה.
- במסוף לקסון של אמזון, בחר פעולות ולאחר מכן לבחור תבואו.
- בחר את
Financialbot.zip
קובץ שהורדת ובחר תבואו.
- העתק קבצי XML דקדוק עבור שירותים פיננסיים, המפורטים בסעיף הקודם.
- בקונסולת Amazon S3, העלה את קובצי ה-XML.
- נווט אל סוגי המשבצות בקונסולת Amazon Lex ובחר את ה
accountID
סוג חריץ כך שתוכל לשייך את fin_accountNumber.grxml
קובץ.
- בסוג החריץ, הזן את הקישור של Amazon S3 עבור קובץ ה-XML ומפתח האובייקט.
- בחרו שמור את סוג החריץ.
השמיים AWS זהות וניהול גישה תפקיד (IAM) המשמש ליצירת הבוט חייב להיות בעל הרשאה לקרוא קבצים מ-S3.
- חזור על שלבים 6-8 עבור
transferFunds
סוג חריץ עם fin_transferAmount.grxml
.
- לאחר שתשמור את הדקדוקים, בחר לִבנוֹת.
- הורד את השירותים הפיננסיים זרימת מגע כדי לשלב אותו עם הבוט של Amazon Lex באמצעות אמזון Connect.
- במסוף Amazon Connect בחר מגע זורם.
- ב אמזון לקס בקטע, בחר את הבוט של Amazon Lex שלך והפוך אותו זמין לשימוש בזרימות אנשי הקשר של Amazon Connect.
- בחר את זרימת אנשי הקשר כדי לטעון אותו לאפליקציה.
- בדוק את זרימת IVR על ידי התקשרות למספר הטלפון.
ביטוח
אתה יכול להשתמש באמזון לקס בתחום הביטוח כדי להפוך אינטראקציות עם שירות לקוחות לאוטומטיות כגון עיבוד תביעות, ניהול פוליסה ותשלומי פרמיה. במהלך אינטראקציות אלה, זרימת IVR צריכה לאסוף מספר פרטים, כולל מזהה פוליסה, לוחית רישוי וסכום פרמיה, כדי למלא את בקשת בעל הפוליסה. אנו משתמשים בדקדוקי ענף הביטוח בשיחה לדוגמה הבאה:
סוכן: ברוכים הבאים לחברת הביטוח ACME. כדי להתחיל, האם אוכל לקבל את מזהה הפוליסה שלך?
מתקשר: כן, זה AB1234567.
IVR: הבנתי. איך אני יכול לעזור לך?
מתקשר: אני רוצה להגיש תביעה.
IVR: בטח. האם טענה זו נוגעת למדיניות הרכב שלך או למדיניות בעלי הבית?
מתקשר: אוטומטי
IVR: מה לוחית הרישוי על הרכב?
מתקשר: ABCD1234
IVR: תודה. ועל כמה עולה התביעה?
מתקשר: 900 דולר
IVR: מה היו התאריך והשעה של התאונה?
מתקשר: 1 במרץ 2:30.
IVR: תודה. התחלתי את זה בשבילך. מישהו מהמשרד שלנו אמור ליצור איתך קשר בהקדם. מזהה התביעה שלך הוא 12345.
הדקדוקים הבאים נתמכים עבור תחום הביטוח: מזהה פוליסה, רישיון נהיגה, מספר ת.ז., לוחית רישוי, מספר תביעה ותאריך חידוש.
בואו נסקור את המדגם claimDateTime דקדוק. אתה יכול להתייחס לדקדוקים האחרים ב- תיעוד.
<?xml version="1.0" encoding="UTF-8" ?>
<grammar xmlns="http://www.w3.org/2001/06/grammar" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.w3.org/2001/06/grammar http://www.w3.org/TR/speech-grammar/grammar.xsd" xml:lang="en-US" version="1.0" root="main" mode="voice" tag-format="semantics/1.0"> <!-- Test Cases Grammar will support the following inputs: Scenario 1: Input: The accident occured at july three at five am Output: july 3 5am Scenario 2: Input: Damage was reported at july three at five am Output: july 3 5am Scenario 3: Input: Schedule virtual inspection for july three at five am Output: july 3 5am --> <rule id="main" scope="public"> <tag>out=""</tag> <item repeat="1-10"> <item><ruleref uri="#months"/><tag>out = out + rules.months + " ";</tag></item> <one-of> <item><ruleref uri="#digits"/><tag>out += rules.digits + " ";</tag></item> <item><ruleref uri="#teens"/><tag>out += rules.teens+ " ";</tag></item> <item><ruleref uri="#above_twenty"/><tag>out += rules.above_twenty+ " ";</tag></item> </one-of> <item><ruleref uri="#at"/><tag>out += rules.at.new;</tag></item> <item repeat="0-1"><ruleref uri="#mins"/><tag>out +=":" + rules.mins.min;</tag></item> <item><ruleref uri="#ampm"/><tag>out += rules.ampm;</tag></item> </item> <item repeat="0-1"><ruleref uri="#thanks"/></item> </rule> <rule id="text"> <one-of> <item repeat="0-1">The accident occured at</item> <item repeat="0-1">Time of accident is</item> <item repeat="0-1">Damage was reported at</item> <item repeat="0-1">Schedule virtual inspection for</item> </one-of> </rule> <rule id="thanks"> <one-of> <item>Thanks</item> <item>I think</item> </one-of> </rule> <rule id="months"> <item repeat="0-1"><ruleref uri="#text"/></item> <one-of> <item>january<tag>out="january";</tag></item> <item>february<tag>out="february";</tag></item> <item>march<tag>out="march";</tag></item> <item>april<tag>out="april";</tag></item> <item>may<tag>out="may";</tag></item> <item>june<tag>out="june";</tag></item> <item>july<tag>out="july";</tag></item> <item>august<tag>out="august";</tag></item> <item>september<tag>out="september";</tag></item> <item>october<tag>out="october";</tag></item> <item>november<tag>out="november";</tag></item> <item>december<tag>out="december";</tag></item> <item>jan<tag>out="january";</tag></item> <item>feb<tag>out="february";</tag></item> <item>aug<tag>out="august";</tag></item> <item>sept<tag>out="september";</tag></item> <item>oct<tag>out="october";</tag></item> <item>nov<tag>out="november";</tag></item> <item>dec<tag>out="december";</tag></item> </one-of> </rule> <rule id="digits"> <one-of> <item>0<tag>out=0;</tag></item> <item>1<tag>out=1;</tag></item> <item>2<tag>out=2;</tag></item> <item>3<tag>out=3;</tag></item> <item>4<tag>out=4;</tag></item> <item>5<tag>out=5;</tag></item> <item>6<tag>out=6;</tag></item> <item>7<tag>out=7;</tag></item> <item>8<tag>out=8;</tag></item> <item>9<tag>out=9;</tag></item> <item>first<tag>out=1;</tag></item> <item>second<tag>out=2;</tag></item> <item>third<tag>out=3;</tag></item> <item>fourth<tag>out=4;</tag></item> <item>fifth<tag>out=5;</tag></item> <item>sixth<tag>out=6;</tag></item> <item>seventh<tag>out=7;</tag></item> <item>eighth<tag>out=8;</tag></item> <item>ninth<tag>out=9;</tag></item> <item>one<tag>out=1;</tag></item> <item>two<tag>out=2;</tag></item> <item>three<tag>out=3;</tag></item> <item>four<tag>out=4;</tag></item> <item>five<tag>out=5;</tag></item> <item>six<tag>out=6;</tag></item> <item>seven<tag>out=7;</tag></item> <item>eight<tag>out=8;</tag></item> <item>nine<tag>out=9;</tag></item> </one-of> </rule> <rule id="at"> <tag>out.new=""</tag> <item>at</item> <one-of> <item repeat="0-1"><ruleref uri="#digits"/><tag>out.new+= rules.digits</tag></item> <item repeat="0-1"><ruleref uri="#teens"/><tag>out.new+= rules.teens</tag></item> </one-of> </rule> <rule id="mins"> <tag>out.min=""</tag> <item repeat="0-1">:</item> <item repeat="0-1">and</item> <one-of> <item repeat="0-1"><ruleref uri="#digits"/><tag>out.min+= rules.digits</tag></item> <item repeat="0-1"><ruleref uri="#teens"/><tag>out.min+= rules.teens</tag></item> <item repeat="0-1"><ruleref uri="#above_twenty"/><tag>out.min+= rules.above_twenty</tag></item> </one-of> </rule> <rule id="ampm"> <tag>out=""</tag> <one-of> <item>AM<tag>out="am";</tag></item> <item>PM<tag>out="pm";</tag></item> <item>am<tag>out="am";</tag></item> <item>pm<tag>out="pm";</tag></item> </one-of> </rule> <rule id="teens"> <one-of> <item>ten<tag>out=10;</tag></item> <item>tenth<tag>out=10;</tag></item> <item>eleven<tag>out=11;</tag></item> <item>twelve<tag>out=12;</tag></item> <item>thirteen<tag>out=13;</tag></item> <item>fourteen<tag>out=14;</tag></item> <item>fifteen<tag>out=15;</tag></item> <item>sixteen<tag>out=16;</tag></item> <item>seventeen<tag>out=17;</tag></item> <item>eighteen<tag>out=18;</tag></item> <item>nineteen<tag>out=19;</tag></item> <item>tenth<tag>out=10;</tag></item> <item>eleventh<tag>out=11;</tag></item> <item>twelveth<tag>out=12;</tag></item> <item>thirteenth<tag>out=13;</tag></item> <item>fourteenth<tag>out=14;</tag></item> <item>fifteenth<tag>out=15;</tag></item> <item>sixteenth<tag>out=16;</tag></item> <item>seventeenth<tag>out=17;</tag></item> <item>eighteenth<tag>out=18;</tag></item> <item>nineteenth<tag>out=19;</tag></item> </one-of> </rule> <rule id="above_twenty"> <one-of> <item>twenty<tag>out=20;</tag></item> <item>thirty<tag>out=30;</tag></item> </one-of> <item repeat="0-1"><ruleref uri="#digits"/><tag>out += rules.digits;</tag></item> </rule>
</grammar>
שימוש בדקדוק התעשייה לביטוח
כדי ליצור את הבוט לדוגמה ולהוסיף את הדקדוקים, בצע את השלבים הבאים. זה יוצר בוט אמזון לקס בשם InsuranceBot
ומוסיף את הדקדוקים עבור תחום הביטוח:
- הורד את הבוט של Amazon Lex הגדרה.
- במסוף לקסון של אמזון, בחר פעולות, ואז לבחור תבואו.
- בחר את
InsuranceBot.zip file
שהורדת ובחר תבואו.
- העתק קבצי XML דקדוק לביטוח, המפורטים בסעיף הקודם.
- בקונסולת Amazon S3, העלה את קובצי ה-XML.
- נווט אל סוגי המשבצות בקונסולת Amazon Lex ובחר את ה
policyID
סוג חריץ כך שתוכל לשייך את ins_policyNumber.grxml
קובץ דקדוק.
- בסוג החריץ, הזן את הקישור של Amazon S3 עבור קובץ ה-XML ומפתח האובייקט.
- בחרו שמור את סוג החריץ.
לתפקיד IAM המשמש ליצירת הבוט חייב להיות הרשאה לקרוא קבצים מ-S3 bucket.
- חזור על שלבים 6-8 עבור
licensePlate
סוג חריץ (ins_NJ_licensePlateNumber.grxml
) ו dateTime
סוג חריץ (ins_claimDateTime.grxml
).
- לאחר שתשמור את הדקדוקים, בחר לִבנוֹת.
- הורד את הביטוח זרימת מגע להשתלב עם הבוט של Amazon Lex.
- במסוף Amazon Connect בחר מגע זורם.
- ב אמזון לקס סעיף, ובחר את בוט Lex שלך והפוך אותו זמין לשימוש בזרימות אנשי הקשר של Amazon Connect.
- בחר את זרימת אנשי הקשר כדי לטעון אותו לאפליקציה.
- בדוק את זרימת IVR על ידי התקשרות למספר הטלפון.
טלקום
אתה יכול להשתמש באמזון לקס בתחום הטלקום כדי להפוך אינטראקציות עם שירות לקוחות לאוטומטיות כגון הפעלת שירות, תשלום חשבונות וניהול התקנות מכשירים. במהלך אינטראקציות אלו, זרימת IVR צריכה לאסוף מספר פרטים, כולל מספר SIM, מיקוד ותאריך תחילת השירות, כדי למלא את בקשת המשתמש. אנו משתמשים בדקדוקים של תעשיית השירותים הפיננסיים בשיחה לדוגמה הבאה:
סוכן: ברוכים הבאים לסלולר ACME. כדי להתחיל, אפשר לקבל את מספר הטלפון המשויך לחשבון שלך?
משתמש: כן, זה 123 456 7890.
IVR: תודה. איך אני יכול לעזור לך?
משתמש: אני מתקשר כדי להפעיל את השירות שלי.
IVR: בטח. מה מספר הסים במכשיר?
IVR: 12345ABC
IVR: בסדר. והאם אפשר לקבל את המיקוד?
משתמש: 12345
IVR: מעולה, תודה. המכשיר הופעל.
הדקדוקים הבאים נתמכים עבור טלקום: מספר SIM, מספר סידורי של מכשיר, מיקוד, מספר טלפון, תאריך תחילת השירות וסידורים.
בואו נסקור את המדגם מספר SIM דקדוק. אתה יכול להתייחס לדקדוקים האחרים ב- תיעוד.
<?xml version="1.0" encoding="UTF-8" ?>
<grammar xmlns="http://www.w3.org/2001/06/grammar" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.w3.org/2001/06/grammar http://www.w3.org/TR/speech-grammar/grammar.xsd" xml:lang="en-US" version="1.0" root="main" mode="voice" tag-format="semantics/1.0"> <!-- Test Cases Grammar will support the following inputs: Scenario 1: Input: My SIM number is A B C 1 2 3 4 Output: ABC1234 Scenario 2: Input: My SIM number is 1 2 3 4 A B C Output: 1234ABC Scenario 3: Input: My SIM number is 1 2 3 4 A B C 1 Output: 123ABC1 --> <rule id="main" scope="public"> <tag>out=""</tag> <item><ruleref uri="#alphanumeric"/><tag>out += rules.alphanumeric.alphanum;</tag></item> <item repeat="0-1"><ruleref uri="#alphabets"/><tag>out += rules.alphabets.letters;</tag></item> <item repeat="0-1"><ruleref uri="#digits"/><tag>out += rules.digits.numbers</tag></item> </rule> <rule id="text"> <item repeat="0-1"><ruleref uri="#hesitation"/></item> <one-of> <item repeat="0-1">My SIM number is</item> <item repeat="0-1">SIM number is</item> </one-of> </rule> <rule id="hesitation"> <one-of> <item>Hmm</item> <item>Mmm</item> <item>My</item> </one-of> </rule> <rule id="alphanumeric" scope="public"> <tag>out.alphanum=""</tag> <item><ruleref uri="#alphabets"/><tag>out.alphanum += rules.alphabets.letters;</tag></item> <item repeat="0-1"><ruleref uri="#digits"/><tag>out.alphanum += rules.digits.numbers</tag></item> </rule> <rule id="alphabets"> <item repeat="0-1"><ruleref uri="#text"/></item> <tag>out.letters=""</tag> <tag>out.firstOccurence=""</tag> <item repeat="0-1"><ruleref uri="#digits"/><tag>out.firstOccurence += rules.digits.numbers; out.letters += out.firstOccurence;</tag></item> <item repeat="1-"> <one-of> <item>A<tag>out.letters+='A';</tag></item> <item>B<tag>out.letters+='B';</tag></item> <item>C<tag>out.letters+='C';</tag></item> <item>D<tag>out.letters+='D';</tag></item> <item>E<tag>out.letters+='E';</tag></item> <item>F<tag>out.letters+='F';</tag></item> <item>G<tag>out.letters+='G';</tag></item> <item>H<tag>out.letters+='H';</tag></item> <item>I<tag>out.letters+='I';</tag></item> <item>J<tag>out.letters+='J';</tag></item> <item>K<tag>out.letters+='K';</tag></item> <item>L<tag>out.letters+='L';</tag></item> <item>M<tag>out.letters+='M';</tag></item> <item>N<tag>out.letters+='N';</tag></item> <item>O<tag>out.letters+='O';</tag></item> <item>P<tag>out.letters+='P';</tag></item> <item>Q<tag>out.letters+='Q';</tag></item> <item>R<tag>out.letters+='R';</tag></item> <item>S<tag>out.letters+='S';</tag></item> <item>T<tag>out.letters+='T';</tag></item> <item>U<tag>out.letters+='U';</tag></item> <item>V<tag>out.letters+='V';</tag></item> <item>W<tag>out.letters+='W';</tag></item> <item>X<tag>out.letters+='X';</tag></item> <item>Y<tag>out.letters+='Y';</tag></item> <item>Z<tag>out.letters+='Z';</tag></item> </one-of> </item> </rule> <rule id="digits"> <item repeat="0-1"><ruleref uri="#text"/></item> <tag>out.numbers=""</tag> <item repeat="1-10"> <one-of> <item>0<tag>out.numbers+=0;</tag></item> <item>1<tag>out.numbers+=1;</tag></item> <item>2<tag>out.numbers+=2;</tag></item> <item>3<tag>out.numbers+=3;</tag></item> <item>4<tag>out.numbers+=4;</tag></item> <item>5<tag>out.numbers+=5;</tag></item> <item>6<tag>out.numbers+=6;</tag></item> <item>7<tag>out.numbers+=7;</tag></item> <item>8<tag>out.numbers+=8;</tag></item> <item>9<tag>out.numbers+=9;</tag></item> </one-of> </item> </rule>
</grammar>
שימוש בדקדוק התעשייה עבור טלקום
כדי ליצור את הבוט לדוגמה ולהוסיף את הדקדוקים, בצע את השלבים הבאים. זה יוצר בוט אמזון לקס בשם TelecomBot
ומוסיף את הדקדוקים עבור טלקום:
- הורד את הבוט של Amazon Lex הגדרה.
- במסוף לקסון של אמזון, בחר פעולות, ואז לבחור תבואו.
- בחר את
TelecomBot.zip
קובץ שהורדת ובחר תבואו.
- העתק קבצי XML דקדוק עבור תחום הטלקום, המפורט בסעיף הקודם.
- בקונסולת Amazon S3, העלה את קובצי ה-XML.
- נווט אל סוגי המשבצות בקונסולת Amazon Lex ובחר
phoneNumber
כך שתוכל לשייך את tel_phoneNumber.grxml
דקדוק.
- בסוג החריץ, הזן את הקישור של Amazon S3 עבור קובץ ה-XML ומפתח האובייקט.
- בחרו שמור את סוג החריץ.
לתפקיד IAM המשמש ליצירת הבוט חייב להיות הרשאה לקרוא קבצים מ-S3 bucket.
- חזור על שלבים 6-8 עבור סוגי החריצים
SIM number
(tel_simNumber.grxml
) ו zipcode
(tel_usZipcode.grxml
).
- לאחר שתשמור את הדקדוקים, בחר לִבנוֹת.
- הורד את הביטוח זרימת מגע להשתלב עם הבוט של Amazon Lex.
- במסוף Amazon Connect בחר מגע זורם.
- ב אמזון לקס סעיף, ובחר את הבוט של Amazon Lex שלך והפוך אותו לזמין לשימוש בזרימות אנשי הקשר של Amazon Connect.
- בחר את זרימת אנשי הקשר כדי לטעון אותו לאפליקציה.
- בדוק את זרימת IVR על ידי התקשרות למספר הטלפון.
בדוק את הפתרון
אתה יכול להתקשר למספר הטלפון של Amazon Connect וליצור אינטראקציה עם הבוט. אתה יכול גם לבדוק את הפתרון ישירות בקונסולת Amazon Lex V2 באמצעות קול או טקסט.
סיכום
דקדוקים בתעשייה מספקים קבוצה של קובצי XML מובנים מראש שבהם אתה יכול להשתמש כדי ליצור במהירות זרימות IVR. אתה יכול לבחור דקדוקים כדי לאפשר שיחות שירות לקוחות עבור מקרי שימוש בשירותים פיננסיים, ביטוח וטלקום. הדקדוקים זמינים בתור א סוג משבצת דקדוק וניתן להשתמש בו בתצורת בוט של Amazon Lex. אתה יכול להוריד את הדקדוקים ולאפשר אותם דרך קונסולת Amazon Lex V2 או SDK. היכולת זמינה בכל אזורי ה-AWS שבהם אמזון לקס פועלת באזורים באנגלית (אוסטרליה), אנגלית (בריטניה) ואנגלית (ארה"ב).
למידע נוסף, עיין ב שימוש בסוג חריץ דקדוק מותאם אישית.
על הכותבים
ג'ון היטר בעל ניסיון של למעלה מ-15 שנים ב-AI ואוטומציה. כסמנכ"ל מרכז הקשר ב- NeuraFlash, הוא מוביל את הטמעת טכניקות הבינה המלאכותית והאוטומציה העדכניות ביותר עבור פורטפוליו של מוצרים ופתרונות לקוחות.
Sandeep Srinivasan הוא מנהל מוצר בצוות Amazon Lex. כצופה נלהב של התנהגות אנושית, הוא נלהב מחווית לקוח. הוא מבלה את שעות הערות שלו בצומת של אנשים, טכנולוגיה ועתיד.