What are three random facts from the table submitted?
*Endpoint: https://generate-text-mrwwgrktvq-ue.a.run.app/random-fact-3bullets
Description: Submit multiple metrics and a given asset_id tracked over time. Three sentences are returned as a character string, wrapped in HTML bullet points;
Note that the column names will determine how the metric names are communicated in the returned sentences, so proper formatting of the names will be necessary for optimal returned text. The API will convert underscores to spaces in column names (i.e. "points_per_game" becomes "points per game").
Call Structure
curl -XPOST -d '{
"metric_df": [
{
"time": "2020-12-23",
"asset_id": "Ben Simmons",
"assists": 8,
"rebounds": 10,
"points": 14,
...
],
"key": ["api_token_here"]
}' 'https://generate-text-mrwwgrktvq-ue.a.run.app/random-fact-3bullets'
Sample API Response
*
- Over the past 45 days, Ben Simmon's points has been in a clear downtrend, falling by about .01 per day.
- Ben Simmons reports an average of 7.2 for his assists over the past 93 days.
- Ben Simmons had rebounds of 10, up 25% from the day prior.