Skip to content

Latest commit

 

History

History
72 lines (50 loc) · 2.21 KB

File metadata and controls

72 lines (50 loc) · 2.21 KB

Feedback Agent

Feedback Agent is an agent in Node.js built with Langbase, designed to assist in collecting and analyzing user feedback. It leverages the following core functionalities:

Features

  • 📝 Feedback Analysis

    • Sentiment Detection: Analyzes the sentiment of user feedback to determine the emotional tone.
    • Content Summarization: Summarizes feedback content to provide a concise overview.
  • 🤖 Automated Response Management

    • Response Decision: Determines if feedback requires a response based on its content and sentiment.
    • Escalation Message Creation: Generates escalation messages for human support when negative feedback is received.

Get started

Let's get started with the project:

  1. To get started with Langbase, you'll need to [create a free personal account on Langbase.com][signup] and verify your email address. Done? Cool, cool!

  2. Download and setup the project

    The following command:

    • Downloads the example project folder from here
    • Renames the folder to example-feedback-agent-node
    • Changes the directory to the project folder
    • Copies the .env.example file to .env in the project folder
    npx degit LangbaseInc/awesome-agents/feedback-agent feedback-agent &&
    cd feedback-agent &&
    cp .env.example .env
  3. Add the values of these environment variables to the .env file:

    # Get your org or user API key that can be used to access everything with Langbase.
    # https://langbase.com/docs/api-reference/api-keys
    LANGBASE_API_KEY="your-langbase-api-key"
    
  4. Install dependencies:

    pnpm install
    
    # OR
    npm install
  5. Run the feedback agent:

    pnpm dlx tsx index.ts
    
    # OR
    npx tsx index.ts

Project Structure

feedback-agent/
├── .env.example   # Environment variables example
├── .gitignore     # Git ignore
├── index.ts       # Feedback agent implementation
├── package.json   # Node.js package configuration and dependencies
└── readme.md      # Project documentation