5 min readUpdated Mar 2, 2026

Vantage Formatter Logic Documentation

Purpose

The formatter is a general-purpose data formatting transformer in the Vantage analytics platform. It leverages AI to convert and reshape upstream data into various target formats, including emails, chat messages, reports, executive briefs, bullet points, JSON structures, or custom outputs. This versatility makes it an essential tool for organizations that require data presentation in different formats, enhancing communication, reporting, and decision-making processes.

Settings

The formatter has several configurable settings that allow customization of its behavior. Below is a detailed description of each setting:

1. outputMode

2. tone

3. promptTemplate

4. maxRows

How It Works

  1. Input Handling: The formatter accepts input data and unwraps it. If the input is in an unexpected format, it attempts to normalize it for processing.
  2. Data Validation: Checks whether the data is in a valid array format and contains rows. If data is missing or invalid, it returns a predefined error message.
  3. Configuration: It reads its configuration settings to determine the output mode, tone, prompt template, and the number of rows to process.
  4. Prompt Creation: Builds a prompt for the AI model based on the selected output mode and other settings. It incorporates a tone instruction and replaces any placeholders in the template with actual data.
  5. AI Integration: The formatter retrieves the preferred AI integration and sends the prompt to the AI service for processing.
  6. Response Handling: Parses the AI response, ensuring it is in valid JSON format. If there are issues in the response or parsing process, error messages are returned with context information.
  7. Output Generation: Constructs the final output, appending metadata such as the output mode and row count for user reference.

Data Expectations

The formatter expects data to be provided in the following format:

Use Cases & Examples

Use Cases

  1. Business Communication:

    • Scenario: A sales team needs to quickly summarize client feedback into a structured email format for distribution to key stakeholders.
    • Configuration Example:
      • outputMode: "email"
      • tone: "professional"
      • maxRows: 10
  2. Performance Reporting:

    • Scenario: A manager requires a structured report outlining employee performance metrics for quarterly review.
    • Configuration Example:
      • outputMode: "report"
      • tone: "formal"
      • maxRows: 50
  3. Project Updates:

    • Scenario: Team leads want to communicate status updates in a concise format suitable for a messaging platform like Slack.
    • Configuration Example:
      • outputMode: "message"
      • tone: "friendly"
      • maxRows: 5

Detailed Example

Business Communication Use Case:

To convert client feedback into a structured business email, the formatter would be configured as follows:

json
{
  "inputs": {
    "input1": [
      { "client": "Company A", "feedback": "Great service!", "follow_up": "Yes" },
      { "client": "Company B", "feedback": "Needs improvement.", "follow_up": "No" }
    ]
  },
  "config": {
    "outputMode": "email",
    "tone": "professional",
    "promptTemplate": "",
    "maxRows": 10
  },
  "context": {
    "clientId": "123",
    "userId": "456"
  }
}

In this example, the formatter will generate a professional email summarizing the feedback received from clients, formatted appropriately for business communication.