Sending CircleCI Job notification to Google Hangout Chat using Webhooks TLDR; Add these two pieces of code at the end of every CircleCI Job. Sending success notification 1 #!/bin/bash 2 3 curl –header “Content-Type: application/json” 4 --request POST 5 --data “{“cards”:[{“header”:{“title”:"${CIRCLE_JOB} successful.”,“subtitle”:"${CIRCLE_PROJECT_REPONAME}-${CIRCLE_BRANCH}",“imageUrl”:“https://png.pngtree.com/svg/20170510/success_404253.png”,“imageStyle”:“IMAGE”},“sections”:[{“widgets”:[{“keyValue”:{“topLabel”:"${CIRCLE_TAG}",“content”:“Credits - ${CIRCLE_USERNAME}”}}]},{“widgets”:[{“buttons”:[{“textButton”:{“text”:“DETAILS”,“onClick”:{“openLink”:{“url”:"${CIRCLE_BUILD_URL}"}}}}]}]}]}]}" 6 “$CHAT_WEBHOOK_URL” view raw i-luv-you.sh hosted with ❤ by GitHub Sending failure notification 1 #!/bin/bash 2 3 curl –header “Content-Type: application/json” 4 --request POST 5 --data “{“cards”:[{“header”:{“title”:“Oops. ${CIRCLE_JOB} failed.”,“subtitle”:"${CIRCLE_PROJECT_REPONAME}-${CIRCLE_BRANCH}”,“imageUrl”:“https://png.pngtree.com/svg/20170406/icon_failed__1325447.png”,“imageStyle”:“IMAGE”},“sections”:[{“widgets”:[{“keyValue”:{“topLabel”:"${CIRCLE_TAG}",“content”:“Credits - ${CIRCLE_USERNAME}”}}]},{“widgets”:[{“buttons”:[{“textButton”:{“text”:“DETAILS”,“onClick”:{“openLink”:{“url”:"${CIRCLE_BUILD_URL}"}}}}]}]}]}]}" 6 “$CHAT_WEBHOOK_URL” view raw i-miss-u.sh hosted with ❤ by GitHub CHAT_WEBHOOK_URL is a webhook URL of the google chat room. Follow these steps to create and store it as an environment variable in CircleCI. ![[./resources/sending-circleci-job-notification-to-google-hangou.resources/1wc0mqbjoj6zaegutolzmqg.webp]] CI notification room (Google Chat) Click on Configure webhooks ![[./resources/sending-circleci-job-notification-to-google-hangou.resources/1gkw6lpwk6lrruk0cvrexyq.webp]] Give a proper name to webhook (notifier application) and choose avatar URL for the same (Optional) ![[./resources/sending-circleci-job-notification-to-google-hangou.resources/1hxsgwb5jlwtdrf9uwzu06a.webp]] Copy webhook URL to clipboard : ) Follow https://github.com/OpenSocket/Google-Chat-CI-Bot for more updates: -)