Slack에는 “Slack 채널에 게시된 메시지를 Google 스프레드시트에 쓰려고 할 때 사용할 수 있는 “Outgoing Webhook”이라는 편리한 API가 있습니다.
발신 웹훅
발신 웹훅은 메시지가 좁은 기준을 충족할 때 자체 서버에 웹훅을 보내는 기발한 방법이었습니다. 대신 Slack 앱을 구축하는 것이 좋습니다!

발신 웹훅발신 웹훅은 메시지가 좁은 기준을 충족할 때 자체 서버에 웹훅을 보내는 기발한 방법이었습니다. 대신 Slack 앱을 구축하는 것이 좋습니다!

slack.com
발신 Webhook 사용
먼저 Slack 앱 “설정 및 관리 > 앱 관리”로 이동하여 Slack 앱 디렉토리 화면으로 이동합니다.

Slack App 디렉토리 검색에서 Outgoing Webhook을 검색하면 결과에 표시됩니다…

“Slack에 추가”를 눌러 애플리케이션을 추가합니다.

발신 Webhook 통합 추가
“발신 Webhook 통합 추가”를 선택하십시오.

통합이 추가되면 메시지를 검색할 채널을 선택하십시오.
URL 섹션에서 웹훅 역할을 할 GAS 측에 배포한 URL을 설정합니다.

“설정 저장”을 눌러 구성을 완료합니다.

결론
이제 Slack에서 Google 스프레드시트로 데이터를 쓸 수 있습니다.

다음 기사에서는 이 통합을 사용하여 GAS 측의 Google 스프레드시트에 데이터를 설정합니다.