Psychology AI - DeepSeek

Psychology AI System - Interact with DeepSeek AI API for psychology content analysis and generation

Overview

The node "Psychology AI - DeepSeek" integrates with the DeepSeek AI API to perform advanced psychology-related content processing. Specifically, for the Content Analysis operation, it analyzes provided text content to extract meaningful psychological insights. This includes assessing quality, sentiment, readability, topics, or a comprehensive combination of these metrics.

This node is beneficial in scenarios such as:

  • Evaluating the scientific accuracy and relevance of psychology articles.
  • Understanding the emotional tone and sentiment behind psychological texts.
  • Measuring how accessible and readable psychology content is for target audiences.
  • Extracting key topics and keywords from psychology-related documents.
  • Generating a full, structured analysis report combining multiple aspects.

Practical examples:

  • A psychologist wanting to assess the quality and impact of their published article.
  • A content marketer analyzing audience sentiment on psychology blog posts.
  • An educator checking if learning materials are appropriately complex for students.
  • Researchers extracting main themes from large volumes of psychology literature.

Properties

Name Meaning
Model The AI model used for analysis:
• DeepSeek Chat
• DeepSeek Coder
Content to Analyze The psychology-related text content to be analyzed. Paste the full article or text here.
Analysis Type The type of analysis to perform:
• Quality Assessment — evaluates content quality, relevance, and scientific accuracy
• Sentiment Analysis — analyzes emotional tone and sentiment
• Readability Analysis — assesses readability and complexity
• Topic Extraction — extracts main topics and keywords
• Comprehensive Analysis — performs all above analyses combined
Advanced Options Additional parameters controlling AI behavior:
• Temperature — randomness level in response (0 deterministic to 2 very random)
• Max Tokens — max tokens generated in response
• Timeout (seconds) — request timeout duration
• Max Retries — number of retry attempts on failure
• System Message — custom system prompt to set AI context and behavior
Additional Output Optional output controls:
• Include Usage Statistics — include token usage and cost info
• Include Response Metadata — include full raw API response metadata
• Validate JSON Response — automatically validate and parse JSON responses

Output

The node outputs a JSON object containing the structured analysis results based on the selected analysis type:

  • For Quality Assessment, fields like relevance_score, mass_appeal, scientific_quality, adaptation_difficulty, overall_quality, plus arrays of strengths, weaknesses, and recommendations.
  • For Sentiment Analysis, fields like sentiment_score, emotional_tone, confidence, key_emotions, and emotional_intensity.
  • For Readability Analysis, fields like readability_score, complexity_level, avg_sentence_length, difficult_words_ratio, target_audience, and improvements.
  • For Topic Extraction, fields like main_topics, keywords, psychology_domains, confidence, and related_concepts.
  • For Comprehensive Analysis, a nested JSON combining all above categories plus recommendations for content improvements and optimization notes.

If enabled, additional output may include:

  • Token usage and cost statistics.
  • Full API response metadata.
  • Validated and parsed JSON data.

The node does not output binary data.

Dependencies

  • Requires an active connection to the DeepSeek AI API via an API key credential configured in n8n.
  • Network access to DeepSeek endpoints.
  • Proper configuration of timeout and retry settings to handle API responsiveness.

Troubleshooting

  • Common Issues:

    • Invalid or missing API credentials will cause authentication failures.
    • Large content inputs exceeding token limits may result in truncated or failed responses.
    • Network timeouts if the API is slow or unreachable.
    • Malformed JSON responses if the AI output deviates from expected format.
  • Error Messages:

    • "Unknown operation": Occurs if an unsupported operation value is set; ensure "contentAnalysis" is selected.
    • API request errors: Check API key validity, network connectivity, and rate limits.
    • JSON validation errors: If enabled, the node validates JSON responses; invalid JSON will throw errors—consider disabling validation or adjusting prompts.
  • Resolutions:

    • Verify API credentials and permissions.
    • Reduce input content size or increase max tokens cautiously.
    • Adjust timeout and retry parameters to improve reliability.
    • Customize system messages to guide AI towards consistent JSON formatting.

Links and References

Discussion