rominbasnet/customer_support_copilot ? reverse-engineered prompt

Reverse engineered prompt

Build me a small customer support copilot app in Python with a simple API.

I want to send in a support ticket and have the app understand what the customer is asking, check whether it needs extra info like order status or refund details, call the right internal tool if needed, and then draft a polite reply for the support agent to review before sending.

Please make it use OpenAI tool calling so the model can decide when to look things up instead of guessing. I’d like it to handle missing or invalid order numbers, failed lookups, and cases where a refund should not be processed. Keep the final answer grounded in whatever the tools return.

A good first version can expose one or two endpoints, take a ticket as input, and return the drafted response plus any tool results or reasoning summary that would help a human agent approve it. Use environment variables for the API key and include a clean README so I can run it locally.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab