1、請至 https://api.slack.com/apps 登入並點擊 Create New App 按鈕
2、請輸入 App Name
和 Your Workspace
並點擊 Create App 按鈕
3、請點選左側選單 OAuth & Permissions
且滾動捲軸至 Scope
,選擇三項必要的 Bot Token Scope
vREaYSj.mp4
OAuth Scope | Description |
---|---|
chat:write |
Send messages as @Talk to AI |
chat:write.customize |
Send messages as @Talk to AI with a customized username and avatar |
files:write |
Upload, edit, and delete files as Talk to AI |
4、請點選左側選單 Event Subscription
,並啟用 Enable Events
,請輸入 Request URL
(callback url) 進行驗證,再請到下方的 Subscribe to bot events
選擇一項必要的 Bot User Event
。
Event Name | Description | Required Scope |
---|---|---|
app_mention |
Subscribe to only the message events that mentation your app or bot | app_mentions:red |
1、請點選左側選單 Install App
,並點擊 Install Workspace
按鈕