1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
Event reminder via webhooks with Calendar
This guide explains how to get event reminders from Infomaniak Calendar on a chat system like kChat or Slack.
This feature will allow you to be notified in the chat thread of your choice when an event is approaching.
What is a webhook?
The webhook system is a method for one application or service to send information to another application or service in real-time in a secure and authenticated manner.
Setting up the webhook in Calendar
To add the webhook from your chat system to Calendar:
- Log in to Calendar (calendar.infomaniak.com), the calendar/agenda part of Infomaniak Mail, using a web browser like Brave or Firefox
- Click on the icon at the top right of the interface
- Click on the Add a webhook button (under Custom notifications)
- Configure:
- (A) A name for easy identification of the webhook when you add reminders
- (B) The URL of the webhook (obtained from your chat system - examples are provided below in the FAQ)
- (C) The elements (automatically taken from your event and/or added manually here) and their arrangement in the message that will be sent:
- Insert %subject% to include the event's subject
- Insert %date% to include the event's date
- Insert %description% to include the event's description
- Insert %location% to include the event's location
- Click Save
Create an event with chat reminders
Now that Calendar is linked to your chat system account, you can choose to be notified in a chat when you add a reminder to an event:
- Log in to Calendar (calendar.infomaniak.com) using a web browser like Brave or Firefox
- Create a new event
- Click at the bottom right to show the additional fields
- Add a reminder
- In the dropdown menu, select the configured webhook
- Save the changes
You will now receive a reminder in the chat associated with the webhook.
Examples of obtaining a webhook
kChat
- Open the kChat application
- Go to the Integrations section
- Click on Incoming Webhooks:
- Click on Add at the top right
- Complete the required information to create the "bot" that will post reminder messages in kChat in the channel of your choice:
- Save to obtain the webhook URL:
- Create the custom notification in Calendar (read above if necessary):
- Select your custom notification when adding a reminder to your event:
Slack
- Open this Slack page and authenticate with your Slack credentials
- Choose the channel where your reminders will appear (e.g., @slackbot or #general)
- Save to obtain the webhook URL
Create other webhooks to set reminders in other chat threads.
Customize Slack reminder messages
You can freely use Slack's formatting options in your notifications. For example:
Don't forget to %subject% for %date%.
Mark the date: %description%.
Event location: %location%