Hi, i have integrated the Youtube API into my application. I am then using the Youtube videos/results and sending them to Open AI to present to the user along with other useful information.
When it comes to Open AI, i want to pass the Snippet Title, Snipped Description and the video id from the YouTube API. So that the video link is clickable when open AI provides a response to the user i need to prepend the suffix YouTube This item’s id videoId and then add the dynamic field ‘video id’ which i get from the API.
In order to achieve this, i have a custom state, which stored the value of the results from the YouTube search, this custom state is set up as text and as a list
The issue i have is i can’t seem to find a way to do this within the workflow area when setting the state of an element.
I have tried using merged with, which is fine to merge different data fields in the API like the below screenshot:
But as soon as i try and use free text before a field e.g YouTube and then select the dynamic field of video id it will not validate. I have also tried using join with and format as text and just cant get it to validate.
Does anyone have any suggestions for how to achieve this?
Thanks very much!