# Comment sentiment on a video

Workflows

Read what an audience says under a video: the overall mood, the themes, the questions people ask and the comments worth answering.

## The prompt

Paste it into your agent and replace the parts in angle brackets. The agent needs SocialTap: [connect it](https://staging.socialtap.dev/docs/agents/index.md) with the MCP server or an API key.

Prompt:

```
Analyze the comments on <video link>.

Fetch the video first, for its title, caption and engagement. Then fetch its comments, page by page, until you have read them all or enough to see the pattern (tell me how many you read).

Then report:
- The overall sentiment: the share of positive, negative and neutral comments, and how you judged them.
- The main themes, each with a few representative comments, quoted with their like counts.
- Questions people ask that the video or the creator hasn't answered.
- Complaints or criticism that keep coming back.
- The comments most worth replying to, and why.

Treat sarcasm and jokes carefully, and say when a theme rests on only a few comments.

Get the data from SocialTap. If the SocialTap MCP server is connected, use its tools; otherwise call the REST API at https://staging.socialtap.dev with the API key from the SOCIALTAP_API_KEY environment variable in the x-api-key header. Read https://staging.socialtap.dev/docs/agents/index.md before the first call. The endpoints, by ID:
- youtube.post: GET /v1/youtube/post, YouTube Video API. Docs: https://staging.socialtap.dev/docs/reference/youtube/post/index.md
- youtube.comments: GET /v1/youtube/comments, YouTube Comments API. Docs: https://staging.socialtap.dev/docs/reference/youtube/comments/index.md
- tiktok.post: GET /v1/tiktok/post, TikTok Post API. Docs: https://staging.socialtap.dev/docs/reference/tiktok/post/index.md
- tiktok.comments: GET /v1/tiktok/comments, TikTok Comments API. Docs: https://staging.socialtap.dev/docs/reference/tiktok/comments/index.md
```

## Endpoints it uses

- [YouTube · Post](https://staging.socialtap.dev/docs/reference/youtube/post/index.md) `youtube.post` [Try it](https://staging.socialtap.dev/playground/?endpoint=youtube.post)
- [YouTube · Comments](https://staging.socialtap.dev/docs/reference/youtube/comments/index.md) `youtube.comments` [Try it](https://staging.socialtap.dev/playground/?endpoint=youtube.comments)
- [TikTok · Post](https://staging.socialtap.dev/docs/reference/tiktok/post/index.md) `tiktok.post` [Try it](https://staging.socialtap.dev/playground/?endpoint=tiktok.post)
- [TikTok · Comments](https://staging.socialtap.dev/docs/reference/tiktok/comments/index.md) `tiktok.comments` [Try it](https://staging.socialtap.dev/playground/?endpoint=tiktok.comments)

---

[HTML version](https://staging.socialtap.dev/docs/workflows/comment-sentiment/) · [Docs index for AI agents](https://staging.socialtap.dev/llms.txt) · [All docs in one file](https://staging.socialtap.dev/llms-full.txt)
