Coffee Bot (Matrix)

Coffee Bot (Matrix) automates weekly virtual coffee group announcements every Monday at 10 AM. It gathers employees from a designated chat channel, randomly divides them into small groups of three, and announces the groupings. This enhances team bonding and engagement in a fun, structured way.

7/8/2025
5 nodes
Medium
schedulemediummatrixautomationcodecustom
Categories:
Communication & MessagingSchedule TriggeredMedium Workflow
Integrations:
Matrix

Target Audience

This workflow is ideal for:
- Team Leaders: Who want to enhance team bonding through casual coffee chats.
- HR Professionals: Looking to foster a collaborative and friendly workplace culture.
- Remote Teams: Who need structured ways to connect and communicate regularly.
- Matrix Users: Familiar with Matrix protocol and seeking automation in their communication.

Problem Solved

This workflow addresses the challenge of organizing virtual coffee chats among employees in a structured and automated manner. It eliminates the need for manual coordination, ensuring that team members can connect effortlessly, enhancing workplace relationships and collaboration.

Workflow Steps

  • Weekly Trigger: The workflow is triggered every Monday at 10 AM, ensuring regularity in scheduling coffee chats.
    2. Greetings Message: A friendly greeting message is sent to the designated Matrix room to inform participants about the upcoming coffee chats.
    3. Employee Retrieval: The workflow fetches the list of employees currently active in the coffee chat channel, ensuring the right participants are included.
    4. Group Division: Employees are randomly divided into groups of 3, utilizing the Fisher-Yates shuffle algorithm to ensure randomness and variety in group composition. Special care is taken to avoid groups with only one member.
    5. Group Announcement: Finally, the groups are announced in the Matrix room, allowing all participants to see their assigned coffee chat partners.
  • Customization Guide

    To customize this workflow:
    - Change the Schedule: Modify the triggerTimes in the Weekly trigger on monday1 node to adjust the day and time of the coffee chat.
    - Update Room ID: Replace Enter your Room ID with the actual Matrix room ID for both the Greetings and Employees in coffee chat channel nodes.
    - Adjust Group Size: Change the ideal_group_size variable in the Divide into groups node if you want larger or smaller groups.
    - Personalize Messages: Edit the text parameter in the Greetings and Announce groups nodes to customize the messages sent to participants.
    - Add Filters: Modify the filters in the Employees in coffee chat channel node to include specific membership criteria or roles if needed.