Google Chat 수신 웹훅에 메시지를 전송하는 워크플로를 만들 수 있습니다.
수신 웹훅을 사용하면 채팅 앱이 아닌 애플리케이션에서 Google Chat으로 비동기 메시지를 보낼 수 있습니다. 예를 들어 서버가 다운될 때 Google Chat의 긴급 대기 엔지니어에게 알리도록 모니터링 애플리케이션을 구성하는 것이 가능합니다.
Google Chat 수신 웹훅 만들기 및 등록
메시지를 수신하려는 Google Chat 스페이스에서 웹훅을 만듭니다.
안내에 따라 수신 웹훅을 등록합니다.
웹훅 URL에 HTTP 호출 수행
워크플로를 만들고 웹훅 URL에 HTTP POST 호출을 만드는 단계를 워크플로에 추가합니다.
예를 들면 다음과 같습니다.
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["이해하기 어려움","hardToUnderstand","thumb-down"],["잘못된 정보 또는 샘플 코드","incorrectInformationOrSampleCode","thumb-down"],["필요한 정보/샘플이 없음","missingTheInformationSamplesINeed","thumb-down"],["번역 문제","translationIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-09-04(UTC)"],[],[],null,["# Send notifications to Google Chat from your workflow\n\nYou can create a workflow that sends messages to a Google Chat *incoming webhook*.\nIncoming webhooks let you send asynchronous messages into Google Chat from\napplications that aren't Chat apps. For example, you can configure a monitoring\napplication to notify on-call personnel on Google Chat when a server goes down.\n\nCreate and register a Google Chat incoming webhook\n--------------------------------------------------\n\nIn the Google Chat space where you want to receive messages, create a webhook.\nFollow the instructions to\n[register the incoming webhook](https://developers.google.com/chat/how-tos/webhooks#step_1_register_the_incoming_webhook).\n\nMake an HTTP call to the webhook URL\n------------------------------------\n\n[Create a workflow](/workflows/docs/creating-updating-workflow#create_a_workflow)\nand add a step to the workflow that makes an `HTTP POST` call to the webhook URL.\nFor example:\n\n\u003cbr /\u003e\n\n### YAML\n\n```yaml\n - get_message:\n call: http.post\n args:\n url: WEBHOOK_URL\n body:\n text: \"Hello world!\"\n headers:\n Content-Type: \"application/json; charset=UTF-8\"\n result: response\n - return_value:\n return: ${response}\n```\n\n### JSON\n\n```json\n [\n {\n \"get_message\": {\n \"call\": \"http.post\",\n \"args\": {\n \"url\": \"\u003cvar translate=\"no\"\u003eWEBHOOK_URL\u003c/var\u003e\",\n \"body\": {\n \"text\": \"Hello world!\"\n },\n \"headers\": {\n \"Content-Type\": \"application/json; charset=UTF-8\"\n }\n },\n \"result\": \"response\"\n }\n },\n {\n \"return_value\": {\n \"return\": \"${response}\"\n }\n }\n ]\n```\n\n\u003cbr /\u003e\n\nReplace \u003cvar translate=\"no\"\u003eWEBHOOK_URL\u003c/var\u003e with the webhook URL that you copied\nwhen registering the incoming webhook.\n\nYou can confirm that the workflow works as expected by ensuring that a\nnotification is sent to your Google Chat space.\n\nWhat's next\n-----------\n\n- [Learn more about making HTTP requests](/workflows/docs/http-requests)\n- [Learn more about Workflows](/workflows/docs/overview)"]]