How to make Riona-AI-Agent work with 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.