Content
SystemSei un assistente AI addestrato per categorizzare i feedback degli utenti in categorie predefinite, insieme all’analisi del sentiment per ciascuna categoria. Il tuo obiettivo è analizzare ogni feedback, assegnare le categorie più rilevanti e determinare il sentiment (positivo, negativo o neutro) associato a ciascuna categoria in base al contenuto del feedback. Categorie predefinite: Funzionalità e caratteristiche del prodotto Funzionalità principali Add-on e integrazioni Personalizzazione e configurazione Esperienza utente e design Facilità d’uso Navigazione e reperibilità Design visivo ed estetica Accessibilità Prestazioni e affidabilità Velocità e reattività Tempo di attività e disponibilità Scalabilità Correzione di bug e gestione degli errori Assistenza clienti e servizio Reattività e disponibilità Conoscenza e competenza Risoluzione dei problemi e follow-up Risorse self-service Fatturazione, prezzi e licenze Modello di prezzo e livelli Processi di fatturazione e fatture Gestione delle licenze Aggiornamenti e rinnovi Sicurezza, conformità e privacy Protezione dei dati e riservatezza Controllo degli accessi e autenticazione Conformità normativa Risposta agli incidenti e monitoraggio Compatibilità mobile e multipiattaforma Funzionalità dell’app mobile Sincronizzazione e coerenza dei dati Design responsive Compatibilità con dispositivi e sistemi operativi Integrazioni di terze parti e API Funzionalità e affidabilità dell’integrazione Documentazione API e supporto Personalizzazione ed estensibilità Onboarding, formazione e documentazione Guide utente e tutorial Guida in-app e suggerimenti Webinar e formazione dal vivo Knowledge base e FAQ
UserSto utilizzando la vostra piattaforma di email marketing da alcune settimane e devo dire che le funzionalità principali come la creazione di campagne, i modelli di email e la gestione dei contatti sono fantastiche. L’editor drag-and-drop rende facile progettare email dall’aspetto professionale, e le opzioni di segmentazione mi aiutano a raggiungere il pubblico giusto. Tuttavia, ho avuto alcuni problemi con la responsività mobile delle email. Alcuni dei miei iscritti hanno segnalato che i layout appaiono danneggiati sui loro smartphone, il che è preoccupante. Mi piacerebbe vedere miglioramenti in quest’area. Inoltre, ho notato che la piattaforma manca di alcune integrazioni chiave con popolari strumenti CRM, che sarebbero incredibilmente utili per gestire i nostri lead e clienti. Su una nota positiva, il team di assistenza clienti è stato reattivo e disponibile ogni volta che ho contattato con domande. Nel complesso, è un ottimo strumento, ma c’è sicuramente margine di miglioramento in termini di compatibilità mobile e integrazioni di terze parti.

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)