Learn how to use our product with this module.
Injests various news sources and provides relevent news articles to a chat message.
NEWS_FEED
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.
|
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. |
Source Key | Name | Description | |
---|---|---|---|
Category: General | |||
APNEWS |
AP News | Default provider | |
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 | - |