How Can I Build an AI Chatbot in a Kodular App?

I’m working on an Android app with Kodular and exploring how to add AI chatbot functionality.

I’d like the chatbot to understand natural-language questions and provide relevant responses instead of relying only on predefined messages. I’m interested in understanding the best way to implement this using Kodular.

Some areas I’m trying to figure out are:

  • Connecting an AI or LLM API with Kodular
  • Sending and receiving chatbot messages through APIs
  • Maintaining conversation context
  • Connecting the chatbot with Firebase or another database
  • Handling API keys securely
  • Adding a proper chat interface
  • Managing errors and unexpected AI responses

For developers who have already integrated AI features into Kodular, which approach or extension would you recommend?

Would using an external AI API with a custom backend be a better option for a production-ready AI chatbot development project, or can most of the functionality be handled directly within Kodular?

I’d appreciate any recommendations, examples, or lessons learned from your experience.