[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):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)"]]