Using AI in episodic animation pipelines
π Introduction
- Problem: building a flexible condition-builder for trading rules.
- Why I asked ChatGPT for help.
- Hook: AI + React made it possible faster than I expected.
π§ The Challenge
- Needed nested condition blocks (ifβelse, AND/OR, groups).
- Hard to code from scratch without clear blueprint.
- Goal: a UI that even non-devs could use.
π€ How ChatGPT Helped
- Prompting ChatGPT with βexplain + code sample.β
- Iterating on JSON structures (RootGroupNode, ChooseBlock, etc.).
- Debugging logic β refining prompts until output worked.
βοΈ React Implementation
- Component structure (ConditionBuilder β Group β Block).
- State management with hooks.
- JSON export for backend integration.
- UI design β minimal, intuitive, drag/drop style.
π§ͺ Testing & Iteration
- Tried with small test conditions first.
- Nested conditions tested against mock trading rules.
- Integration with backend (FastAPI).
π‘ Lessons Learned
- ChatGPT β perfect code β but excellent βpair programmer.β
- Breaking down into prompts + iterations was key.
- Future: add drag-and-drop UI, AI-suggested conditions.
π Closing Thoughts
- Reflection on using AI not just for answers but collaboration.
- Encouragement: try building your own tools with small AI-guided steps.
Comments