Building AI UI - binding variables to text input

I have a basic UI started → text input → button → response text box
serving local llm through n8n and i have my button action setup and it is hitting my n8n webhook fine (not sure i have format JSON right but I will deal with that later) my issue is binding my variable I created to the text input. AI help and videos reference two way binding, i can’t see that option anywhere, right now I have my “queryInput” variable bound in textbox under formula it says “queryInput” but when i watch logs and i have “hello” in text input and hit button the logs are not sending the text input sending blank " "…I know I am just missing one thing here, I just can’t get to it. Any help would be appreciated.

Hi @RidgetopAi :waving_hand:

I’m not 100% sure but it sounds like you might be having trouble binding an API call to a variable.

Here’s an example of how to bind a form input:

CleanShot 2025-05-13 at 17.24.59

If you’re not using a form and want to bind to a variable, you can find the variables here:

Does that help?

1 Like

thanks joyce…I’m battling over here..i just wiped my first attempt and this time I tried letting ai do it.. good design and layout nice, right now I know what I need to do just trying to find the JSON structure being sent to my n8n I need to stick a function node in to convert it, but I will keep digging…hahah, thanks for the fast response

1 Like

Hello ! I would suggest you to test your api using httpie or postman you would then have a better look
Which provider are you using ? Is it through a edge function / else ?
Sending a screen of your workflow can help

1 Like