0.0
No commit activity in last 3 years
No release in over 3 years
A Lita handler for Motion AI
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

 Project Readme

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.

Configuration

Direct

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

end

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
LITA_HANDLERS_MOTIONAI_apiKey=my_api_key
LITA_HANDLERS_MOTIONAI_botId__TYPEINT=12345

Links

Motion AI