Skip to content

Commit 3dbf023

Browse files
authored
Update seat-management-embed.md
1 parent 861ce59 commit 3dbf023

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

docs/seat-management-embed.md

+17-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
1-
### Seat Management Embed
1+
# Seat Management Embed
2+
3+
!!! warning "Note"
4+
This embed will require code to be placed in your server
25

36
1. Go to "Embeddables"
47
1. Click on `Seat Management`
5-
1. Copy the HTML given
6-
1. Paste on your existing site where you would like a seat management page to be generated
7-
1. Pass a token to the embed for the user you want to manage seats
8-
##### Seat Management options
8+
1. Select your backend language/framework
9+
1. Place the server code in your server
10+
1. Place the client code on the client, and insert the token from the server when a logged in user visits the page
11+
1. Customers can now add/remove the seats attached to their subscription
12+
13+
## Seat Management options
914

1015
| Attribute | Type | Description |
1116
| ------------- |:-------------:| -----:|
@@ -14,11 +19,17 @@
1419
| token | string | JSON Web Token for the user who owns a service instance you want to manage the seats of|
1520
| [serviceInstanceId] | string | used if the user owns multiple service instances, pass the instance id of the specific instance|
1621

17-
##### Example Seat Management Config
22+
## Example Seat Management Config
1823
```javascript
1924
Servicebot.SeatManagement({
2025
url : "https://example.serviceshop.io",
2126
selector : document.getElementById('servicebot-seat-management-form'),
2227
token: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjMzLCJpYXQiOjE1MzczNzY4MTgsImV4cCI6MTUzNzM4NzYxOH0.yrhyVmzHprR-7b--SpnwaH7ylKjd6q4-isgnm782Q8I"
2328
})
2429
```
30+
31+
## Tips
32+
- There will be a webhook called everytime a seat is invited
33+
- You should set your invite url in the seat management settings to direct to a page with a login embed
34+
- You can tie a metric based service to seats on edit page for a service
35+
- The invite email can be configured on the `Settings -> Email Settings -> Invite` page

0 commit comments

Comments
 (0)