Hi everyone, I have a suggestion related to Koog. I think it’s missing triggers. For example, in many use cases, people might want a Telegram message to act as a trigger. This could be implemented easily separately from the Koog framework itself ofcourse, but I just wanted to share the idea.
a
Andrey Bragin
09/10/2025, 3:01 PM
Can you elaborate, please, why it should be a separate feature, and not just something like this:
Copy code
fun onNewMessage(message: Message) {
agent.run(message)
}
m
Mirzamehdi
09/10/2025, 3:05 PM
it was more about trigerring start of AI agent. That's why I wasn't sure if it would be part of framework or not. (probably not)
Something like, already existing implementation of TelegramTrigger, SlackTrigger, and you send message and it starts AI agent.
a
Andrey Bragin
09/10/2025, 3:08 PM
This sounds out-of-scope for Koog as a framework. It’s not about the framework itself, it’s about how you use it (chatbot, HTTP endpoint, etc.). Since invoking pre-configured agent is already a single method call, you can put it in your custom logic, such as various triggers and handlers