Text Intelligence commands
Analyze text for sentiment, topics, summaries, and intents using the dg CLI.
Basic analysis
With no feature flag, dg read runs all four analyses: summary, sentiment, topics, and intents.
Analyze a file
Piped input
Language
-l (--language) sets the text’s language; it defaults to en.
Available features
Sentiment analysis
Returns overall document sentiment and its score.
Topic detection
Returns detected topics with confidence scores.
Summarization
Generates a brief summary of the content.
Intent recognition
Detects user intents within the text.
Full analysis
Output format
Without -o, dg read prints human-readable output. -o works before the subcommand (dg -o json read ...) or after it on most commands (dg read ... -o json). On dg speak, -o/--output after the subcommand still sets the output file path but is deprecated; use --out-file instead. On dg plugin and dg skills subcommands, put -o before the subcommand.
Use cases
Summarize transcripts
Pipe the transcript text, extracted from the JSON payload, into dg read: