# Custom bot without proxy Settings
【Diagram】
To deploy a custom bot without proxy in your Slack workspace, you need to create and edit a Slack app. The steps are as follows.
# Before creating Slack app
Start the GROWI main server.
# Select Bot type
Select Custom bot without proxy in Slack Integration of the Management page.
# Create a Slack app
- Go to the App Page (opens new window) of the Slack API and click Create New App button.
- Click [From an app manifest].
- Select the workspace where you want to install the app and click [Next].
- Paste the following App Manifest into the [YAML] tab, and click [Next].
_metadata:
major_version: 1
minor_version: 1
display_information:
name: GROWI BOT
features:
bot_user:
display_name: GROWI BOT
always_online: false
slash_commands:
- command: /growi
url: https://{GROWI domain name}/_api/v3/slack-integration/commands
description: Test Bot
should_escape: false
unfurl_domains:
- {GROWI domain name}
oauth_config:
redirect_urls:
- https://{GROWI domain name}/slack/oauth_redirect
scopes:
bot:
- channels:history
- channels:join
- chat:write
- chat:write.public
- commands
- groups:history
- im:history
- links:read
- links:write
- mpim:history
- team:read
settings:
event_subscriptions:
request_url: https://{GROWI domain name}/_api/v3/slack-integration/events
bot_events:
- link_shared
interactivity:
is_enabled: true
request_url: https://{GROWI domain name}/_api/v3/slack-integration/interactions
org_deploy_enabled: false
socket_mode_enabled: false
token_rotation_enabled: false
- After reviewing the app overview, click [Create] to create the app.
# Install the Custom bot without proxy in your Slack workspace
In the Slack App you created, go to Settings and click Basic Information.
Click the Install your app.
Click the Install to Workspace.
On the destination screen, Click the Allow button.
If you see a green check mark to the right of Install your app, the installation is complete in your workspace.
Invite the channel you want to use the GROWI bot on using @example.
# Signing Secret and Bot User OAuth Token settings
Before setting Signing Secret and Bot User OAuth Token, check the values.
# How to check Signing Secret
In the Slack App you created, go to Settings and click Basic Information.
Push show button for Signing Secret in App Credentials to confirm.
# How to check Bot User OAuth Token
In the Slack App you created, go to Settings and click OAuth and Permissions.
Check Bot User Oauth Token in OAuth Tokens for Your Team.
There are two ways to set Signing Secret and Bot User OAuth Token: 1. Set them in the Management page 2. Set them with environment variables. It is easier to set them in the Management page. Also, in case that you input values in both the Management page and environment variable, the Management page value will take a priority. That's why settings in the Management page is recommended.
- How to set them in Management page
Go to the Slack integration in the Management page and input Signing Secret and Bot User OAuth Token, then click on the Update button.
When a green checkmark appears in the red circle, registration is completed.
- How to set them with environment variables
- Assign
SLACK_SIGNING_SECRET
andSLACK_BOT_TOKEN
with the values you checked.
# Run connectivity test of Custom bot without proxy
Click Test connection and input the Slack channel to which invited GROWI-Bot.
Click on the Test button.
- In case of success
Successfully sent to Slack workspace. will be displayed at Logs. Green checkmarks will appear in red circles. Check the channel to which you invited GROWI-Bot.GROWI side
Slack side
- In case of failure
See Error logs for connectivity test
Once you are all set up, see what you can do with a GROWI-bot