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:
-
📝 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.
Let's get started with the project:
-
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!
-
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
-
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" -
Install dependencies:
pnpm install # OR npm install -
Run the feedback agent:
pnpm dlx tsx index.ts # OR npx tsx index.ts
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