Riona-AI-Agent を Discourse で動かす方法

I want to adapt Riona-AI-Agent for use with Discourse. How can I modify the project to integrate with Discourse’s API? Any guidance or suggestions would be appreciated.