Lita Motion AI Handler

Gem Version Dependency Status Codacy Badge Downloads Docs License

Motion AI is a bot service that provides visiual design and hosting capabilities for conversational bots. Using this handler a Lita bot can offload conversational handling to Motion AI. The handler accomplishes this by sending all received messages to Motion AI by API and responding with the message returned by Motion AI.



Lita.configure do |config|

  # Motion AI API Info
  config.handlers.motionai.api_key = 'my_api_key'
  config.handlers.motionai.bot_id = 12345          # your Motion AI bot id


Using LitaDotenv

LitaDotenv is a way to load in Lita config parameters from the environment, including the .env file. Some use cases include:

  • using the .env file
  • using Heroku environment variables

Motion AI