Added Prompt for tools (#68)
* Create detailed markdown instructions for all toolkits * Update all toolkit classes to load instructions from external .md files * Add query examples for cryptocurrency report generation
This commit was merged in pull request #68.
This commit is contained in:
46
src/app/api/tools/instructions/social_instructions.md
Normal file
46
src/app/api/tools/instructions/social_instructions.md
Normal file
@@ -0,0 +1,46 @@
|
||||
# Social Media APIs - Instructions
|
||||
|
||||
## Tools (2)
|
||||
**Single-source (fast):** First available platform
|
||||
1. `get_top_crypto_posts(limit=5)` - Top crypto posts, first platform
|
||||
|
||||
**Aggregated (comprehensive):** All platforms (3x API calls: Reddit, X, 4chan)
|
||||
2. `get_top_crypto_posts_aggregated(limit_per_wrapper=5)` - Posts from all platforms
|
||||
|
||||
## Selection Strategy
|
||||
- Quick snapshot → single-source (tool 1)
|
||||
- Keywords "all platforms", "comprehensive", "compare" → aggregated (tool 2)
|
||||
|
||||
## Post Structure
|
||||
Contains: content, author, platform, url, created_at, score/upvotes, comments_count, subreddit/board
|
||||
|
||||
## Limits (posts are verbose)
|
||||
- Quick: 5 (default) | Standard: 10-15 | Deep: 20-30 | Max: 50
|
||||
|
||||
## Platform Notes
|
||||
- **Reddit:** r/cryptocurrency, r/bitcoin, r/ethereum (upvotes metric)
|
||||
- **X (Twitter):** High engagement crypto tweets (likes metric)
|
||||
- **4chan:** /biz/ board (replies metric, may contain inappropriate language)
|
||||
|
||||
## Critical Rules
|
||||
- Never fabricate posts - only report actual tool outputs
|
||||
- Include: platform, author, URL, engagement metrics, timestamp
|
||||
- Truncate content to max 280 chars
|
||||
- Summarize sentiment trends, don't list all posts verbatim
|
||||
- Frame as opinions, not facts - add disclaimers for unverified info
|
||||
- Be VERY concise to save tokens
|
||||
|
||||
## Sentiment Analysis
|
||||
- Identify recurring topics, positive/negative patterns, trending coins
|
||||
- Compare sentiment across platforms, highlight high engagement
|
||||
- Flag potential FUD or shilling
|
||||
- Do not treat social media posts as factual evidence
|
||||
- Encourage users to verify information from official sources
|
||||
|
||||
BEST PRACTICES:
|
||||
- Use aggregated tool for sentiment comparison across platforms
|
||||
- Combine with news data for context
|
||||
- Focus on high-engagement posts for quality
|
||||
- Summarize trends rather than listing every post
|
||||
- Be selective - quality over quantity
|
||||
- Respect character limits to avoid token overflow
|
||||
Reference in New Issue
Block a user