Use when writing or reviewing C# code in this repo that calls Deepgram Text Intelligence / Read (`/read`) for sentiment, summarization, topic detection, and intent recognition on text or hosted text URLs. Covers `ClientFactory.CreateAnalyzeClient()` with `AnalyzeText`, `AnalyzeUrl`, and `AnalyzeFile`. Use `deepgram-dotnet-audio-intelligence` when the source is audio instead of text.
94
92%
Does it follow best practices?
Impact
Pending
No eval scenarios have been run
Advisory
Suggest reviewing before use
Analyze text input for sentiment, summary, topics, and intents.
Use a different skill when:
deepgram-dotnet-audio-intelligence.dotnet add package Deepgramusing Deepgram;
Library.Initialize();
var client = ClientFactory.CreateAnalyzeClient();ClientFactory reads credentials from the DEEPGRAM_API_KEY (or DEEPGRAM_ACCESS_TOKEN) environment variable by default. To pass them explicitly: ClientFactory.CreateAnalyzeClient(apiKey: "...", options: ...). DeepgramHttpClientOptions throws if neither the env var nor an explicit credential is provided.
using Deepgram;
using Deepgram.Models.Analyze.v1;
Library.Initialize();
var client = ClientFactory.CreateAnalyzeClient();
var response = await client.AnalyzeText(
new TextSource("Hello, world! This is a sample text for analysis."),
new AnalyzeSchema()
{
Language = "en",
Sentiment = true,
Summarize = true,
Topics = true,
Intents = true,
});
Console.WriteLine(response);var client = ClientFactory.CreateAnalyzeClient();
var fileBytes = File.ReadAllBytes("conversation.txt");
var fileResponse = await client.AnalyzeFile(
fileBytes,
new AnalyzeSchema() { Language = "en", Summarize = true });
var urlResponse = await client.AnalyzeUrl(
new UrlSource("https://example.com/conversation.txt"),
new AnalyzeSchema() { Language = "en", Sentiment = true });AnalyzeSchema: Language, Sentiment, Summarize, Topics, Intents, CustomTopic, CustomTopicMode, CustomIntent, CustomIntentMode, CallBack, CallbackMethod.
Input types:
TextSourceUrlSourcebyte[]StreamDeepgram/ClientFactory.csDeepgram/Clients/Analyze/v1/Client.csDeepgram/Models/Analyze/v1/AnalyzeSchema.csDeepgram/Models/Analyze/v1/*.cshttps://context7.com/deepgram/deepgram-dotnet-sdk/llmstxt/developers_deepgram_llms_txtAnalyzeClient maps to /read. The repo uses Analyze* method names, not Read* names.AnalyzeText(...) for raw strings. AnalyzeFile(...) is for bytes/streams, even if the file is plain text.Summarize is a boolean here. Do not use the STT-style "v2" string from /listen summarization.en only today.AnalyzeTextCallBack, AnalyzeUrlCallBack, or AnalyzeFileCallBack.examples/analyze/summary/Program.csexamples/analyze/sentiment/Program.csexamples/analyze/topic/Program.csexamples/analyze/intent/Program.csFor 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/skillsThis SDK ships language-idiomatic code skills; deepgram/skills ships cross-language product knowledge (see api, docs, recipes, examples, starters, setup-mcp).
d0d6fee
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.