Hi - I am storing my prompts within bot variables because we are writing & maintaining our prompts in Langfuse for the benefits of versioning, tracing, etc. This means that we need to fetch those prompts and then store them in bot variables. The issue with this is that I can't then pass a variable as the "Task Instructions" to an AI Task card, and am instead forced to put them into the "AI Task Input" - which leads to inconsistent results. When having the prompt within the AI Task Input, I sometimes find that my AI Task card is returning nothing, causing issues. When I then copy paste the prompt into the Task Instructions, it seems to work fine.
I've attached a screenshot of how I have tried to handle this using an AI Task card.
My question is: Is there a good way to handle prompts that are stored in variables when using AI Task cards? I could use the AI Generate Text, as that allows variables, but the output that I want in this case is not text - it is JSON (which I have setup a schema for and therefore would like to benefit from the typing gained by using "Store result in variables").
https://cdn.discordapp.com/attachments/1404413357246644357/1404413358559592529/Screenshot_2025-08-11_at_11.36.48.png?ex=689b195d&is=6899c7dd&hm=2c2b70e97f7379cd7117ee2cff76a6ac858d3f577b37175b083cc350ed4781b0&