Custom chat bot on Grafana UI

Grafana version: 11.5.0

We are trying to add a custom chatbot to the Grafana UI to assist users with LogQL queries. I created an npm package and included it in the package.json of the official Grafana UI source code. The chatbot works as an overlay and is available on all pages.

We tried using a panel and app plugin, but:

  • As a panel plugin, it’s restricted to specific dashboards.
  • As an app plugin, it appears in the Nav Menu and disappears when navigating to other pages.

To improve the UX, I modified the source code to include the chatbot in AppWrapper.tsx. This solution works, but I want to ensure it’s the right approach. Please suggest if there any better alternatives.

3 Likes

This is something i am interested in doing as well. Are you able to share the plugin or source code?

Hi @sanjayghanagiri am also interested in it if it’s not possible to share the plugin or source code can you guide us with some pseudo codes or any articles

The way we did it was using ollama’s api with infinity plugin.