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.
Watch Reddit for mentions of <brand, product or problem> and tell me which ones need an answer.
Search Reddit posts and comments for each of these keywords: <keywords>, newest first. Also read the newest posts in these subreddits: <subreddits>. Skip anything older than <days> days and anything I have already seen: <IDs or links already handled>.
For each match, read the post's comments to see whether someone already answered it well.
Then give me one table, a row per match, with the link, subreddit, author, date, score, the sentence that mentions the keyword, whether it asks for a recommendation or reports a problem, and whether it already has a good answer. Put the ones worth answering first, and say in a sentence why for each of the top five.
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:
- reddit.search_posts: GET /v1/reddit/search_posts, Reddit Search API. Docs: https://socialtap.dev/docs/reference/reddit/search-posts/index.md
- reddit.search_comments: GET /v1/reddit/search_comments, Reddit Comment Search API. Docs: https://socialtap.dev/docs/reference/reddit/search-comments/index.md
- reddit.subreddit_posts: GET /v1/reddit/subreddit_posts, Reddit Subreddit Posts API. Docs: https://socialtap.dev/docs/reference/reddit/subreddit-posts/index.md
- reddit.comments: GET /v1/reddit/comments, Reddit Comments API. Docs: https://socialtap.dev/docs/reference/reddit/comments/index.mdRun it on live data. 100 free credits when you sign up, no card required.
Start for freeEndpoints it uses
- Reddit · Search
reddit.search_postsTry it - Reddit · Comment Search
reddit.search_commentsTry it - Reddit · Subreddit Posts
reddit.subreddit_postsTry it - Reddit · Comments
reddit.commentsTry it
What comes back
A few fields of one comment from Reddit · Comments, as the API returns it. The reference lists every field.
{
"id": "t1_c60mmaf",
"text": "How do you balance family life and hobbies with, well, being the POTUS?",
"author": {
"id": "t2_60d4r",
"username": "gobearss"
},
"published_at": "2012-08-29T20:05:19Z",
"is_pinned": false,
"metrics": {
"like_count": 1556
}
}