Text Intelligence Commands

Analyze text for sentiment, topics, summaries, and intents using the dg CLI.

Basic Analysis

$dg read document.txt

Analyze a URL

$dg read https://example.com/article.txt

Piped Input

$cat transcript.txt | dg read
$echo "Your text here" | dg read

Available Features

Sentiment Analysis

$dg read document.txt --sentiment

Output includes sentiment per sentence and overall document sentiment.

Topic Detection

$dg read document.txt --topics

Returns detected topics with confidence scores.

Summarization

$dg read document.txt --summarize

Generates a brief summary of the content.

Intent Recognition

$dg read document.txt --intents

Detects user intents within the text.

Full Analysis

$dg read document.txt --sentiment --topics --summarize --intents

Output Format

$dg read document.txt -o json # JSON (structured)
$dg read document.txt -o yaml # YAML
$dg read document.txt -o table # ASCII table
$dg read document.txt -o text # Plain text

Use Cases

Summarize Transcripts

$dg listen meeting.mp3 | dg read --summarize

Analyze Customer Feedback

$dg read feedback.txt --sentiment --topics