Hi, I'm an amateur, building a small project with NodeJS api (Assistant). Need help with conceptual understanding on how to build for these sort of usecases:
-
To populate UI components in the frontend based on response from API (ie. clickable cards for links or product cards, to be shown under text response) - I tried to have it send structured JSON at the end of response so I can parse it in frontend and show cards, but it's not working.
-
to change certain things in UI (ie. change the background color of the frontend). For usecase 2, I feel I could maybe use function calling, but not sure.
Any resources or direction would be helpful, thanks