Skip to main content

Scenario

GDP growth, CPI inflation, and unemployment rates affect every consumer segment differently. A retiree on fixed income reacts to 5% CPI differently than a tech worker with stock options. This job pulls the latest economic indicators, creates demographic personas (retiree, new graduate, small business owner, dual-income family), and runs a Focus Group where each persona reacts to the actual data — revealing how to message products during different economic conditions. Flow: Alpha Vantage GET ?function=REAL_GDP + CPI + UNEMPLOYMENT → Mavera POST /personasPOST /focus-groups → Economic messaging insights

Code

Example Output

Error Handling

3 indicator calls at 15s intervals = 45s. On free tier, this uses 3 of 25 daily calls. Cache indicators — they update monthly/quarterly.
GDP returns in billions, CPI is an index (base 1982-84=100), Unemployment is a percentage. Include units in Focus Group context so personas interpret correctly.
Economic questions are complex. Allow up to 2 minutes for completion. The polling loop handles this with 25 × 5s iterations.