So unless you are building your bot for educational purposes, I would just install that if I were you.
I also think that doing this through API, because you probably want to get chat history to improve your AI responses, might be possible but you might bump into some challenges (correct me if I’m wrong).
But it would still be nice to have a webhook for chat messages, especially since allowed_user_api_push_urls is now a hidden setting. If you can’t use a plugin then right now all you can do is poll for notifications right now, which is pretty suboptimal.
Is there any way a plugin can add a webhook trigger option?
Would a PR be accepted for this?