Team Trivia App
Receive a daily TRUE or FALSE question in Slack for your team to answer.
Time Frequence
The default template will execute daily in the morning. You can adjust the timing and time zone under Condition
in the top action block.
HTTP Request
The HTTP action sends a request to a public API of https://opentdb.com. The default template sends a request to:
This reques will return a single True or False question including the correct answer. The JSON will look something like this:
Visit https://opentdb.com/api_config.php to change the type and number of questions it returns.
Send to Slack
Since we only receive questions of the type True or False, we can use the following standardized Slack message:
Trivia Question of the day, post your answers in the thread. TRUE or FALSE?
{{steps.get-trivia-question.outputs.Body.results.0.question}}
In Slack, it will look something like this:
Modification
There are many ways of modifying this app to your preference. You can add multiple choice questions and check through an If Condition what type of question you received to trigger different Slack messages.
Furthermore, the Open Trivia Database returns questions which contain special characters in weird formats. In order to avoid that you can change the HTTP request to:
and add a DB Query right after:
to receive the right format.