---
title: ToolRouter — Agent Use Case Guide
description: Step-by-step guide for completing a task with a specific AI agent using ToolRouter.
url: https://toolrouter.com/tools/social-media-comments/use-cases/analyze-comment-sentiment/copilot
---
# How to Analyze Comment Sentiment with Copilot

Copilot pulls comment data from your IDE for building sentiment analysis into your analytics pipeline. Fetch comments and Copilot helps write the classification logic, scoring algorithms, and visualization components that turn raw comment data into structured sentiment intelligence.

## Setup

{"mcpServers":{"toolrouter":{"command":"npx","args":["-y","toolrouter-mcp"]}}}

## Steps

1. Add ToolRouter to Copilot MCP config
2. In Copilot Chat: "Pull comments from this YouTube video and analyze sentiment"
3. Copilot collects comments and returns a structured sentiment analysis
4. Ask: "Export the results as JSON so I can feed them into my analytics pipeline"

## Example Prompt

```
Collect comments from this YouTube video and classify each by sentiment. Return structured JSON with comment text, author, and sentiment label.
```

## Tips

- Great for building sentiment datasets directly into your development workflow
- Ask for structured output to feed directly into data processing scripts
