Concepts and Objects¶
Diagram of Megatron Processing¶
Description¶
At its most simple, an API request arrives from a Platform at an Interpreter and is converted into an internal
Command. The Command is processed by Megatron and then returned via an outgoing Connection to the same, or
a different platform.
Concept Definitions¶
- Platform
A messaging app. A
platformwill include correspondingInterpreterandConnectionAPIs.In our case, this is just Slack at the moment.
- Interpreter
The “incoming” API for a platform. Receives messages from the
Platformand passes them on to the core Megatron app.The
Interpretersets up any custom URLs a platform may need. As an example, the SlackInterpreterprovides the URL you set up for slash commands for your Megatron Slack app.
- Command
A request made to Megatron once it has been converted by an
Interpreter. A command isPlatform-agnostic. Often, but not always, the end result of aCommandis to make a request via aConnectionThis is the core logical unit that Megatron uses internally.
- Connection
The outgoing API to a
Platform. Controls messages sent to the platform and changes them into an actionable shape. The core interface is called aBotConnection.