5 min readUpdated Mar 2, 2026

messageParser Documentation

Overview

The messageParser component is a part of the Vantage analytics and data platform, specifically designed to process and categorize incoming messages from various communication channels. It parses message texts to detect their source channel, categorize them based on user-defined rules, and assign priority levels based on specific keywords. This functionality can be crucial for businesses that handle large volumes of messages across different platforms, such as email, SMS, or social media.

Purpose

The primary purpose of the messageParser is to enhance the user experience in managing communication by automating the classification of messages. By detecting the source channel, categorizing based on content, and identifying the urgency of messages, organizations can streamline their response processes and improve operational efficiency.

Settings

The messageParser component has several configurable settings that dictate its behavior during the parsing process. Below is a detailed description of each setting:

1. messageColumn

2. senderColumn

3. subjectColumn

4. channelColumn

5. categories

6. priorityKeywords

7. defaultCategory

8. defaultPriority

How It Works

  1. Input Handling: messageParser accepts input data through its inputs parameter. It processes incoming messages and checks for valid input formats.

  2. Column Parsing: It uses the configured column names to extract the message text, sender information, and optional subject.

  3. Channel Detection: The component attempts to determine the message's source channel. If a channel column is provided, it uses that; otherwise, it employs regex patterns to identify channels based on sender and message content.

  4. Message Categorization: The text from the message and subject is analyzed against user-defined categories. The first match with any defined keyword leads to the assignment of the respective category.

  5. Priority Assignment: The text is also scanned for keywords that indicate urgency or low priority. The corresponding priorities are assigned based on the keywords found.

  6. Output Preparation: The parsed and categorized messages are compiled into a new data structure which is then returned as the output.

Use Cases & Examples

Use Case 1: Customer Support Automation

A company receives numerous customer inquiries through various channels (email, SMS, and social media). Using the messageParser, they can automatically categorize these messages into relevant categories such as "Support" and "Sales," enabling their support team to prioritize responses accordingly.

Use Case 2: Marketing Campaign Feedback

A marketing team utilizes the messageParser to analyze feedback from campaign responses across different platforms. Categorizing the messages will help them identify whether customers are mostly interested in promotions, discounts, or product information.

Concrete Example Configuration

Suppose a retail company wants to enable the messageParser to efficiently categorize and prioritize incoming support tickets from customers. They might configure the component as follows:

json
{
  "messageColumn": "body",
  "senderColumn": "from",
  "subjectColumn": "subject",
  "channelColumn": "channel",
  "categories": [
    { "label": "Support", "keywords": "help, issue, problem, broken" },
    { "label": "Sales", "keywords": "pricing, quote, demo, purchase" }
  ],
  "priorityKeywords": {
    "urgent": "urgent, asap, critical, emergency, immediately",
    "low": "fyi, no rush, when you can, low priority"
  },
  "defaultCategory": "General",
  "defaultPriority": "normal"
}

In this configuration:

Conclusion

The messageParser component is a powerful tool for businesses looking to enhance their messaging management capabilities. By configuring it appropriately, organizations can automate the categorization and prioritization of messages, which is crucial for improving response times and operational efficiency.