Skip to content

Your own AI application — what it learns about your model

When you connect your own AI application (Claude, ChatGPT or another) to roleALPHA over OAuth, it does not only read data and make proposals — it also receives the knowledge it needs to model sensibly. This page explains exactly what that is and how to look it up.

A relationship in roleALPHA is two things at once: a statement about reality and what the interface draws. If an application picks the wrong relationship type, the data is correct — and the view still stays empty. No error message appears when this happens.

Without this knowledge a connected application would only get the list of available tools. It would know neither which entity types your tenant keeps, nor which relationship types exist, nor which way round they are meant.

What the application receives when it connects

Section titled “What the application receives when it connects”

Four things, right as the connection is established:

  1. The modelling rules. Specific relationship types before generic ones; which way round hierarchies run; what effect an edge has on the picture. The same rules rAlph works by.
  2. Your entity types. Which ones exist, which module each belongs to, and which fields they have — including required fields and allowed choice values. A field that is not listed does not exist.
  3. Your relationship types. With their allowed source and target types, their reading direction, a marker for generic placeholders, their attributes (e.g. fokus* (Fokus), the star means required) — and the rendering effect: whether the edge orders the layout, opens a box, fills a card row or carries the path.
  4. The domain knowledge of the modules. Each module describes for itself what its entries mean — above all its subtypes. A circle is a role with the subtype “circle”, a key result an OKR entry with the subtype “key result”, a gate a process entry with the subtype “gate”. It also says how to answer typical questions such as “Who leads this circle?”: from the circle to its roles, and from the role to the person or agent who fills it. Every search hit names its subtype, so the application recognises an entry by it and not by its name. rAlph gets the same knowledge. It is the same for every organisation and is not organisation context you have to maintain.

The same two overviews are permanently available as resources, at rolealpha://modell/entitaetstypen and rolealpha://modell/beziehungstypen. The difference: what arrives at connection time arrives once, whereas a resource can be fetched again hours later without rebuilding the connection.

There are also tools the application can call on its own:

  • Explain relationship types — what a type means, which way round it is meant, which entity types it connects and which attributes an edge of this type carries (with allowed values and whether they are required).
  • Explain rendering effects — what an edge does for the picture and what would stay empty without it.
  • Check rendering — after modelling: which entities stay empty, and which relationship they are missing.
  • A circle at a glance (get_circle) — a circle with all its roles and sub-circles, their purpose and who fills them (people and AI agents, by name), plus the vacant roles. This lets it answer “Who leads the marketing circle?” in one step.
  • An objective at a glance (get_objective) — an objective with its key results and their progress, and the cascade above and below it.

The module itself computes both. They show only what the person the application works for may see.

When the application creates a relationship it is also told directly what is still missing in the picture afterwards. That happens even if it never read any of the above.

A connected application has no roleALPHA interface and therefore no language setting. Text that roleALPHA phrases for people (such as the responsibility path of find_responsible or the notice that a service is not enabled) is therefore written in the language the application states when connecting (Accept-Language) — English if it states none. Tools with a locale parameter can be switched to de or en per request.

find_responsible returns the way to the person as a sentence (path, with no arrows and no IDs in the text) and additionally in structured form (steps: starting point, relationship in words, end point — each with ID and name). If a name cannot be read, it is null there, and the sentence describes the element instead.

The same applies to the candidate search of demand planning (suggest_candidates): next to the ID, every required competence carries its name (competenceName) and the levels of your tenant’s scale in words (requiredLevelLabel, actualLevelLabel — language via locale). So the application has no reason to quote an ID to a person. A competence you may not see stays unnamed (null) — the ID is never used as a stand-in.

  • Nothing you have not released. The same module release applies as for rAlph (Settings → AI → Data & knowledge). A module that is not released appears neither in the catalogue nor in a resource.
  • No data from another tenant. The tenant follows from your grant, not from what the application claims.
  • No write permissions you do not have. And in any case writing only creates a draft — a human has to approve it.

If the application cannot see an entity type or relationship type, check the module release under Settings → AI → Data & knowledge first. After that, reconnecting helps: the catalogue is built when the connection is established, so a newly created entity type only appears in the next session — or immediately if the application re-reads the resource.

Related pages: Connect your own AI application · Relationship types · Enabling external AI applications