News Feed

Learn how to use our product with this module.

Injests various news sources and provides relevent news articles to a chat message.


Module Overview

Key

NEWS_FEED

Type

MODULE

Runtime

SERVER_BEFORE_PROMPT

Data

Accepts: No
Forwards: No

Settings

Setting Key Type Default Value Description
sources sources[] ["APNEWS, "BLOOMBERG", "DECRYPT"] Array of news sources to include; see list below.
keywords string[] [] An array of keywords (strings) that the title or description of a story needs to contain to be included in the potential news pool.
timeframe Object { value: 14, unit: 'd' }

How far back we should search for articles.

unit (d|h): days or hours
value (integer): how many units back; so "14" is 14 days or hours back.

maxArticles number 3 Max articles to return per chat message.
cacheTimeInSeconds number 1800 Defaults to 30 mins. Represents the time in seconds to cache news results for. Caching improves speed and performance.
selectionStrategy RELEVANCE|LATEST LATEST Whether to prioritize the latest news, or the most relevant news overall.

Available Sources

Source Key Name Description
Category: General
APNEWS AP News Default provider
REDDIT Reddit -
REUTERS Reuters -
Category: Finance
BLOOMBERG Bloomberg Default provider
BUSINESS_INSIDER Business Insider -
WSJ Wall Street Journal -
Category: Blockchain & AI
BINANCE_NEWS Binance News -
BLOCKWORKS Blockworks -
COINDESK Coindesk -
COIN_TELEGRAPH Coin Telegram -
DECRYPT Decrypt Default provider
THEBLOCK The Block -