Skip to content

Commit ed85fc6

Browse files
authored
Merge pull request #769 from matrix-org/justinbot/setup-widget-docs
Add docs for setup widget
2 parents a9f5553 + c8f5dae commit ed85fc6

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed

changelog.d/769.doc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add documentation for the setup widget.

docs/link_channels.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,33 @@ The Real Time Messaging (RTM) API is the newer and recommended way to use the br
5959
link --channel_id CHANNELID --room !the-matrix:room.id --slack_bot_token xoxb-xxxxxxxxxx-xxxxxxxxxxxxxxxxxxxx
6060
```
6161
62+
## Setup Widget
63+
64+
A user interface is provided in the form of a Matrix widget which can be used within a room to link and unlink channels.
65+
66+
67+
![Screenshot of setup widget interface](setup-widget.png)
68+
69+
### Configuration
70+
71+
In order to use the setup widget, it must be enabled along with the provisioning API:
72+
73+
```yaml
74+
provisioning:
75+
enabled: true
76+
widget: true
77+
```
78+
79+
The widget will be hosted on the same port as the appservice by default, at the path `/_matrix/provision/v1/static`.
80+
81+
### Usage
82+
83+
Invite the bridge user to the Matrix room, then add the widget like this (where `example.com` is a public route to your bridge's provisioning API):
84+
85+
```
86+
/addwidget https://example.com/_matrix/provision/v1/static/?roomId=$matrix_room_id&widgetId=$matrix_widget_id
87+
```
88+
6289
## Webhooks
6390

6491
Linking rooms with webhooks is not the recommended way for most situations,

docs/setup-widget.png

41.2 KB
Loading

0 commit comments

Comments
 (0)