הפעלת Customer Experience Insights
לפני שמשתמשים ב-Customer Experience Insights (CX Insights) כדי לנתח נתונים משיחות, צריך להפעיל ממשקי API ספציפיים.
במדריך למתחילים הזה תבצעו את הפעולות הבאות:
מפעילים את ממשקי ה-API:
- Cloud Speech-to-Text API – להעלאת קובצי אודיו.
- Cloud Storage API – להעברת שיחות ל-CX Insights.
- Contact Center AI Insights API – לשימוש ב-CX Insights.
- Dialogflow API – כדי לתמוך בשילוב של זמן ריצה של Dialogflow ובמידול נושאים.
- Sensitive Data Protection (DLP) API – לביצוע צנזור בקובצי אודיו או תמליל.
שליחת בקשה אל Contact Center AI Insights API וקבלת תשובה.
אפשר להשתמש ב-CX Insights עם VPC Service Controls.
לפני שמתחילים
יכול להיות שהגבלות אבטחה שהוגדרו בארגון שלכם ימנעו מכם להשלים את השלבים הבאים. מידע לפתרון בעיות זמין במאמר פיתוח אפליקציות בסביבה מוגבלת. Google Cloud
-
In the Google Cloud console, on the project selector page, select or create a Google Cloud project.
Roles required to select or create a project
- Select a project: Selecting a project doesn't require a specific IAM role—you can select any project that you've been granted a role on.
-
Create a project: To create a project, you need the Project Creator role
(
roles/resourcemanager.projectCreator), which contains theresourcemanager.projects.createpermission. Learn how to grant roles.
-
Verify that billing is enabled for your Google Cloud project.
Enable the Cloud Speech-to-Text, Cloud Storage, Contact Center AI Insights, Dialogflow, and Sensitive Data Protection (DLP) APIs.
Roles required to enable APIs
To enable APIs, you need the
serviceusage.services.enablepermission. If you created the project, then you likely already have this permission through the Owner role (roles/owner). Otherwise, you can get this permission through the Service Usage Admin role (roles/serviceusage.serviceUsageAdmin). Learn how to grant roles.
שליחת בקשה וקבלת תשובה
מתקינים ומגדירים את Google Cloud CLI. אפשר להגדיר את ה-CLI של gcloud באחת מסביבות הפיתוח הבאות:
Cloud Shell
כדי להשתמש בטרמינל אונליין שכבר מוגדר בו ה-CLI של gcloud, צריך להפעיל את Cloud Shell:
בחלק התחתון של הדף הזה מתחיל סשן של Cloud Shell ומופיעה הנחיה של שורת הפקודה. הסשן יופעל תוך כמה שניות.
מעטפת מקומית
כדי להשתמש בסביבת פיתוח מקומית:
-
יוצרים פרטי כניסה לאימות מקומי עבור חשבון המשתמש:
gcloud auth application-default login
אם מוחזרת שגיאת אימות ואתם משתמשים בספק זהויות חיצוני (IdP), ודאו ש נכנסתם ל-CLI של gcloud באמצעות המאגר המאוחד לניהול זהויות.
כדי לאמת את ההגדרה, מריצים את הפקודה הבאה שמציגה את כל השיחות ב-CX Insights.
curl -H "Authorization: Bearer $(gcloud auth application-default print-access-token)" "https://contactcenterinsights.googleapis.com/v1/projects/PROJECT_ID/locations/LOCATION/conversations"מחליפים את מה שכתוב בשדות הבאים:
-
PROJECT_ID: מזהה הפרויקט ב- Google Cloud . -
LOCATION: האזור שבו מריצים את הבקשה.
הפקודה אמורה להחזיר מילון ריק:
{}.-
אופציונלי: שימוש ב-CX Insights עם VPC Service Controls
כדי להשתמש ב-CX Insights עם VPC Service Controls, צריך להוסיף את CX Insights להיקף האבטחה. מידע נוסף זמין במסמכי התיעוד של VPC Service Controls.