If it takes minutes to code a simple bot, building professional bots represents quite a challenge. Soon you realize you need serious programming and API architecture experience but also “Bot” specific skills. In this session, we'll first show the code of advanced Chat and Voice interactions, and then explore the challenges faced when building advanced Bots (Context storage, NLP approaches, Bot Metadata, OAuth scopes), and discuss interesting opportunities from latest industry trends (Bot platforms, Serverless, Microservices). This talk is about showing the code and sharing lessons learned.
3. 3
Zero to advanced Voice Machines, ChatBots
Demoes & code samples
+39-069-480-4685,
QuizBot@sparkbot.io
Challenges & Lessons learnt
T
so what’s on the menu
11. 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
12. 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
Live coding
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