Skip to content
Open the app

Confluence manual setup ​

Kadmo's own connection with an Atlassian API token, for a site where the app is not installed. The app never asks for a token. Where nobody can install Kadmo for Confluence on your Confluence Cloud site, a Kadmo Admin sets the site up by hand on the same card: the site's address, the e-mail of the Atlassian account Kadmo acts as, and an API token with Confluence's scopes, then the spaces Kadmo may use. Your agents then search, read, write and comment on the pages of those spaces as that account. This page covers the token, the card, the spaces, what agents get, what starts work, which way serves, replacing and removing the setup, the limits and what Kadmo keeps. The app's own way is on Confluence.

Before you start ​

  • A Confluence Cloud site at an address that ends in .atlassian.net.
  • An Atlassian account for Kadmo. Everything Kadmo and your agents do through the setup carries this account's name and reaches what it can reach in Confluence. An account made for Kadmo, with access to the chosen spaces only, keeps people's own accounts and their other spaces out of it. It matters more for rules: every mention of this account in the chosen spaces starts a rule that listens for mentions.
  • A Kadmo Admin to save the setup and choose the spaces. Members see the card without its form.

Create the API token ​

  1. Go to id.atlassian.com/manage-profile/security/api-tokens, signed in as the Atlassian account Kadmo should act as, and choose Create API token with scopes. Give it a name and an expiry date, then pick Confluence.
  2. Tick the seven scopes below, create the token and copy it: Atlassian shows it once.
ScopeWhy
read:space:confluenceSave and Test read the site's spaces once; Choose spaces lists them
read:page:confluenceRead a page and its text, for agents and for a rule's job
write:page:confluenceCreate and update pages in the chosen spaces, for agents
read:comment:confluenceRead a page's comments, for agents; the check reads each comment that mentions the setup's account
write:comment:confluenceComment on a page, for agents; Kadmo comments a rule's result on the page
read:label:confluenceRead a page's labels, for agents; the check lists the pages that carry a rule's label
search:confluenceSave and Test search once; agents search the pages of the chosen spaces; the check searches for comments that mention the setup's account

A token without scopes is not taken: Kadmo calls Confluence through Atlassian's API gateway, which a token without scopes does not open. Kadmo does not read the account's profile, so the setup is named by the e-mail you enter.

Set it up on the card ​

Open Integrations → Knowledge Sources → Confluence and open Manual setup under the app's section. Where the app is not offered, the section is already open.

  1. Enter the site's address, as your browser shows it (your-site.atlassian.net), the e-mail of the Atlassian account that made the token, and paste the API token.
  2. Press Save. Kadmo reads the site's id from its address, then reads the site's spaces once and searches once with the e-mail and token. Only when Confluence accepts both does Kadmo store the e-mail and token, sealed, and stamp the check. Test makes the same two reads with the stored token at any time and stamps the check again.
  3. The section then shows the site, the account the setup acts as, when Confluence last accepted the token, and the spaces chosen.

Saving again for the same site keeps the spaces chosen. Saving for another site clears them.

The section also says what only the app does: only the app adds Send to Kadmo to a page's menu and the item Kadmo to a page's byline. A rule on a label or a mention starts on the manual setup too, a few minutes after the label or the mention (What starts work).

The spaces ​

Kadmo uses a space only once an admin chose it: until then agents get no access, and the card and the agents say so.

  1. Press Choose spaces in the manual setup. Kadmo reads the site's team spaces with the stored token, 25 at a time; More reads the next ones. Personal spaces are not offered.
  2. Tick the spaces Kadmo may use, up to 100, and press Save spaces. Kadmo reads the ticked spaces again with the token and keeps only those Confluence returns.

Unticking a space needs no call to Confluence, so an admin can narrow the spaces even while Confluence does not accept the token. The manual setup has no workspace to pick: nothing is sent from a page on this way.

What agents get ​

Agents fetch the setup's e-mail and token from Kadmo at the moment they use them, and keep none on disk. There is nothing to add to their environment.

  • Which pages. The pages of the chosen spaces, on the setup's site. Agents search, read, create and update pages there, and comment on them. A page, a space or a new page's parent outside the chosen spaces is refused before anything is sent.
  • Whose name. Everything an agent writes carries the name of the Atlassian account the setup acts as. The agents' Confluence helper names that account, with (manual setup), and never prints the setup's token.
  • When there is no access. While no space is chosen, or the stored e-mail and token cannot be read, the agent is given the reason in words and reports it.
  • When it changes. Saving, choosing spaces and disconnecting reach agents at their next call.

An agent whose machine predates the manual setup cannot use it yet; its Self Update brings it up to date.

What starts work ​

Confluence lets only an app send its events to Kadmo, so on the manual setup Kadmo looks for them itself.

  • A rule on a label or a mention. Where the manual setup serves the site, Kadmo checks the chosen spaces about every five minutes with the API token and starts the same Confluence rules as the app's events do: for a page that got a rule's label, and for a comment that mentions the Atlassian account the setup acts as. There is nothing to switch on.
  • A few minutes later. A check runs about every five minutes, and Confluence's search, which finds the mentions, can lag a few minutes behind. A busy check takes the rest at the next one.
  • No backfill. The check starts counting when the rule is saved, or when it begins to listen again (after the app leaves, a space is ticked, Webhooks is switched back on, or the setup is saved with another account's e-mail). A label already on a page at that moment starts nothing.
  • To start a page again, take the label off, let one check pass, then add it again; or mention the account in a comment. A label taken off and put back between two checks is not seen.
  • A mention is the setup's account picked from Confluence's mention list, and every such mention in the chosen spaces counts, whoever wrote it: use an account made for Kadmo. @Kadmo typed by hand is not a mention on this way.
  • What starts nothing. A comment the setup's own account writes. The rule's other filters are the same on both ways (Confluence rules).
  • What Kadmo cannot tell on this way. Who added a label, and whether a comment's author is a guest of the site or another app.
  • What is written back. The result comment, as the setup's account.
  • Where the app serves the site, it alone starts work there, and the check rests.
  • Only with the app. Send to Kadmo and the byline item Kadmo.

Which way serves ​

One Kadmo account holds one Confluence site, on either way. For that site Kadmo answers one question, and agents and Kadmo itself get the same answer:

Kadmo for Confluence on the siteThe manual setupWhat serves
Installed and renewed, spaces chosenAnyThe app, with its own chosen spaces
Installed and renewed, no space chosenAnyNothing, until an admin chooses the app's spaces
Its token not renewedStored for the same site, spaces chosenThe manual setup, with the app's not-renewed sentence as a notice
Removed, or never installedStored, spaces chosenThe manual setup
Removed, or never installedStored, no space chosenNothing, until an admin chooses the setup's spaces

The app wins wherever it is installed and renewed. Connecting the app on a site that ran on the manual setup pauses the setup's work there, its check included, until an admin chooses the app's spaces. A label or a mention starts a rule once, also when the way changes between the two. A manual setup for another site than the app's is refused when you save it, and the app's connect for another site than the setup's is refused on Kadmo's connect page.

Where either way serves the site, agents use it, whatever other Atlassian tool is on the agent. Only on an account with no Confluence connection at all may they reach Confluence through the Atlassian tools that come with a Jira manual setup (Jira manual setup).

Replace or remove the setup ​

  • Replace the token. Enter the address, the e-mail and a new token in the same fields and press Save: the new token replaces the old one once Confluence accepts it. Atlassian ends a token on its expiry date, at most a year after it was made, and Kadmo cannot read that date, so replace the token before then.
  • Disconnect removes the manual setup's e-mail, token and spaces, and nothing else: the app, its site and its spaces, Jira and every other connection stay.
  • Deleting the Kadmo account deletes the manual setup with it (Delete account).

Limits ​

  • Confluence Cloud only, at an atlassian.net address.
  • One site per account, shared with the app: the setup and the app serve the same site or not at all.
  • A token with scopes. A token without scopes is refused at Save.
  • Team spaces only, up to 100. Personal spaces are not offered.
  • What only the app does. Send to Kadmo and the byline item Kadmo come with the app.
  • Rules start within a few minutes, not at once, and a label taken off and put back between two checks is not seen (What starts work).
  • No expiry warning. Kadmo cannot read a token's scopes or its expiry date. A token Confluence no longer accepts shows when an agent uses it, on Test, or on the card within a few minutes while a rule listens. A missing write scope shows only when an agent writes.

What Kadmo keeps ​

Kept
The setupThe site's id and address, the e-mail as you entered it, the API token sealed with it, when Confluence last accepted them, who saved them, and the spaces chosen with their names
The checkThe Atlassian account id the setup acts as, once Confluence names it in its answer to a comment Kadmo posted; which pages of the chosen spaces carried a rule's label and since when, kept until 14 days after the label is gone or the setup is removed; which mentioning comments it already handed to a rule. Never a page's or a comment's text
AgentsNo token: they fetch it at the moment of use

Kadmo's privacy policy says how Kadmo handles personal data. Where your agents run is covered under Where an agent can run.

Troubleshooting ​

SymptomCause and fix
Save says Confluence does not accept the e-mail and tokenConfluence answers an e-mail or token it does not accept as if the site's spaces were missing, so Kadmo says not accepted, never not found. Check the e-mail is the token's own account, the token has the scopes above, and the account can see the site.
Save says there is no Atlassian site at the addressEnter the site's own atlassian.net address.
Save says the account is connected to another Confluence siteOne site per account: the app serves another site. Disconnect it on the card first, or set up that site.
An agent reports Confluence does not accept the manual setup's e-mail and token for …The token ended or was revoked. Create a new one and save it in the same fields.
An agent reports No Confluence space is chosen for Kadmo's manual setup on the site …Choose the spaces in the manual setup.
An agent reports The manual setup's stored e-mail and token for the Confluence site … could not be readEnter the token again and save.
The manual setup stopped serving after the app was connectedThe app wins on its site. Choose the app's spaces on the card.
A label or a mention starts nothing yetWait for the next check: a rule starts within a few minutes, not at once.
A label starts nothing at allThe label was already on the page when the rule was saved, or when the check began to listen. Take it off, let one check pass, and add it again.
A label taken off and put back at once starts nothingThe check did not see it go. Leave it off through one check, or mention the account in a comment.
The card says Confluence did not accept the e-mail and token at the last checkThe token ended or was revoked. Create a new one and save it in the same fields.
The card says a label is on more than 1,000 pagesThe check cannot follow a label that common. Use a label kept for Kadmo in the rule.
No result comment on the pageThe comment is written as the setup's account, which needs write:comment:confluence and access to the page's space. Check the token's scopes, then the rule's log.