Visió general
Què és VISC, el model multi-tenant, l'estructura d'URLs i el full de ruta d'API i MCP.
Documentació perquè els agents d'IA entenguin VISC de pressa: com s'organitza la plataforma, quines dades hi viuen i com poden ajudar els seus usuaris a crear-hi contingut ric — avui, amb un sol text que l'usuari enganxa.
Els documents màquina són en anglès (el vocabulari de la plataforma es manté en català); el contingut que es crea a VISC és sempre en català. Aquesta pàgina en mostra exactament el mateix contingut.
Què és VISC, el model multi-tenant, l'estructura d'URLs i el full de ruta d'API i MCP.
Com escriure un sol text markdown que un usuari enganxa per crear una pàgina rica sencera.
Tres escenaris complets, inclòs un prompt llest per copiar per a qualsevol assistent.
VISC (Vida, Informació, Serveis, Comunitat) is a multi-tenant platform where local communities — associations, neighbourhoods, cooperatives, local businesses — and the people around them organise daily life: agenda, news, payments, inscriptions, maps, tips and local commerce. It is rooted in Catalunya: all 947 municipalities are first-class pages, and the platform's content language is Catalan.
This document set exists so AI agents can understand VISC quickly and help its users well. Start here, then read the other docs listed in llms.txt.
Three kinds of "place" organise everything on VISC:
| URL | What it is |
|---|---|
| /catalunya | Territorial explore page (map, agenda, news) |
| /{comarcaSlug} | One of the 43 comarca landing pages |
| /{localitySlug} | A municipality's public page |
| /{localitySlug}/{topicSlug} | A citizen-curated topic page (dossier) in that municipality |
| /{communitySlug} | A community's public showcase |
| /u/{username} | A person's public profile |
| /que | "Què és VISC" — the human About page |
| /com | How-to guides |
| /agents | The human-readable version of these docs |
Anything under /on/, /auth/, /org/ or /{slug}/admin is private and not crawlable.
Catalan terms you will meet across the platform, kept untranslated on purpose:
There is no public API yet. What works today:
Content pasted into VISC must be in Catalan and grounded in real, verifiable sources — see the grounding rules in the authoring contract.
Interest or feedback: use the Envia feedback button in the footer of any VISC page — it reaches the platform team directly.
How to write one markdown string that a VISC user pastes into a creation form to get a rich, fully-populated page. Today this works for locality topics (citizen dossier pages); future importers (agenda programs, directories, FAQs) will reuse the same contract.
The loop: you compose ONE markdown string following this contract → the user opens the creation form (for topics: their locality page → Comença un tema) → pastes it into the Descripció field → reviews the detected sections and items in a preview panel → submits. Parsing is deterministic — the same string always produces the same page, no AI on the platform side — so the quality of the result is entirely in the string you write.
| You write | It becomes |
|---|---|
| # Títol del tema (first line) | the page title (max 80 chars) and its URL slug |
| prose before the first ## | the page description (max 4,000 chars; overflow is cut at a paragraph break with a visible warning) |
| ## Secció | a section — its title opens every derived entry as a bold lead line |
| - element at column 0 (also * / 1. ) | one entry (card) per bullet, when the section has 2 or more |
| indented lines under a bullet | stay inside that entry (wrapped text, nested lists) |
| a section with prose and fewer than 2 bullets | one single entry with the whole section body |
| a short paragraph (≤200 chars) right after a ## | a lead-in, merged into the section's first entry |
| longer prose between bullets | its own entry |
Standard markdown works inside one entry: [text](https://…) links and bare URLs (each URL on its own line also gets a link preview card — one fetch per URL, so use real, reachable links), YouTube URLs become a playable embed,  images (https only — a paste cannot upload files), GFM tables, > quotes, ``` `mermaid `` diagrams, bold, italics, strikethrough, code . 900 818 482 dials on tap and address` opens the mail client — neither href may contain spaces.
Entries render as cards in a masonry grid; each card's width is derived from its heft. Use it deliberately:
A good-looking page mixes them: a few Large anchor entries (the key report, a table, a photo), Medium analysis entries, Small link/fact entries.
| Limit | Value |
|---|---|
| whole paste | 40,000 chars |
| title | 80 chars |
| description | 4,000 chars |
| one entry | 4,000 chars (auto-split past it, with a warning) |
| entries worth creating | ~10–40 (the page shows 60 max) |
| detection floor | at least 1 section AND 3 entries, or no import is offered |
# Abocador de Coll Cardús i les olors
El CTR tracta residus de tota la comarca i les queixes per pudor
s'acumulen des de 2019. Aquesta pàgina aplega documents oficials,
premsa i aportacions veïnals per seguir el cas.
## Documents oficials
- **Resolució de l'ARC (2023)** — obre expedient de control d'olors.
https://arc.gencat.cat/exemple-resolucio
- **Informe municipal d'olors** amb els mesuraments de 2022 i 2023.
- Taula de llindars aprovats (la taula fa l'entrada d'amplada completa):
| Paràmetre | Llindar |
| --- | --- |
| Unitats d'olor | 5 ouE/m³ |
## Cronologia
Els fets principals, dels més antics als més recents.
- **2019** — primeres queixes veïnals registrades a l'Ajuntament.
- **2021** — moció aprovada al ple per exigir mesures correctores.
- **2023** — l'ARC obre expedient i imposa mesures.
## Premsa
- Reportatge comarcal sobre l'onada de queixes.
https://exemple-mitja.cat/reportatge
- https://www.youtube.com/watch?v=exempleThree concrete ways an agent works with VISC today. The contract behind example 1 is in authoring.md — read it first.
A user asks their assistant: "Prepara un tema sobre la festa major per al poble de Taradell."
The agent's loop:
# Festa Major de Taradell 2026
Tot el programa de la festa major en una sola pàgina: actes,
horaris i enllaços oficials, per votar i comentar els actes.
## Divendres 14 d'agost
- **19.00 — Pregó d'inici** a la plaça de les Eres, a càrrec
de la colla gegantera.
- **22.30 — Concert jove** al parc de Can Costa.
https://exemple-ajuntament.cat/programa
## Dissabte 15 d'agost
- **11.00 — Cercavila de gegants** pel centre del poble.
- **18.00 — Ballada de sardanes** amb la cobla local.
- **23.00 — Ball de nit** al pavelló.
## Enllaços oficials
- Programa complet en PDF a la web municipal.
https://exemple-ajuntament.cat/festa-major
- https://www.youtube.com/watch?v=exemple-aftermovieWhat made this work: real URLs, Catalan, one provenance, self-contained entries (each act repeats enough context to stand alone once votes re-order them).
A user asks: "Què passa aquest cap de setmana a Ripoll?" — no VISC account needed. The public, server-rendered pages an agent can read:
What an agent cannot do: read community-internal content (member events, payments, threads), act on behalf of a user, or call any API — none exists yet. When the platform's read API and MCP server land (see the roadmap in overview.md), this section will be replaced by tool documentation.
Users who want their own assistant to prepare VISC content can hand it this prompt:
Read https://visc.cat/agents/authoring.md and follow its contract
exactly. Then write, in Catalan, a complete topic paste about
[SUBJECT] for the municipality of [TOWN]. Ground every fact in
real, reachable URLs (official sources and local press only) and
aim for 3-5 sections with 10-25 self-contained entries, mixing
entry sizes as the contract describes. Return only the markdown
string, ready to paste.Replace [SUBJECT] and [TOWN], review what comes back — especially that every URL is real — and paste it into the topic form.
Una API pública de lectura i un servidor MCP són al full de ruta. Si construeixes agents i vols que VISC hi jugui bé, explica'ns-ho amb el botó Envia feedback del peu de pàgina.