Hi everyone,
I hope you’re all doing well. I wanted to ask for some help with an issue I’ve been facing. I’m working with a module that uses ChatGPT to process natural language queries and convert them into SQL queries. Then, I have a MySQL module that executes the SQL query. Up to this point, everything works fine.
The problem arises when I try to process the MySQL results in the next step. The output parameters keep changing depending on the SQL query made, and I’m having trouble handling this variability. Sometimes, it returns a bundle named “response,” but other times, it gives me several bundles or even changes the name of the output bundle.
I would appreciate any advice on how to manage this so that I can effectively process the results in the following module. I’ve tried to get the output consistently in an array, but it hasn’t worked out. Any ideas?
Thank you in advance for your help!