# Recommended: use new_data_story() with flat API
interpret_result <- bid_interpret(
central_question = "What drives the decline in user engagement?",
data_story = new_data_story(
hook = "Declining trend in engagement",
context = "Previous high engagement levels",
tension = "Unexpected drop",
resolution = "Investigate new UI changes"
)
)
# With user personas (using data.frame)
interpret_personas <- bid_interpret(
central_question = "How can we improve data discovery?",
data_story = new_data_story(
hook = "Users are missing key insights",
context = "Critical data is available but overlooked",
tension = "Time-sensitive decisions are delayed",
resolution = "Highlight key metrics more effectively",
audience = "Data analysts and executives"
),
user_personas = data.frame(
name = c("Sara, Data Analyst", "Marcus, Executive"),
goals = c(
"Needs to quickly find patterns in data",
"Wants high-level insights at a glance"
),
pain_points = c(
"Gets overwhelmed by too many visualizations",
"Limited time to analyze detailed reports"
),
technical_level = c("advanced", "beginner"),
stringsAsFactors = FALSE
)
)
summary(interpret_personas)
# Legacy list format still works (with deprecation warning)
if (FALSE) {
interpret_legacy <- bid_interpret(
central_question = "How can we improve UX?",
data_story = list(
hook = "Users struggling",
context = "Dashboard complexity",
tension = "High abandonment rate",
resolution = "Simplify interface"
)
)
}
Run the code above in your browser using DataLab