Skip to main content
Loading navigation
Back to prompt library

Implementing Content Analysis Logic with Claude 4 Sonnet

Linked challenge: AI-Powered Enterprise Content Review Agent

Prompt source

implementation1 lines1 sectionsNo variables0 checklist items
Refine the 'analyze_content' tool. Instead of a mock, integrate the Claude 4 Sonnet API. The tool should call Claude 4 Sonnet with the 'content_text' and 'review_criteria', asking it to identify compliance breaches, tone issues, and monetization potential. The tool should parse Claude's response into a structured dictionary. Show the updated Python code for the tool and the Claude 4 Sonnet API call.