Right now, the tools like fund-match-quiz.html, startup-planner.html, and fundability-score.html use hardcoded JavaScript if/else statements to calculate scores and determine routing.
Recommendation: Move this logic to a backend webhook (via Make, n8n, or Next.js API routes). Let the front-end capture the raw inputs and send them to the backend. The backend AI Agent can then read the JSON payload, apply the prompt logic from your Canvas document, and return the route_tag securely. This prevents savvy users from inspecting the page source and "gaming" the qualification system.
Right now, the tools like fund-match-quiz.html, startup-planner.html, and fundability-score.html use hardcoded JavaScript if/else statements to calculate scores and determine routing.
Recommendation: Move this logic to a backend webhook (via Make, n8n, or Next.js API routes). Let the front-end capture the raw inputs and send them to the backend. The backend AI Agent can then read the JSON payload, apply the prompt logic from your Canvas document, and return the route_tag securely. This prevents savvy users from inspecting the page source and "gaming" the qualification system.