Skip to main content

Scenario

When a story breaks in your industry, the first brand to publish a relevant take captures attention. This job monitors top headlines, identifies breaking stories via Mave alignment scoring, and immediately generates content pieces — a LinkedIn post, a tweet thread hook, and a blog intro — all aligned to your brand voice. Flow: NewsAPI GET /top-headlines → Mavera POST /mave/chat (alignment) → POST /generations (content) → Rapid content library

Code

Example Output

Error Handling

Top headlines update every 15 minutes. For true breaking news, poll on a cron. Cache previous results to avoid duplicate content generation.
If fewer than 2 stories align, broaden category or switch to /everything with industry-specific queries.
Generation may exceed platform limits (LinkedIn: 3,000 chars, Twitter: 280). Validate lengths before posting.