Lyfre — an AI assistant for Liferay DXP that runs inside Liferay as the signed-in user

Hi everyone,

I built Lyfre, an AI assistant for Liferay DXP. You ask questions in plain language about sites, pages, content, users, commerce, and custom objects, and it answers from live portal data through Liferay’s Headless APIs.

What it does

◆ Chat widget on any page (React custom element client extension), in 12 languages
◆ Reads sites, pages, web content, documents, blogs, knowledge base, taxonomy, objects, fragments, commerce, forms, workflow tasks, and notifications
◆ Administrators can create, update, and delete through about 50 guided forms. The model never writes directly; every change is a form the user confirms
◆ Data Insights: live charts, KPIs, and tables from portal data
◆ Optional image questions: attach a screenshot and ask about it
◆ Read-only system check showing which Headless endpoints the current user can reach

How it is built

◆ An OSGi JAX-RS module at /o/lyfre-chatbot. No Spring Boot and no separate service
◆ Every Liferay call runs as the signed-in user (session plus CSRF token), so Liferay permissions decide what the assistant can see and do. Guests are rejected
◆ Any OpenAI-compatible model through LangChain4j: Groq, OpenAI, Gemini, Mistral, OpenRouter, NVIDIA, xAI, or local Ollama. Keys stay in System Settings, and each virtual instance can use its own provider
◆ A bootstrap module creates the Lyfre site, master page, pages, and optional sample data on startup
◆ Streaming replies, per-user rate limits, and JUnit and vitest tests

Demo video and architecture notes: Lyfre 2.0 — AI Assistant for Liferay DXP · Playbook · code.papu

I would like feedback, especially on:

  1. Which Liferay areas you would want an assistant to cover next
  2. Whether running everything as the signed-in user fits how you handle permissions

#Liferay #LiferayDXP ai #HeadlessAPI #ClientExtensions #OSGi #Java #React