AutomationFlowsEmail & Gmail › Send Chat Message Notifications From Tawk.to to Gmail

Send Chat Message Notifications From Tawk.to to Gmail

BySarfaraz Muhammad Sajib @sarfarazmuhammad on n8n.io

This automation workflow captures incoming chat messages from your Tawk.to live chat widget and sends alert emails via Gmail to notify your support team instantly. It is designed to help you respond promptly to visitors and improve your customer support experience. Tawk.to…

Webhook trigger★☆☆☆☆ complexity3 nodesGmail
Email & Gmail Trigger: Webhook Nodes: 3 Complexity: ★☆☆☆☆ Added:

This workflow corresponds to n8n.io template #6024 — we link there as the canonical source.

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "id": "yDUWltdKzcyL7PJD",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "name": "Tawk.to Chat to Gmail Alert Automation in n8n",
  "tags": [],
  "nodes": [
    {
      "id": "ae1e6f64-3e83-4aaf-bf4b-a10df03f270c",
      "name": "Receive Tawk.to Request",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -620,
        -360
      ],
      "parameters": {
        "path": "a4bf95cd-a30a-4ae0-bd2a-6d96e6cca3b4",
        "options": {},
        "httpMethod": "POST"
      },
      "typeVersion": 2
    },
    {
      "id": "f342fac4-9c57-4717-8e92-f37664aabc4c",
      "name": "Format the message",
      "type": "n8n-nodes-base.set",
      "position": [
        -400,
        -360
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "1562e142-b34a-4823-afec-a3073c88d348",
              "name": "chat_id",
              "type": "string",
              "value": "={{ $json.body.chatId }}"
            },
            {
              "id": "38edc953-5924-4a1b-821a-7146cea02c6e",
              "name": "visitor_country",
              "type": "string",
              "value": "={{ $json.body.visitor.country }}"
            },
            {
              "id": "a7aae533-a46e-40ac-9dda-19d79314580a",
              "name": "visitor_name",
              "type": "string",
              "value": "={{ $json.body.visitor.name }}"
            },
            {
              "id": "917b2c1b-711b-4349-adc3-869d3330177a",
              "name": "message",
              "type": "string",
              "value": "={{ $json.body.message.text }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "32cd7e5e-c374-4725-95bc-9cdad748d38a",
      "name": "Send alert email",
      "type": "n8n-nodes-base.gmail",
      "position": [
        -180,
        -360
      ],
      "parameters": {
        "sendTo": "",
        "message": "=Hi Team,\n\nYou have received a new chat message.\n\nChat ID: {{$json.chat_id}}\nVisitor Name: {{$json.visitor_name}}\nVisitor Country: {{$json.visitor_country}}\n\nMessage:\n{{$json.message}}\n\nPlease respond promptly.\n\nBest regards,\nYour Support Bot\n",
        "options": {},
        "subject": "=Support Alert: New Chat from {{ $json.visitor_name }} ({{ $json.visitor_country }})",
        "emailType": "text"
      },
      "typeVersion": 2.1
    }
  ],
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "a8802e9e-e31d-4179-9d73-cd629f9dfb6e",
  "connections": {
    "Send alert email": {
      "main": [
        []
      ]
    },
    "Format the message": {
      "main": [
        [
          {
            "node": "Send alert email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Receive Tawk.to Request": {
      "main": [
        [
          {
            "node": "Format the message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

This automation workflow captures incoming chat messages from your Tawk.to live chat widget and sends alert emails via Gmail to notify your support team instantly. It is designed to help you respond promptly to visitors and improve your customer support experience. Tawk.to…

Source: https://n8n.io/workflows/6024/ — original creator credit. Request a take-down →

More Email & Gmail workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

Email & Gmail

Receive a URL via Webhook, submit it to urlscan.io, wait ~30 seconds for artifacts (e.g., screenshot), then email a clean summary with links to the result page, screenshot, and API JSON. Ingests a URL

Url Scan Io, Gmail
Email & Gmail

Send-Draft. Uses gmail, googleDrive, telegram. Webhook trigger; 6 nodes.

Gmail, Google Drive, Telegram
Email & Gmail

Google Sheet Watch Changes. Uses gmail, httpRequest. Webhook trigger; 5 nodes.

Gmail, HTTP Request
Email & Gmail

LUMIO — High Risk Alert (Parent). Uses gmail. Webhook trigger; 5 nodes.

Gmail
Email & Gmail

LUMIO — Focus Alert (Teacher). Uses gmail. Webhook trigger; 4 nodes.

Gmail