@closedloop-ai/cli
v0.2.4
Published
ClosedLoop AI CLI - AI-powered customer product feedback analysis tool
Downloads
69
Maintainers
Readme
ClosedLoop AI CLI
Transform scattered customer product feedback into actionable strategic insights with AI-powered analysis
🎯 The Problem You're Solving
Product teams are drowning in scattered product feedback from multiple channels:
- Support tickets scattered across Zendesk, Intercom, and email
- Sales and customer success call insights buried in transcripts
- User surveys and feedback forms in different tools
- Social media mentions and app store reviews
- Internal team discussions in Slack
The result? Critical customer product feedback get lost, patterns go unnoticed, and product decisions are made without data.
✨ How ClosedLoop AI CLI Solves This
Transform chaos into clarity with autonomous AI that:
- 🔍 Discovers Hidden Patterns - AI finds insights humans would miss across all your feedback sources
- ⚡ Real-Time Analysis - Get instant insights as new customer product feedback comes in
- 📊 Strategic Intelligence - Convert customer voice into actionable product decisions
- 🎯 Revenue Impact - Quantify the business value of each customer feedback
- 🔄 Source Agnostic - Works with any data source through flexible APIs
🚀 Quick Start
Installation
# Install globally for CLI usage
npm install -g @closedloop-ai/cliGet Your API Key
- Visit https://closedloop.sh
- Sign up for a free account (100,000 credits every month included!)
- Generate your API key
- Configure the CLI:
cl config set --api-key your-api-key-hereSet Your Product Website (Important!)
Configure your product's website URL to help ClosedLoop understand your product context:
cl team website "https://yourproduct.com/feature"Why this matters: ClosedLoop AI uses your product URL to learn about your product features, competitors, pricing, and positioning. This enables more accurate feedback attribution and product-specific insights. For example, if you're working on iPhone, use https://apple.com/iphone - this helps ClosedLoop AI understand that "camera quality" feedback is about iPhone cameras, not just any camera.
Ingest Your First Customer Feedback
# Ingest raw customer feedback for AI analysis
cl ingest "The new dashboard is confusing and hard to navigate. I can't find the settings menu and the layout is cluttered."
# Wait for AI to analyze and generate structured insights
cl ingest "Customer complaint about performance issues" --wait
# View all AI-generated customer product feedback
cl insight
# Get detailed analysis of a specific insight
cl insight 2ea8f556-052b-4f5c-bf86-833780b3d00d🎯 Perfect For
Customer Success Teams
- Stop losing critical insights buried in support tickets
- Identify patterns across customer conversations
- Proactive customer success with early warning signals
- Data-driven customer health scoring
Product Managers
- Prioritize features based on real customer needs
- Quantify business impact of product decisions
- Track feature adoption and customer satisfaction
- Competitive intelligence from customer feedback
Business Analysts
- Strategic insights from customer behavior patterns
- Revenue impact analysis of customer feedback
- Market intelligence and trend analysis
- ROI calculations for product investments
📖 CLI Commands
Ingest Customer Feedback
# Basic ingestion
cl ingest "The app crashes when I try to upload large files"
# With metadata for better analysis
cl ingest "Great product, love the new features!" \
--title "Positive Feedback" \
--customer "customer-456" \
--name "Jane Smith" \
--email "[email protected]" \
--url "https://support.example.com/ticket/789"
# Wait for AI analysis to complete
cl ingest "Customer complaint about performance" --waitView AI-Generated Customer Product Feedback
# List all structured insights
cl insight
# View specific insight details
cl insight <insight-id>
# Get JSON output for scripting
cl insight --json | jq '.data[0].title'Manage Your Data
# List all customer feedback ingested
cl ingest
# View specific feedback details
cl ingest <feedback-id>
# Check processing status
cl ingest <feedback-id> --status🔧 Configuration
The CLI stores configuration in ~/.closedloop/config.json:
{
"apiKey": "your-api-key-here"
}Environment Variables (Advanced)
For developers and CI/CD systems, you can also set your API key as an environment variable instead of using the config file:
# Set the API key as an environment variable
export CLOSEDLOOP_API_KEY="your-api-key-here"
# Now you can use the CLI without running 'cl config set'
cl input "Customer feedback here"When to use this:
- CI/CD pipelines: Set the API key in your deployment environment
- Docker containers: Pass the API key as an environment variable
- Server scripts: When running automated scripts on servers
- Multiple users: When different users need different API keys on the same machine
Note: The CLI will automatically use the environment variable if it's set, otherwise it falls back to the config file.
💡 Simple Workflow
Here's how to get started with ClosedLoop AI CLI:
# 1. Set your API key
cl config set --api-key your-api-key-here
# 2. Set your product website (helps AI understand your product)
cl team website "https://yourproduct.com/feature"
# 3. Ingest customer feedback
cl ingest "The new dashboard is confusing and hard to navigate"
# 4. Check what feedback you've ingested
cl ingest
# 5. View AI analysis of your feedback
cl insight
# 6. Get details on specific feedback
cl insight <insight-id>That's it! ClosedLoop AI will automatically analyze your feedback and provide actionable insights.
📚 Documentation
- Complete CLI Commands Reference - All commands, parameters, and examples
- Contributing Guide - Development and contribution guidelines
🎯 Why This Matters
Before ClosedLoop AI CLI
- ❌ Scattered feedback across 5+ different tools
- ❌ Manual analysis taking 20+ hours per week
- ❌ Missed patterns and critical insights
- ❌ Reactive decisions based on incomplete data
- ❌ Lost revenue from unaddressed customer needs
After ClosedLoop AI CLI
- ✅ Unified intelligence from all feedback sources
- ✅ Automated analysis with AI pattern recognition
- ✅ Proactive insights delivered in real-time
- ✅ Data-driven decisions with quantified business impact
- ✅ Increased revenue from better customer understanding
📊 Business Impact
- 80% faster analysis time (from 20 hours to 4 hours per week)
- 40% faster feature prioritization decisions
- 25% increase in customer satisfaction scores
- 35% increase in feature adoption rates
- 50% reduction in failed feature launches
🧪 Development
Prerequisites
- Node.js 16+
- npm or yarn
- TypeScript 5+
Setup
# Clone the repository
git clone https://github.com/closed-loop-ai/mcp-client.git
cd mcp-client
# Install dependencies
npm install
# Build the CLI
npm run build:cli
# Run tests
npm test🤝 Contributing
We welcome contributions! Please see our Contributing Guide for details.
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
🔗 Links
- Platform: https://closedloop.sh
- Documentation: https://docs.closedloop.sh
- GitHub Issues: https://github.com/closed-loop-ai/closedloop-cli/issues
- NPM Package: https://www.npmjs.com/package/@closedloop-ai/cli
🆘 Support
- Documentation: Check our docs
- Issues: Report bugs on GitHub Issues
- Discussions: Join our GitHub Discussions
- Email: [email protected]
Made with ❤️ by ClosedLoop AI
Transform customer product feedback chaos into strategic product decisions with AI-powered insights.
