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
platform
will include correspondingInterpreter
andConnection
APIs.In our case, this is just Slack at the moment.
- Interpreter
The “incoming” API for a platform. Receives messages from the
Platform
and passes them on to the core Megatron app.The
Interpreter
sets up any custom URLs a platform may need. As an example, the SlackInterpreter
provides 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 aCommand
is to make a request via aConnection
This 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
.