Archive for the ‘In the Cloud’ Category

“It’s the API, stupid!”

Monday, April 15th, 2013

In a recent discussion about “the cloud”, someone told me that he felt the topic was vastly overrated, and that what amounted to time-shared access to mainframes really was a revival of forty year-old concepts. The key thing that struck me about this was how completely it missed the point of a cloud architecture.

Sure, there is a component of “time-shared access” specifically in the commercial model of paying only for what is used. But the essence of its on-demand nature is the ability to create resources effectively from nothing. Where formerly you had to get a hold of an actual hardware box, wire it up, configure it – you now make a software request and your machine is up and running.

Hardware has become software – and the key is the interface. To borrow from the famous Clinton campaign motto: It’s the API, stupid!

By exposing its capabilities in a comprehensive yet easy-to-use interface, platforms such as Amazon’s AWS go vastly beyond simple “hosted virtual machines” and give full control to developers and their applications.

So we take no small amount of pride in the fact that the Voxeo CXP platform offers its own comprehensive API since 2005, when it was still known as VoiceObjects X5. Back then, before something like EC2 existed, the idea of exposing a platform’s full feature set in a well-documented interface that developers could use was pretty new. And it was driven by our deep conviction that the platform’s task is to serve the applications running on it – not the other way around.

Thus we enabled developers to monitor deployments, as well as to create new ones. To inspect and export applications and object definitions, as well as to import and modify newly developed ones. To adjust user management settings, as well as to add new users or entire tenant sets in multi-tenant environments. We refactored the platform on an “API first” basis, i.e. for each new feature the foremost question to ask was: How is it accessible in the interface?

While the Voxeo CXP API has been augmented over time to cover new platform capabilities, and has been expanded from its original SOAP flavor to also offer a REST version, is has been a staple ever since it first entered the product. And while over time we have added many other market-leading features, such as most recently Hotspot Analytics, there has never been the slightest doubt in our minds that the API was one of the most important platform capabilities we’ve built.


All the more so because we’ve also put our effort where our mouth is: Not only does the CXP Developer IDE use this API to communicate with the platform, it is also the key component used by our extensive Python-based testing framework that puts CXP Server through its paces every night, with every build. Automated testing that ensures the platform’s stability, performance, and reliability – and that is possible only because every single capability is accessible.

For our online documentation of the API, visit http://help.voxeo.com/go/vox/webservices. And as always, we encourage you to share your comments on Twitter – connect @voxeostefan !

Tweets from the Cloud

Tuesday, April 17th, 2012

I recently pondered some facts:

  • VoiceObjects now has an extension to integrate with Twitter as another channel of communication (check it out)
  • The Voxeo cloud can:
    • make outbound phone calls,
    • read back dynamic information,
    • record the caller’s voice.

So why not combine all of this, I thought to myself, and build a Twitter Reader mash-up?

So I went and built an app that would:

  • call me on my phone whenever someone mentioned me (i.e. my user name @tpgoebel) on Twitter,
  • read the tweet to me, and
  • allow me to record a response and post a URL to that recording back to Twitter.

I was preparing for a trip to present Voxeo technology to an automaker that offers in-car infotainment services, so this seemed like a perfect way to show off what we can do. Now, let me show you how I did it!

Monitoring Twitter

Our VoiceObjects Twitter channel extension can be setup to either monitor the public timeline for keywords (people tweeting about a product, a brand, or whatever else), or monitor a user’s timeline for direct messages (DMs) or mentions (“@tpgoebel How cool is that?? #Voxeo #VoiceObjects #Twitter”). So I set it up to monitor the timeline of my own Twitter account, @tpgoebel. It is currently configurable through an XML configuration file, so here is a snippet of my configuration:

Socialite Configuration Example

So now, whenever someone mentions my name, it triggers a VoiceObjects service called “TwitterReader”.

Launching a phone call

I built one VoiceObjects application to serve three purposes in one:

  1. When launched via a tweet, trigger the outbound call and end the VoiceObjects session.
  2. When launched via the outbound call, check if an answering machine was reached and if so, leave the tweet as a message.
  3. When launched via an outbound call and a human picked up (wait, that’s me!), play the tweet, and give me options to hear it again, respond to it, or send out a general tweet (ie without mentioning the original Twitterer).

So my application starts with a branch:

TwitterReader Call Flow

I am using Modules for each branch mainly for reporting purposes, so I can easily consume a report that shows me how often a tweet was left on my answering machine vs. me listening to it right away.

Launching the outbound call is done via Voxeo’s HTTP-based token API, i.e. a simple call to our CCXML launcher URL:

http://session.voxeo.net/SessionControl/4.5.40/CCXML10.start?tokenid=108797a718975342a8ed&callerid=14074564555&numbertodial=3212011725&TwitterMsg=XXX

The CCXML places the outbound call and applies Call Progress Analysis to determine if it’s me or my voicebox answering. It passes a Boolean parameter detectedMachine into the VoiceObjects session, upon which I can do my branching.

If you want to learn more about outbound calling with VoiceObjects, read my recent post on the topic.

Reading the tweet and tweeting back

Once I know a human picked up, I read the tweet back using TTS (VoiceObjects’ Twitter channel makes parameters like the message, its author, and a lot of other meta information available in the session context) and offer an option to record a response using VO’s Recording object. I then use bit.ly’s REST API to shorten URLs and convert the URL that points to the recording to a conveniently short URL I can use in my tweet:

TwitterReader Call Flow

Finally, I use VoiceObjects’ own REST API to send a tweet out to the world, mentioning the original Tweeter’s name (so that my response shows up in his “mentions inbox”), and include the shortened URL pointing to my recording. That way he can listen to my response:

Tweet mentioning meMy response

(That’s an “I” ;-) )

Pretty simple, huh? Now I should go out and sell it and become rich…

While the Twitter extension to VoiceObjects was rather built to help automate Twitter as another dialog channel of customer communication, I felt this would be a compelling way of showing what Voxeo technology can do. And the in-car application actually makes sense, don’t you think? And if we take it a step further and integrate this with our partners at Interactions, to add transcription to it, you’ll have a reliable hands-free Twitter client on your phone!

Message me at @tpgoebel if you would like to try it out yourself!

Social CRM And Building Apps to Monitor Social Channels

Wednesday, March 30th, 2011

We would like to invite you to our next developer jam session scheduled for Thursday, April 07, 2011.

Two thirds of today’s Internet users actively engage with social networks such as Twitter or Facebook.
They use it mainly for personal communication, but often share feedback and thoughts about product or
service experiences. Companies need to contribute to this conversation to protect their brands, enhance
customer service or provide proactive customer care. They are or will soon be faced both with a staffing
problem and the technical challenge of having to integrate with their more traditional customer interaction channels.

Learn how Voxeo can help you automate communication over social channels and bridge the gap between social
networks and traditional channels such as IVR or direct agent interaction.

Register today for this session

Time: 8:00 AM US Pacific, 11:00 AM US Eastern, 5:00 PM Central European time

Title: Social CRM And Building Apps to Monitor Social Channels

Upcoming Jam Session: Take your multi-channel services to the cloud with VoiceObjects On-Demand

Friday, January 28th, 2011

Like the power of VoiceObjects with its multi-channel service capabilities, personalization features, and integrated business reporting & analytics? Fear the overhead of setting up premise equipment to take advantage of this next-generation customer self-service offering? Look no more. Voxeo now offers its flagship service creation, management, and reporting environment as a production-ready On-Demand model as part of the world-wide Voxeo cloud.

In this session, Tobias Goebel will walk you through the steps of setting up a free Evolution account, building your first VoiceObjects call flow in the cloud, and deploying it as a voice and SMS application all with free phone numbers to try it all out. He will also show you some of the reporting that comes out-of-the-box and discuss extensions to get even more out of this powerful offering.

Join us for this session on February 02, 2011

8:00 AM US Pacific, 11:00 AM US Eastern, 5:00 PM Central European.

REGISTER NOW