The prompt
Paste it into your agent and replace the parts in angle brackets. The agent needs SocialTap: connect it with the MCP server or an API key.
Add a video analysis pipeline to <my app or AI product> that takes a public video link and answers <what my users want to know>.
For each link, fetch the video's details, its transcript (in <language> if it has one, otherwise in the original language) and its comments, page by page, until you have read them all or enough to see the pattern.
Pass your model the transcript with its timestamps and the comments with their like counts, and have it return:
- A summary, and the key points in order, each with the timestamp where it starts.
- The claims, numbers and names the video mentions, quoted exactly.
- The audience's mood, the themes in the comments and the questions nobody answered.
Work only from what the data says. If a transcript is machine-generated, say so, and flag words that look misheard instead of correcting them silently.
Get the data from SocialTap. If the SocialTap MCP server is connected, use its tools; otherwise call the REST API at https://socialtap.dev with the API key from the SOCIALTAP_API_KEY environment variable in the x-api-key header. Read https://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://socialtap.dev/docs/reference/youtube/post/index.md
- tiktok.post: GET /v1/tiktok/post, TikTok Post API. Docs: https://socialtap.dev/docs/reference/tiktok/post/index.md
- instagram.post: GET /v1/instagram/post, Instagram Post API. Docs: https://socialtap.dev/docs/reference/instagram/post/index.md
- youtube.transcript: GET /v1/youtube/transcript, YouTube Transcript API. Docs: https://socialtap.dev/docs/reference/youtube/transcript/index.md
- tiktok.transcript: GET /v1/tiktok/transcript, TikTok Transcript API. Docs: https://socialtap.dev/docs/reference/tiktok/transcript/index.md
- instagram.transcript: GET /v1/instagram/transcript, Instagram Reels Transcript API. Docs: https://socialtap.dev/docs/reference/instagram/transcript/index.md
- youtube.comments: GET /v1/youtube/comments, YouTube Comments API. Docs: https://socialtap.dev/docs/reference/youtube/comments/index.md
- tiktok.comments: GET /v1/tiktok/comments, TikTok Comments API. Docs: https://socialtap.dev/docs/reference/tiktok/comments/index.md
- instagram.comments: GET /v1/instagram/comments, Instagram Comments API. Docs: https://socialtap.dev/docs/reference/instagram/comments/index.mdEndpoints it uses
- YouTube · Video
youtube.postTry it - TikTok · Post
tiktok.postTry it - Instagram · Post
instagram.postTry it - YouTube · Transcript
youtube.transcriptTry it - TikTok · Transcript
tiktok.transcriptTry it - Instagram · Reels Transcript
instagram.transcriptTry it - YouTube · Comments
youtube.commentsTry it - TikTok · Comments
tiktok.commentsTry it - Instagram · Comments
instagram.commentsTry it