Skip to main content

Scenario

Social listening tools show a sentiment score but not why people feel positive or negative. This job searches recent brand mentions, feeds tweets into Mavera Chat with an analyst persona, and produces structured sentiment classification by topic. Run daily to catch emerging issues.

Architecture

Code

Example Output

Error Handling

10,000 reads/month. Three pages (300 tweets) × 30 daily runs = 9,000 reads. Monitor usage in Developer Portal.
Recent search covers last 7 days. For historical analysis, use full-archive search (Pro, $5K/mo).
X returns x-rate-limit-remaining and x-rate-limit-reset (Unix timestamp). Code handles 429s by sleeping.

X / Twitter Integration

Mave Agent