wit-ruby
is a Ruby client to easily use the Wit.ai HTTP API.
gem install wit
require 'wit'
p Wit.message('MY_ACCESS_TOKEN', 'turn on the lights in the kitchen')
See below for more examples.
git clone https://github.com/wit-ai/wit-ruby
gem build wit.gemspec
gem install wit-*.gem
require 'wit'
access_token = 'MY_ACCESS_TOKEN'
# GET /message to extract intent and entities from user request
p Wit.message(access_token, 'turn on the lights in the kitchen')
Thanks to Justin Workman for releasing a first version in October 2013. We really appreciate!