Slack notifications and commands for XWiki

XWiki Slack Integration

Post the changes of your wiki in Slack channels, with the details shown only when everyone in the channel may view them. Link accounts and connect pages from Slack, without exposing your wiki to the internet.

  • Rights-aware channel notifications
  • Pages, comments and application events
  • /xwiki commands and search

Bring XWiki into your team's Slack

Keep teams informed in the channels they already use, with the access rights of the wiki applied.

Post wiki changes
in Slack channels

Connect a page with children, or a whole wiki, to a Slack channel and choose what it receives: pages created, updated or deleted, comments, annotations and the events of installed applications.

Respect XWiki
access rights

A change is posted with its details only when every member of the channel can view the page. Otherwise the channel gets a neutral message with a protected link.

Work from Slack
with /xwiki commands

Link accounts, connect pages to channels and list subscriptions without leaving Slack. Only the person who types a command sees the answer.

Search the wiki
from Slack

Type /xwiki search to find the pages of the wiki you can view, with their location and a link to all the results.

Previews of
wiki links

A link to a wiki page posted in Slack gets a preview with its title, location and the start of its text, only when everyone in the conversation can view the page.

Link Slack and
XWiki accounts

Each user confirms the link by logging into the wiki, including the local users of subwikis, who get a code in their own wiki. Nothing is matched automatically by email address or name.

No public address
for your wiki

The wiki opens an outgoing connection to Slack with Socket Mode, so it works behind a firewall without exposing the wiki to the internet.

Your own Slack app,
no third party

Your organization creates its own Slack app from a manifest prepared by the wiki. No Agnease server sees your content.

Your Slack app, in your workspace

Set up from a prepared manifest

The Slack section of the wiki administration creates the app in Slack with its settings filled in. The administrator installs it, pastes its two tokens into the wiki and checks the connection.

One Slack workspace is connected to the whole wiki farm, and each wiki keeps its own Slack data: the links of its users, the channels of its pages and the messages posted for them. The tokens are encrypted before they are saved and never displayed again.

The administration of each wiki lists the messages posted in Slack for its pages, and why a message was posted without details.

Only the permissions it uses

  • chat:write: post messages in the channels the app was invited to
  • commands: receive the /xwiki slash command
  • channels:read and groups:read: read the members of the channels where changes are posted
  • users:read: show the Slack name of a user who links an account
  • links:read and links:write: preview the links to the wiki posted in Slack
  • connections:write, on the app-level token: open the Socket Mode connection

Note: When a new version needs more permissions, the Slack administration lists the missing ones, and the app is updated from the new manifest.

Keep each channel in step with the wiki

Choose what each channel follows, and let the wiki decide what each channel may see.

Choose the changes of each channel

The administrators of a page, or of the wiki, members of the channel, choose what it receives.

  • A whole wiki, or a page and the pages under it at any depth
  • Pages created, updated by a major or a minor change, or deleted
  • Updates linked to their changes, with the comment of their author
  • Comments and annotations added, with their text as plain text
  • Events declared by XWiki and the installed applications, such as the steps of a review
  • Connect from the page administration, or with /xwiki subscribe in the channel
  • Follow one page in several channels, each with its own changes

Messages that follow the rights

The members of the channel are checked each time a page is posted.

  • Full details when every member of the channel can view the page
  • Members without a linked account count as guests, and so do bots and external members
  • Otherwise a message without details, with a link that opens the page only for allowed users
  • Events addressed to some users, such as mentions, never posted in a channel
  • Members read again as soon as someone joins or leaves the channel

Designed for everyday use

One command for everything

Everyone in the workspace can type /xwiki in a channel or a direct message.

  • /xwiki help: What you can do with the wiki from Slack
  • /xwiki connect: Link your Slack account to your wiki account
  • /xwiki account: Show the wiki accounts your Slack account is linked to
  • /xwiki disconnect: Unlink your Slack account
  • /xwiki subscribe: Post in this channel the changes of a page and the pages under it
  • /xwiki unsubscribe: Stop posting a page in this channel
  • /xwiki subscriptions: List the pages connected to this channel
  • /xwiki search: Find the pages of the wiki that you can view

What the channel sees

A connected page announces the changes it posts, then each change is posted in full or without its details, depending on the members of the channel.

Messages of the wiki in a Slack channel: a connected page, a new page and a comment posted in full, and an update posted without its details

The name of the app in Slack is chosen by your administrator, the name of the wiki by default.

Documentation and setup

Read the Slack Integration documentation

Find installation steps, the creation of the Slack app, account linking, the changes posted in channels, security, server settings and troubleshooting.

Get help with your rollout

Share your XWiki version, wiki farm setup, network constraints and the channels your teams use. Agnease can help review compatibility and deployment.

Frequently asked questions

Does the wiki need to be reachable from the internet?

No. The wiki opens the connection to Slack with Socket Mode and keeps it open. The server only needs outgoing HTTPS and WebSocket connections to slack.com and its subdomains.

Can a private page leak into a Slack channel?

The title, location and author of a change, and the text of a comment or annotation, are posted only when every member of the channel can view the page, checked when the message is posted. Otherwise the channel learns only that something changed, with a link that opens the page for the users allowed to view it.

Do we need a Slack Marketplace app or an Agnease service?

No. Your Slack administrator creates the app in your own workspace from a manifest prepared by the wiki. The wiki talks to Slack directly, without any third-party server.

Which XWiki versions are supported?

XWiki 16.10 and later. The extension is installed on the whole wiki farm from the Agnease extension repository, and the Slack app is connected in the main wiki.

Which languages are available?

English, French, German, Dutch, Spanish, Italian and Brazilian Portuguese. The wiki pages follow the language of each user, and the messages posted in Slack use the default language of the main wiki.

We are moving from Confluence to XWiki. What about our Slack channels?

Connect each migrated page to the channel its space used, from the page administration or with /xwiki subscribe, and choose the same changes: pages created, updated or deleted, comments and annotations. A channel that followed a whole space can follow the whole wiki too.

Can the users of a subwiki use it?

Yes. Each wiki of the farm keeps its own Slack data and channels. The local users of a subwiki link their Slack account from the Slack section of their profile, in their own wiki: they get a code and type it in Slack.

Ready to connect XWiki to Slack?

Tell us about your wiki and your Slack workspace. We can help with the right configuration.