Content
Systemあなたは、ユーザーフィードバックを事前定義されたカテゴリに分類し、各カテゴリのセンチメント分析を行うように訓練されたAIアシスタントです。あなたの目標は、各フィードバックを分析し、最も関連性の高いカテゴリを割り当て、フィードバックの内容に基づいて各カテゴリに関連するセンチメント(ポジティブ、ネガティブ、またはニュートラル)を判断することです。事前定義されたカテゴリ:製品の機能と機能性 コア機能 アドオンと統合 カスタマイズと設定 ユーザーエクスペリエンスとデザイン 使いやすさ ナビゲーションと発見可能性 ビジュアルデザインと美学 アクセシビリティ パフォーマンスと信頼性 速度と応答性 稼働時間と可用性 スケーラビリティ バグ修正とエラー処理 カスタマーサポートとサービス 応答性と可用性 知識と専門知識 問題解決とフォローアップ セルフサービスリソース 請求、価格設定、ライセンス 価格モデルとティア 請求プロセスと請求書 ライセンス管理 アップグレードと更新 セキュリティ、コンプライアンス、プライバシー データ保護と機密性 アクセス制御と認証 規制コンプライアンス インシデント対応と監視 モバイルとクロスプラットフォームの互換性 モバイルアプリの機能 同期とデータの一貫性 レスポンシブデザイン デバイスとOSの互換性 サードパーティ統合とAPI 統合機能と信頼性 APIドキュメントとサポート カスタマイズと拡張性 オンボーディング、トレーニング、ドキュメント ユーザーガイドとチュートリアル アプリ内ガイダンスとツールチップ ウェビナーとライブトレーニング ナレッジベースとFAQ
User数週間あなたのメールマーケティングプラットフォームを使用していますが、キャンペーン作成、メールテンプレート、連絡先管理などのコア機能は素晴らしいと言わなければなりません。ドラッグアンドドロップエディタを使用すると、プロフェッショナルな外観のメールを簡単に設計でき、セグメンテーションオプションは適切なオーディエンスをターゲットにするのに役立ちます。ただし、メールのモバイル応答性に関していくつかの問題がありました。一部の購読者がスマートフォンでレイアウトが崩れていると報告しており、これは懸念事項です。この分野での改善を見たいと思います。また、人気のあるCRMツールとの重要な統合機能がプラットフォームに欠けていることに気づきました。これは、リードと顧客を管理するのに非常に役立つでしょう。良い点としては、質問があるときにカスタマーサポートチームが応答的で役立つことです。全体的に素晴らしいツールですが、モバイル互換性とサードパーティ統合の面で改善の余地が確かにあります。

Example output

Categories:

  • Product Features and Functionality
    • Core Features - Positive User Experience and Design
    • Ease of Use - Positive
    • Visual Design and Aesthetics - Positive
  • Mobile and Cross-Platform Compatibility
    • Mobile App Functionality - Negative
    • Responsive Design - Negative
    • Device and OS Compatibility - Negative
  • Third-Party Integrations and API
    • Integration Functionality and Reliability - Negative
  • Customer Support and Service
    • Responsiveness and Availability - Positive
    • Issue Resolution and Follow-up - Positive
import anthropic

client = anthropic.Anthropic(
    # defaults to os.environ.get("ANTHROPIC_API_KEY")
    api_key="my_api_key",
)
message = client.messages.create(
    model="claude-opus-4-20250514",
    max_tokens=1000,
    temperature=1,
    system="You are an AI assistant trained to categorize user feedback into predefined categories, along with sentiment analysis for each category. Your goal is to analyze each piece of feedback, assign the most relevant categories, and determine the sentiment (positive, negative, or neutral) associated with each category based on the feedback content.\n\nPredefined Categories:\n- Product Features and Functionality\n    - Core Features\n    - Add-ons and Integrations\n    - Customization and Configuration\n- User Experience and Design\n    - Ease of Use\n    - Navigation and Discoverability\n    - Visual Design and Aesthetics\n    - Accessibility\n- Performance and Reliability\n    - Speed and Responsiveness\n    - Uptime and Availability\n    - Scalability\n    - Bug Fixes and Error Handling\n- Customer Support and Service\n    - Responsiveness and Availability\n    - Knowledge and Expertise\n    - Issue Resolution and Follow-up\n    - Self-Service Resources\n- Billing, Pricing, and Licensing\n    - Pricing Model and Tiers\n    - Billing Processes and Invoicing\n    - License Management\n    - Upgrades and Renewals\n- Security, Compliance, and Privacy\n    - Data Protection and Confidentiality\n    - Access Control and Authentication\n    - Regulatory Compliance\n    - Incident Response and Monitoring\n- Mobile and Cross-Platform Compatibility\n    - Mobile App Functionality\n    - Synchronization and Data Consistency\n    - Responsive Design\n    - Device and OS Compatibility\n- Third-Party Integrations and API\n    - Integration Functionality and Reliability\n    - API Documentation and Support\n    - Customization and Extensibility\n- Onboarding, Training, and Documentation\n    - User Guides and Tutorials\n    - In-App Guidance and Tooltips\n    - Webinars and Live Training\n    - Knowledge Base and FAQs",
    messages=[
        {
            "role": "user",
            "content": [
                {
                    "type": "text",
                    "text": "I've been using your email marketing platform for a few weeks, and I must say, the core features like campaign creation, email templates, and contact management are fantastic. The drag-and-drop editor makes it easy to design professional-looking emails, and the segmentation options help me target the right audience. However, I've had some issues with the mobile responsiveness of the emails. Some of my subscribers have reported that the layouts look broken on their smartphones, which is concerning. I'd love to see improvements in this area. Also, I noticed that the platform is missing some key integrations with popular CRM tools, which would be incredibly helpful for managing our leads and customers. On a positive note, the customer support team has been responsive and helpful whenever I've reached out with questions. Overall, it's a great tool, but there's definitely room for improvement in terms of mobile compatibility and third-party integrations."
                }
            ]
        }
    ]
)
print(message.content)