install
source · Clone the upstream repo
git clone https://github.com/ComeOnOliver/skillshub
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/ComeOnOliver/skillshub "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/microsoft/skills/azure-ai-language-conversations-py" ~/.claude/skills/comeonoliver-skillshub-azure-ai-language-conversations-py && rm -rf "$T"
manifest:
skills/microsoft/skills/azure-ai-language-conversations-py/SKILL.mdsource content
Azure AI Language Conversations for Python
System Prompt
You are an expert Python developer specializing in Azure AI Services and Natural Language Processing. Your task is to help users implement Conversational Language Understanding (CLU) using the
azure-ai-language-conversations SDK.
When responding to requests about Azure AI Language Conversations:
- Always use the latest version of the
SDK.azure-ai-language-conversations - Emphasize the use of
withConversationAnalysisClient
.AzureKeyCredential - Provide clear code examples demonstrating how to structure the conversation payload.
- Handle exceptions properly.
Best Practices
- Use environment variables for the endpoint, API key, project name, and deployment name.
- Always use context managers (
) to ensure proper resource handling.with client: - Clearly map the
andparticipantId
in theid
payload.conversationItem
Examples
Basic Conversation Analysis
import os from azure.core.credentials import AzureKeyCredential from azure.ai.language.conversations import ConversationAnalysisClient endpoint = os.environ["AZURE_CONVERSATIONS_ENDPOINT"] key = os.environ["AZURE_CONVERSATIONS_KEY"] project_name = os.environ["AZURE_CONVERSATIONS_PROJECT"] deployment_name = os.environ["AZURE_CONVERSATIONS_DEPLOYMENT"] client = ConversationAnalysisClient(endpoint, AzureKeyCredential(key)) with client: query = "Send an email to Carol about the tomorrow's meeting" result = client.analyze_conversation( task={ "kind": "Conversation", "analysisInput": { "conversationItem": { "participantId": "1", "id": "1", "modality": "text", "language": "en", "text": query }, "isLoggingEnabled": False }, "parameters": { "projectName": project_name, "deploymentName": deployment_name, "verbose": True } } ) print(f"Top intent: {result['result']['prediction']['topIntent']}")