Animated data flow diagram

AI Feedback Sentiment Analyzer & Mattermost Alerter

Version: 1.0.0 | Last Updated: 2025-05-16

Integrates with:

Typeform Google Cloud Natural Language Mattermost

Overview

Unlock Instant Feedback Insights with this AI Agent

This AI Agent acts as your automated feedback processor, connecting directly to your Typeform surveys. When new feedback is submitted, the agent employs Google Cloud Natural Language's powerful sentiment analysis ability to understand the emotion and intensity behind the words. If the sentiment is determined to be positive (or meets a threshold you define), it instantly alerts a designated Mattermost channel with the feedback details and score. This allows your team to celebrate wins, quickly engage with happy customers, or identify positive trends without manual sifting.

Key Features & Benefits

  • Automated Feedback Ingestion: Seamlessly pulls new responses from your Typeform forms.
  • AI-Powered Sentiment Analysis: Leverages Google Cloud Natural Language to accurately determine the sentiment (positive, negative, neutral) and magnitude of feedback.
  • Intelligent Alerting: Notifies your team on Mattermost only when feedback meets specific criteria (e.g., high positive sentiment), reducing noise.
  • Real-time Actionable Insights: Enables swift responses to customer feedback, fostering engagement and demonstrating attentiveness.
  • Customizable Thresholds: Easily configure the sentiment score that triggers Mattermost notifications via the IF node.
  • Streamlined Workflow: Saves significant time by automating the manual process of reading, analyzing, and routing feedback.

Use Cases

  • B2C E-commerce: Instantly identify highly satisfied customers from post-purchase surveys and alert the marketing team on Mattermost to request reviews or testimonials.
  • B2B SaaS: Monitor sentiment from feature request forms; positive feedback on new features can be shared with the product team via Mattermost for validation and morale.
  • Event Management: Quickly gauge attendee satisfaction from Typeform event feedback and share positive comments with organizers on Mattermost.
  • Product Teams: Automatically flag positive user feedback from beta testing programs for quick wins and team motivation, shared instantly via Mattermost.

Prerequisites

  • An n8n instance (Cloud or self-hosted).
  • Typeform account and API credentials.
  • Google Cloud Platform account with Natural Language API enabled and credentials (e.g., OAuth2).
  • Mattermost instance and API credentials.
  • A Typeform form designed to collect feedback, with a specific field for open-text responses (e.g., 'What did you think about the event?').

Setup Instructions

  1. Download the n8n workflow JSON file.
  2. Import the workflow into your n8n instance.
  3. Configure the 'Typeform Trigger' node: Select your Typeform API credentials and specify the Form ID you want to monitor.
  4. Configure the 'Google Cloud Natural Language' node: Select your Google Cloud Natural Language API credentials. Ensure the content parameter correctly maps to your feedback field from Typeform (e.g., ={{$node["Typeform Trigger"].json["What did you think about the event?"]}} – update the field name if yours is different).
  5. Adjust the 'IF' node: Modify the condition to set your desired sentiment score threshold for triggering a Mattermost notification. For example, to trigger on scores greater than 0.25 (positive sentiment), set a number condition: Value 1: {{$node["Google Cloud Natural Language"].json["documentSentiment"]["score"]}}, Operation: Larger Than, Value 2: 0.25.
  6. Configure the 'Mattermost' node: Select your Mattermost API credentials and set the channelId for notifications. Customize the message content using expressions to include feedback details and sentiment score (e.g., You got new positive feedback (Score: {{$node["Google Cloud Natural Language"].json["documentSentiment"]["score"]}}) for '{{$json["form_response"]["definition"]["title"]}}': {{$node["Typeform Trigger"].json["What did you think about the event?"]}}).
  7. Verify that the field name used in the 'Google Cloud Natural Language' node (step 4) and 'Mattermost' node (step 6) exactly matches the relevant question title in your Typeform form.
  8. Activate the workflow.

Tags:

AI AgentSentiment AnalysisFeedback AutomationGoogle CloudTypeformMattermostNLPCustomer ExperienceAutomation

Want your own unique AI agent?

Talk to us - we know how to build custom AI agents for your specific needs.

Schedule a Consultation