Hey @Harsha_Wijesooriya Are you able to share the underlying prompt & query? It seems like you may be using external resources, so it would be helpful to hear more details if you can share them
Seems like there could be a few ways to go about this use case!
In the meantime, my initial thought is that, if you're only using Retool's AI features, you could try to use the generate text AI Action to filter data from your DB or API:
You could use generate text to come up with a SQL query, but you could run into potential syntax issues if trying to use this result in other queries
@awilly Have you implemented any Retool AI solutions yet? Curious to hear how it's going