Set the webhook post data.
Format
Data is sent in JSON format.
{"text":"notification content"}
You can freely specify a character string for the content of the notification . By adding the following items to the post data, you can add the user information and chat content of the triggered action to the notification.
{{name}} | Display name of the user who took the action | Available for all triggers |
{{email}} | Email address of the user who initiated the action | Available for all triggers |
{{memo}} | Contents of the away memo | Available in "Memo" |
{{message}} | Chat content | Available in "Public Chat" and "Mention Chat" |
{{room}} | Entered/exited room name | Available for "Enter room" and "Leave room" |
Examples
Trigger | Example |
Online | {"text":"{{name}} ({{email}}) has joined the space"} |
Offline | {"text":"{{name}} has left the space."} |
Enter room | {"text":"{{name}} has entered {{room}}."} |
Leave room | {"text":"{{name}} has left {{room}}."} |
Away | {"text":"{{name}} are away."} |
Comeback | {"text":"{{name}} has returned."} |
Memo | {"text":"{{name}} left a note "{{memo}}"."} |
Knock | {"text":"{{name}} ({{email}}) pressed the intercom."} |
Chat (Public/Mention) | {"text":"{{name}} sent a chat with "{{message}}". "} |
*When setting up a webhook for Microsoft Teams, copy only ○○○○ from the {"text":"○○○○"} part of the table above and replace it with the string you specified during setup.
Reference
Please refer to each page for Webhook settings.
Admin-Configured
Webhook (Admin only)
Direct Message Notification Settings by Each User
Webhook settings