{"id":28491495,"url":"https://github.com/line/ncloud-chatbot-slack","last_synced_at":"2026-04-24T21:32:04.550Z","repository":{"id":50171369,"uuid":"259228975","full_name":"line/ncloud-chatbot-slack","owner":"line","description":"LINE Brain sample code for Slack chatbot","archived":false,"fork":false,"pushed_at":"2023-07-25T15:50:51.000Z","size":1500,"stargazers_count":1,"open_issues_count":7,"forks_count":1,"subscribers_count":6,"default_branch":"master","last_synced_at":"2026-04-21T07:58:32.823Z","etag":null,"topics":["chatbot","line-brain","ncloud","python","sample-code","slack"],"latest_commit_sha":null,"homepage":"https://www.linebrain.ai/chatbot/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/line.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-04-27T06:45:42.000Z","updated_at":"2025-06-07T11:00:49.000Z","dependencies_parsed_at":"2023-01-24T10:15:14.402Z","dependency_job_id":null,"html_url":"https://github.com/line/ncloud-chatbot-slack","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/line/ncloud-chatbot-slack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/line%2Fncloud-chatbot-slack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/line%2Fncloud-chatbot-slack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/line%2Fncloud-chatbot-slack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/line%2Fncloud-chatbot-slack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/line","download_url":"https://codeload.github.com/line/ncloud-chatbot-slack/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/line%2Fncloud-chatbot-slack/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32241616,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chatbot","line-brain","ncloud","python","sample-code","slack"],"created_at":"2025-06-08T08:07:31.900Z","updated_at":"2026-04-24T21:32:04.544Z","avatar_url":"https://github.com/line.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# How to connect Chatbot to Slack\n\n[See Japanese README](README_ja.md)\n## Note:\n  #### 4/2/2020\n  - Supporting chatbot message is only default reply.\n\n## Requirements\n- python since ver.3.6\n\n### 1. Set chatbot service endpoint \u0026 secret key to this application.\n1. Chatbot and API Gateway integration.\n  - [Custom API - Create invoke URLs](https://docs.ncloud.com/en/chatbot/chatbot-2-5.html)\n2. Set your chatbot service endpoint to CHATBOT_ENDPOINT that is environment variable. \n  ![](images/1-2.png)\n3. Set your secret key to CHATBOT_SECRET_KEY that is environment variable.\n  ![](images/1-3.png)\n\n### 2. Create your slack app \u0026 set it's config to this application.\n1. Open https://api.slack.com/apps \u0026 click [Create an App].\n  ![](images/2-1.png)\n2. Enter new chatbot app name \u0026 select development workspace \u0026 click [Create App]\n  ![](images/2-2.png)\n3. Set your config to environment variable. It can get from [App Credentials] under [Basic Information] page.\n  - Set Client ID to SLACK_CLIENT_ID.\n  - Set Client Secret to SLACK_CLIENT_SECRET.\n  - Set Signing Secret to SLACK_SIGNING_SECRET.\n  ![](images/2-3.png)\n\n### 3. Publish this application.\n#### In this case, using ngrok.\n1. Install ngrok.\n  - https://ngrok.com/download\n2. Start ngrok service.\n```bash\nngrok http 3000\n```\n3. Copy published https domain.\n  ![](images/3-3.png)\n4. Start this application.\n```bash\n# install requirements\npip install -r requirements.txt\n# run application\npython app.py\n```\n\n### 4. Set slack application config.\n1. Open https://api.slack.com/apps. \u0026 click your slack application. \u0026 redirect to it's setting page.\n  ![](images/4-1.png)\n2. Click [OAuth \u0026 Permissions] from [Features]. \u0026 set copied No.3-3 domain and authorization endpoint to [Redirect URLs] like an image.\n  ![](images/4-2.png)\n3. Set application scope under [OAuth \u0026 Permissions] page. The setting is like an image.\n  ![](images/4-3.png)\n4. Click [Event Subscriptions] from [Features]\n  ![](images/4-4.png)\n5. enable [Enable Events]. \u0026 set copied No.3-3 domain and slack event endpoint to [Redirect URLs] like an image. \u0026 check Verified.\n  ![](images/4-5.png)\n6. Click [Subscribe to bot events] \u0026 add Bot User Event. The setting is like an image. \u0026 Click [Save Changes]\n  ![](images/4-6.png)\n7. Click [Manage Distribution] from [Settings]. \u0026 click [Add to Slack]. \u0026 redirect to access permission page.\n  ![](images/4-7.png)\n8. Click [Allow]. \u0026 check [Auth complete!]\n  ![](images/4-8.png)\n9. Open your workspace. \u0026 check existing your slack bot application.\n  ![](images/4-9.png)\n\n\n### 5. Let's talk with slack bot\n  ![](images/5.png)\n\n#### Reference\n- https://github.com/stevengill/slack-python-oauth-example\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fline%2Fncloud-chatbot-slack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fline%2Fncloud-chatbot-slack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fline%2Fncloud-chatbot-slack/lists"}