[[["容易理解","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 (世界標準時間)。"],[],[],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)"]]