The N4V Assistant adds two features to the N4V Settings panel popup in Webi (N4V 2026.4+):
Both features are configured from a web administration console, with no file to edit and no Tomcat restart. They are independent: you can enable shared templates without the AI.
N4VCustomElements webapp./v1/chat/completions API), internal or cloud:
Address: https://<your BI server>/N4VCustomElements/n4v-assistant/admin/
n4v-assistant-setup-code.txt, in N4VCustomElements/WEB-INF/;[n4v-assistant] Code d'initialisation de la page d'administration : ….After 5 failed logins in 15 minutes, access is temporarily blocked. The password is stored hashed, never in clear text.
The console is available in English or French (EN / FR buttons at the top of the page).
| Tab | Use |
|---|---|
| Settings | all settings, by section (AI engine, security, log, shared templates, cluster, cache, advanced) |
| Business rules | your company's own rules (corporate style guide…) |
| Shared templates | manage the “Company” templates |
| Usage | assistant usage statistics |
| Diagnostics | AI engine test, answer cache, cluster server status |
Each setting has built-in help. Click Save at the bottom of the section you changed: the change applies immediately, with no restart.
Settings tab → AI engine section:
/chat/completions, then the Model.Examples:
| Engine | Engine URL | Model (example) |
|---|---|---|
| Ollama (internal server) | http://ai-srv:11434/v1 | qwen2.5:7b-instruct |
| vLLM (internal server) | http://ai-srv:8000/v1 | name of the served model |
| Mistral (EU cloud) | https://api.mistral.ai/v1 | mistral-small-latest |
| OpenAI | https://api.openai.com/v1 | gpt-4.1-mini |
| Claude (Anthropic) | https://api.anthropic.com/v1 | claude-haiku-5-5 |
| Section | Setting | Effect |
|---|---|---|
| AI engine | Screenshots (vision engine) | Users can attach, paste (Ctrl+V) or drop an image whose style the assistant reproduces. Once applied, the “Compare with the original and refine” button compares the rendering with the image and fine-tunes the settings. Have it approved by your DPO (see §2). |
| AI engine | Max answer length | Increase it (8000) if large requests (full theme) are truncated |
| Security and limits | Call control | origin (default): calls accepted from the popup on the same server. bo: also requires a valid BO session. |
| Security and limits | Requests per user per hour | Usage limit (default 60) |
| Usage log | Keep the request text | Off by default. Useful to analyse usage; have it approved by your DPO. |
| Usage log | Retention (months) | Automatic purge of old logs (default 12) |
| Answer cache | Cache enabled | An identical request on a widget in the same state reuses the answer already produced: instant and free. |
Business rules tab: instructions added to every request, or to one widget type. For example, enforce the colours and fonts of your style guide.
The rules supplied by Need4Viz are shown read-only. Your rules are never overwritten by an N4V update.
Usage tab, month by month:
CSV export button for Excel.
Untick Assistant enabled: the Assistant tab disappears from the popup. Shared templates remain available if they are enabled.
Settings tab → Shared templates section:
Everyone (default): every popup user can publish.N4V Designers): group membership, parent groups included, is checked in the CMS. In that case, fill in the BO RESTful URL in the Security and limits section (default http://localhost:8080/biprws).This feature does not require an AI engine.
Shared templates tab:
A backup copy (n4v-templates-shared.json.bak) is made on every change.
When BI Launchpad runs on several Tomcat servers behind a load balancer, the servers must share the same configuration and the same templates. No change to the Tomcat configuration is needed.
Each server keeps a small local file that points to a shared network folder. Everything else is stored in that folder and common to all servers:
\\file-srv\need4viz (Windows) or /mnt/need4viz (Linux).N4VCustomElements/WEB-INF/n4v-assistant.properties and add at the top:cluster.sharedDir=\\file-srv\need4viz cluster.nodeId=bo-web-01
cluster.nodeId is optional: it defaults to the machine name.N4VCustomElements/WEB-INF/n4v-assistant.properties contains only these two lines, with that server's own name:cluster.sharedDir=\\file-srv\need4viz cluster.nodeId=bo-web-02
If each server must keep its own configuration, sharing the templates file is enough. In the console of each server, Shared templates section, set Templates file to the path on the share, written with /:
//file-srv/need4viz/n4v-templates-shared.json
Important: without a shared folder or file, each server has its own configuration and its own templates. A template published on one server does not appear on the others.
| Symptom | What to do |
|---|---|
| No Assistant tab in the popup | Console → Settings: Assistant enabled ticked, URL and model filled in. Then Diagnostics → Run the test. |
| “Engine unreachable” or timeout | Diagnostics → test. Check the firewall or proxy between the Tomcat server and the engine; increase Timeout (seconds) (Advanced section). |
| Truncated or invalid answers | Increase Max answer length; if the engine rejects JSON mode, set JSON mode to none (Advanced section). |
| No image button in the Assistant | Tick Screenshots (vision engine) and use a model that reads images. |
| Setup code not found | File n4v-assistant-setup-code.txt in N4VCustomElements/WEB-INF/ (in a cluster: in the shared folder), or the Tomcat log. |
| The console keeps returning to the login page | Delete the site cookies or open a private browsing window. |
| A user cannot publish a template | Check BO group allowed to publish and BO RESTful URL; the user must be a member of the group or of a child group. |
| Cluster: a server does not appear | Tomcat account rights on the shared folder; the server's cluster.sharedDir; same N4V version on every server. |
| Cluster: template not visible on another server | Wait 5 seconds; check that all servers point to the same shared folder. |
| The popup did not change after an N4V update | Clear the browser cache. |
For any other question: Need4Viz support.