OpenClaw Mattermost 채널
오픈소스 엔터프라이즈 메시징 플랫폼인 Mattermost에 OpenClaw를 연결하여 AI 어시스턴트가 DM, 그룹 채널 및 팀 대화에 참여할 수 있도록 합니다. 이 통합은 Bot Token 인증과 WebSocket 이벤트를 사용하여 실시간 양방향 통신을 지원하며, 유연한 채팅 모드와 세밀한 접근 제어 정책을 제공합니다.
Mattermost 지원 기능
텍스트 메시지
지원
미디어 및 파일
지원
리액션
지원
스레드
지원
음성 메시지
미지원
그룹 채팅
지원
Mattermost 사전 요구사항
- Bot Account를 생성할 수 있는 관리자 권한이 있는 Mattermost 서버 (자체 호스팅 또는 클라우드)
- Mattermost System Console에서 생성한 Bot Token이 있는 Bot Account
- OpenClaw Gateway에서 접근 가능한 Mattermost 서버 기본 URL
- OpenClaw Gateway가 설치되어 실행 중일 것
- 'openclaw plugins install @openclaw/mattermost' 명령으로 설치한 Mattermost 플러그인
Mattermost 빠른 설정
Mattermost 플러그인 설치
'openclaw plugins install @openclaw/mattermost' 명령을 실행하여 Gateway에 Mattermost 지원을 추가합니다.
Mattermost에서 Bot Account 생성
Mattermost System Console > Integrations > Bot Accounts로 이동합니다. 'Add Bot Account'를 클릭하고 표시 이름과 설명을 설정한 후, 생성된 Bot Token을 복사합니다. System Console > Integrations > Integration Management에서 'Enable Bot Account Creation'이 true로 설정되어 있는지 확인하십시오.
구성 및 실행
botToken, baseUrl 및 원하는 정책을 포함한 Mattermost 채널 구성을 ~/.openclaw/openclaw.json에 추가합니다. 'openclaw start' 명령으로 Gateway를 시작합니다. 봇에게 DM을 보내거나 채널에서 @멘션하여 연결을 확인합니다.
Mattermost 구성 예시
{
"channels": {
"mattermost": {
"enabled": true,
"botToken": "your-bot-token",
"baseUrl": "https://mattermost.example.com",
"dmPolicy": "pairing",
"chatmode": "oncall"
}
}
}Mattermost 상세 문서
아키텍처 개요
Bot Account 생성
{
"channels": {
"mattermost": {
"botToken": "your-bot-token",
"baseUrl": "https://mattermost.example.com"
}
}
}채팅 모드
{
"channels": {
"mattermost": {
"chatmode": "onchar",
"oncharPrefixes": ["!", "/ai"]
}
}
}DM 정책
{
"channels": {
"mattermost": {
"dmPolicy": "pairing",
"allowFrom": ["user-id-1", "user-id-2"]
}
}
}그룹 및 채널 정책
{
"channels": {
"mattermost": {
"groupPolicy": "allowlist",
"groupAllowFrom": ["channel-id-1", "channel-id-2"]
}
}
}다중 계정 설정
{
"channels": {
"mattermost": {
"accounts": {
"production": {
"botToken": "prod-bot-token",
"baseUrl": "https://mattermost.company.com",
"chatmode": "oncall",
"dmPolicy": "pairing",
"allowFrom": ["user-1", "user-2"]
},
"dev-team": {
"botToken": "dev-bot-token",
"baseUrl": "https://mm-dev.company.com",
"chatmode": "onmessage",
"dmPolicy": "open"
}
}
}
}
}아웃바운드 메시징
{
"action": "mattermost",
"params": {
"message": "Daily standup reminder: please post your updates!",
"to": "channel:abc123def456"
}
}리치 메시지 기능
속도 제한 및 모범 사례
Mattermost 구성 참조
| Key | Type | Default | Description |
|---|---|---|---|
| enabled | boolean | true | Mattermost 채널을 활성화 또는 비활성화합니다 |
| botToken | string | "" | Mattermost System Console > Bot Accounts에서 발급한 Bot Token |
| baseUrl | string | "" | Mattermost 서버의 전체 URL (예: https://mattermost.example.com) |
| chatmode | string | "oncall" | 채팅 트리거 모드: 'oncall' (멘션), 'onmessage' (전체), 또는 'onchar' (접두사) |
| oncharPrefixes | string[] | [] | chatmode가 'onchar'일 때 봇을 트리거하는 접두사 문자 |
| dmPolicy | string | "pairing" | DM 접근 정책: 'pairing' (허용 목록만) 또는 'open' (모든 사용자) |
| allowFrom | string[] | [] | 봇에게 DM을 보낼 수 있는 Mattermost 사용자 ID (dmPolicy: pairing과 함께 사용) |
| groupPolicy | string | "allowlist" | 그룹 채널 정책: 'allowlist' (지정된 채널만) 또는 'open' (모든 채널) |
| groupAllowFrom | string[] | [] | 봇이 응답할 수 있는 Mattermost 채널 ID (groupPolicy: allowlist와 함께 사용) |
| requireMention | boolean | true | 레거시 설정 -- chatmode: 'oncall' 사용을 권장합니다 |
| accounts.<id>.botToken | string | "" | 다중 계정 모드에서 특정 계정의 Bot Token |
| accounts.<id>.baseUrl | string | "" | 특정 계정의 Mattermost 서버 URL |
| accounts.<id>.chatmode | string | "oncall" | 특정 계정의 채팅 트리거 모드 |
| accounts.<id>.dmPolicy | string | "pairing" | 특정 계정의 DM 접근 정책 |
Mattermost 채널을 활성화 또는 비활성화합니다
Mattermost System Console > Bot Accounts에서 발급한 Bot Token
Mattermost 서버의 전체 URL (예: https://mattermost.example.com)
채팅 트리거 모드: 'oncall' (멘션), 'onmessage' (전체), 또는 'onchar' (접두사)
chatmode가 'onchar'일 때 봇을 트리거하는 접두사 문자
DM 접근 정책: 'pairing' (허용 목록만) 또는 'open' (모든 사용자)
봇에게 DM을 보낼 수 있는 Mattermost 사용자 ID (dmPolicy: pairing과 함께 사용)
그룹 채널 정책: 'allowlist' (지정된 채널만) 또는 'open' (모든 채널)
봇이 응답할 수 있는 Mattermost 채널 ID (groupPolicy: allowlist와 함께 사용)
레거시 설정 -- chatmode: 'oncall' 사용을 권장합니다
다중 계정 모드에서 특정 계정의 Bot Token
특정 계정의 Mattermost 서버 URL
특정 계정의 채팅 트리거 모드
특정 계정의 DM 접근 정책
Mattermost 자주 묻는 질문
Mattermost 문제 해결
채팅 모드 또는 접근 정책이 메시지를 필터링하고 있을 수 있습니다.
baseUrl이 잘못되었거나, Bot Token이 유효하지 않거나, 서버에 접근할 수 없습니다.
봇이 대상 채널의 멤버가 아닙니다.
Mattermost 서버의 파일 업로드 설정이 파일 유형이나 크기를 제한하고 있을 수 있습니다.
봇이 짧은 시간 내에 너무 많은 API 요청을 수행하고 있습니다.