Using my Telegram plugin as a hands-on example
Here, we will go through the plugin example and see the steps we need to follow:
- To demonstrate how plugins are made, I decided to include my Auto-GPT plugin for Telegram integration.
- It involves simply forwarding messages to the user and is also capable of asking the user a question and awaiting a response. Basically, your Telegram chat becomes a remote extension to the console/terminal application and you can leave Auto-GPT running on your machine and operate it remotely with your phone.
- Fill the interface class in the
__init__.py
file. This file acts as the core of theAutoGPTTelegram
plugin. It houses theAutoGPTTelegram
class, which inherits fromAutoGPTPluginTemplate
. To get the template, go to the Significant Gravitas GitHub page and either clone the Auto-GPT plugin template (which by this time is outdated) or copy-paste any of the other plugin folders and make your own by just modifying__init__.py
and returnFalse...