Send chat message notifications from Tawk.to to Gmail
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.
Prerequisites
- Tawk.to account: You must have an active Tawk.to account with a configured live chat widget on your website.
- Gmail account: A Gmail account with API access enabled and configured in n8n for sending emails.
- n8n instance: Access to an n8n workflow automation instance where you will import and configure this workflow.
Step-by-Step Setup Instructions
1. Configure Tawk.to Webhook
- Log in to your Tawk.to dashboard.
- Navigate to Administration > Webhooks.
- Click Add Webhook and enter the following:
- URL: Your n8n webhook URL from the Receive Tawk.to Request node (e.g.,
https://your-n8n-instance.com/webhook/a4bf95cd-a30a-4ae0-bd2a-6d96e6cca3b4) - Method: POST
- Events: Select the chat message event (e.g.,
Visitor MessageorChat Message Received)
- URL: Your n8n webhook URL from the Receive Tawk.to Request node (e.g.,
- Save the webhook configuration.
2. Configure Gmail Credentials in n8n
- In your n8n instance, go to Credentials.
- Add a new Gmail OAuth2 credential:
- Follow Google's instructions to create a project, enable Gmail API, and obtain client ID and secret.
- Authenticate and authorize n8n to send emails via your Gmail account.
3. Import and Activate Workflow
- Import the provided workflow JSON into n8n.
- Verify the Receive Tawk.to Request webhook node path matches the webhook URL configured in Tawk.to.
- Enter the email address you want the alerts sent to in the Send alert email node’s
sendToparameter. - Activate the workflow.
Workflow Explanation
-
Receive Tawk.to Request:
This webhook node listens for POST requests from Tawk.to containing chat message data. -
Format the message:
Extracts relevant data from the incoming payload such as chat ID, visitor name, country, and message text, and assigns them to new fields for easy use downstream. -
Send alert email:
Uses Gmail node to send a notification email to your support team with all relevant chat details formatted in a clear, concise text email.
Customization Guidance
-
Email Recipient:
Update thesendTofield in the Send alert email node to specify your support team’s email address. -
Email Content:
Modify the message template in the Send alert email node’smessageparameter to suit your tone or include additional details like timestamps or chat URLs. -
Additional Processing:
You can extend the workflow by adding nodes for logging chats, triggering Slack notifications, or storing messages in a database.
By following these instructions, your support team will receive immediate email alerts whenever a new chat message arrives on your website, improving response times and customer satisfaction.
Send Chat Message Notifications from Tawk.to to Gmail
This n8n workflow simplifies the process of sending chat message notifications from Tawk.to to Gmail. It acts as an intermediary, receiving webhook notifications and then formatting and sending them as emails.
What it does
- Listens for Webhook Events: The workflow starts by exposing a webhook URL that Tawk.to can call whenever a new chat message or event occurs.
- Processes Incoming Data: The
Edit Fields (Set)node is included, though currently not configured, it provides a placeholder for potential future data manipulation, transformation, or filtering of the incoming Tawk.to payload before sending the email. - Sends Email via Gmail: The final step uses the Gmail node to send an email. This email would typically contain details extracted from the Tawk.to webhook payload, notifying the recipient about the chat message.
Prerequisites/Requirements
- n8n Instance: A running instance of n8n.
- Tawk.to Account: An active Tawk.to account configured to send webhook notifications.
- Gmail Account: A Gmail account with credentials configured in n8n for sending emails.
Setup/Usage
- Import the Workflow: Import the provided JSON into your n8n instance.
- Configure Webhook:
- Activate the
Webhooknode. - Copy the "Webhook URL" provided by the node.
- In your Tawk.to dashboard, navigate to the Webhooks settings and paste this URL as the endpoint for chat message notifications.
- Activate the
- Configure Gmail Credentials:
- Click on the
Gmailnode. - Add or select your Gmail API credentials. Ensure the credentials have permission to send emails.
- Configure the "To", "Subject", and "Body" fields of the email. You will likely want to use expressions to dynamically insert data from the Tawk.to webhook payload (e.g., chat message content, visitor name, etc.) into the email.
- Click on the
- Activate the Workflow: Once configured, activate the workflow.
Now, whenever a new chat message event occurs in Tawk.to, it will trigger this workflow, which will then send a notification email to the specified Gmail address.
Related Templates
Automate Gmail responses with GPT and human-in-the-loop verification
Try It Out! This n8n template uses AI to automatically respond to your Gmail inbox by drafting response for your approval via email. How it works Gmail Trigger monitors your inbox for new emails AI Analysis determines if a response is needed based on your criteria Draft Generation creates contextually appropriate replies using your business information Human Approval sends you the draft for review before sending Auto-Send replies automatically once approved Setup Connect your Gmail account to the Gmail Trigger node Update the "Your Information" node with: Entity name and description Approval email address Resource guide (FAQs, policies, key info) Response guidelines (tone, style, formatting preferences) Configure your LLM provider (OpenAI, Claude, Gemini, etc.) with API credentials Test with a sample email Requirements n8n instance (self-hosted or cloud) Gmail account with API access LLM provider API key Need Help? Email Nick @ nick@tropicflare.com
Automate job matching with Gemini AI, Decodo scraping & resume analysis to Telegram
AI Job Matcher with Decodo, Gemini AI & Resume Analysis Sign up for Decodo — get better pricing here Who’s it for This workflow is built for job seekers, recruiters, founders, automation builders, and data engineers who want to automate job discovery and intelligently match job listings against resumes using AI. It’s ideal for anyone building job boards, candidate matching systems, hiring pipelines, or personal job alert automations using n8n. What this workflow does This workflow automatically scrapes job listings from SimplyHired using Decodo residential proxies, extracts structured job data with a Gemini AI agent, downloads resumes from Google Drive, extracts and summarizes resume content, and surfaces the most relevant job opportunities. The workflow stores structured results in a database and sends real-time notifications via Telegram, creating a scalable and low-maintenance AI-powered job matching pipeline. How it works A schedule trigger starts the workflow automatically Decodo fetches job search result pages from SimplyHired Job card HTML is extracted from the page A Gemini AI agent converts raw HTML into structured job data Resume PDFs are downloaded from Google Drive Resume text is extracted from PDF files A Gemini AI agent summarizes key resume highlights Job and resume data are stored in a database Matching job alerts are sent via Telegram How to set up Add your Decodo API credentials Add your Google Gemini API key Connect Google Drive for resume access Configure your Telegram bot Set up your database (Google Sheets by default) Update the job search URL with your keywords and location Requirements Self-hosted n8n instance Decodo account (community node) Google Gemini API access Google Drive access Telegram Bot token Google Sheets or another database > Note: This template uses a community node (Decodo) and is intended for self-hosted n8n only. How to customize the workflow Replace SimplyHired with another job board or aggregator Add job–resume matching or scoring logic Extend the resume summary with custom fields Swap Google Sheets for PostgreSQL, Supabase, or Airtable Route notifications to Slack, Email, or Webhooks Add pagination or multi-resume processing
Track meal nutrition from meal photos with LINE, Google Gemini and Google Sheets
AI Meal Nutrition Tracker with LINE and Google Sheets Who's it for This workflow is designed for health-conscious individuals, fitness enthusiasts, and anyone who wants to track their daily food intake without manual calorie counting. It is best suited for users who want a simple, AI-powered meal logging system that analyzes food photos one at a time and provides instant nutritional feedback via LINE. What it does This workflow processes a single meal photo sent via LINE, analyzes it using Google Gemini AI to identify foods and estimate nutritional content, and stores the data in Google Sheets for tracking. The workflow focuses on simplicity and encouragement: it receives a meal image, performs AI-based food recognition, estimates calories and macronutrients, calculates a health score, provides personalized advice, and replies with a detailed nutritional breakdown on LINE. How it works A single meal photo is sent to the LINE bot. The workflow is triggered via a LINE webhook. The image file is downloaded and sent to Google Gemini AI for food analysis. The AI identifies foods and estimates nutritional values (calories, protein, carbs, fat, fiber). A health score (1-10) is calculated with personalized improvement tips. The data is appended to Google Sheets for meal history tracking. The image is uploaded to Google Drive for reference. A formatted nutritional report with advice is sent back as a LINE reply. This workflow is intentionally designed to handle one image per execution. Requirements To use this workflow, you will need: A LINE Messaging API account A Google Gemini API key A Google account with access to Google Sheets and Google Drive A Google Sheets document with the following column names: Date Time Meal Type Food Items Calories Protein (g) Carbs (g) Fat (g) Fiber (g) Health Score Advice Image URL Important limitations This workflow does not support multiple images sent in a single message. Sending images in quick succession may trigger multiple executions and lead to unexpected results. Only the first image in an event payload is processed. Nutritional values are AI estimates based on visual analysis and typical serving sizes. Accuracy depends on image quality, lighting, and food visibility. This tool should not replace professional dietary advice. These limitations are intentional to keep the workflow simple and easy to understand. How to set up Create a LINE Messaging API channel and obtain a Channel Access Token. Generate a Google Gemini API key. Update the Config node with your LINE token, Google Sheets ID, Google Drive folder ID, and daily calorie goal. Configure credentials for LINE, Google Gemini, Google Sheets, and Google Drive. Register the n8n webhook URL in your LINE channel settings. Activate the workflow in n8n and test it with a single meal photo. How to customize Modify the AI prompt in the "Analyze Meal with AI" node to support different languages or dietary frameworks (keto, vegan, etc.). Adjust the daily calorie goal in the Config node to match individual needs. Add additional nutritional fields such as sodium, sugar, or vitamins. Replace Google Sheets with a fitness app API or database. Integrate with other services to send daily/weekly nutrition summaries. --- Note: This workflow was tested using real meal photos sent individually via the LINE Messaging API. Nutritional estimates are approximations and may vary from actual values. For accurate dietary tracking, consult a registered dietitian.