title: Calling action function wit api in python
body: <p>I want to get the stock price of any item. I have a function <code>getPrice</code> which returns the price of the item. I am trying to use <code>wit ai</code>. 
  This is what I have tried.</p>
  
  <pre><code>from wit import Wit
  
  def getPrice(request):
      #statements
      return price
  
  
  def send(request, response):
      print request['text']
      print('Sending to user...', response['text'])
  
  actions = {
      'send': send,
      'getPrice':getPrice
  }
  
  client = Wit(access_token="&lt;token&gt;", actions=actions)
  
  resp = client.message('what is the stock price of xyz')
  print('Result: ' + str(resp))
  </code></pre>
  
  <p>and the result I am getting is:</p>
  
  <pre><code>Result: {
  u 'entities': {
      u 'search_query': [{
          u 'suggested': True,
          u 'confidence': 0.578445451443443,
          u 'type': u 'value',
          u 'value': u 'stock of xyz'
      }],
      u 'item': [{
          u 'confidence': 0.9613219630126943,
          u 'value': u 'xyz'
      }]
  },
  u 'msg_id': u '5ac1a450-7c5d-3190-8666-5d88a1884f94',
  u '_text': u 'what is the stock of xyz?'
  }
  </code></pre>
  
  <p>I want the Bot to display the price. How can I call this action function?</p>