nithishkumarbdev/weather-delivery-delay-notifier ? reverse-engineered prompt
Reverse engineered prompt
Build me a small Node.js app that reads a list of delivery orders from orders.json, checks the current weather for each order’s city, and marks any order as delayed when the weather is bad, like rain, snow, or extreme conditions.
I want it to process the cities at the same time, skip any city that can’t be found or fails to load, and keep going with the rest. For every delayed order, generate a short, friendly apology message for the customer. If the AI part fails, just use a simple fallback message so the script still finishes.
Please write the results into an output folder, one file for the updated orders and one file for the apology messages. Also include clear logging, basic error handling, and tests for the main logic. Use the env file for API keys, and if you need to check current API docs while building it, go ahead.
Are you gonna build this?
make sure you review the code using coderabbit