Siri meets Business Intelligence

Posted by Xavier Hacking

As you may know, Apple’s latest iPhone, the 4S, has a virtual assistent in it called Siri. You can ask Siri questions or tell it do something for you, just by using your voice. For example “What will the weather be tomorrow?” or “What is my next meeting about?”. This is very cool stuff!

So, as we have seen this big move towards mobile business intelligence over the last two years with tools like RoamBI, MicroStrategy (and now even SAP has awoken), how cool would it be to go one step further and let Business Intelligence meet Siri?! Think of commands like “Who is my top sales guy in Germany for 2011?”, “Call this person now!”, or something like “Siri, give me the total sales for customer BMW”.

Dutch SAP BI colleague Ronald Konijnenburg checked the possibilities to make this work and came across an interesting tool called Siri Proxy:

Siri Proxy is a proxy server for Apple’s Siri “assistant”. The idea is to allow for the creation of custom handlers for different actions. This can allow developers to easily add functionality to Siri.

After installing Siri Proxy on a Ubuntu (Linux) machine and checking some existing plugins from the Siri Proxy community he took up the challenge to write his own plugin. This plugin should be able to execute SQL statements and query any database (in-memory or not). With some technical help on the Ruby programming (Ruby is the language Siri Proxy is written in) a working plugin was created in a very short time period.

As a proof of concept a MySQL database was installed on the Ubuntu environment, with a simple table containing the key figures Sales and the objects Sales rep, Customer and Date, loaded with some random data. Now, by asking Siri a question like “Give me total sales for customer Google”, the spoken words are translated into a SQL statement that looks something like SELECT * FROM Sales.Sales WHERE Customer = ‘Google’. After executing this SQL statement on the table the sales amount will be returned. Siri now can nicely tell you the answer.

Check the video below to see a demonstration of Sire meeting Business Intelligence. The second video (click the more… button below) gives a bit more background info.

Again, great job Ronald! So what’s next? Siri talking to SAP HANA?

HackingSAP.com - Jan 10, 2012 | Fun, New technology
Tagged | , ,

8 comments

  1. Jamie Oswald
    January 10, 2012

    That is sexy. Would love to see it taken a step further where it sends an open doc(like) call to a Roambi or Explorer Information Space.

    Reply
  2. Ronald
    January 10, 2012

    Tx. for the great post Xavier!

    HANA indeed might be an interesting challenge.

    Will keep you posted 😉

    Ronald.

    Reply
  3. Pieter Hendrikx
    January 11, 2012

    Very impressing piece of hacking bij Ronald!

    I’d suggest him to enter for VNSG Demo Jam or something. If you can combine this with visualizations like Jamie says, you have a real strong solution.

    Looking forward to other people enhancing this. Will code be made available public?

    Reply
    • Ronald Konijnenburg
      January 11, 2012

      No hacking involved Pieter. Simply a plugin. Not even a jailbreak required.

      Reply
  4. Adrian
    January 12, 2012

    Great example of what WILL happen

    Reply
  5. Jaco van de Werfhorst
    January 13, 2012

    Wow! So no timelasting tool training anymore, only a list with business terms they already know and they can use. Is siri that flexible?

    Reply
  6. David Hudgins
    March 8, 2012

    Nice POC!

    Reply
  7. ATANU
    March 22, 2016

    These video links are not working. Can you please update those.

    http://youtu.be/Gf96R4Plmow&w=500
    http://youtu.be/nOr9s5KYP4A&w=500

    Reply

Leave a Reply