# Deliver interactive concert economics lessons with TypeSafe AI and OpenAI

> Quick overview Turn concert planning into an interactive economics lesson. This workflow powers a companion website where learners adjust ticket prices, explore costs and demand, compare outcomes, and ask questions. Deterministic calculations supply the numbers; TypeSafe AI and OpenAI guide explanations. A second webhook provides simulated or researched competing events. How it works 1. Receives a POST request to the “Lesson request” webhook and validates the payload, normalizes inputs, and calculates concert metrics (attendance, revenue, costs, profit, ROI) from the provided scenario. 2. Classifies the learner’s question intent with TypeSafe AI and determines whether the intent is supported with sufficient confidence. 3. If the intent is supported, sends a structured request to the OpenAI Responses API to select 1–3 approved, prewritten paragraph IDs and a scene focus for the explanation. 4. Validates the OpenAI response and falls back to a prebuilt explanation if the response is miss

- **Domain**: `n8n-workflow-20266.n8n.io`
- **Provider**: n8n.io (https://n8n.io)
- **Kind**: workflow
- **Live-responds (last probe)**: None
- **Signed card**: False
- **Streaming**: False
- **Quality score**: 40%

## URLs
- Agent card: https://n8n.io/workflows/20266
- Page (HTML): https://agenstry.com/agents/n8n-workflow-20266.n8n.io
- Documentation: https://n8n.io/workflows/20266
