S’il est possible de créer un bot en quelques minutes, construire des assistants interactifs professionnels représente un réel challenge : assez vite, nous voilà confrontés à des patterns de développements avancés, des enjeux d’architecture propres aux API Web. Sans compter les compétences spécifiques au domaine des bots.
Au cours de cette session, nous présenterons le code de bots permettant de gérer des interactions Chat et Voix, et explorerons les défis rencontrés lors de la construction de ces bots : stockage des contextes, approches NLP, scopes OAuth, meta-données.
Nous présenterons ensuite les tendances actuelles en terme d’architecture : plateformes de bots, exécution de bots sous forme de micro-fonctions / serverless…
Depuis un an, j'interviens sur la mise en place de bots, et ai pu coder un framework de bots en nodejs, et tester quelques framewokrs de bots. Ce talk est un retour d'expérience.
Le support est en anglais et au format 4/3.
A Secure and Reliable Document Management System is Essential.docx
Create an advanced Voice Machine with Tropo
1. Créer un bot, pas si simple.
Faisons le point
Stève SFARTZ
API Evangelist - Cisco DevNet
stsfartz@cisco.com, @SteveSfartz, github://ObjectIsadvantag
12. Asking a Question
var result = ask("What's your favorite
color? Choose red, blue or green.", {
choices:"red, blue, green"
});
say("You said " + result.value);
log("They said " + result.value);
1
13. Voicemail Application
record("Leave your message. Press
pound when finished.", {
beep:true,
timeout:10,
silenceTimeout:7,
maxTime:60,
terminator:'#',
recordFormat:"audio/mp3",
recordURI:"ftp://.../file.mp3" });
1
Bots are fun !!!
Thoughts and lessons learnt building:
Voice Machines
Chat Bots
You’re in control
TODO: Add URL to the VOICE Machine
Understand how the Tropo Scripting platform manages your files
For development, host your scripts on an external URL for changes to reflect instanlty
Tropo will fetch your script everytime
Host on Github gist, edit your favorite IDE
When going live, host your scripts on Tropo Production File Servers
Orange boxes represent custom code
Let’s break it down into the 3 elements.
SPARK MESSAGING – is an easy to use, always connected, service built on the idea of VIRTUAL ROOMS with a excellent MOBILE EXPERIENCE. Messaging, content sharing and BASIC conferencing capabilities are now all in one place. These “rooms” reduce the need for other tools like email and SHAREPOINT that were not truly built to support these types of workers and workstyles.
SPARK MEETINGS – People shouldn’t have to worry about what KIND OF MEETING they’re having. Video Rooms, home office, branch office, Driver’s seat, Airport…Face to Face Video, Voice, and Content Sharing from any DEVICE, any ROOM, and any WORK ENVIRONMENT. Leveraging the #1 Web collaboration tool WebEx.
SPARK CALL – This is your phone system or PBX in the cloud. One-touch directory dialing, Single Number Reach, Single Voicemail from any device, anywhere.
All delivered in a single experience and managed through a single Cloud Collaboration Management Portal. Cloud Collaboration Management provides a single tool for administration, entitlement, management and reporting for Cisco Spark and Cisco WebEx
Building on these 3 ELEMENTS
.
Cisco Spark is an Open Platform with…
Open APIs for application integrations and a playground for developers
Partner Services provides inbound dialing, and PSTN connectivity
And Hybrid Services for integrating Cloud Spark applications with existing on prem investments
We’ll leverage Spark APIs to implement this use case
Spark APIs are accessible at https://developer.ciscospark.com/
This is where you get your API token and run thru the interactive documentation