Hi everyone,
I would like to check the feasibility and scope of implementing an AI chatbot within Frappe/ERPNext.
Requirement
I am looking for a chatbot that:
-
Appears as a floating chat widget/window across the application.
-
Can interact with users in real time.
-
Supports integration with external AI providers through APIs (OpenAI, Gemini, Claude, Azure OpenAI, etc.).
-
Also supports locally hosted/self-hosted LLMs (Ollama, Llama, Mistral, etc.) for organizations with data privacy requirements.
-
Can be trained or configured using internal documents, knowledge bases, or ERP/Frappe data (RAG/knowledge retrieval approach).
-
Exposes APIs so that other applications can send prompts and receive responses programmatically.
-
Supports role-based access and conversation history if possible.
Queries
-
Has anyone implemented something similar in Frappe/ERPNext?
-
Are there existing Frappe apps/plugins that provide this functionality?
-
What would be the recommended architecture for supporting both cloud AI APIs and local models?
-
Are there any limitations or performance considerations when implementing a floating chatbot across the framework?
-
Would you recommend building this as a standalone Frappe app or integrating with an existing chatbot solution?
I would appreciate any guidance, existing implementations, repositories, or best practices from the community.
Thanks in advance!