Connectors
Where: Menu → Manage → Knowledge sources → tab “Connectors”
A connector is the connection to one kind of system where your documents are: a file server, SharePoint, Confluence, Google Drive or an S3 store. It signs in to that system and reads what its sources name (a folder, a library, a space, a bucket). One connector can serve many sources: one SharePoint connector, for example, for the libraries of ten sites.
Which connector for which system
Section titled “Which connector for which system”| Your documents are in | Kind | Where it runs | Guide |
|---|---|---|---|
| SharePoint Online, OneDrive for Business | SharePoint and OneDrive | Run by the portal, or at your organisation | SharePoint and OneDrive |
| A Windows file server (SMB share), NFS, a local folder | File server | Always at your organisation | File server |
| Confluence Cloud | Confluence | Run by the portal, or at your organisation | Confluence |
| Confluence Data Center or Server | Confluence | Usually at your organisation | Confluence |
| Google Drive: My Drive, shared drives | Google Drive | Run by the portal, or at your organisation | Google Drive |
| Amazon S3, MinIO, Hetzner, IONOS, Wasabi and other S3 stores | S3 storage | Run by the portal, or at your organisation | S3 storage |
| Another system | Another connector | At your organisation | See “Another connector” below |
Files you have on your computer don’t need a connector: upload them under the tab Uploads (see Uploads).
Add a connector
Section titled “Add a connector”- Click Add connector. A window opens.
- Kind: choose the system. Under the list, Step-by-step guide in the help opens the guide for that kind: do what it says in the other system first (an app registration, a service account, a key), so you have the values the next fields ask for.
- Where it runs:
- Run by the portal: nothing to install. The credentials you enter are stored encrypted with your organisation’s key. Only for cloud systems the portal can reach over the internet. Greyed out with “Not available for this connector or on this portal” means the kind can’t be run by the portal (file servers) or the platform hasn’t switched running connectors on.
- At your organisation: you run the connector in your own network. Its credentials stay there; it only connects out to the portal, so no port has to be opened towards your network. Needed for file servers and for systems the internet can’t reach.
- Name: how the connector is listed, e.g.
SharePoint HRorFile server Berlin. Empty, the kind’s name is used. - The kind’s own settings follow (addresses, ids, keys). Every field has a hint under it. A field marked “Set where the connector runs (CONNECTOR_…)” isn’t filled in here: when the connector runs at your organisation, that value (usually a secret) is given to the connector there, under the name shown.
- Click Add.
- Run by the portal: the connector appears with Online. Click Test.
- At your organisation: the window Connector token opens (see the next part).
The connector token
Section titled “The connector token”A connector at your organisation signs in to the portal with a token. The window shows it once:
- Copy copies the token. Keep it where your administrators keep secrets until the connector is started.
- Below it, the window shows a ready command to start the connector as a container, with the portal’s address and the token filled in, and the names of the settings it still needs (
CONNECTOR_…=…). Replace each…with its value. - Done closes the window. The token isn’t shown again; if it gets lost, click New token on the connector.
Run a connector at your organisation
Section titled “Run a connector at your organisation”The connector is a small program. It needs:
- a machine in your network that can reach the source (the file server, the internal Confluence) and the portal’s address over HTTPS (port 443, outgoing only);
- either a container runtime (Docker or Podman), or Node.js 26 or later;
- the program itself: a container image or its single file
main.js. The platform’s administrators provide it (it is built from the Academy’s source code, folderconnectors/<kind>).
Every connector reads these settings:
| Setting | What it is |
|---|---|
PORTAL_URL |
The portal’s API address, as shown in the command in the token window |
CONNECTOR_TOKEN |
The token from the token window |
CONNECTOR_<SETTING> |
Its settings that stay with it, e.g. CONNECTOR_ROOT (file server), CONNECTOR_CLIENT_SECRET (SharePoint), CONNECTOR_API_TOKEN (Confluence), CONNECTOR_SERVICE_ACCOUNT_KEY (Google Drive), CONNECTOR_ACCESS_KEY_ID and CONNECTOR_SECRET_ACCESS_KEY (S3) |
CONNECTOR_CONFIG |
Optional: instead of single variables, the settings can sit in a file connector.json with {"settings": {…}}. It is looked for in the folder the connector is started from; CONNECTOR_CONFIG names another path |
DOCLING_URL, DOCLING_API_KEY |
Optional: a document reader (docling-serve) next to the connector. Needed for sources with “Text only”: files are then read in your network and only their text leaves it |
As a container
Section titled “As a container”docker run -d --restart unless-stopped \ -e PORTAL_URL=https://api.academy.example.com \ -e CONNECTOR_TOKEN=ck_… \ -e CONNECTOR_CLIENT_SECRET=… \ academy-connector-sharepointCopy the command from the token window rather than typing it: it has your portal’s address and the image’s name. --restart unless-stopped starts it again after a reboot. A file server’s share is mounted into the container read-only (see File server).
With Node.js (Windows or Linux)
Section titled “With Node.js (Windows or Linux)”- Copy
main.jsto the machine, e.g. toC:\Academy\connector\. - Set the settings as environment variables, or write them into a
connector.jsonin the same folder. - Start it with
node main.js. - On Windows, let it start with the machine: in the Task Scheduler, create a task “At startup” that runs
node main.jswith Start in set toC:\Academy\connector, under an account that may read the source, with “Run whether user is logged on or not”. On Linux, a systemd service does the same.
Once started, the connector signs in, describes itself and shows Online in the portal, with its version and the machine’s name.
The connector in the list
Section titled “The connector in the list”Each connector shows:
- Run by the portal or At your organisation;
- Online or Offline: whether it is connected right now. A connector at your organisation that is offline syncs nothing until it is started again;
- Shut out: it was shut out and can’t sign in (see below);
- “2 settings missing” with “Missing: …”: required settings that aren’t set yet. A local one shows “Not set at the connector” until the connector reports it has it;
- Last seen, Version, on
, and how many sources use it.
Buttons:
- Settings: change the connector’s settings in a window and Save. Secrets are never shown again: “Set. Leave empty to keep it.” keeps the saved one. The window also links to the kind’s guide.
- Test: signs in to the system with the current settings. “Works: …” names the account or tenant and what it may read; otherwise the system’s own message is shown.
- New token (at your organisation): makes a new token. The old one stops at once; restart the connector with the new one. Use it when the token was lost or may have been seen by someone.
- Shut out (at your organisation): disconnects the connector and keeps it from signing in until it gets a new token. Use it when the machine was lost or taken over.
- Delete: removes the connector with all its sources and everything derived from them. Nothing in the source system is touched.
Another connector
Section titled “Another connector”Another connector is for a connector that isn’t in the list, for example one your own team built for an in-house system. Enter Its id (as in its manifest), e.g. acme.wiki. It always runs at your organisation and describes itself (its settings, what it can do) when it first connects. How to build one: the developer handbook, “Connector SDK” and “Connector protocol”.
When something doesn’t work
Section titled “When something doesn’t work”| What you see | Cause | What to do |
|---|---|---|
| Not connected yet | A connector at your organisation was never started, or can’t reach the portal | Start it; check that the machine reaches the PORTAL_URL over HTTPS (a proxy or firewall may block it) |
| Offline after it was online | The program stopped, the machine restarted without it, or the network is down | Start it again; use --restart unless-stopped or a startup task |
| Shut out | Someone clicked Shut out | New token, then restart the connector with it |
| It doesn’t sign in after New token | It still runs with the old token | Restart it with the new CONNECTOR_TOKEN |
| “Not set at the connector” | A local setting isn’t given to the program | Set the CONNECTOR_… variable named in the field, then restart it |
| Test fails with “The source refused the connector’s access … Details: …” | The system refused the sign-in or the permission | Look up the part after Details: under “When something doesn’t work” in the kind’s guide |
| “The connector couldn’t reach the source. Details: …” | The address, site, folder or bucket isn’t found, or the system answered with an error | The same: look up the part after Details: |