Build a prompt from DB query and inputs

I need guidance dear community:)

I am building a think function stack in which I am getting a txt input and in function I am pulling in user specific data fields and I want to build a prompt that will go to an OpenAI assistant

With my basic knowledge of xano what comes to mind is like a ton of appended text steps to build up towards a complete prompt in a variable

is this the way or is there a smart way to do it through a specific expression that I can build into a single variable step that can pull in all inputs and DB query results??

Please help

4 replies