Use Deepgram text intelligence from Rust: summarization, sentiment, topics, and intents for plain text via the /v1/read API. Covers the typed client behind the `read` Cargo feature.
Ships in deepgram-rust-sdk. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use this skill when the request is about summarization, sentiment, topics, or intents for text input rather than audio.
/v1/read API.Text intelligence lives behind the read Cargo feature. It is HTTP-only, so it
needs none of the WebSocket dependencies the listen and speak features pull
in and can be enabled on its own.
[dependencies]
deepgram = { version = "0.12", default-features = false, features = ["read"] }
tokio = { version = "1", features = ["full"] }
read is also part of the crate's default features, so a plain
cargo add deepgram includes it.
use deepgram::Deepgram;
let dg_client = Deepgram::new(&std::env::var("DEEPGRAM_API_KEY")?)?;
let text_intelligence = dg_client.text_intelligence();
use deepgram::{read::options::Options, Deepgram, DeepgramError};
#[tokio::main]
async fn main() -> Result<(), DeepgramError> {
let api_key = std::env::var("DEEPGRAM_API_KEY").expect("DEEPGRAM_API_KEY");
let dg_client = Deepgram::new(&api_key)?;
let options = Options::builder()
.sentiment(true)
.summarize(true)
.topics(true)
.intents(true)
.build();
let response = dg_client
.text_intelligence()
.analyze_text(
"Customer is asking to cancel the subscription next month.",
&options,
)
.await?;
if let Some(text) = response.results.summary.as_ref().and_then(|s| s.text.as_deref()) {
println!("summary: {text}");
}
if let Some(sentiments) = &response.results.sentiments {
println!("average sentiment: {:?}", sentiments.average);
}
if let Some(topics) = &response.results.topics {
println!("topic segments: {}", topics.segments.len());
}
if let Some(intents) = &response.results.intents {
println!("intent segments: {}", intents.segments.len());
}
Ok(())
}
analyze_url takes the URL of a plain-text document; everything else is the
same as analyze_text.
let response = dg_client
.text_intelligence()
.analyze_url("https://example.com/transcript.txt", &options)
.await?;
For long inputs, have Deepgram deliver the result to a webhook instead of
holding the connection open. The call returns as soon as the request is
accepted, with the request_id to correlate against; the full analysis arrives
at the callback URL.
use deepgram::read::options::{CallbackMethod, Options};
let options = Options::builder()
.sentiment(true)
.callback_method(CallbackMethod::POST)
.build();
let ack = dg_client
.text_intelligence()
.analyze_text_callback(text, &options, "https://example.com/hook")
.await?;
println!("request id: {}", ack.request_id);
analyze_url_callback is the hosted-document equivalent.
analyze_text(text, &options) for inline text, analyze_url(url, &options) for a hosted plain-text document.Options::builder(): sentiment, summarize, topics, intents.custom_topics / custom_topic_mode and custom_intents / custom_intent_mode.language defaults to English, the only language /v1/read accepts; the builder sends it for you because the endpoint returns 400 without it.tag attaches request tags for usage reporting.analyze_text_callback / analyze_url_callback plus callback_method.make_read_request_builder and make_read_callback_request_builder return the
underlying reqwest::RequestBuilder before it is sent, for appending query
parameters the typed options do not cover yet.
src/read/ — rest.rs (the four request methods), options.rs (the query builder), response.rs (Response, ReadMetadata, ReadResults)README.md for install/auth patternshttps://developers.deepgram.com/openapi.yamlhttps://developers.deepgram.com/reference/text-intelligence/analyze-text/v1/read/llmstxt/developers_deepgram_llms_txthttps://developers.deepgram.com/docs/text-intelligenceOptions; text intelligence is its own /v1/read API with its own read::options::Options. The two Options types are not interchangeable.results.sentiments, summary, topics, and intents are Option, populated only for the flags you enabled. Match on them rather than unwrapping. Summary::text is itself an Option<String>, because the reference marks it optional, so reaching the summary text means unwrapping twice.ReadMetadata (including request_id, an Option<Uuid>, and created) and every field of AnalysisInfo is an Option, matching the reference, so logging the request id means unwrapping first rather than reading it straight off response.metadata./v1/read accepts English; the builder sends language=en by default because the endpoint rejects a request without it.read can be enabled alone. If a consumer has default-features = false, text intelligence needs features = ["read"] — it is not covered by listen.Token. This API does not use Bearer for standard API keys. Deepgram::new handles the header for you.examples/read/analyze_text.rs — runnable end-to-end analysis, registered as the analyze_text example (cargo run --features read --example analyze_text).For cross-language Deepgram product knowledge — the consolidated API reference, documentation finder, focused runnable recipes, third-party integration examples, and MCP setup — install the central skills:
npx skills add deepgram/skills
This SDK ships language-idiomatic code skills; deepgram/skills ships cross-language product knowledge (see api, docs, recipes, examples, starters, setup-mcp).
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/deepgram-deepgram-rust-sdk:deepgram-rust-text-intelligencefrom deepgram-rust-sdk
Claude Code refuses to install this plugin
This plugin's marketplace entry is invalid: skills.0: Invalid string: must start with "./", skills.1: Invalid string: must start with "./", skills.2: Invalid string: must start with "./" (+4 more)
This plugin's marketplace entry is invalid: skills.0: Invalid string: must start with "./", skills.1: Invalid string: must start with "./", skills.2: Invalid string: must start with "./" (+4 more)
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
7 skills in this plugin
/deepgram-rust-audio-intelligenceUse when implementing Deepgram audio intelligence from the Rust SDK, especially when intelligence features are attached to STT Options and batch responses instead of a separate audio-intelligence module./deepgram-rust-conversational-sttUse when implementing Deepgram Flux conversational STT from the Rust SDK, including flux_request APIs, turn events, FluxResponse handling, and turn-detection tuning for voice-agent-style pipelines./deepgram-rust-management-apiUse when implementing Deepgram project, key, member, scope, billing, invitation, or usage operations from the Rust SDK, including manage feature flags and the real Deepgram::projects/keys/members/scopes/billing/usage APIs./deepgram-rust-speech-to-textUse when implementing Deepgram speech-to-text in the Rust SDK, including prerecorded REST transcription, live WebSocket streaming, listen feature flags, Options builder usage, and response handling./deepgram-rust-text-to-speechUse when implementing Deepgram text-to-speech in the Rust SDK, including Aura and Flux TTS model selection, speak feature flags, output file or byte-stream handling, the streaming Aura and Flux TTS WebSocket handles, and real crate APIs under speak::options, speak::flux, and Speak./deepgram-rust-voice-agentUse when implementing a Deepgram Voice Agent from the Rust SDK, including the agent() WebSocket client, Settings/Update messages, typed AgentResponse events, function calling, and saved agent configurations.Other plugins' skills for the same job