Implement fun facts and trivia
How to access trivia and fun facts that are scraped from r/todayilearned and saved in the Elasticsearch database.
This article is more technical and requires basic programming knowledge.
Flowstorm automatically looks for and gathers interesting trivia shared on the r/todayilearned
subreddit. The trivia is then saved in the Elasticsearch database.
Interaction designers are able to query the Elasticsearch database to retrieve the trivia and use it in dialogues. The Reddit connector implements the getTrivia()
function:
The trivia class has the following attributes:
Last updated